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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DeleteRelationshipsRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DeleteRelationshipsRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DeleteRelationshipsRequest.Builder>
    • getDefaultInstanceForType

      public DeleteRelationshipsRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DeleteRelationshipsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DeleteRelationshipsRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeleteRelationshipsRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface DeleteRelationshipsRequestOrBuilder
      Returns:
      Whether the relationshipFilter field is set.
    • getRelationshipFilter

      public RelationshipFilter getRelationshipFilter()
      .authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
      Specified by:
      getRelationshipFilter in interface DeleteRelationshipsRequestOrBuilder
      Returns:
      The relationshipFilter.
    • setRelationshipFilter

      public DeleteRelationshipsRequest.Builder setRelationshipFilter(RelationshipFilter value)
      .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

      public DeleteRelationshipsRequest.Builder mergeRelationshipFilter(RelationshipFilter value)
      .authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
    • clearRelationshipFilter

      public DeleteRelationshipsRequest.Builder clearRelationshipFilter()
      .authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
    • getRelationshipFilterBuilder

      public RelationshipFilter.Builder getRelationshipFilterBuilder()
      .authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
    • getRelationshipFilterOrBuilder

      public RelationshipFilterOrBuilder getRelationshipFilterOrBuilder()
      .authzed.api.v1.RelationshipFilter relationship_filter = 1 [(.validate.rules) = { ... }
      Specified by:
      getRelationshipFilterOrBuilder in interface DeleteRelationshipsRequestOrBuilder
    • getOptionalPreconditionsList

      public List<Precondition> getOptionalPreconditionsList()
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
      Specified by:
      getOptionalPreconditionsList in interface DeleteRelationshipsRequestOrBuilder
    • getOptionalPreconditionsCount

      public int getOptionalPreconditionsCount()
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
      Specified by:
      getOptionalPreconditionsCount in interface DeleteRelationshipsRequestOrBuilder
    • getOptionalPreconditions

      public Precondition getOptionalPreconditions(int index)
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
      Specified by:
      getOptionalPreconditions in interface DeleteRelationshipsRequestOrBuilder
    • setOptionalPreconditions

      public DeleteRelationshipsRequest.Builder setOptionalPreconditions(int index, Precondition value)
       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

      public DeleteRelationshipsRequest.Builder addOptionalPreconditions(Precondition value)
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
    • addOptionalPreconditions

      public DeleteRelationshipsRequest.Builder addOptionalPreconditions(int index, Precondition value)
       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

      public DeleteRelationshipsRequest.Builder clearOptionalPreconditions()
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
    • removeOptionalPreconditions

      public DeleteRelationshipsRequest.Builder removeOptionalPreconditions(int index)
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
    • getOptionalPreconditionsBuilder

      public Precondition.Builder getOptionalPreconditionsBuilder(int index)
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
    • getOptionalPreconditionsOrBuilder

      public PreconditionOrBuilder getOptionalPreconditionsOrBuilder(int index)
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
      Specified by:
      getOptionalPreconditionsOrBuilder in interface DeleteRelationshipsRequestOrBuilder
    • getOptionalPreconditionsOrBuilderList

      public List<? extends PreconditionOrBuilder> getOptionalPreconditionsOrBuilderList()
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
      Specified by:
      getOptionalPreconditionsOrBuilderList in interface DeleteRelationshipsRequestOrBuilder
    • addOptionalPreconditionsBuilder

      public Precondition.Builder addOptionalPreconditionsBuilder()
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
    • addOptionalPreconditionsBuilder

      public Precondition.Builder addOptionalPreconditionsBuilder(int index)
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
    • getOptionalPreconditionsBuilderList

      public List<Precondition.Builder> 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 interface DeleteRelationshipsRequestOrBuilder
      Returns:
      The optionalLimit.
    • setOptionalLimit

      public DeleteRelationshipsRequest.Builder setOptionalLimit(int value)
       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

      public DeleteRelationshipsRequest.Builder 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 interface DeleteRelationshipsRequestOrBuilder
      Returns:
      The optionalAllowPartialDeletions.
    • setOptionalAllowPartialDeletions

      public DeleteRelationshipsRequest.Builder setOptionalAllowPartialDeletions(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.
       
      bool optional_allow_partial_deletions = 4;
      Parameters:
      value - The optionalAllowPartialDeletions to set.
      Returns:
      This builder for chaining.
    • clearOptionalAllowPartialDeletions

      public DeleteRelationshipsRequest.Builder 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 interface DeleteRelationshipsRequestOrBuilder
      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 interface DeleteRelationshipsRequestOrBuilder
      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

      public DeleteRelationshipsRequest.Builder 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 interface DeleteRelationshipsRequestOrBuilder