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.optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any).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.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Timestampoptional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any).com.google.protobuf.Timestamp.Builderoptional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any).com.google.protobuf.TimestampOrBuilderoptional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any).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.intPermissionship 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) = { ...booleandebug_trace is the debugging trace of this check, if requested.booleanoptional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any).booleanpartial_caveat_info holds information of a partially-evaluated caveated responseprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCheckedAt(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) mergeOptionalExpiresAt(com.google.protobuf.Timestamp value) optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any).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.setOptionalExpiresAt(com.google.protobuf.Timestamp value) optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any).setOptionalExpiresAt(com.google.protobuf.Timestamp.Builder builderForValue) optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any).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, 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<CheckPermissionResponse.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<CheckPermissionResponse.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<CheckPermissionResponse.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<CheckPermissionResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CheckPermissionResponse.Builder>- Throws:
IOException
-
hasCheckedAt
public boolean hasCheckedAt().authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }- Specified by:
hasCheckedAtin interfaceCheckPermissionResponseOrBuilder- Returns:
- Whether the checkedAt field is set.
-
getCheckedAt
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }- Specified by:
getCheckedAtin 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:
getCheckedAtOrBuilderin 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:
getPermissionshipValuein 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:
getPermissionshipin 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:
hasPartialCaveatInfoin 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:
getPartialCaveatInfoin 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:
getPartialCaveatInfoOrBuilderin 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:
hasDebugTracein 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:
getDebugTracein 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:
getDebugTraceOrBuilderin interfaceCheckPermissionResponseOrBuilder
-
hasOptionalExpiresAt
public boolean hasOptionalExpiresAt()optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any). This is *not* related to the caching window.
.google.protobuf.Timestamp optional_expires_at = 5;- Specified by:
hasOptionalExpiresAtin interfaceCheckPermissionResponseOrBuilder- Returns:
- Whether the optionalExpiresAt field is set.
-
getOptionalExpiresAt
public com.google.protobuf.Timestamp getOptionalExpiresAt()optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any). This is *not* related to the caching window.
.google.protobuf.Timestamp optional_expires_at = 5;- Specified by:
getOptionalExpiresAtin interfaceCheckPermissionResponseOrBuilder- Returns:
- The optionalExpiresAt.
-
setOptionalExpiresAt
optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any). This is *not* related to the caching window.
.google.protobuf.Timestamp optional_expires_at = 5; -
setOptionalExpiresAt
public CheckPermissionResponse.Builder setOptionalExpiresAt(com.google.protobuf.Timestamp.Builder builderForValue) optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any). This is *not* related to the caching window.
.google.protobuf.Timestamp optional_expires_at = 5; -
mergeOptionalExpiresAt
optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any). This is *not* related to the caching window.
.google.protobuf.Timestamp optional_expires_at = 5; -
clearOptionalExpiresAt
optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any). This is *not* related to the caching window.
.google.protobuf.Timestamp optional_expires_at = 5; -
getOptionalExpiresAtBuilder
public com.google.protobuf.Timestamp.Builder getOptionalExpiresAtBuilder()optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any). This is *not* related to the caching window.
.google.protobuf.Timestamp optional_expires_at = 5; -
getOptionalExpiresAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getOptionalExpiresAtOrBuilder()optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any). This is *not* related to the caching window.
.google.protobuf.Timestamp optional_expires_at = 5;- Specified by:
getOptionalExpiresAtOrBuilderin interfaceCheckPermissionResponseOrBuilder
-