Class CheckPermissionRequest.Builder

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

public static final class CheckPermissionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CheckPermissionRequest.Builder> implements CheckPermissionRequestOrBuilder
 CheckPermissionRequest issues a check on whether a subject has a permission
 or is a member of a relation, on a specific resource.
 
Protobuf type authzed.api.v1.CheckPermissionRequest
  • 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<CheckPermissionRequest.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<CheckPermissionRequest.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<CheckPermissionRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public CheckPermissionRequest.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<CheckPermissionRequest.Builder>
      Throws:
      IOException
    • hasConsistency

      public boolean hasConsistency()
      .authzed.api.v1.Consistency consistency = 1;
      Specified by:
      hasConsistency in interface CheckPermissionRequestOrBuilder
      Returns:
      Whether the consistency field is set.
    • getConsistency

      public Consistency getConsistency()
      .authzed.api.v1.Consistency consistency = 1;
      Specified by:
      getConsistency in interface CheckPermissionRequestOrBuilder
      Returns:
      The consistency.
    • setConsistency

      public CheckPermissionRequest.Builder setConsistency(Consistency value)
      .authzed.api.v1.Consistency consistency = 1;
    • setConsistency

      public CheckPermissionRequest.Builder setConsistency(Consistency.Builder builderForValue)
      .authzed.api.v1.Consistency consistency = 1;
    • mergeConsistency

      public CheckPermissionRequest.Builder mergeConsistency(Consistency value)
      .authzed.api.v1.Consistency consistency = 1;
    • clearConsistency

      public CheckPermissionRequest.Builder clearConsistency()
      .authzed.api.v1.Consistency consistency = 1;
    • getConsistencyBuilder

      public Consistency.Builder getConsistencyBuilder()
      .authzed.api.v1.Consistency consistency = 1;
    • getConsistencyOrBuilder

      public ConsistencyOrBuilder getConsistencyOrBuilder()
      .authzed.api.v1.Consistency consistency = 1;
      Specified by:
      getConsistencyOrBuilder in interface CheckPermissionRequestOrBuilder
    • hasResource

      public boolean hasResource()
       resource is the resource on which to check the permission or relation.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
      Specified by:
      hasResource in interface CheckPermissionRequestOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public ObjectReference getResource()
       resource is the resource on which to check the permission or relation.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
      Specified by:
      getResource in interface CheckPermissionRequestOrBuilder
      Returns:
      The resource.
    • setResource

      public CheckPermissionRequest.Builder setResource(ObjectReference value)
       resource is the resource on which to check the permission or relation.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
    • setResource

      public CheckPermissionRequest.Builder setResource(ObjectReference.Builder builderForValue)
       resource is the resource on which to check the permission or relation.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
    • mergeResource

      public CheckPermissionRequest.Builder mergeResource(ObjectReference value)
       resource is the resource on which to check the permission or relation.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
    • clearResource

      public CheckPermissionRequest.Builder clearResource()
       resource is the resource on which to check the permission or relation.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
    • getResourceBuilder

      public ObjectReference.Builder getResourceBuilder()
       resource is the resource on which to check the permission or relation.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
    • getResourceOrBuilder

      public ObjectReferenceOrBuilder getResourceOrBuilder()
       resource is the resource on which to check the permission or relation.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
      Specified by:
      getResourceOrBuilder in interface CheckPermissionRequestOrBuilder
    • getPermission

      public String getPermission()
       permission is the name of the permission (or relation) on which to execute
       the check.
       
      string permission = 3 [(.validate.rules) = { ... }
      Specified by:
      getPermission in interface CheckPermissionRequestOrBuilder
      Returns:
      The permission.
    • getPermissionBytes

      public com.google.protobuf.ByteString getPermissionBytes()
       permission is the name of the permission (or relation) on which to execute
       the check.
       
      string permission = 3 [(.validate.rules) = { ... }
      Specified by:
      getPermissionBytes in interface CheckPermissionRequestOrBuilder
      Returns:
      The bytes for permission.
    • setPermission

      public CheckPermissionRequest.Builder setPermission(String value)
       permission is the name of the permission (or relation) on which to execute
       the check.
       
      string permission = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The permission to set.
      Returns:
      This builder for chaining.
    • clearPermission

      public CheckPermissionRequest.Builder clearPermission()
       permission is the name of the permission (or relation) on which to execute
       the check.
       
      string permission = 3 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setPermissionBytes

      public CheckPermissionRequest.Builder setPermissionBytes(com.google.protobuf.ByteString value)
       permission is the name of the permission (or relation) on which to execute
       the check.
       
      string permission = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for permission to set.
      Returns:
      This builder for chaining.
    • hasSubject

      public boolean hasSubject()
       subject is the subject that will be checked for the permission or relation.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
      Specified by:
      hasSubject in interface CheckPermissionRequestOrBuilder
      Returns:
      Whether the subject field is set.
    • getSubject

      public SubjectReference getSubject()
       subject is the subject that will be checked for the permission or relation.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
      Specified by:
      getSubject in interface CheckPermissionRequestOrBuilder
      Returns:
      The subject.
    • setSubject

       subject is the subject that will be checked for the permission or relation.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
    • setSubject

      public CheckPermissionRequest.Builder setSubject(SubjectReference.Builder builderForValue)
       subject is the subject that will be checked for the permission or relation.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
    • mergeSubject

      public CheckPermissionRequest.Builder mergeSubject(SubjectReference value)
       subject is the subject that will be checked for the permission or relation.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
    • clearSubject

      public CheckPermissionRequest.Builder clearSubject()
       subject is the subject that will be checked for the permission or relation.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
    • getSubjectBuilder

      public SubjectReference.Builder getSubjectBuilder()
       subject is the subject that will be checked for the permission or relation.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
    • getSubjectOrBuilder

      public SubjectReferenceOrBuilder getSubjectOrBuilder()
       subject is the subject that will be checked for the permission or relation.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
      Specified by:
      getSubjectOrBuilder in interface CheckPermissionRequestOrBuilder
    • hasContext

      public boolean hasContext()
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
      Specified by:
      hasContext in interface CheckPermissionRequestOrBuilder
      Returns:
      Whether the context field is set.
    • getContext

      public com.google.protobuf.Struct getContext()
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
      Specified by:
      getContext in interface CheckPermissionRequestOrBuilder
      Returns:
      The context.
    • setContext

      public CheckPermissionRequest.Builder setContext(com.google.protobuf.Struct value)
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
    • setContext

      public CheckPermissionRequest.Builder setContext(com.google.protobuf.Struct.Builder builderForValue)
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
    • mergeContext

      public CheckPermissionRequest.Builder mergeContext(com.google.protobuf.Struct value)
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
    • clearContext

      public CheckPermissionRequest.Builder clearContext()
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
    • getContextBuilder

      public com.google.protobuf.Struct.Builder getContextBuilder()
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
    • getContextOrBuilder

      public com.google.protobuf.StructOrBuilder getContextOrBuilder()
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
      Specified by:
      getContextOrBuilder in interface CheckPermissionRequestOrBuilder
    • getWithTracing

      public boolean getWithTracing()
       with_tracing, if true, indicates that the response should include a debug trace.
       This can be useful for debugging and performance analysis, but adds a small amount
       of compute overhead to the request.
       
      bool with_tracing = 6;
      Specified by:
      getWithTracing in interface CheckPermissionRequestOrBuilder
      Returns:
      The withTracing.
    • setWithTracing

      public CheckPermissionRequest.Builder setWithTracing(boolean value)
       with_tracing, if true, indicates that the response should include a debug trace.
       This can be useful for debugging and performance analysis, but adds a small amount
       of compute overhead to the request.
       
      bool with_tracing = 6;
      Parameters:
      value - The withTracing to set.
      Returns:
      This builder for chaining.
    • clearWithTracing

      public CheckPermissionRequest.Builder clearWithTracing()
       with_tracing, if true, indicates that the response should include a debug trace.
       This can be useful for debugging and performance analysis, but adds a small amount
       of compute overhead to the request.
       
      bool with_tracing = 6;
      Returns:
      This builder for chaining.