Class ExpRelation.Builder

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

public static final class ExpRelation.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExpRelation.Builder> implements ExpRelationOrBuilder
 ExpRelation is the representation of a relation in the schema.
 
Protobuf type authzed.api.v1.ExpRelation
  • 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<ExpRelation.Builder>
    • clear

      public ExpRelation.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<ExpRelation.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<ExpRelation.Builder>
    • getDefaultInstanceForType

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

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

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

      public ExpRelation.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<ExpRelation.Builder>
    • mergeFrom

      public ExpRelation.Builder mergeFrom(ExpRelation other)
    • isInitialized

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

      public ExpRelation.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<ExpRelation.Builder>
      Throws:
      IOException
    • getName

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

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

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

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

      public ExpRelation.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()
      string comment = 2;
      Specified by:
      getComment in interface ExpRelationOrBuilder
      Returns:
      The comment.
    • getCommentBytes

      public com.google.protobuf.ByteString getCommentBytes()
      string comment = 2;
      Specified by:
      getCommentBytes in interface ExpRelationOrBuilder
      Returns:
      The bytes for comment.
    • setComment

      public ExpRelation.Builder setComment(String value)
      string comment = 2;
      Parameters:
      value - The comment to set.
      Returns:
      This builder for chaining.
    • clearComment

      public ExpRelation.Builder clearComment()
      string comment = 2;
      Returns:
      This builder for chaining.
    • setCommentBytes

      public ExpRelation.Builder setCommentBytes(com.google.protobuf.ByteString value)
      string comment = 2;
      Parameters:
      value - The bytes for comment to set.
      Returns:
      This builder for chaining.
    • getParentDefinitionName

      public String getParentDefinitionName()
      string parent_definition_name = 3;
      Specified by:
      getParentDefinitionName in interface ExpRelationOrBuilder
      Returns:
      The parentDefinitionName.
    • getParentDefinitionNameBytes

      public com.google.protobuf.ByteString getParentDefinitionNameBytes()
      string parent_definition_name = 3;
      Specified by:
      getParentDefinitionNameBytes in interface ExpRelationOrBuilder
      Returns:
      The bytes for parentDefinitionName.
    • setParentDefinitionName

      public ExpRelation.Builder setParentDefinitionName(String value)
      string parent_definition_name = 3;
      Parameters:
      value - The parentDefinitionName to set.
      Returns:
      This builder for chaining.
    • clearParentDefinitionName

      public ExpRelation.Builder clearParentDefinitionName()
      string parent_definition_name = 3;
      Returns:
      This builder for chaining.
    • setParentDefinitionNameBytes

      public ExpRelation.Builder setParentDefinitionNameBytes(com.google.protobuf.ByteString value)
      string parent_definition_name = 3;
      Parameters:
      value - The bytes for parentDefinitionName to set.
      Returns:
      This builder for chaining.
    • getSubjectTypesList

      public List<ExpTypeReference> getSubjectTypesList()
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
      Specified by:
      getSubjectTypesList in interface ExpRelationOrBuilder
    • getSubjectTypesCount

      public int getSubjectTypesCount()
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
      Specified by:
      getSubjectTypesCount in interface ExpRelationOrBuilder
    • getSubjectTypes

      public ExpTypeReference getSubjectTypes(int index)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
      Specified by:
      getSubjectTypes in interface ExpRelationOrBuilder
    • setSubjectTypes

      public ExpRelation.Builder setSubjectTypes(int index, ExpTypeReference value)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • setSubjectTypes

      public ExpRelation.Builder setSubjectTypes(int index, ExpTypeReference.Builder builderForValue)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • addSubjectTypes

      public ExpRelation.Builder addSubjectTypes(ExpTypeReference value)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • addSubjectTypes

      public ExpRelation.Builder addSubjectTypes(int index, ExpTypeReference value)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • addSubjectTypes

      public ExpRelation.Builder addSubjectTypes(ExpTypeReference.Builder builderForValue)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • addSubjectTypes

      public ExpRelation.Builder addSubjectTypes(int index, ExpTypeReference.Builder builderForValue)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • addAllSubjectTypes

      public ExpRelation.Builder addAllSubjectTypes(Iterable<? extends ExpTypeReference> values)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • clearSubjectTypes

      public ExpRelation.Builder clearSubjectTypes()
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • removeSubjectTypes

      public ExpRelation.Builder removeSubjectTypes(int index)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • getSubjectTypesBuilder

      public ExpTypeReference.Builder getSubjectTypesBuilder(int index)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • getSubjectTypesOrBuilder

      public ExpTypeReferenceOrBuilder getSubjectTypesOrBuilder(int index)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
      Specified by:
      getSubjectTypesOrBuilder in interface ExpRelationOrBuilder
    • getSubjectTypesOrBuilderList

      public List<? extends ExpTypeReferenceOrBuilder> getSubjectTypesOrBuilderList()
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
      Specified by:
      getSubjectTypesOrBuilderList in interface ExpRelationOrBuilder
    • addSubjectTypesBuilder

      public ExpTypeReference.Builder addSubjectTypesBuilder()
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • addSubjectTypesBuilder

      public ExpTypeReference.Builder addSubjectTypesBuilder(int index)
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;
    • getSubjectTypesBuilderList

      public List<ExpTypeReference.Builder> getSubjectTypesBuilderList()
      repeated .authzed.api.v1.ExpTypeReference subject_types = 4;