Class ResolvedSubject.Builder

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

public static final class ResolvedSubject.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResolvedSubject.Builder> implements ResolvedSubjectOrBuilder
 ResolvedSubject is a single subject resolved within LookupSubjects.
 
Protobuf type authzed.api.v1.ResolvedSubject
  • 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<ResolvedSubject.Builder>
    • clear

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

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

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

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

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

      public ResolvedSubject.Builder mergeFrom(ResolvedSubject other)
    • isInitialized

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

      public ResolvedSubject.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<ResolvedSubject.Builder>
      Throws:
      IOException
    • getSubjectObjectId

      public String getSubjectObjectId()
       subject_object_id is the Object ID of the subject found. May be a `*` if
       a wildcard was found.
       
      string subject_object_id = 1;
      Specified by:
      getSubjectObjectId in interface ResolvedSubjectOrBuilder
      Returns:
      The subjectObjectId.
    • getSubjectObjectIdBytes

      public com.google.protobuf.ByteString getSubjectObjectIdBytes()
       subject_object_id is the Object ID of the subject found. May be a `*` if
       a wildcard was found.
       
      string subject_object_id = 1;
      Specified by:
      getSubjectObjectIdBytes in interface ResolvedSubjectOrBuilder
      Returns:
      The bytes for subjectObjectId.
    • setSubjectObjectId

      public ResolvedSubject.Builder setSubjectObjectId(String value)
       subject_object_id is the Object ID of the subject found. May be a `*` if
       a wildcard was found.
       
      string subject_object_id = 1;
      Parameters:
      value - The subjectObjectId to set.
      Returns:
      This builder for chaining.
    • clearSubjectObjectId

      public ResolvedSubject.Builder clearSubjectObjectId()
       subject_object_id is the Object ID of the subject found. May be a `*` if
       a wildcard was found.
       
      string subject_object_id = 1;
      Returns:
      This builder for chaining.
    • setSubjectObjectIdBytes

      public ResolvedSubject.Builder setSubjectObjectIdBytes(com.google.protobuf.ByteString value)
       subject_object_id is the Object ID of the subject found. May be a `*` if
       a wildcard was found.
       
      string subject_object_id = 1;
      Parameters:
      value - The bytes for subjectObjectId to set.
      Returns:
      This builder for chaining.
    • getPermissionshipValue

      public int getPermissionshipValue()
       permissionship indicates whether the response was partially evaluated or not
       
      .authzed.api.v1.LookupPermissionship permissionship = 2 [(.validate.rules) = { ... }
      Specified by:
      getPermissionshipValue in interface ResolvedSubjectOrBuilder
      Returns:
      The enum numeric value on the wire for permissionship.
    • setPermissionshipValue

      public ResolvedSubject.Builder setPermissionshipValue(int value)
       permissionship indicates whether the response was partially evaluated or not
       
      .authzed.api.v1.LookupPermissionship permissionship = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The enum numeric value on the wire for permissionship to set.
      Returns:
      This builder for chaining.
    • getPermissionship

      public LookupPermissionship getPermissionship()
       permissionship indicates whether the response was partially evaluated or not
       
      .authzed.api.v1.LookupPermissionship permissionship = 2 [(.validate.rules) = { ... }
      Specified by:
      getPermissionship in interface ResolvedSubjectOrBuilder
      Returns:
      The permissionship.
    • setPermissionship

      public ResolvedSubject.Builder setPermissionship(LookupPermissionship value)
       permissionship indicates whether the response was partially evaluated or not
       
      .authzed.api.v1.LookupPermissionship permissionship = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The permissionship to set.
      Returns:
      This builder for chaining.
    • clearPermissionship

      public ResolvedSubject.Builder clearPermissionship()
       permissionship indicates whether the response was partially evaluated or not
       
      .authzed.api.v1.LookupPermissionship permissionship = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • hasPartialCaveatInfo

      public boolean hasPartialCaveatInfo()
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
      Specified by:
      hasPartialCaveatInfo in interface ResolvedSubjectOrBuilder
      Returns:
      Whether the partialCaveatInfo field is set.
    • getPartialCaveatInfo

      public PartialCaveatInfo getPartialCaveatInfo()
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
      Specified by:
      getPartialCaveatInfo in interface ResolvedSubjectOrBuilder
      Returns:
      The partialCaveatInfo.
    • setPartialCaveatInfo

      public ResolvedSubject.Builder setPartialCaveatInfo(PartialCaveatInfo value)
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
    • setPartialCaveatInfo

      public ResolvedSubject.Builder setPartialCaveatInfo(PartialCaveatInfo.Builder builderForValue)
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
    • mergePartialCaveatInfo

      public ResolvedSubject.Builder mergePartialCaveatInfo(PartialCaveatInfo value)
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
    • clearPartialCaveatInfo

      public ResolvedSubject.Builder clearPartialCaveatInfo()
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
    • getPartialCaveatInfoBuilder

      public PartialCaveatInfo.Builder getPartialCaveatInfoBuilder()
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
    • getPartialCaveatInfoOrBuilder

      public PartialCaveatInfoOrBuilder getPartialCaveatInfoOrBuilder()
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
      Specified by:
      getPartialCaveatInfoOrBuilder in interface ResolvedSubjectOrBuilder