Class WriteRelationshipsRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.authzed.api.v1.WriteRelationshipsRequest
All Implemented Interfaces:
WriteRelationshipsRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class WriteRelationshipsRequest extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • UPDATES_FIELD_NUMBER

      public static final int UPDATES_FIELD_NUMBER
      See Also:
    • OPTIONAL_PRECONDITIONS_FIELD_NUMBER

      public static final int OPTIONAL_PRECONDITIONS_FIELD_NUMBER
      See Also:
    • OPTIONAL_TRANSACTION_METADATA_FIELD_NUMBER

      public static final int OPTIONAL_TRANSACTION_METADATA_FIELD_NUMBER
      See Also:
  • 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
    • getUpdatesList

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

      public List<? extends RelationshipUpdateOrBuilder> getUpdatesOrBuilderList()
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
      Specified by:
      getUpdatesOrBuilderList 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
    • getUpdatesOrBuilder

      public RelationshipUpdateOrBuilder getUpdatesOrBuilder(int index)
      repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
      Specified by:
      getUpdatesOrBuilder in interface WriteRelationshipsRequestOrBuilder
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static WriteRelationshipsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WriteRelationshipsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WriteRelationshipsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WriteRelationshipsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WriteRelationshipsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WriteRelationshipsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WriteRelationshipsRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WriteRelationshipsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WriteRelationshipsRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WriteRelationshipsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WriteRelationshipsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WriteRelationshipsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static WriteRelationshipsRequest.Builder newBuilder()
    • newBuilder

      public static WriteRelationshipsRequest.Builder newBuilder(WriteRelationshipsRequest prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected WriteRelationshipsRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static WriteRelationshipsRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<WriteRelationshipsRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<WriteRelationshipsRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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