Package com.authzed.api.v1
Class LookupResourcesResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LookupResourcesResponse.Builder>
com.authzed.api.v1.LookupResourcesResponse.Builder
- All Implemented Interfaces:
LookupResourcesResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- LookupResourcesResponse
public static final class LookupResourcesResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LookupResourcesResponse.Builder>
implements LookupResourcesResponseOrBuilder
LookupResourcesResponse contains a single matching resource object ID for the requested object type, permission, and subject.Protobuf type
authzed.api.v1.LookupResourcesResponse
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.looked_up_at is the ZedToken at which the resource was found.partial_caveat_info holds information of a partially-evaluated caveated responsepermissionship indicates whether the response was partially evaluated or notresource_object_id is the object ID of the found resource.after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
looked_up_at is the ZedToken at which the resource was found.looked_up_at is the ZedToken at which the resource was found.looked_up_at is the ZedToken at which the resource was found.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 indicates whether the response was partially evaluated or notint
permissionship indicates whether the response was partially evaluated or notresource_object_id is the object ID of the found resource.com.google.protobuf.ByteString
resource_object_id is the object ID of the found resource.boolean
after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.boolean
looked_up_at is the ZedToken at which the resource was found.boolean
partial_caveat_info holds information of a partially-evaluated caveated responseprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeAfterResultCursor
(Cursor value) after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.mergeFrom
(LookupResourcesResponse other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeLookedUpAt
(ZedToken value) looked_up_at is the ZedToken at which the resource was found.partial_caveat_info holds information of a partially-evaluated caveated responsesetAfterResultCursor
(Cursor value) after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.setAfterResultCursor
(Cursor.Builder builderForValue) after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.setLookedUpAt
(ZedToken value) looked_up_at is the ZedToken at which the resource was found.setLookedUpAt
(ZedToken.Builder builderForValue) looked_up_at is the ZedToken at which the resource was found.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 indicates whether the response was partially evaluated or notsetPermissionshipValue
(int value) permissionship indicates whether the response was partially evaluated or notsetResourceObjectId
(String value) resource_object_id is the object ID of the found resource.setResourceObjectIdBytes
(com.google.protobuf.ByteString value) resource_object_id is the object ID of the found resource.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<LookupResourcesResponse.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<LookupResourcesResponse.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<LookupResourcesResponse.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<LookupResourcesResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<LookupResourcesResponse.Builder>
-
mergeFrom
public LookupResourcesResponse.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<LookupResourcesResponse.Builder>
- Throws:
IOException
-
hasLookedUpAt
public boolean hasLookedUpAt()looked_up_at is the ZedToken at which the resource was found.
.authzed.api.v1.ZedToken looked_up_at = 1;
- Specified by:
hasLookedUpAt
in interfaceLookupResourcesResponseOrBuilder
- Returns:
- Whether the lookedUpAt field is set.
-
getLookedUpAt
looked_up_at is the ZedToken at which the resource was found.
.authzed.api.v1.ZedToken looked_up_at = 1;
- Specified by:
getLookedUpAt
in interfaceLookupResourcesResponseOrBuilder
- Returns:
- The lookedUpAt.
-
setLookedUpAt
looked_up_at is the ZedToken at which the resource was found.
.authzed.api.v1.ZedToken looked_up_at = 1;
-
setLookedUpAt
looked_up_at is the ZedToken at which the resource was found.
.authzed.api.v1.ZedToken looked_up_at = 1;
-
mergeLookedUpAt
looked_up_at is the ZedToken at which the resource was found.
.authzed.api.v1.ZedToken looked_up_at = 1;
-
clearLookedUpAt
looked_up_at is the ZedToken at which the resource was found.
.authzed.api.v1.ZedToken looked_up_at = 1;
-
getLookedUpAtBuilder
looked_up_at is the ZedToken at which the resource was found.
.authzed.api.v1.ZedToken looked_up_at = 1;
-
getLookedUpAtOrBuilder
looked_up_at is the ZedToken at which the resource was found.
.authzed.api.v1.ZedToken looked_up_at = 1;
- Specified by:
getLookedUpAtOrBuilder
in interfaceLookupResourcesResponseOrBuilder
-
getResourceObjectId
resource_object_id is the object ID of the found resource.
string resource_object_id = 2;
- Specified by:
getResourceObjectId
in interfaceLookupResourcesResponseOrBuilder
- Returns:
- The resourceObjectId.
-
getResourceObjectIdBytes
public com.google.protobuf.ByteString getResourceObjectIdBytes()resource_object_id is the object ID of the found resource.
string resource_object_id = 2;
- Specified by:
getResourceObjectIdBytes
in interfaceLookupResourcesResponseOrBuilder
- Returns:
- The bytes for resourceObjectId.
-
setResourceObjectId
resource_object_id is the object ID of the found resource.
string resource_object_id = 2;
- Parameters:
value
- The resourceObjectId to set.- Returns:
- This builder for chaining.
-
clearResourceObjectId
resource_object_id is the object ID of the found resource.
string resource_object_id = 2;
- Returns:
- This builder for chaining.
-
setResourceObjectIdBytes
public LookupResourcesResponse.Builder setResourceObjectIdBytes(com.google.protobuf.ByteString value) resource_object_id is the object ID of the found resource.
string resource_object_id = 2;
- Parameters:
value
- The bytes for resourceObjectId to set.- Returns:
- This builder for chaining.
-
getPermissionshipValue
public int getPermissionshipValue()permissionship indicates whether the response was partially evaluated or not
.authzed.api.v1.LookupPermissionship permissionship = 3 [(.validate.rules) = { ... }
- Specified by:
getPermissionshipValue
in interfaceLookupResourcesResponseOrBuilder
- Returns:
- The enum numeric value on the wire for permissionship.
-
setPermissionshipValue
permissionship indicates whether the response was partially evaluated or not
.authzed.api.v1.LookupPermissionship permissionship = 3 [(.validate.rules) = { ... }
- Parameters:
value
- The enum numeric value on the wire for permissionship to set.- Returns:
- This builder for chaining.
-
getPermissionship
permissionship indicates whether the response was partially evaluated or not
.authzed.api.v1.LookupPermissionship permissionship = 3 [(.validate.rules) = { ... }
- Specified by:
getPermissionship
in interfaceLookupResourcesResponseOrBuilder
- Returns:
- The permissionship.
-
setPermissionship
permissionship indicates whether the response was partially evaluated or not
.authzed.api.v1.LookupPermissionship permissionship = 3 [(.validate.rules) = { ... }
- Parameters:
value
- The permissionship to set.- Returns:
- This builder for chaining.
-
clearPermissionship
permissionship indicates whether the response was partially evaluated or not
.authzed.api.v1.LookupPermissionship permissionship = 3 [(.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 = 4 [(.validate.rules) = { ... }
- Specified by:
hasPartialCaveatInfo
in interfaceLookupResourcesResponseOrBuilder
- 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 = 4 [(.validate.rules) = { ... }
- Specified by:
getPartialCaveatInfo
in interfaceLookupResourcesResponseOrBuilder
- Returns:
- The partialCaveatInfo.
-
setPartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4 [(.validate.rules) = { ... }
-
setPartialCaveatInfo
public LookupResourcesResponse.Builder setPartialCaveatInfo(PartialCaveatInfo.Builder builderForValue) partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4 [(.validate.rules) = { ... }
-
mergePartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4 [(.validate.rules) = { ... }
-
clearPartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4 [(.validate.rules) = { ... }
-
getPartialCaveatInfoBuilder
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4 [(.validate.rules) = { ... }
-
getPartialCaveatInfoOrBuilder
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4 [(.validate.rules) = { ... }
- Specified by:
getPartialCaveatInfoOrBuilder
in interfaceLookupResourcesResponseOrBuilder
-
hasAfterResultCursor
public boolean hasAfterResultCursor()after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.
.authzed.api.v1.Cursor after_result_cursor = 5;
- Specified by:
hasAfterResultCursor
in interfaceLookupResourcesResponseOrBuilder
- Returns:
- Whether the afterResultCursor field is set.
-
getAfterResultCursor
after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.
.authzed.api.v1.Cursor after_result_cursor = 5;
- Specified by:
getAfterResultCursor
in interfaceLookupResourcesResponseOrBuilder
- Returns:
- The afterResultCursor.
-
setAfterResultCursor
after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.
.authzed.api.v1.Cursor after_result_cursor = 5;
-
setAfterResultCursor
after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.
.authzed.api.v1.Cursor after_result_cursor = 5;
-
mergeAfterResultCursor
after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.
.authzed.api.v1.Cursor after_result_cursor = 5;
-
clearAfterResultCursor
after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.
.authzed.api.v1.Cursor after_result_cursor = 5;
-
getAfterResultCursorBuilder
after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.
.authzed.api.v1.Cursor after_result_cursor = 5;
-
getAfterResultCursorOrBuilder
after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this result.
.authzed.api.v1.Cursor after_result_cursor = 5;
- Specified by:
getAfterResultCursorOrBuilder
in interfaceLookupResourcesResponseOrBuilder
-