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.Descriptor
com.google.protobuf.Descriptors.Descriptor
permission is the name of the permission or relation over which to run the expansion for the resource.com.google.protobuf.ByteString
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.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;
boolean
resource is the resource over which to run the expansion.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeConsistency
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<ExpandPermissionTreeRequest.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<ExpandPermissionTreeRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<ExpandPermissionTreeRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExpandPermissionTreeRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExpandPermissionTreeRequest.Builder>
- Throws:
IOException
-
hasConsistency
public boolean hasConsistency().authzed.api.v1.Consistency consistency = 1;
- Specified by:
hasConsistency
in interfaceExpandPermissionTreeRequestOrBuilder
- Returns:
- Whether the consistency field is set.
-
getConsistency
.authzed.api.v1.Consistency consistency = 1;
- Specified by:
getConsistency
in 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:
getConsistencyOrBuilder
in 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:
hasResource
in 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:
getResource
in 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:
getResourceOrBuilder
in 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:
getPermission
in 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:
getPermissionBytes
in 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.
-