Class CommitResponse.Builder

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

public static final class CommitResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder> implements CommitResponseOrBuilder
 The response for [Commit][google.spanner.v1.Spanner.Commit].
 
Protobuf type google.spanner.v1.CommitResponse
  • 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<CommitResponse.Builder>
    • clear

      public CommitResponse.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<CommitResponse.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<CommitResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public CommitResponse.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<CommitResponse.Builder>
    • setField

      public CommitResponse.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<CommitResponse.Builder>
    • clearField

      public CommitResponse.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<CommitResponse.Builder>
    • clearOneof

      public CommitResponse.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<CommitResponse.Builder>
    • setRepeatedField

      public CommitResponse.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<CommitResponse.Builder>
    • addRepeatedField

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

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

      public CommitResponse.Builder mergeFrom(CommitResponse other)
    • isInitialized

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

      public CommitResponse.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<CommitResponse.Builder>
      Throws:
      IOException
    • hasCommitTimestamp

      public boolean hasCommitTimestamp()
       The Cloud Spanner timestamp at which the transaction committed.
       
      .google.protobuf.Timestamp commit_timestamp = 1;
      Specified by:
      hasCommitTimestamp in interface CommitResponseOrBuilder
      Returns:
      Whether the commitTimestamp field is set.
    • getCommitTimestamp

      public com.google.protobuf.Timestamp getCommitTimestamp()
       The Cloud Spanner timestamp at which the transaction committed.
       
      .google.protobuf.Timestamp commit_timestamp = 1;
      Specified by:
      getCommitTimestamp in interface CommitResponseOrBuilder
      Returns:
      The commitTimestamp.
    • setCommitTimestamp

      public CommitResponse.Builder setCommitTimestamp(com.google.protobuf.Timestamp value)
       The Cloud Spanner timestamp at which the transaction committed.
       
      .google.protobuf.Timestamp commit_timestamp = 1;
    • setCommitTimestamp

      public CommitResponse.Builder setCommitTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
       The Cloud Spanner timestamp at which the transaction committed.
       
      .google.protobuf.Timestamp commit_timestamp = 1;
    • mergeCommitTimestamp

      public CommitResponse.Builder mergeCommitTimestamp(com.google.protobuf.Timestamp value)
       The Cloud Spanner timestamp at which the transaction committed.
       
      .google.protobuf.Timestamp commit_timestamp = 1;
    • clearCommitTimestamp

      public CommitResponse.Builder clearCommitTimestamp()
       The Cloud Spanner timestamp at which the transaction committed.
       
      .google.protobuf.Timestamp commit_timestamp = 1;
    • getCommitTimestampBuilder

      public com.google.protobuf.Timestamp.Builder getCommitTimestampBuilder()
       The Cloud Spanner timestamp at which the transaction committed.
       
      .google.protobuf.Timestamp commit_timestamp = 1;
    • getCommitTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCommitTimestampOrBuilder()
       The Cloud Spanner timestamp at which the transaction committed.
       
      .google.protobuf.Timestamp commit_timestamp = 1;
      Specified by:
      getCommitTimestampOrBuilder in interface CommitResponseOrBuilder
    • hasCommitStats

      public boolean hasCommitStats()
       The statistics about this Commit. Not returned by default.
       For more information, see
       [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
       
      .google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
      Specified by:
      hasCommitStats in interface CommitResponseOrBuilder
      Returns:
      Whether the commitStats field is set.
    • getCommitStats

      public CommitResponse.CommitStats getCommitStats()
       The statistics about this Commit. Not returned by default.
       For more information, see
       [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
       
      .google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
      Specified by:
      getCommitStats in interface CommitResponseOrBuilder
      Returns:
      The commitStats.
    • setCommitStats

      public CommitResponse.Builder setCommitStats(CommitResponse.CommitStats value)
       The statistics about this Commit. Not returned by default.
       For more information, see
       [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
       
      .google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
    • setCommitStats

      public CommitResponse.Builder setCommitStats(CommitResponse.CommitStats.Builder builderForValue)
       The statistics about this Commit. Not returned by default.
       For more information, see
       [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
       
      .google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
    • mergeCommitStats

      public CommitResponse.Builder mergeCommitStats(CommitResponse.CommitStats value)
       The statistics about this Commit. Not returned by default.
       For more information, see
       [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
       
      .google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
    • clearCommitStats

      public CommitResponse.Builder clearCommitStats()
       The statistics about this Commit. Not returned by default.
       For more information, see
       [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
       
      .google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
    • getCommitStatsBuilder

      public CommitResponse.CommitStats.Builder getCommitStatsBuilder()
       The statistics about this Commit. Not returned by default.
       For more information, see
       [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
       
      .google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
    • getCommitStatsOrBuilder

      public CommitResponse.CommitStatsOrBuilder getCommitStatsOrBuilder()
       The statistics about this Commit. Not returned by default.
       For more information, see
       [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
       
      .google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
      Specified by:
      getCommitStatsOrBuilder in interface CommitResponseOrBuilder
    • setUnknownFields

      public final CommitResponse.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<CommitResponse.Builder>
    • mergeUnknownFields

      public final CommitResponse.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<CommitResponse.Builder>