Class ExpandPermissionTreeRequest.Builder

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

public static final class ExpandPermissionTreeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExpandPermissionTreeRequest.Builder> implements ExpandPermissionTreeRequestOrBuilder
 ExpandPermissionTreeRequest returns a tree representing the expansion of all
 relationships found accessible from a permission or relation on a particular
 resource.

 ExpandPermissionTreeRequest is typically used to determine the full set of
 subjects with a permission, along with the relationships that grant said
 access.
 
Protobuf type authzed.api.v1.ExpandPermissionTreeRequest
  • 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<ExpandPermissionTreeRequest.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<ExpandPermissionTreeRequest.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<ExpandPermissionTreeRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

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

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

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

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

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

      public ExpandPermissionTreeRequest.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 ExpandPermissionTreeRequestOrBuilder
    • hasResource

      public boolean hasResource()
       resource is the resource over which to run the expansion.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
      Specified by:
      hasResource in interface ExpandPermissionTreeRequestOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public ObjectReference getResource()
       resource is the resource over which to run the expansion.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
      Specified by:
      getResource in interface ExpandPermissionTreeRequestOrBuilder
      Returns:
      The resource.
    • setResource

       resource is the resource over which to run the expansion.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
    • setResource

      public ExpandPermissionTreeRequest.Builder setResource(ObjectReference.Builder builderForValue)
       resource is the resource over which to run the expansion.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
    • mergeResource

       resource is the resource over which to run the expansion.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
    • clearResource

      public ExpandPermissionTreeRequest.Builder clearResource()
       resource is the resource over which to run the expansion.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
    • getResourceBuilder

      public ObjectReference.Builder getResourceBuilder()
       resource is the resource over which to run the expansion.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
    • getResourceOrBuilder

      public ObjectReferenceOrBuilder getResourceOrBuilder()
       resource is the resource over which to run the expansion.
       
      .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
      Specified by:
      getResourceOrBuilder in interface ExpandPermissionTreeRequestOrBuilder
    • getPermission

      public String getPermission()
       permission is the name of the permission or relation over which to run the
       expansion for the resource.
       
      string permission = 3 [(.validate.rules) = { ... }
      Specified by:
      getPermission in interface ExpandPermissionTreeRequestOrBuilder
      Returns:
      The permission.
    • getPermissionBytes

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

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

      public ExpandPermissionTreeRequest.Builder clearPermission()
       permission is the name of the permission or relation over which to run the
       expansion for the resource.
       
      string permission = 3 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setPermissionBytes

      public ExpandPermissionTreeRequest.Builder setPermissionBytes(com.google.protobuf.ByteString value)
       permission is the name of the permission or relation over which to run the
       expansion for the resource.
       
      string permission = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for permission to set.
      Returns:
      This builder for chaining.