Package com.authzed.api.v1
Class LookupSubjectsRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.authzed.api.v1.LookupSubjectsRequest
- All Implemented Interfaces:
LookupSubjectsRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class LookupSubjectsRequest
extends com.google.protobuf.GeneratedMessage
implements LookupSubjectsRequestOrBuilder
LookupSubjectsRequest performs a lookup of all subjects of a particular kind for which the subject has the specified permission or the relation in which the subject exists, streaming back the IDs of those subjects.Protobuf type
authzed.api.v1.LookupSubjectsRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classLookupSubjectsRequest performs a lookup of all subjects of a particular kind for which the subject has the specified permission or the relation in which the subject exists, streaming back the IDs of those subjects.static enumProtobuf enumauthzed.api.v1.LookupSubjectsRequest.WildcardOptionNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionboolean.authzed.api.v1.Consistency consistency = 1;.authzed.api.v1.Consistency consistency = 1;com.google.protobuf.Structcontext consists of named values that are injected into the caveat evaluation contextcom.google.protobuf.StructOrBuildercontext consists of named values that are injected into the caveat evaluation contextstatic LookupSubjectsRequeststatic final com.google.protobuf.Descriptors.Descriptorintoptional_concrete_limit is currently unimplemented for LookupSubjects and will return an error as of SpiceDB version 1.40.1.optional_cursor is currently unimplemented for LookupSubjects and will be ignored as of SpiceDB version 1.40.1.optional_cursor is currently unimplemented for LookupSubjects and will be ignored as of SpiceDB version 1.40.1.optional_subject_relation is the optional relation for the subject.com.google.protobuf.ByteStringoptional_subject_relation is the optional relation for the subject.com.google.protobuf.Parser<LookupSubjectsRequest>permission is the name of the permission (or relation) for which to find the subjects.com.google.protobuf.ByteStringpermission is the name of the permission (or relation) for which to find the subjects.resource is the resource for which all matching subjects for the permission or relation will be returned.resource is the resource for which all matching subjects for the permission or relation will be returned.intsubject_object_type is the type of subject object for which the IDs will be returned.com.google.protobuf.ByteStringsubject_object_type is the type of subject object for which the IDs will be returned.wildcard_option specifies whether wildcards should be returned by LookupSubjects.intwildcard_option specifies whether wildcards should be returned by LookupSubjects.boolean.authzed.api.v1.Consistency consistency = 1;booleancontext consists of named values that are injected into the caveat evaluation contextinthashCode()booleanoptional_cursor is currently unimplemented for LookupSubjects and will be ignored as of SpiceDB version 1.40.1.booleanresource is the resource for which all matching subjects for the permission or relation will be returned.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(LookupSubjectsRequest prototype) protected LookupSubjectsRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static LookupSubjectsRequestparseDelimitedFrom(InputStream input) static LookupSubjectsRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LookupSubjectsRequestparseFrom(byte[] data) static LookupSubjectsRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LookupSubjectsRequestparseFrom(com.google.protobuf.ByteString data) static LookupSubjectsRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LookupSubjectsRequestparseFrom(com.google.protobuf.CodedInputStream input) static LookupSubjectsRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LookupSubjectsRequestparseFrom(InputStream input) static LookupSubjectsRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LookupSubjectsRequestparseFrom(ByteBuffer data) static LookupSubjectsRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<LookupSubjectsRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CONSISTENCY_FIELD_NUMBER
public static final int CONSISTENCY_FIELD_NUMBER- See Also:
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER- See Also:
-
PERMISSION_FIELD_NUMBER
public static final int PERMISSION_FIELD_NUMBER- See Also:
-
SUBJECT_OBJECT_TYPE_FIELD_NUMBER
public static final int SUBJECT_OBJECT_TYPE_FIELD_NUMBER- See Also:
-
OPTIONAL_SUBJECT_RELATION_FIELD_NUMBER
public static final int OPTIONAL_SUBJECT_RELATION_FIELD_NUMBER- See Also:
-
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER- See Also:
-
OPTIONAL_CONCRETE_LIMIT_FIELD_NUMBER
public static final int OPTIONAL_CONCRETE_LIMIT_FIELD_NUMBER- See Also:
-
OPTIONAL_CURSOR_FIELD_NUMBER
public static final int OPTIONAL_CURSOR_FIELD_NUMBER- See Also:
-
WILDCARD_OPTION_FIELD_NUMBER
public static final int WILDCARD_OPTION_FIELD_NUMBER- See Also:
-
-
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
-
hasConsistency
public boolean hasConsistency().authzed.api.v1.Consistency consistency = 1;- Specified by:
hasConsistencyin interfaceLookupSubjectsRequestOrBuilder- Returns:
- Whether the consistency field is set.
-
getConsistency
.authzed.api.v1.Consistency consistency = 1;- Specified by:
getConsistencyin interfaceLookupSubjectsRequestOrBuilder- Returns:
- The consistency.
-
getConsistencyOrBuilder
.authzed.api.v1.Consistency consistency = 1;- Specified by:
getConsistencyOrBuilderin interfaceLookupSubjectsRequestOrBuilder
-
hasResource
public boolean hasResource()resource is the resource for which all matching subjects for the permission or relation will be returned.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }- Specified by:
hasResourcein interfaceLookupSubjectsRequestOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
resource is the resource for which all matching subjects for the permission or relation will be returned.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }- Specified by:
getResourcein interfaceLookupSubjectsRequestOrBuilder- Returns:
- The resource.
-
getResourceOrBuilder
resource is the resource for which all matching subjects for the permission or relation will be returned.
.authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }- Specified by:
getResourceOrBuilderin interfaceLookupSubjectsRequestOrBuilder
-
getPermission
permission is the name of the permission (or relation) for which to find the subjects.
string permission = 3 [(.validate.rules) = { ... }- Specified by:
getPermissionin interfaceLookupSubjectsRequestOrBuilder- Returns:
- The permission.
-
getPermissionBytes
public com.google.protobuf.ByteString getPermissionBytes()permission is the name of the permission (or relation) for which to find the subjects.
string permission = 3 [(.validate.rules) = { ... }- Specified by:
getPermissionBytesin interfaceLookupSubjectsRequestOrBuilder- Returns:
- The bytes for permission.
-
getSubjectObjectType
subject_object_type is the type of subject object for which the IDs will be returned.
string subject_object_type = 4 [(.validate.rules) = { ... }- Specified by:
getSubjectObjectTypein interfaceLookupSubjectsRequestOrBuilder- Returns:
- The subjectObjectType.
-
getSubjectObjectTypeBytes
public com.google.protobuf.ByteString getSubjectObjectTypeBytes()subject_object_type is the type of subject object for which the IDs will be returned.
string subject_object_type = 4 [(.validate.rules) = { ... }- Specified by:
getSubjectObjectTypeBytesin interfaceLookupSubjectsRequestOrBuilder- Returns:
- The bytes for subjectObjectType.
-
getOptionalSubjectRelation
optional_subject_relation is the optional relation for the subject.
string optional_subject_relation = 5 [(.validate.rules) = { ... }- Specified by:
getOptionalSubjectRelationin interfaceLookupSubjectsRequestOrBuilder- Returns:
- The optionalSubjectRelation.
-
getOptionalSubjectRelationBytes
public com.google.protobuf.ByteString getOptionalSubjectRelationBytes()optional_subject_relation is the optional relation for the subject.
string optional_subject_relation = 5 [(.validate.rules) = { ... }- Specified by:
getOptionalSubjectRelationBytesin interfaceLookupSubjectsRequestOrBuilder- Returns:
- The bytes for optionalSubjectRelation.
-
hasContext
public boolean hasContext()context consists of named values that are injected into the caveat evaluation context
.google.protobuf.Struct context = 6 [(.validate.rules) = { ... }- Specified by:
hasContextin interfaceLookupSubjectsRequestOrBuilder- 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 = 6 [(.validate.rules) = { ... }- Specified by:
getContextin interfaceLookupSubjectsRequestOrBuilder- Returns:
- The context.
-
getContextOrBuilder
public com.google.protobuf.StructOrBuilder getContextOrBuilder()context consists of named values that are injected into the caveat evaluation context
.google.protobuf.Struct context = 6 [(.validate.rules) = { ... }- Specified by:
getContextOrBuilderin interfaceLookupSubjectsRequestOrBuilder
-
getOptionalConcreteLimit
public int getOptionalConcreteLimit()optional_concrete_limit is currently unimplemented for LookupSubjects and will return an error as of SpiceDB version 1.40.1. This will be implemented in a future version of SpiceDB.
uint32 optional_concrete_limit = 7 [(.validate.rules) = { ... }- Specified by:
getOptionalConcreteLimitin interfaceLookupSubjectsRequestOrBuilder- Returns:
- The optionalConcreteLimit.
-
hasOptionalCursor
public boolean hasOptionalCursor()optional_cursor is currently unimplemented for LookupSubjects and will be ignored as of SpiceDB version 1.40.1. This will be implemented in a future version of SpiceDB.
.authzed.api.v1.Cursor optional_cursor = 8;- Specified by:
hasOptionalCursorin interfaceLookupSubjectsRequestOrBuilder- Returns:
- Whether the optionalCursor field is set.
-
getOptionalCursor
optional_cursor is currently unimplemented for LookupSubjects and will be ignored as of SpiceDB version 1.40.1. This will be implemented in a future version of SpiceDB.
.authzed.api.v1.Cursor optional_cursor = 8;- Specified by:
getOptionalCursorin interfaceLookupSubjectsRequestOrBuilder- Returns:
- The optionalCursor.
-
getOptionalCursorOrBuilder
optional_cursor is currently unimplemented for LookupSubjects and will be ignored as of SpiceDB version 1.40.1. This will be implemented in a future version of SpiceDB.
.authzed.api.v1.Cursor optional_cursor = 8;- Specified by:
getOptionalCursorOrBuilderin interfaceLookupSubjectsRequestOrBuilder
-
getWildcardOptionValue
public int getWildcardOptionValue()wildcard_option specifies whether wildcards should be returned by LookupSubjects. For backwards compatibility, defaults to WILDCARD_OPTION_INCLUDE_WILDCARDS if unspecified.
.authzed.api.v1.LookupSubjectsRequest.WildcardOption wildcard_option = 9;- Specified by:
getWildcardOptionValuein interfaceLookupSubjectsRequestOrBuilder- Returns:
- The enum numeric value on the wire for wildcardOption.
-
getWildcardOption
wildcard_option specifies whether wildcards should be returned by LookupSubjects. For backwards compatibility, defaults to WILDCARD_OPTION_INCLUDE_WILDCARDS if unspecified.
.authzed.api.v1.LookupSubjectsRequest.WildcardOption wildcard_option = 9;- Specified by:
getWildcardOptionin interfaceLookupSubjectsRequestOrBuilder- Returns:
- The wildcardOption.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static LookupSubjectsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LookupSubjectsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LookupSubjectsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LookupSubjectsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LookupSubjectsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LookupSubjectsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static LookupSubjectsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static LookupSubjectsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static LookupSubjectsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static LookupSubjectsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LookupSubjectsRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-