Package com.authzed.api.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()
clear()
.authzed.api.v1.Consistency consistency = 1;
context consists of named values that are injected into the caveat evaluation contextpermission is the name of the permission (or relation) on which to execute the check.resource is the resource on which to check the permission or relation.subject is the subject that will be checked for the permission or relation.with_tracing, if true, indicates that the response should include a debug trace..authzed.api.v1.Consistency consistency = 1;
.authzed.api.v1.Consistency consistency = 1;
.authzed.api.v1.Consistency consistency = 1;
com.google.protobuf.Struct
context consists of named values that are injected into the caveat evaluation contextcom.google.protobuf.Struct.Builder
context consists of named values that are injected into the caveat evaluation contextcom.google.protobuf.StructOrBuilder
context consists of named values that are injected into the caveat evaluation contextstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
permission is the name of the permission (or relation) on which to execute the check.com.google.protobuf.ByteString
permission is the name of the permission (or relation) on which to execute the check.resource is the resource on which to check the permission or relation.resource is the resource on which to check the permission or relation.resource is the resource on which to check the permission or relation.subject is the subject that will be checked for the permission or relation.subject is the subject that will be checked for the permission or relation.subject is the subject that will be checked for the permission or relation.boolean
with_tracing, if true, indicates that the response should include a debug trace.boolean
.authzed.api.v1.Consistency consistency = 1;
boolean
context consists of named values that are injected into the caveat evaluation contextboolean
resource is the resource on which to check the permission or relation.boolean
subject is the subject that will be checked for the permission or relation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeConsistency
(Consistency value) .authzed.api.v1.Consistency consistency = 1;
mergeContext
(com.google.protobuf.Struct value) context consists of named values that are injected into the caveat evaluation contextmergeFrom
(CheckPermissionRequest other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeResource
(ObjectReference value) resource is the resource on which to check the permission or relation.mergeSubject
(SubjectReference value) subject is the subject that will be checked for the permission or relation.setConsistency
(Consistency value) .authzed.api.v1.Consistency consistency = 1;
setConsistency
(Consistency.Builder builderForValue) .authzed.api.v1.Consistency consistency = 1;
setContext
(com.google.protobuf.Struct value) context consists of named values that are injected into the caveat evaluation contextsetContext
(com.google.protobuf.Struct.Builder builderForValue) context consists of named values that are injected into the caveat evaluation contextsetPermission
(String value) permission is the name of the permission (or relation) on which to execute the check.setPermissionBytes
(com.google.protobuf.ByteString value) permission is the name of the permission (or relation) on which to execute the check.setResource
(ObjectReference value) resource is the resource on which to check the permission or relation.setResource
(ObjectReference.Builder builderForValue) resource is the resource on which to check the permission or relation.setSubject
(SubjectReference value) subject is the subject that will be checked for the permission or relation.setSubject
(SubjectReference.Builder builderForValue) subject is the subject that will be checked for the permission or relation.setWithTracing
(boolean value) with_tracing, if true, indicates that the response should include a debug trace.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<CheckPermissionRequest.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<CheckPermissionRequest.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<CheckPermissionRequest.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<CheckPermissionRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CheckPermissionRequest.Builder>
- Throws:
IOException
-
hasConsistency
public boolean hasConsistency().authzed.api.v1.Consistency consistency = 1;
- Specified by:
hasConsistency
in interfaceCheckPermissionRequestOrBuilder
- Returns:
- Whether the consistency field is set.
-
getConsistency
.authzed.api.v1.Consistency consistency = 1;
- Specified by:
getConsistency
in interfaceCheckPermissionRequestOrBuilder
- 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 interfaceCheckPermissionRequestOrBuilder
-
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 interfaceCheckPermissionRequestOrBuilder
- Returns:
- Whether the resource field is set.
-
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 interfaceCheckPermissionRequestOrBuilder
- Returns:
- The resource.
-
setResource
resource is the resource on which to check the permission or relation.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
-
setResource
resource is the resource on which to check the permission or relation.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
-
mergeResource
resource is the resource on which to check the permission or relation.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
-
clearResource
resource is the resource on which to check the permission or relation.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
-
getResourceBuilder
resource is the resource on which to check the permission or relation.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }
-
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 interfaceCheckPermissionRequestOrBuilder
-
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 interfaceCheckPermissionRequestOrBuilder
- 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 interfaceCheckPermissionRequestOrBuilder
- Returns:
- The bytes for permission.
-
setPermission
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
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
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 interfaceCheckPermissionRequestOrBuilder
- Returns:
- Whether the subject field is set.
-
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 interfaceCheckPermissionRequestOrBuilder
- 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
subject is the subject that will be checked for the permission or relation.
.authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
-
mergeSubject
subject is the subject that will be checked for the permission or relation.
.authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
-
clearSubject
subject is the subject that will be checked for the permission or relation.
.authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
-
getSubjectBuilder
subject is the subject that will be checked for the permission or relation.
.authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
-
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 interfaceCheckPermissionRequestOrBuilder
-
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 interfaceCheckPermissionRequestOrBuilder
- 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 interfaceCheckPermissionRequestOrBuilder
- Returns:
- The context.
-
setContext
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
context consists of named values that are injected into the caveat evaluation context
.google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
-
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 interfaceCheckPermissionRequestOrBuilder
-
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 interfaceCheckPermissionRequestOrBuilder
- Returns:
- The withTracing.
-
setWithTracing
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
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.
-