Class WriteRelationshipsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WriteRelationshipsRequest.Builder>
com.authzed.api.v1.WriteRelationshipsRequest.Builder
All Implemented Interfaces:
WriteRelationshipsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WriteRelationshipsRequest

public static final class WriteRelationshipsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<WriteRelationshipsRequest.Builder> implements WriteRelationshipsRequestOrBuilder
 WriteRelationshipsRequest contains a list of Relationship mutations that
 should be applied to the service. If the optional_preconditions parameter
 is included, all of the specified preconditions must also be satisfied before
 the write will be committed. All updates will be applied transactionally,
 and if any preconditions fail, the entire transaction will be reverted.
 
Protobuf type authzed.api.v1.WriteRelationshipsRequest
  • 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<WriteRelationshipsRequest.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<WriteRelationshipsRequest.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<WriteRelationshipsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public WriteRelationshipsRequest.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<WriteRelationshipsRequest.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<WriteRelationshipsRequest.Builder>
    • mergeFrom

      public WriteRelationshipsRequest.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<WriteRelationshipsRequest.Builder>
      Throws:
      IOException
    • getUpdatesList

      public List<RelationshipUpdate> getUpdatesList()
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
      Specified by:
      getUpdatesList in interface WriteRelationshipsRequestOrBuilder
    • getUpdatesCount

      public int getUpdatesCount()
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
      Specified by:
      getUpdatesCount in interface WriteRelationshipsRequestOrBuilder
    • getUpdates

      public RelationshipUpdate getUpdates(int index)
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
      Specified by:
      getUpdates in interface WriteRelationshipsRequestOrBuilder
    • setUpdates

      public WriteRelationshipsRequest.Builder setUpdates(int index, RelationshipUpdate value)
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • setUpdates

      public WriteRelationshipsRequest.Builder setUpdates(int index, RelationshipUpdate.Builder builderForValue)
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • addUpdates

      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • addUpdates

      public WriteRelationshipsRequest.Builder addUpdates(int index, RelationshipUpdate value)
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • addUpdates

      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • addUpdates

      public WriteRelationshipsRequest.Builder addUpdates(int index, RelationshipUpdate.Builder builderForValue)
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • addAllUpdates

      public WriteRelationshipsRequest.Builder addAllUpdates(Iterable<? extends RelationshipUpdate> values)
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • clearUpdates

      public WriteRelationshipsRequest.Builder clearUpdates()
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • removeUpdates

      public WriteRelationshipsRequest.Builder removeUpdates(int index)
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • getUpdatesBuilder

      public RelationshipUpdate.Builder getUpdatesBuilder(int index)
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • getUpdatesOrBuilder

      public RelationshipUpdateOrBuilder getUpdatesOrBuilder(int index)
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
      Specified by:
      getUpdatesOrBuilder in interface WriteRelationshipsRequestOrBuilder
    • getUpdatesOrBuilderList

      public List<? extends RelationshipUpdateOrBuilder> getUpdatesOrBuilderList()
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
      Specified by:
      getUpdatesOrBuilderList in interface WriteRelationshipsRequestOrBuilder
    • addUpdatesBuilder

      public RelationshipUpdate.Builder addUpdatesBuilder()
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • addUpdatesBuilder

      public RelationshipUpdate.Builder addUpdatesBuilder(int index)
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • getUpdatesBuilderList

      public List<RelationshipUpdate.Builder> getUpdatesBuilderList()
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
    • 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 WriteRelationshipsRequestOrBuilder
    • getOptionalPreconditionsCount

      public int getOptionalPreconditionsCount()
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
      Specified by:
      getOptionalPreconditionsCount in interface WriteRelationshipsRequestOrBuilder
    • 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 WriteRelationshipsRequestOrBuilder
    • setOptionalPreconditions

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

      public WriteRelationshipsRequest.Builder setOptionalPreconditions(int index, Precondition.Builder builderForValue)
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
    • addOptionalPreconditions

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

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

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

      public WriteRelationshipsRequest.Builder addOptionalPreconditions(int index, Precondition.Builder builderForValue)
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
    • addAllOptionalPreconditions

      public WriteRelationshipsRequest.Builder addAllOptionalPreconditions(Iterable<? extends Precondition> values)
       To be bounded by configuration
       
      repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
    • clearOptionalPreconditions

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

      public WriteRelationshipsRequest.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 WriteRelationshipsRequestOrBuilder
    • 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 WriteRelationshipsRequestOrBuilder
    • 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) = { ... }
    • 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 updates associated with this
       transaction.
       
      .google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
      Specified by:
      hasOptionalTransactionMetadata in interface WriteRelationshipsRequestOrBuilder
      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 updates associated with this
       transaction.
       
      .google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
      Specified by:
      getOptionalTransactionMetadata in interface WriteRelationshipsRequestOrBuilder
      Returns:
      The optionalTransactionMetadata.
    • setOptionalTransactionMetadata

      public WriteRelationshipsRequest.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 updates associated with this
       transaction.
       
      .google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
    • setOptionalTransactionMetadata

      public WriteRelationshipsRequest.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 updates associated with this
       transaction.
       
      .google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
    • mergeOptionalTransactionMetadata

      public WriteRelationshipsRequest.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 updates associated with this
       transaction.
       
      .google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
    • clearOptionalTransactionMetadata

      public WriteRelationshipsRequest.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 updates associated with this
       transaction.
       
      .google.protobuf.Struct optional_transaction_metadata = 3 [(.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 updates associated with this
       transaction.
       
      .google.protobuf.Struct optional_transaction_metadata = 3 [(.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 updates associated with this
       transaction.
       
      .google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
      Specified by:
      getOptionalTransactionMetadataOrBuilder in interface WriteRelationshipsRequestOrBuilder