Class BatchWriteResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
com.google.spanner.v1.BatchWriteResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BatchWriteResponseOrBuilder, Cloneable
Enclosing class:
BatchWriteResponse

public static final class BatchWriteResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder> implements BatchWriteResponseOrBuilder
 The result of applying a batch of mutations.
 
Protobuf type google.spanner.v1.BatchWriteResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.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.GeneratedMessageV3.Builder<BatchWriteResponse.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.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
    • setField

      public BatchWriteResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
    • clearField

      public BatchWriteResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
    • clearOneof

      public BatchWriteResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
    • setRepeatedField

      public BatchWriteResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
    • addRepeatedField

      public BatchWriteResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
    • mergeFrom

      public BatchWriteResponse.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<BatchWriteResponse.Builder>
      Throws:
      IOException
    • getIndexesList

      public List<Integer> getIndexesList()
       The mutation groups applied in this batch. The values index into the
       `mutation_groups` field in the corresponding `BatchWriteRequest`.
       
      repeated int32 indexes = 1;
      Specified by:
      getIndexesList in interface BatchWriteResponseOrBuilder
      Returns:
      A list containing the indexes.
    • getIndexesCount

      public int getIndexesCount()
       The mutation groups applied in this batch. The values index into the
       `mutation_groups` field in the corresponding `BatchWriteRequest`.
       
      repeated int32 indexes = 1;
      Specified by:
      getIndexesCount in interface BatchWriteResponseOrBuilder
      Returns:
      The count of indexes.
    • getIndexes

      public int getIndexes(int index)
       The mutation groups applied in this batch. The values index into the
       `mutation_groups` field in the corresponding `BatchWriteRequest`.
       
      repeated int32 indexes = 1;
      Specified by:
      getIndexes in interface BatchWriteResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The indexes at the given index.
    • setIndexes

      public BatchWriteResponse.Builder setIndexes(int index, int value)
       The mutation groups applied in this batch. The values index into the
       `mutation_groups` field in the corresponding `BatchWriteRequest`.
       
      repeated int32 indexes = 1;
      Parameters:
      index - The index to set the value at.
      value - The indexes to set.
      Returns:
      This builder for chaining.
    • addIndexes

      public BatchWriteResponse.Builder addIndexes(int value)
       The mutation groups applied in this batch. The values index into the
       `mutation_groups` field in the corresponding `BatchWriteRequest`.
       
      repeated int32 indexes = 1;
      Parameters:
      value - The indexes to add.
      Returns:
      This builder for chaining.
    • addAllIndexes

      public BatchWriteResponse.Builder addAllIndexes(Iterable<? extends Integer> values)
       The mutation groups applied in this batch. The values index into the
       `mutation_groups` field in the corresponding `BatchWriteRequest`.
       
      repeated int32 indexes = 1;
      Parameters:
      values - The indexes to add.
      Returns:
      This builder for chaining.
    • clearIndexes

      public BatchWriteResponse.Builder clearIndexes()
       The mutation groups applied in this batch. The values index into the
       `mutation_groups` field in the corresponding `BatchWriteRequest`.
       
      repeated int32 indexes = 1;
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       An `OK` status indicates success. Any other status indicates a failure.
       
      .google.rpc.Status status = 2;
      Specified by:
      hasStatus in interface BatchWriteResponseOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public com.google.rpc.Status getStatus()
       An `OK` status indicates success. Any other status indicates a failure.
       
      .google.rpc.Status status = 2;
      Specified by:
      getStatus in interface BatchWriteResponseOrBuilder
      Returns:
      The status.
    • setStatus

      public BatchWriteResponse.Builder setStatus(com.google.rpc.Status value)
       An `OK` status indicates success. Any other status indicates a failure.
       
      .google.rpc.Status status = 2;
    • setStatus

      public BatchWriteResponse.Builder setStatus(com.google.rpc.Status.Builder builderForValue)
       An `OK` status indicates success. Any other status indicates a failure.
       
      .google.rpc.Status status = 2;
    • mergeStatus

      public BatchWriteResponse.Builder mergeStatus(com.google.rpc.Status value)
       An `OK` status indicates success. Any other status indicates a failure.
       
      .google.rpc.Status status = 2;
    • clearStatus

      public BatchWriteResponse.Builder clearStatus()
       An `OK` status indicates success. Any other status indicates a failure.
       
      .google.rpc.Status status = 2;
    • getStatusBuilder

      public com.google.rpc.Status.Builder getStatusBuilder()
       An `OK` status indicates success. Any other status indicates a failure.
       
      .google.rpc.Status status = 2;
    • getStatusOrBuilder

      public com.google.rpc.StatusOrBuilder getStatusOrBuilder()
       An `OK` status indicates success. Any other status indicates a failure.
       
      .google.rpc.Status status = 2;
      Specified by:
      getStatusOrBuilder in interface BatchWriteResponseOrBuilder
    • hasCommitTimestamp

      public boolean hasCommitTimestamp()
       The commit timestamp of the transaction that applied this batch.
       Present if `status` is `OK`, absent otherwise.
       
      .google.protobuf.Timestamp commit_timestamp = 3;
      Specified by:
      hasCommitTimestamp in interface BatchWriteResponseOrBuilder
      Returns:
      Whether the commitTimestamp field is set.
    • getCommitTimestamp

      public com.google.protobuf.Timestamp getCommitTimestamp()
       The commit timestamp of the transaction that applied this batch.
       Present if `status` is `OK`, absent otherwise.
       
      .google.protobuf.Timestamp commit_timestamp = 3;
      Specified by:
      getCommitTimestamp in interface BatchWriteResponseOrBuilder
      Returns:
      The commitTimestamp.
    • setCommitTimestamp

      public BatchWriteResponse.Builder setCommitTimestamp(com.google.protobuf.Timestamp value)
       The commit timestamp of the transaction that applied this batch.
       Present if `status` is `OK`, absent otherwise.
       
      .google.protobuf.Timestamp commit_timestamp = 3;
    • setCommitTimestamp

      public BatchWriteResponse.Builder setCommitTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
       The commit timestamp of the transaction that applied this batch.
       Present if `status` is `OK`, absent otherwise.
       
      .google.protobuf.Timestamp commit_timestamp = 3;
    • mergeCommitTimestamp

      public BatchWriteResponse.Builder mergeCommitTimestamp(com.google.protobuf.Timestamp value)
       The commit timestamp of the transaction that applied this batch.
       Present if `status` is `OK`, absent otherwise.
       
      .google.protobuf.Timestamp commit_timestamp = 3;
    • clearCommitTimestamp

      public BatchWriteResponse.Builder clearCommitTimestamp()
       The commit timestamp of the transaction that applied this batch.
       Present if `status` is `OK`, absent otherwise.
       
      .google.protobuf.Timestamp commit_timestamp = 3;
    • getCommitTimestampBuilder

      public com.google.protobuf.Timestamp.Builder getCommitTimestampBuilder()
       The commit timestamp of the transaction that applied this batch.
       Present if `status` is `OK`, absent otherwise.
       
      .google.protobuf.Timestamp commit_timestamp = 3;
    • getCommitTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCommitTimestampOrBuilder()
       The commit timestamp of the transaction that applied this batch.
       Present if `status` is `OK`, absent otherwise.
       
      .google.protobuf.Timestamp commit_timestamp = 3;
      Specified by:
      getCommitTimestampOrBuilder in interface BatchWriteResponseOrBuilder
    • setUnknownFields

      public final BatchWriteResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
    • mergeUnknownFields

      public final BatchWriteResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>