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.Descriptorcom.google.protobuf.Descriptors.Descriptorbooleanoptional_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.intoptional_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 configurationintTo be bounded by configurationTo be bounded by configurationgetOptionalPreconditionsOrBuilder(int index) To be bounded by configurationList<? extends PreconditionOrBuilder>To be bounded by configurationcom.google.protobuf.Structoptional_transaction_metadata is an optional field that can be used to store metadata about the transaction.com.google.protobuf.Struct.Builderoptional_transaction_metadata is an optional field that can be used to store metadata about the transaction.com.google.protobuf.StructOrBuilderoptional_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) = { ...booleanoptional_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.FieldAccessorTablefinal booleanmergeFrom(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, 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<DeleteRelationshipsRequest.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<DeleteRelationshipsRequest.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<DeleteRelationshipsRequest.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<DeleteRelationshipsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeleteRelationshipsRequest.Builder>- Throws:
IOException
-
hasRelationshipFilter
public boolean hasRelationshipFilter().authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }- Specified by:
hasRelationshipFilterin interfaceDeleteRelationshipsRequestOrBuilder- Returns:
- Whether the relationshipFilter field is set.
-
getRelationshipFilter
.authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }- Specified by:
getRelationshipFilterin 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:
getRelationshipFilterOrBuilderin interfaceDeleteRelationshipsRequestOrBuilder
-
getOptionalPreconditionsList
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }- Specified by:
getOptionalPreconditionsListin interfaceDeleteRelationshipsRequestOrBuilder
-
getOptionalPreconditionsCount
public int getOptionalPreconditionsCount()To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }- Specified by:
getOptionalPreconditionsCountin interfaceDeleteRelationshipsRequestOrBuilder
-
getOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }- Specified by:
getOptionalPreconditionsin 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:
getOptionalPreconditionsOrBuilderin interfaceDeleteRelationshipsRequestOrBuilder
-
getOptionalPreconditionsOrBuilderList
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }- Specified by:
getOptionalPreconditionsOrBuilderListin 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:
getOptionalLimitin 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:
getOptionalAllowPartialDeletionsin 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:
hasOptionalTransactionMetadatain 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:
getOptionalTransactionMetadatain 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:
getOptionalTransactionMetadataOrBuilderin interfaceDeleteRelationshipsRequestOrBuilder
-