Package com.authzed.api.v1
Class CheckPermissionResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CheckPermissionResponse.Builder>
com.authzed.api.v1.CheckPermissionResponse.Builder
- All Implemented Interfaces:
CheckPermissionResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CheckPermissionResponse
public static final class CheckPermissionResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CheckPermissionResponse.Builder>
implements CheckPermissionResponseOrBuilder
Protobuf type
authzed.api.v1.CheckPermissionResponse
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ...
debug_trace is the debugging trace of this check, if requested.partial_caveat_info holds information of a partially-evaluated caveated responsePermissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation..authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ...
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ...
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ...
debug_trace is the debugging trace of this check, if requested.debug_trace is the debugging trace of this check, if requested.debug_trace is the debugging trace of this check, if requested.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
partial_caveat_info holds information of a partially-evaluated caveated responsepartial_caveat_info holds information of a partially-evaluated caveated responsepartial_caveat_info holds information of a partially-evaluated caveated responsePermissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation.int
Permissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation.boolean
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ...
boolean
debug_trace is the debugging trace of this check, if requested.boolean
partial_caveat_info holds information of a partially-evaluated caveated responseprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeCheckedAt
(ZedToken value) .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ...
mergeDebugTrace
(DebugInformation value) debug_trace is the debugging trace of this check, if requested.mergeFrom
(CheckPermissionResponse other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) partial_caveat_info holds information of a partially-evaluated caveated responsesetCheckedAt
(ZedToken value) .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ...
setCheckedAt
(ZedToken.Builder builderForValue) .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ...
setDebugTrace
(DebugInformation value) debug_trace is the debugging trace of this check, if requested.setDebugTrace
(DebugInformation.Builder builderForValue) debug_trace is the debugging trace of this check, if requested.partial_caveat_info holds information of a partially-evaluated caveated responsesetPartialCaveatInfo
(PartialCaveatInfo.Builder builderForValue) partial_caveat_info holds information of a partially-evaluated caveated responsePermissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation.setPermissionshipValue
(int value) Permissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation.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<CheckPermissionResponse.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<CheckPermissionResponse.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<CheckPermissionResponse.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<CheckPermissionResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<CheckPermissionResponse.Builder>
-
mergeFrom
public CheckPermissionResponse.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<CheckPermissionResponse.Builder>
- Throws:
IOException
-
hasCheckedAt
public boolean hasCheckedAt().authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
- Specified by:
hasCheckedAt
in interfaceCheckPermissionResponseOrBuilder
- Returns:
- Whether the checkedAt field is set.
-
getCheckedAt
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
- Specified by:
getCheckedAt
in interfaceCheckPermissionResponseOrBuilder
- Returns:
- The checkedAt.
-
setCheckedAt
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
-
setCheckedAt
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
-
mergeCheckedAt
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
-
clearCheckedAt
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
-
getCheckedAtBuilder
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
-
getCheckedAtOrBuilder
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
- Specified by:
getCheckedAtOrBuilder
in interfaceCheckPermissionResponseOrBuilder
-
getPermissionshipValue
public int getPermissionshipValue()Permissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation. This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the requested subject is a member of the computed permission set or there exists a relationship with the requested relation from the given resource to the given subject.
.authzed.api.v1.CheckPermissionResponse.Permissionship permissionship = 2 [(.validate.rules) = { ... }
- Specified by:
getPermissionshipValue
in interfaceCheckPermissionResponseOrBuilder
- Returns:
- The enum numeric value on the wire for permissionship.
-
setPermissionshipValue
Permissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation. This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the requested subject is a member of the computed permission set or there exists a relationship with the requested relation from the given resource to the given subject.
.authzed.api.v1.CheckPermissionResponse.Permissionship permissionship = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The enum numeric value on the wire for permissionship to set.- Returns:
- This builder for chaining.
-
getPermissionship
Permissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation. This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the requested subject is a member of the computed permission set or there exists a relationship with the requested relation from the given resource to the given subject.
.authzed.api.v1.CheckPermissionResponse.Permissionship permissionship = 2 [(.validate.rules) = { ... }
- Specified by:
getPermissionship
in interfaceCheckPermissionResponseOrBuilder
- Returns:
- The permissionship.
-
setPermissionship
public CheckPermissionResponse.Builder setPermissionship(CheckPermissionResponse.Permissionship value) Permissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation. This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the requested subject is a member of the computed permission set or there exists a relationship with the requested relation from the given resource to the given subject.
.authzed.api.v1.CheckPermissionResponse.Permissionship permissionship = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The permissionship to set.- Returns:
- This builder for chaining.
-
clearPermissionship
Permissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation. This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the requested subject is a member of the computed permission set or there exists a relationship with the requested relation from the given resource to the given subject.
.authzed.api.v1.CheckPermissionResponse.Permissionship permissionship = 2 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
hasPartialCaveatInfo
public boolean hasPartialCaveatInfo()partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
- Specified by:
hasPartialCaveatInfo
in interfaceCheckPermissionResponseOrBuilder
- Returns:
- Whether the partialCaveatInfo field is set.
-
getPartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
- Specified by:
getPartialCaveatInfo
in interfaceCheckPermissionResponseOrBuilder
- Returns:
- The partialCaveatInfo.
-
setPartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
-
setPartialCaveatInfo
public CheckPermissionResponse.Builder setPartialCaveatInfo(PartialCaveatInfo.Builder builderForValue) partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
-
mergePartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
-
clearPartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
-
getPartialCaveatInfoBuilder
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
-
getPartialCaveatInfoOrBuilder
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
- Specified by:
getPartialCaveatInfoOrBuilder
in interfaceCheckPermissionResponseOrBuilder
-
hasDebugTrace
public boolean hasDebugTrace()debug_trace is the debugging trace of this check, if requested.
.authzed.api.v1.DebugInformation debug_trace = 4;
- Specified by:
hasDebugTrace
in interfaceCheckPermissionResponseOrBuilder
- Returns:
- Whether the debugTrace field is set.
-
getDebugTrace
debug_trace is the debugging trace of this check, if requested.
.authzed.api.v1.DebugInformation debug_trace = 4;
- Specified by:
getDebugTrace
in interfaceCheckPermissionResponseOrBuilder
- Returns:
- The debugTrace.
-
setDebugTrace
debug_trace is the debugging trace of this check, if requested.
.authzed.api.v1.DebugInformation debug_trace = 4;
-
setDebugTrace
debug_trace is the debugging trace of this check, if requested.
.authzed.api.v1.DebugInformation debug_trace = 4;
-
mergeDebugTrace
debug_trace is the debugging trace of this check, if requested.
.authzed.api.v1.DebugInformation debug_trace = 4;
-
clearDebugTrace
debug_trace is the debugging trace of this check, if requested.
.authzed.api.v1.DebugInformation debug_trace = 4;
-
getDebugTraceBuilder
debug_trace is the debugging trace of this check, if requested.
.authzed.api.v1.DebugInformation debug_trace = 4;
-
getDebugTraceOrBuilder
debug_trace is the debugging trace of this check, if requested.
.authzed.api.v1.DebugInformation debug_trace = 4;
- Specified by:
getDebugTraceOrBuilder
in interfaceCheckPermissionResponseOrBuilder
-