Class SubjectFilter.Builder

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

public static final class SubjectFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<SubjectFilter.Builder> implements SubjectFilterOrBuilder
 SubjectFilter specifies a filter on the subject of a relationship.

 subject_type is required and all other fields are optional, and will not
 impose any additional requirements if left unspecified.
 
Protobuf type authzed.api.v1.SubjectFilter
  • 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<SubjectFilter.Builder>
    • clear

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

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

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

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

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

      public SubjectFilter.Builder mergeFrom(SubjectFilter other)
    • isInitialized

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

      public SubjectFilter.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<SubjectFilter.Builder>
      Throws:
      IOException
    • getSubjectType

      public String getSubjectType()
      string subject_type = 1 [(.validate.rules) = { ... }
      Specified by:
      getSubjectType in interface SubjectFilterOrBuilder
      Returns:
      The subjectType.
    • getSubjectTypeBytes

      public com.google.protobuf.ByteString getSubjectTypeBytes()
      string subject_type = 1 [(.validate.rules) = { ... }
      Specified by:
      getSubjectTypeBytes in interface SubjectFilterOrBuilder
      Returns:
      The bytes for subjectType.
    • setSubjectType

      public SubjectFilter.Builder setSubjectType(String value)
      string subject_type = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The subjectType to set.
      Returns:
      This builder for chaining.
    • clearSubjectType

      public SubjectFilter.Builder clearSubjectType()
      string subject_type = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setSubjectTypeBytes

      public SubjectFilter.Builder setSubjectTypeBytes(com.google.protobuf.ByteString value)
      string subject_type = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for subjectType to set.
      Returns:
      This builder for chaining.
    • getOptionalSubjectId

      public String getOptionalSubjectId()
      string optional_subject_id = 2 [(.validate.rules) = { ... }
      Specified by:
      getOptionalSubjectId in interface SubjectFilterOrBuilder
      Returns:
      The optionalSubjectId.
    • getOptionalSubjectIdBytes

      public com.google.protobuf.ByteString getOptionalSubjectIdBytes()
      string optional_subject_id = 2 [(.validate.rules) = { ... }
      Specified by:
      getOptionalSubjectIdBytes in interface SubjectFilterOrBuilder
      Returns:
      The bytes for optionalSubjectId.
    • setOptionalSubjectId

      public SubjectFilter.Builder setOptionalSubjectId(String value)
      string optional_subject_id = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The optionalSubjectId to set.
      Returns:
      This builder for chaining.
    • clearOptionalSubjectId

      public SubjectFilter.Builder clearOptionalSubjectId()
      string optional_subject_id = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setOptionalSubjectIdBytes

      public SubjectFilter.Builder setOptionalSubjectIdBytes(com.google.protobuf.ByteString value)
      string optional_subject_id = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for optionalSubjectId to set.
      Returns:
      This builder for chaining.
    • hasOptionalRelation

      public boolean hasOptionalRelation()
      .authzed.api.v1.SubjectFilter.RelationFilter optional_relation = 3;
      Specified by:
      hasOptionalRelation in interface SubjectFilterOrBuilder
      Returns:
      Whether the optionalRelation field is set.
    • getOptionalRelation

      public SubjectFilter.RelationFilter getOptionalRelation()
      .authzed.api.v1.SubjectFilter.RelationFilter optional_relation = 3;
      Specified by:
      getOptionalRelation in interface SubjectFilterOrBuilder
      Returns:
      The optionalRelation.
    • setOptionalRelation

      public SubjectFilter.Builder setOptionalRelation(SubjectFilter.RelationFilter value)
      .authzed.api.v1.SubjectFilter.RelationFilter optional_relation = 3;
    • setOptionalRelation

      public SubjectFilter.Builder setOptionalRelation(SubjectFilter.RelationFilter.Builder builderForValue)
      .authzed.api.v1.SubjectFilter.RelationFilter optional_relation = 3;
    • mergeOptionalRelation

      public SubjectFilter.Builder mergeOptionalRelation(SubjectFilter.RelationFilter value)
      .authzed.api.v1.SubjectFilter.RelationFilter optional_relation = 3;
    • clearOptionalRelation

      public SubjectFilter.Builder clearOptionalRelation()
      .authzed.api.v1.SubjectFilter.RelationFilter optional_relation = 3;
    • getOptionalRelationBuilder

      public SubjectFilter.RelationFilter.Builder getOptionalRelationBuilder()
      .authzed.api.v1.SubjectFilter.RelationFilter optional_relation = 3;
    • getOptionalRelationOrBuilder

      public SubjectFilter.RelationFilterOrBuilder getOptionalRelationOrBuilder()
      .authzed.api.v1.SubjectFilter.RelationFilter optional_relation = 3;
      Specified by:
      getOptionalRelationOrBuilder in interface SubjectFilterOrBuilder