Package com.authzed.api.v1
Class DeleteRelationshipsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DeleteRelationshipsRequest.Builder>
com.authzed.api.v1.DeleteRelationshipsRequest.Builder
- All Implemented Interfaces:
DeleteRelationshipsRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- DeleteRelationshipsRequest
public static final class DeleteRelationshipsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DeleteRelationshipsRequest.Builder>
implements DeleteRelationshipsRequestOrBuilder
DeleteRelationshipsRequest specifies which Relationships should be deleted, requesting the delete of *ALL* relationships that match the specified filters. If the optional_preconditions parameter is included, all of the specified preconditions must also be satisfied before the delete will be executed.Protobuf type
authzed.api.v1.DeleteRelationshipsRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddAllOptionalPreconditions
(Iterable<? extends Precondition> values) To be bounded by configurationaddOptionalPreconditions
(int index, Precondition value) To be bounded by configurationaddOptionalPreconditions
(int index, Precondition.Builder builderForValue) To be bounded by configurationTo be bounded by configurationaddOptionalPreconditions
(Precondition.Builder builderForValue) To be bounded by configurationTo be bounded by configurationaddOptionalPreconditionsBuilder
(int index) To be bounded by configurationbuild()
clear()
optional_allow_partial_deletions, if true and a limit is specified, will delete matching found relationships up to the count specified in optional_limit, and no more.optional_limit, if non-zero, specifies the limit on the number of relationships to be deleted.To be bounded by configurationoptional_transaction_metadata is an optional field that can be used to store metadata about the transaction..authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ...
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
optional_allow_partial_deletions, if true and a limit is specified, will delete matching found relationships up to the count specified in optional_limit, and no more.int
optional_limit, if non-zero, specifies the limit on the number of relationships to be deleted.getOptionalPreconditions
(int index) To be bounded by configurationgetOptionalPreconditionsBuilder
(int index) To be bounded by configurationTo be bounded by configurationint
To be bounded by configurationTo be bounded by configurationgetOptionalPreconditionsOrBuilder
(int index) To be bounded by configurationList<? extends PreconditionOrBuilder>
To be bounded by configurationcom.google.protobuf.Struct
optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.com.google.protobuf.Struct.Builder
optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.com.google.protobuf.StructOrBuilder
optional_transaction_metadata is an optional field that can be used to store metadata about the transaction..authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ...
.authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ...
.authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ...
boolean
optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.boolean
.authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ...
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeOptionalTransactionMetadata
(com.google.protobuf.Struct value) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction..authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ...
removeOptionalPreconditions
(int index) To be bounded by configurationsetOptionalAllowPartialDeletions
(boolean value) optional_allow_partial_deletions, if true and a limit is specified, will delete matching found relationships up to the count specified in optional_limit, and no more.setOptionalLimit
(int value) optional_limit, if non-zero, specifies the limit on the number of relationships to be deleted.setOptionalPreconditions
(int index, Precondition value) To be bounded by configurationsetOptionalPreconditions
(int index, Precondition.Builder builderForValue) To be bounded by configurationsetOptionalTransactionMetadata
(com.google.protobuf.Struct value) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.setOptionalTransactionMetadata
(com.google.protobuf.Struct.Builder builderForValue) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction..authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ...
setRelationshipFilter
(RelationshipFilter.Builder builderForValue) .authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ...
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<DeleteRelationshipsRequest.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<DeleteRelationshipsRequest.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<DeleteRelationshipsRequest.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<DeleteRelationshipsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<DeleteRelationshipsRequest.Builder>
-
mergeFrom
public DeleteRelationshipsRequest.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<DeleteRelationshipsRequest.Builder>
- Throws:
IOException
-
hasRelationshipFilter
public boolean hasRelationshipFilter().authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
- Specified by:
hasRelationshipFilter
in interfaceDeleteRelationshipsRequestOrBuilder
- Returns:
- Whether the relationshipFilter field is set.
-
getRelationshipFilter
.authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
- Specified by:
getRelationshipFilter
in interfaceDeleteRelationshipsRequestOrBuilder
- Returns:
- The relationshipFilter.
-
setRelationshipFilter
.authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
-
setRelationshipFilter
public DeleteRelationshipsRequest.Builder setRelationshipFilter(RelationshipFilter.Builder builderForValue) .authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
-
mergeRelationshipFilter
.authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
-
clearRelationshipFilter
.authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
-
getRelationshipFilterBuilder
.authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
-
getRelationshipFilterOrBuilder
.authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
- Specified by:
getRelationshipFilterOrBuilder
in interfaceDeleteRelationshipsRequestOrBuilder
-
getOptionalPreconditionsList
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
- Specified by:
getOptionalPreconditionsList
in interfaceDeleteRelationshipsRequestOrBuilder
-
getOptionalPreconditionsCount
public int getOptionalPreconditionsCount()To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
- Specified by:
getOptionalPreconditionsCount
in interfaceDeleteRelationshipsRequestOrBuilder
-
getOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
- Specified by:
getOptionalPreconditions
in interfaceDeleteRelationshipsRequestOrBuilder
-
setOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
setOptionalPreconditions
public DeleteRelationshipsRequest.Builder setOptionalPreconditions(int index, Precondition.Builder builderForValue) To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addOptionalPreconditions
public DeleteRelationshipsRequest.Builder addOptionalPreconditions(Precondition.Builder builderForValue) To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addOptionalPreconditions
public DeleteRelationshipsRequest.Builder addOptionalPreconditions(int index, Precondition.Builder builderForValue) To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addAllOptionalPreconditions
public DeleteRelationshipsRequest.Builder addAllOptionalPreconditions(Iterable<? extends Precondition> values) To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
clearOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
removeOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
getOptionalPreconditionsBuilder
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
getOptionalPreconditionsOrBuilder
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
- Specified by:
getOptionalPreconditionsOrBuilder
in interfaceDeleteRelationshipsRequestOrBuilder
-
getOptionalPreconditionsOrBuilderList
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
- Specified by:
getOptionalPreconditionsOrBuilderList
in interfaceDeleteRelationshipsRequestOrBuilder
-
addOptionalPreconditionsBuilder
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addOptionalPreconditionsBuilder
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
getOptionalPreconditionsBuilderList
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
getOptionalLimit
public int getOptionalLimit()optional_limit, if non-zero, specifies the limit on the number of relationships to be deleted. If there are more matching relationships found to be deleted than the limit specified here, the deletion call will fail with an error to prevent partial deletion. If partial deletion is needed, specify below that partial deletion is allowed. Partial deletions can be used in a loop to delete large amounts of relationships in a *non-transactional* manner.
uint32 optional_limit = 3 [(.validate.rules) = { ... }
- Specified by:
getOptionalLimit
in interfaceDeleteRelationshipsRequestOrBuilder
- Returns:
- The optionalLimit.
-
setOptionalLimit
optional_limit, if non-zero, specifies the limit on the number of relationships to be deleted. If there are more matching relationships found to be deleted than the limit specified here, the deletion call will fail with an error to prevent partial deletion. If partial deletion is needed, specify below that partial deletion is allowed. Partial deletions can be used in a loop to delete large amounts of relationships in a *non-transactional* manner.
uint32 optional_limit = 3 [(.validate.rules) = { ... }
- Parameters:
value
- The optionalLimit to set.- Returns:
- This builder for chaining.
-
clearOptionalLimit
optional_limit, if non-zero, specifies the limit on the number of relationships to be deleted. If there are more matching relationships found to be deleted than the limit specified here, the deletion call will fail with an error to prevent partial deletion. If partial deletion is needed, specify below that partial deletion is allowed. Partial deletions can be used in a loop to delete large amounts of relationships in a *non-transactional* manner.
uint32 optional_limit = 3 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
getOptionalAllowPartialDeletions
public boolean getOptionalAllowPartialDeletions()optional_allow_partial_deletions, if true and a limit is specified, will delete matching found relationships up to the count specified in optional_limit, and no more.
bool optional_allow_partial_deletions = 4;
- Specified by:
getOptionalAllowPartialDeletions
in interfaceDeleteRelationshipsRequestOrBuilder
- Returns:
- The optionalAllowPartialDeletions.
-
setOptionalAllowPartialDeletions
optional_allow_partial_deletions, if true and a limit is specified, will delete matching found relationships up to the count specified in optional_limit, and no more.
bool optional_allow_partial_deletions = 4;
- Parameters:
value
- The optionalAllowPartialDeletions to set.- Returns:
- This builder for chaining.
-
clearOptionalAllowPartialDeletions
optional_allow_partial_deletions, if true and a limit is specified, will delete matching found relationships up to the count specified in optional_limit, and no more.
bool optional_allow_partial_deletions = 4;
- Returns:
- This builder for chaining.
-
hasOptionalTransactionMetadata
public boolean hasOptionalTransactionMetadata()optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the deletions associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 5 [(.validate.rules) = { ... }
- Specified by:
hasOptionalTransactionMetadata
in interfaceDeleteRelationshipsRequestOrBuilder
- Returns:
- Whether the optionalTransactionMetadata field is set.
-
getOptionalTransactionMetadata
public com.google.protobuf.Struct getOptionalTransactionMetadata()optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the deletions associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 5 [(.validate.rules) = { ... }
- Specified by:
getOptionalTransactionMetadata
in interfaceDeleteRelationshipsRequestOrBuilder
- Returns:
- The optionalTransactionMetadata.
-
setOptionalTransactionMetadata
public DeleteRelationshipsRequest.Builder setOptionalTransactionMetadata(com.google.protobuf.Struct value) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the deletions associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 5 [(.validate.rules) = { ... }
-
setOptionalTransactionMetadata
public DeleteRelationshipsRequest.Builder setOptionalTransactionMetadata(com.google.protobuf.Struct.Builder builderForValue) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the deletions associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 5 [(.validate.rules) = { ... }
-
mergeOptionalTransactionMetadata
public DeleteRelationshipsRequest.Builder mergeOptionalTransactionMetadata(com.google.protobuf.Struct value) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the deletions associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 5 [(.validate.rules) = { ... }
-
clearOptionalTransactionMetadata
optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the deletions associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 5 [(.validate.rules) = { ... }
-
getOptionalTransactionMetadataBuilder
public com.google.protobuf.Struct.Builder getOptionalTransactionMetadataBuilder()optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the deletions associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 5 [(.validate.rules) = { ... }
-
getOptionalTransactionMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getOptionalTransactionMetadataOrBuilder()optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the deletions associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 5 [(.validate.rules) = { ... }
- Specified by:
getOptionalTransactionMetadataOrBuilder
in interfaceDeleteRelationshipsRequestOrBuilder
-