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.Descriptor
com.google.protobuf.Descriptors.Descriptor
relation is the *optional* relation of the relationship.com.google.protobuf.ByteString
relation is the *optional* relation of the relationship.optional_resource_id is the *optional* resource ID of the relationship.com.google.protobuf.ByteString
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.com.google.protobuf.ByteString
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.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.ByteString
resource_type is the *optional* resource type of the relationship.boolean
optional_subject_filter is the optional filter for the subjects of the relationships.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(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, 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<RelationshipFilter.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<RelationshipFilter.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<RelationshipFilter.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<RelationshipFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getResourceType
in 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:
getResourceTypeBytes
in 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:
getOptionalResourceId
in 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:
getOptionalResourceIdBytes
in 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:
getOptionalResourceIdPrefix
in 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:
getOptionalResourceIdPrefixBytes
in 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:
getOptionalRelation
in 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:
getOptionalRelationBytes
in 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:
hasOptionalSubjectFilter
in 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:
getOptionalSubjectFilter
in 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:
getOptionalSubjectFilterOrBuilder
in interfaceRelationshipFilterOrBuilder
-