Class ExpDefinition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExpDefinition.Builder>
com.authzed.api.v1.ExpDefinition.Builder
All Implemented Interfaces:
ExpDefinitionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExpDefinition

public static final class ExpDefinition.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExpDefinition.Builder> implements ExpDefinitionOrBuilder
 ExpDefinition is the representation of a definition in the schema.
 
Protobuf type authzed.api.v1.ExpDefinition
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ExpDefinition.Builder>
    • clear

      public ExpDefinition.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ExpDefinition.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ExpDefinition.Builder>
    • getDefaultInstanceForType

      public ExpDefinition getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ExpDefinition build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ExpDefinition buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ExpDefinition.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExpDefinition.Builder>
    • mergeFrom

      public ExpDefinition.Builder mergeFrom(ExpDefinition other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ExpDefinition.Builder>
    • mergeFrom

      public ExpDefinition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExpDefinition.Builder>
      Throws:
      IOException
    • getName

      public String getName()
      string name = 1;
      Specified by:
      getName in interface ExpDefinitionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      string name = 1;
      Specified by:
      getNameBytes in interface ExpDefinitionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ExpDefinition.Builder setName(String value)
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ExpDefinition.Builder clearName()
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ExpDefinition.Builder setNameBytes(com.google.protobuf.ByteString value)
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getComment

      public String getComment()
       comment is a human-readable comments on the definition. Will include
       delimiter characters.
       
      string comment = 2;
      Specified by:
      getComment in interface ExpDefinitionOrBuilder
      Returns:
      The comment.
    • getCommentBytes

      public com.google.protobuf.ByteString getCommentBytes()
       comment is a human-readable comments on the definition. Will include
       delimiter characters.
       
      string comment = 2;
      Specified by:
      getCommentBytes in interface ExpDefinitionOrBuilder
      Returns:
      The bytes for comment.
    • setComment

      public ExpDefinition.Builder setComment(String value)
       comment is a human-readable comments on the definition. Will include
       delimiter characters.
       
      string comment = 2;
      Parameters:
      value - The comment to set.
      Returns:
      This builder for chaining.
    • clearComment

      public ExpDefinition.Builder clearComment()
       comment is a human-readable comments on the definition. Will include
       delimiter characters.
       
      string comment = 2;
      Returns:
      This builder for chaining.
    • setCommentBytes

      public ExpDefinition.Builder setCommentBytes(com.google.protobuf.ByteString value)
       comment is a human-readable comments on the definition. Will include
       delimiter characters.
       
      string comment = 2;
      Parameters:
      value - The bytes for comment to set.
      Returns:
      This builder for chaining.
    • getRelationsList

      public List<ExpRelation> getRelationsList()
      repeated .authzed.api.v1.ExpRelation relations = 3;
      Specified by:
      getRelationsList in interface ExpDefinitionOrBuilder
    • getRelationsCount

      public int getRelationsCount()
      repeated .authzed.api.v1.ExpRelation relations = 3;
      Specified by:
      getRelationsCount in interface ExpDefinitionOrBuilder
    • getRelations

      public ExpRelation getRelations(int index)
      repeated .authzed.api.v1.ExpRelation relations = 3;
      Specified by:
      getRelations in interface ExpDefinitionOrBuilder
    • setRelations

      public ExpDefinition.Builder setRelations(int index, ExpRelation value)
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • setRelations

      public ExpDefinition.Builder setRelations(int index, ExpRelation.Builder builderForValue)
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • addRelations

      public ExpDefinition.Builder addRelations(ExpRelation value)
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • addRelations

      public ExpDefinition.Builder addRelations(int index, ExpRelation value)
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • addRelations

      public ExpDefinition.Builder addRelations(ExpRelation.Builder builderForValue)
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • addRelations

      public ExpDefinition.Builder addRelations(int index, ExpRelation.Builder builderForValue)
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • addAllRelations

      public ExpDefinition.Builder addAllRelations(Iterable<? extends ExpRelation> values)
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • clearRelations

      public ExpDefinition.Builder clearRelations()
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • removeRelations

      public ExpDefinition.Builder removeRelations(int index)
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • getRelationsBuilder

      public ExpRelation.Builder getRelationsBuilder(int index)
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • getRelationsOrBuilder

      public ExpRelationOrBuilder getRelationsOrBuilder(int index)
      repeated .authzed.api.v1.ExpRelation relations = 3;
      Specified by:
      getRelationsOrBuilder in interface ExpDefinitionOrBuilder
    • getRelationsOrBuilderList

      public List<? extends ExpRelationOrBuilder> getRelationsOrBuilderList()
      repeated .authzed.api.v1.ExpRelation relations = 3;
      Specified by:
      getRelationsOrBuilderList in interface ExpDefinitionOrBuilder
    • addRelationsBuilder

      public ExpRelation.Builder addRelationsBuilder()
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • addRelationsBuilder

      public ExpRelation.Builder addRelationsBuilder(int index)
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • getRelationsBuilderList

      public List<ExpRelation.Builder> getRelationsBuilderList()
      repeated .authzed.api.v1.ExpRelation relations = 3;
    • getPermissionsList

      public List<ExpPermission> getPermissionsList()
      repeated .authzed.api.v1.ExpPermission permissions = 4;
      Specified by:
      getPermissionsList in interface ExpDefinitionOrBuilder
    • getPermissionsCount

      public int getPermissionsCount()
      repeated .authzed.api.v1.ExpPermission permissions = 4;
      Specified by:
      getPermissionsCount in interface ExpDefinitionOrBuilder
    • getPermissions

      public ExpPermission getPermissions(int index)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
      Specified by:
      getPermissions in interface ExpDefinitionOrBuilder
    • setPermissions

      public ExpDefinition.Builder setPermissions(int index, ExpPermission value)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • setPermissions

      public ExpDefinition.Builder setPermissions(int index, ExpPermission.Builder builderForValue)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • addPermissions

      public ExpDefinition.Builder addPermissions(ExpPermission value)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • addPermissions

      public ExpDefinition.Builder addPermissions(int index, ExpPermission value)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • addPermissions

      public ExpDefinition.Builder addPermissions(ExpPermission.Builder builderForValue)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • addPermissions

      public ExpDefinition.Builder addPermissions(int index, ExpPermission.Builder builderForValue)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • addAllPermissions

      public ExpDefinition.Builder addAllPermissions(Iterable<? extends ExpPermission> values)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • clearPermissions

      public ExpDefinition.Builder clearPermissions()
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • removePermissions

      public ExpDefinition.Builder removePermissions(int index)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • getPermissionsBuilder

      public ExpPermission.Builder getPermissionsBuilder(int index)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • getPermissionsOrBuilder

      public ExpPermissionOrBuilder getPermissionsOrBuilder(int index)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
      Specified by:
      getPermissionsOrBuilder in interface ExpDefinitionOrBuilder
    • getPermissionsOrBuilderList

      public List<? extends ExpPermissionOrBuilder> getPermissionsOrBuilderList()
      repeated .authzed.api.v1.ExpPermission permissions = 4;
      Specified by:
      getPermissionsOrBuilderList in interface ExpDefinitionOrBuilder
    • addPermissionsBuilder

      public ExpPermission.Builder addPermissionsBuilder()
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • addPermissionsBuilder

      public ExpPermission.Builder addPermissionsBuilder(int index)
      repeated .authzed.api.v1.ExpPermission permissions = 4;
    • getPermissionsBuilderList

      public List<ExpPermission.Builder> getPermissionsBuilderList()
      repeated .authzed.api.v1.ExpPermission permissions = 4;