Package com.authzed.api.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear().authzed.api.v1.Consistency consistency = 1;permission is the name of the permission or relation over which to run the expansion for the resource.resource is the resource over which to run the expansion..authzed.api.v1.Consistency consistency = 1;.authzed.api.v1.Consistency consistency = 1;.authzed.api.v1.Consistency consistency = 1;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorpermission is the name of the permission or relation over which to run the expansion for the resource.com.google.protobuf.ByteStringpermission is the name of the permission or relation over which to run the expansion for the resource.resource is the resource over which to run the expansion.resource is the resource over which to run the expansion.resource is the resource over which to run the expansion.boolean.authzed.api.v1.Consistency consistency = 1;booleanresource is the resource over which to run the expansion.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeConsistency(Consistency value) .authzed.api.v1.Consistency consistency = 1;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeResource(ObjectReference value) resource is the resource over which to run the expansion.setConsistency(Consistency value) .authzed.api.v1.Consistency consistency = 1;setConsistency(Consistency.Builder builderForValue) .authzed.api.v1.Consistency consistency = 1;setPermission(String value) permission is the name of the permission or relation over which to run the expansion for the resource.setPermissionBytes(com.google.protobuf.ByteString value) permission is the name of the permission or relation over which to run the expansion for the resource.setResource(ObjectReference value) resource is the resource over which to run the expansion.setResource(ObjectReference.Builder builderForValue) resource is the resource over which to run the expansion.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ExpandPermissionTreeRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ExpandPermissionTreeRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ExpandPermissionTreeRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExpandPermissionTreeRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExpandPermissionTreeRequest.Builder>- Throws:
IOException
-
hasConsistency
public boolean hasConsistency().authzed.api.v1.Consistency consistency = 1;- Specified by:
hasConsistencyin interfaceExpandPermissionTreeRequestOrBuilder- Returns:
- Whether the consistency field is set.
-
getConsistency
.authzed.api.v1.Consistency consistency = 1;- Specified by:
getConsistencyin interfaceExpandPermissionTreeRequestOrBuilder- Returns:
- The consistency.
-
setConsistency
.authzed.api.v1.Consistency consistency = 1; -
setConsistency
.authzed.api.v1.Consistency consistency = 1; -
mergeConsistency
.authzed.api.v1.Consistency consistency = 1; -
clearConsistency
.authzed.api.v1.Consistency consistency = 1; -
getConsistencyBuilder
.authzed.api.v1.Consistency consistency = 1; -
getConsistencyOrBuilder
.authzed.api.v1.Consistency consistency = 1;- Specified by:
getConsistencyOrBuilderin interfaceExpandPermissionTreeRequestOrBuilder
-
hasResource
public boolean hasResource()resource is the resource over which to run the expansion.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }- Specified by:
hasResourcein interfaceExpandPermissionTreeRequestOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
resource is the resource over which to run the expansion.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }- Specified by:
getResourcein interfaceExpandPermissionTreeRequestOrBuilder- Returns:
- The resource.
-
setResource
resource is the resource over which to run the expansion.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... } -
setResource
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
resource is the resource over which to run the expansion.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... } -
getResourceBuilder
resource is the resource over which to run the expansion.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... } -
getResourceOrBuilder
resource is the resource over which to run the expansion.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }- Specified by:
getResourceOrBuilderin interfaceExpandPermissionTreeRequestOrBuilder
-
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:
getPermissionin interfaceExpandPermissionTreeRequestOrBuilder- 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:
getPermissionBytesin interfaceExpandPermissionTreeRequestOrBuilder- Returns:
- The bytes for permission.
-
setPermission
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
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
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.
-