Class ExpTypeReference.Builder

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

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

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

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

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

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

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

      public ExpTypeReference.Builder mergeFrom(ExpTypeReference other)
    • isInitialized

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

      public ExpTypeReference.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<ExpTypeReference.Builder>
      Throws:
      IOException
    • getTyperefCase

      public ExpTypeReference.TyperefCase getTyperefCase()
      Specified by:
      getTyperefCase in interface ExpTypeReferenceOrBuilder
    • clearTyperef

      public ExpTypeReference.Builder clearTyperef()
    • getSubjectDefinitionName

      public String getSubjectDefinitionName()
       subject_definition_name is the name of the subject's definition.
       
      string subject_definition_name = 1;
      Specified by:
      getSubjectDefinitionName in interface ExpTypeReferenceOrBuilder
      Returns:
      The subjectDefinitionName.
    • getSubjectDefinitionNameBytes

      public com.google.protobuf.ByteString getSubjectDefinitionNameBytes()
       subject_definition_name is the name of the subject's definition.
       
      string subject_definition_name = 1;
      Specified by:
      getSubjectDefinitionNameBytes in interface ExpTypeReferenceOrBuilder
      Returns:
      The bytes for subjectDefinitionName.
    • setSubjectDefinitionName

      public ExpTypeReference.Builder setSubjectDefinitionName(String value)
       subject_definition_name is the name of the subject's definition.
       
      string subject_definition_name = 1;
      Parameters:
      value - The subjectDefinitionName to set.
      Returns:
      This builder for chaining.
    • clearSubjectDefinitionName

      public ExpTypeReference.Builder clearSubjectDefinitionName()
       subject_definition_name is the name of the subject's definition.
       
      string subject_definition_name = 1;
      Returns:
      This builder for chaining.
    • setSubjectDefinitionNameBytes

      public ExpTypeReference.Builder setSubjectDefinitionNameBytes(com.google.protobuf.ByteString value)
       subject_definition_name is the name of the subject's definition.
       
      string subject_definition_name = 1;
      Parameters:
      value - The bytes for subjectDefinitionName to set.
      Returns:
      This builder for chaining.
    • getOptionalCaveatName

      public String getOptionalCaveatName()
       optional_caveat_name is the name of the caveat that is applied to the subject, if any.
       
      string optional_caveat_name = 2;
      Specified by:
      getOptionalCaveatName in interface ExpTypeReferenceOrBuilder
      Returns:
      The optionalCaveatName.
    • getOptionalCaveatNameBytes

      public com.google.protobuf.ByteString getOptionalCaveatNameBytes()
       optional_caveat_name is the name of the caveat that is applied to the subject, if any.
       
      string optional_caveat_name = 2;
      Specified by:
      getOptionalCaveatNameBytes in interface ExpTypeReferenceOrBuilder
      Returns:
      The bytes for optionalCaveatName.
    • setOptionalCaveatName

      public ExpTypeReference.Builder setOptionalCaveatName(String value)
       optional_caveat_name is the name of the caveat that is applied to the subject, if any.
       
      string optional_caveat_name = 2;
      Parameters:
      value - The optionalCaveatName to set.
      Returns:
      This builder for chaining.
    • clearOptionalCaveatName

      public ExpTypeReference.Builder clearOptionalCaveatName()
       optional_caveat_name is the name of the caveat that is applied to the subject, if any.
       
      string optional_caveat_name = 2;
      Returns:
      This builder for chaining.
    • setOptionalCaveatNameBytes

      public ExpTypeReference.Builder setOptionalCaveatNameBytes(com.google.protobuf.ByteString value)
       optional_caveat_name is the name of the caveat that is applied to the subject, if any.
       
      string optional_caveat_name = 2;
      Parameters:
      value - The bytes for optionalCaveatName to set.
      Returns:
      This builder for chaining.
    • hasIsTerminalSubject

      public boolean hasIsTerminalSubject()
       is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
       
      bool is_terminal_subject = 3;
      Specified by:
      hasIsTerminalSubject in interface ExpTypeReferenceOrBuilder
      Returns:
      Whether the isTerminalSubject field is set.
    • getIsTerminalSubject

      public boolean getIsTerminalSubject()
       is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
       
      bool is_terminal_subject = 3;
      Specified by:
      getIsTerminalSubject in interface ExpTypeReferenceOrBuilder
      Returns:
      The isTerminalSubject.
    • setIsTerminalSubject

      public ExpTypeReference.Builder setIsTerminalSubject(boolean value)
       is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
       
      bool is_terminal_subject = 3;
      Parameters:
      value - The isTerminalSubject to set.
      Returns:
      This builder for chaining.
    • clearIsTerminalSubject

      public ExpTypeReference.Builder clearIsTerminalSubject()
       is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
       
      bool is_terminal_subject = 3;
      Returns:
      This builder for chaining.
    • hasOptionalRelationName

      public boolean hasOptionalRelationName()
       optional_relation_name is the name of the relation that is applied to the subject, if any.
       
      string optional_relation_name = 4;
      Specified by:
      hasOptionalRelationName in interface ExpTypeReferenceOrBuilder
      Returns:
      Whether the optionalRelationName field is set.
    • getOptionalRelationName

      public String getOptionalRelationName()
       optional_relation_name is the name of the relation that is applied to the subject, if any.
       
      string optional_relation_name = 4;
      Specified by:
      getOptionalRelationName in interface ExpTypeReferenceOrBuilder
      Returns:
      The optionalRelationName.
    • getOptionalRelationNameBytes

      public com.google.protobuf.ByteString getOptionalRelationNameBytes()
       optional_relation_name is the name of the relation that is applied to the subject, if any.
       
      string optional_relation_name = 4;
      Specified by:
      getOptionalRelationNameBytes in interface ExpTypeReferenceOrBuilder
      Returns:
      The bytes for optionalRelationName.
    • setOptionalRelationName

      public ExpTypeReference.Builder setOptionalRelationName(String value)
       optional_relation_name is the name of the relation that is applied to the subject, if any.
       
      string optional_relation_name = 4;
      Parameters:
      value - The optionalRelationName to set.
      Returns:
      This builder for chaining.
    • clearOptionalRelationName

      public ExpTypeReference.Builder clearOptionalRelationName()
       optional_relation_name is the name of the relation that is applied to the subject, if any.
       
      string optional_relation_name = 4;
      Returns:
      This builder for chaining.
    • setOptionalRelationNameBytes

      public ExpTypeReference.Builder setOptionalRelationNameBytes(com.google.protobuf.ByteString value)
       optional_relation_name is the name of the relation that is applied to the subject, if any.
       
      string optional_relation_name = 4;
      Parameters:
      value - The bytes for optionalRelationName to set.
      Returns:
      This builder for chaining.
    • hasIsPublicWildcard

      public boolean hasIsPublicWildcard()
       is_public_wildcard is true if the subject is a public wildcard.
       
      bool is_public_wildcard = 5;
      Specified by:
      hasIsPublicWildcard in interface ExpTypeReferenceOrBuilder
      Returns:
      Whether the isPublicWildcard field is set.
    • getIsPublicWildcard

      public boolean getIsPublicWildcard()
       is_public_wildcard is true if the subject is a public wildcard.
       
      bool is_public_wildcard = 5;
      Specified by:
      getIsPublicWildcard in interface ExpTypeReferenceOrBuilder
      Returns:
      The isPublicWildcard.
    • setIsPublicWildcard

      public ExpTypeReference.Builder setIsPublicWildcard(boolean value)
       is_public_wildcard is true if the subject is a public wildcard.
       
      bool is_public_wildcard = 5;
      Parameters:
      value - The isPublicWildcard to set.
      Returns:
      This builder for chaining.
    • clearIsPublicWildcard

      public ExpTypeReference.Builder clearIsPublicWildcard()
       is_public_wildcard is true if the subject is a public wildcard.
       
      bool is_public_wildcard = 5;
      Returns:
      This builder for chaining.