Package com.authzed.api.v1
Class RelationshipFilter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RelationshipFilter.Builder>
com.authzed.api.v1.RelationshipFilter.Builder
- All Implemented Interfaces:
RelationshipFilterOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RelationshipFilter
public static final class RelationshipFilter.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RelationshipFilter.Builder>
implements RelationshipFilterOrBuilder
RelationshipFilter is a collection of filters which when applied to a relationship will return relationships that have exactly matching fields. All fields are optional and if left unspecified will not filter relationships, but at least one field must be specified. NOTE: The performance of the API will be affected by the selection of fields on which to filter. If a field is not indexed, the performance of the API can be significantly slower.Protobuf type
authzed.api.v1.RelationshipFilter-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()relation is the *optional* relation of the relationship.optional_resource_id is the *optional* resource ID of the relationship.optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship.optional_subject_filter is the optional filter for the subjects of the relationships.resource_type is the *optional* resource type of the relationship.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorrelation is the *optional* relation of the relationship.com.google.protobuf.ByteStringrelation is the *optional* relation of the relationship.optional_resource_id is the *optional* resource ID of the relationship.com.google.protobuf.ByteStringoptional_resource_id is the *optional* resource ID of the relationship.optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship.com.google.protobuf.ByteStringoptional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship.optional_subject_filter is the optional filter for the subjects of the relationships.optional_subject_filter is the optional filter for the subjects of the relationships.optional_subject_filter is the optional filter for the subjects of the relationships.resource_type is the *optional* resource type of the relationship.com.google.protobuf.ByteStringresource_type is the *optional* resource type of the relationship.booleanoptional_subject_filter is the optional filter for the subjects of the relationships.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RelationshipFilter other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) optional_subject_filter is the optional filter for the subjects of the relationships.setOptionalRelation(String value) relation is the *optional* relation of the relationship.setOptionalRelationBytes(com.google.protobuf.ByteString value) relation is the *optional* relation of the relationship.setOptionalResourceId(String value) optional_resource_id is the *optional* resource ID of the relationship.setOptionalResourceIdBytes(com.google.protobuf.ByteString value) optional_resource_id is the *optional* resource ID of the relationship.optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship.setOptionalResourceIdPrefixBytes(com.google.protobuf.ByteString value) optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship.optional_subject_filter is the optional filter for the subjects of the relationships.setOptionalSubjectFilter(SubjectFilter.Builder builderForValue) optional_subject_filter is the optional filter for the subjects of the relationships.setResourceType(String value) resource_type is the *optional* resource type of the relationship.setResourceTypeBytes(com.google.protobuf.ByteString value) resource_type is the *optional* resource type of the relationship.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<RelationshipFilter.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<RelationshipFilter.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<RelationshipFilter.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<RelationshipFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RelationshipFilter.Builder>
-
mergeFrom
public RelationshipFilter.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<RelationshipFilter.Builder>- Throws:
IOException
-
getResourceType
resource_type is the *optional* resource type of the relationship. NOTE: It is not prefixed with "optional_" for legacy compatibility.
string resource_type = 1 [(.validate.rules) = { ... }- Specified by:
getResourceTypein interfaceRelationshipFilterOrBuilder- Returns:
- The resourceType.
-
getResourceTypeBytes
public com.google.protobuf.ByteString getResourceTypeBytes()resource_type is the *optional* resource type of the relationship. NOTE: It is not prefixed with "optional_" for legacy compatibility.
string resource_type = 1 [(.validate.rules) = { ... }- Specified by:
getResourceTypeBytesin interfaceRelationshipFilterOrBuilder- Returns:
- The bytes for resourceType.
-
setResourceType
resource_type is the *optional* resource type of the relationship. NOTE: It is not prefixed with "optional_" for legacy compatibility.
string resource_type = 1 [(.validate.rules) = { ... }- Parameters:
value- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
resource_type is the *optional* resource type of the relationship. NOTE: It is not prefixed with "optional_" for legacy compatibility.
string resource_type = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setResourceTypeBytes
resource_type is the *optional* resource type of the relationship. NOTE: It is not prefixed with "optional_" for legacy compatibility.
string resource_type = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for resourceType to set.- Returns:
- This builder for chaining.
-
getOptionalResourceId
optional_resource_id is the *optional* resource ID of the relationship. If specified, optional_resource_id_prefix cannot be specified.
string optional_resource_id = 2 [(.validate.rules) = { ... }- Specified by:
getOptionalResourceIdin interfaceRelationshipFilterOrBuilder- Returns:
- The optionalResourceId.
-
getOptionalResourceIdBytes
public com.google.protobuf.ByteString getOptionalResourceIdBytes()optional_resource_id is the *optional* resource ID of the relationship. If specified, optional_resource_id_prefix cannot be specified.
string optional_resource_id = 2 [(.validate.rules) = { ... }- Specified by:
getOptionalResourceIdBytesin interfaceRelationshipFilterOrBuilder- Returns:
- The bytes for optionalResourceId.
-
setOptionalResourceId
optional_resource_id is the *optional* resource ID of the relationship. If specified, optional_resource_id_prefix cannot be specified.
string optional_resource_id = 2 [(.validate.rules) = { ... }- Parameters:
value- The optionalResourceId to set.- Returns:
- This builder for chaining.
-
clearOptionalResourceId
optional_resource_id is the *optional* resource ID of the relationship. If specified, optional_resource_id_prefix cannot be specified.
string optional_resource_id = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setOptionalResourceIdBytes
optional_resource_id is the *optional* resource ID of the relationship. If specified, optional_resource_id_prefix cannot be specified.
string optional_resource_id = 2 [(.validate.rules) = { ... }- Parameters:
value- The bytes for optionalResourceId to set.- Returns:
- This builder for chaining.
-
getOptionalResourceIdPrefix
optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship. If specified, optional_resource_id cannot be specified.
string optional_resource_id_prefix = 5 [(.validate.rules) = { ... }- Specified by:
getOptionalResourceIdPrefixin interfaceRelationshipFilterOrBuilder- Returns:
- The optionalResourceIdPrefix.
-
getOptionalResourceIdPrefixBytes
public com.google.protobuf.ByteString getOptionalResourceIdPrefixBytes()optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship. If specified, optional_resource_id cannot be specified.
string optional_resource_id_prefix = 5 [(.validate.rules) = { ... }- Specified by:
getOptionalResourceIdPrefixBytesin interfaceRelationshipFilterOrBuilder- Returns:
- The bytes for optionalResourceIdPrefix.
-
setOptionalResourceIdPrefix
optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship. If specified, optional_resource_id cannot be specified.
string optional_resource_id_prefix = 5 [(.validate.rules) = { ... }- Parameters:
value- The optionalResourceIdPrefix to set.- Returns:
- This builder for chaining.
-
clearOptionalResourceIdPrefix
optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship. If specified, optional_resource_id cannot be specified.
string optional_resource_id_prefix = 5 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setOptionalResourceIdPrefixBytes
public RelationshipFilter.Builder setOptionalResourceIdPrefixBytes(com.google.protobuf.ByteString value) optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship. If specified, optional_resource_id cannot be specified.
string optional_resource_id_prefix = 5 [(.validate.rules) = { ... }- Parameters:
value- The bytes for optionalResourceIdPrefix to set.- Returns:
- This builder for chaining.
-
getOptionalRelation
relation is the *optional* relation of the relationship.
string optional_relation = 3 [(.validate.rules) = { ... }- Specified by:
getOptionalRelationin interfaceRelationshipFilterOrBuilder- Returns:
- The optionalRelation.
-
getOptionalRelationBytes
public com.google.protobuf.ByteString getOptionalRelationBytes()relation is the *optional* relation of the relationship.
string optional_relation = 3 [(.validate.rules) = { ... }- Specified by:
getOptionalRelationBytesin interfaceRelationshipFilterOrBuilder- Returns:
- The bytes for optionalRelation.
-
setOptionalRelation
relation is the *optional* relation of the relationship.
string optional_relation = 3 [(.validate.rules) = { ... }- Parameters:
value- The optionalRelation to set.- Returns:
- This builder for chaining.
-
clearOptionalRelation
relation is the *optional* relation of the relationship.
string optional_relation = 3 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setOptionalRelationBytes
relation is the *optional* relation of the relationship.
string optional_relation = 3 [(.validate.rules) = { ... }- Parameters:
value- The bytes for optionalRelation to set.- Returns:
- This builder for chaining.
-
hasOptionalSubjectFilter
public boolean hasOptionalSubjectFilter()optional_subject_filter is the optional filter for the subjects of the relationships.
.authzed.api.v1.SubjectFilter optional_subject_filter = 4;- Specified by:
hasOptionalSubjectFilterin interfaceRelationshipFilterOrBuilder- Returns:
- Whether the optionalSubjectFilter field is set.
-
getOptionalSubjectFilter
optional_subject_filter is the optional filter for the subjects of the relationships.
.authzed.api.v1.SubjectFilter optional_subject_filter = 4;- Specified by:
getOptionalSubjectFilterin interfaceRelationshipFilterOrBuilder- Returns:
- The optionalSubjectFilter.
-
setOptionalSubjectFilter
optional_subject_filter is the optional filter for the subjects of the relationships.
.authzed.api.v1.SubjectFilter optional_subject_filter = 4; -
setOptionalSubjectFilter
optional_subject_filter is the optional filter for the subjects of the relationships.
.authzed.api.v1.SubjectFilter optional_subject_filter = 4; -
mergeOptionalSubjectFilter
optional_subject_filter is the optional filter for the subjects of the relationships.
.authzed.api.v1.SubjectFilter optional_subject_filter = 4; -
clearOptionalSubjectFilter
optional_subject_filter is the optional filter for the subjects of the relationships.
.authzed.api.v1.SubjectFilter optional_subject_filter = 4; -
getOptionalSubjectFilterBuilder
optional_subject_filter is the optional filter for the subjects of the relationships.
.authzed.api.v1.SubjectFilter optional_subject_filter = 4; -
getOptionalSubjectFilterOrBuilder
optional_subject_filter is the optional filter for the subjects of the relationships.
.authzed.api.v1.SubjectFilter optional_subject_filter = 4;- Specified by:
getOptionalSubjectFilterOrBuilderin interfaceRelationshipFilterOrBuilder
-