Class CommitResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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.GeneratedMessage.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
    • getMultiplexedSessionRetryCase

      public CommitResponse.MultiplexedSessionRetryCase getMultiplexedSessionRetryCase()
      Specified by:
      getMultiplexedSessionRetryCase in interface CommitResponseOrBuilder
    • clearMultiplexedSessionRetry

      public CommitResponse.Builder clearMultiplexedSessionRetry()
    • 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
    • hasPrecommitToken

      public boolean hasPrecommitToken()
       If specified, transaction has not committed yet.
       You must retry the commit with the new precommit token.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;
      Specified by:
      hasPrecommitToken in interface CommitResponseOrBuilder
      Returns:
      Whether the precommitToken field is set.
    • getPrecommitToken

      public MultiplexedSessionPrecommitToken getPrecommitToken()
       If specified, transaction has not committed yet.
       You must retry the commit with the new precommit token.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;
      Specified by:
      getPrecommitToken in interface CommitResponseOrBuilder
      Returns:
      The precommitToken.
    • setPrecommitToken

      public CommitResponse.Builder setPrecommitToken(MultiplexedSessionPrecommitToken value)
       If specified, transaction has not committed yet.
       You must retry the commit with the new precommit token.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;
    • setPrecommitToken

      public CommitResponse.Builder setPrecommitToken(MultiplexedSessionPrecommitToken.Builder builderForValue)
       If specified, transaction has not committed yet.
       You must retry the commit with the new precommit token.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;
    • mergePrecommitToken

      public CommitResponse.Builder mergePrecommitToken(MultiplexedSessionPrecommitToken value)
       If specified, transaction has not committed yet.
       You must retry the commit with the new precommit token.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;
    • clearPrecommitToken

      public CommitResponse.Builder clearPrecommitToken()
       If specified, transaction has not committed yet.
       You must retry the commit with the new precommit token.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;
    • getPrecommitTokenBuilder

      public MultiplexedSessionPrecommitToken.Builder getPrecommitTokenBuilder()
       If specified, transaction has not committed yet.
       You must retry the commit with the new precommit token.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;
    • getPrecommitTokenOrBuilder

      public MultiplexedSessionPrecommitTokenOrBuilder getPrecommitTokenOrBuilder()
       If specified, transaction has not committed yet.
       You must retry the commit with the new precommit token.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;
      Specified by:
      getPrecommitTokenOrBuilder in interface CommitResponseOrBuilder
    • hasSnapshotTimestamp

      public boolean hasSnapshotTimestamp()
       If `TransactionOptions.isolation_level` is set to
       `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the
       timestamp at which all reads in the transaction ran. This timestamp is
       never returned.
       
      .google.protobuf.Timestamp snapshot_timestamp = 5;
      Specified by:
      hasSnapshotTimestamp in interface CommitResponseOrBuilder
      Returns:
      Whether the snapshotTimestamp field is set.
    • getSnapshotTimestamp

      public com.google.protobuf.Timestamp getSnapshotTimestamp()
       If `TransactionOptions.isolation_level` is set to
       `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the
       timestamp at which all reads in the transaction ran. This timestamp is
       never returned.
       
      .google.protobuf.Timestamp snapshot_timestamp = 5;
      Specified by:
      getSnapshotTimestamp in interface CommitResponseOrBuilder
      Returns:
      The snapshotTimestamp.
    • setSnapshotTimestamp

      public CommitResponse.Builder setSnapshotTimestamp(com.google.protobuf.Timestamp value)
       If `TransactionOptions.isolation_level` is set to
       `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the
       timestamp at which all reads in the transaction ran. This timestamp is
       never returned.
       
      .google.protobuf.Timestamp snapshot_timestamp = 5;
    • setSnapshotTimestamp

      public CommitResponse.Builder setSnapshotTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
       If `TransactionOptions.isolation_level` is set to
       `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the
       timestamp at which all reads in the transaction ran. This timestamp is
       never returned.
       
      .google.protobuf.Timestamp snapshot_timestamp = 5;
    • mergeSnapshotTimestamp

      public CommitResponse.Builder mergeSnapshotTimestamp(com.google.protobuf.Timestamp value)
       If `TransactionOptions.isolation_level` is set to
       `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the
       timestamp at which all reads in the transaction ran. This timestamp is
       never returned.
       
      .google.protobuf.Timestamp snapshot_timestamp = 5;
    • clearSnapshotTimestamp

      public CommitResponse.Builder clearSnapshotTimestamp()
       If `TransactionOptions.isolation_level` is set to
       `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the
       timestamp at which all reads in the transaction ran. This timestamp is
       never returned.
       
      .google.protobuf.Timestamp snapshot_timestamp = 5;
    • getSnapshotTimestampBuilder

      public com.google.protobuf.Timestamp.Builder getSnapshotTimestampBuilder()
       If `TransactionOptions.isolation_level` is set to
       `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the
       timestamp at which all reads in the transaction ran. This timestamp is
       never returned.
       
      .google.protobuf.Timestamp snapshot_timestamp = 5;
    • getSnapshotTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getSnapshotTimestampOrBuilder()
       If `TransactionOptions.isolation_level` is set to
       `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the
       timestamp at which all reads in the transaction ran. This timestamp is
       never returned.
       
      .google.protobuf.Timestamp snapshot_timestamp = 5;
      Specified by:
      getSnapshotTimestampOrBuilder in interface CommitResponseOrBuilder
    • hasCacheUpdate

      public boolean hasCacheUpdate()
       Optional. A cache update expresses a set of changes the client should
       incorporate into its location cache. The client should discard the changes
       if they are older than the data it already has. This data can be obtained
       in response to requests that included a `RoutingHint` field, but may also
       be obtained by explicit location-fetching RPCs which may be added in the
       future.
       
      .google.spanner.v1.CacheUpdate cache_update = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCacheUpdate in interface CommitResponseOrBuilder
      Returns:
      Whether the cacheUpdate field is set.
    • getCacheUpdate

      public CacheUpdate getCacheUpdate()
       Optional. A cache update expresses a set of changes the client should
       incorporate into its location cache. The client should discard the changes
       if they are older than the data it already has. This data can be obtained
       in response to requests that included a `RoutingHint` field, but may also
       be obtained by explicit location-fetching RPCs which may be added in the
       future.
       
      .google.spanner.v1.CacheUpdate cache_update = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCacheUpdate in interface CommitResponseOrBuilder
      Returns:
      The cacheUpdate.
    • setCacheUpdate

      public CommitResponse.Builder setCacheUpdate(CacheUpdate value)
       Optional. A cache update expresses a set of changes the client should
       incorporate into its location cache. The client should discard the changes
       if they are older than the data it already has. This data can be obtained
       in response to requests that included a `RoutingHint` field, but may also
       be obtained by explicit location-fetching RPCs which may be added in the
       future.
       
      .google.spanner.v1.CacheUpdate cache_update = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setCacheUpdate

      public CommitResponse.Builder setCacheUpdate(CacheUpdate.Builder builderForValue)
       Optional. A cache update expresses a set of changes the client should
       incorporate into its location cache. The client should discard the changes
       if they are older than the data it already has. This data can be obtained
       in response to requests that included a `RoutingHint` field, but may also
       be obtained by explicit location-fetching RPCs which may be added in the
       future.
       
      .google.spanner.v1.CacheUpdate cache_update = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCacheUpdate

      public CommitResponse.Builder mergeCacheUpdate(CacheUpdate value)
       Optional. A cache update expresses a set of changes the client should
       incorporate into its location cache. The client should discard the changes
       if they are older than the data it already has. This data can be obtained
       in response to requests that included a `RoutingHint` field, but may also
       be obtained by explicit location-fetching RPCs which may be added in the
       future.
       
      .google.spanner.v1.CacheUpdate cache_update = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearCacheUpdate

      public CommitResponse.Builder clearCacheUpdate()
       Optional. A cache update expresses a set of changes the client should
       incorporate into its location cache. The client should discard the changes
       if they are older than the data it already has. This data can be obtained
       in response to requests that included a `RoutingHint` field, but may also
       be obtained by explicit location-fetching RPCs which may be added in the
       future.
       
      .google.spanner.v1.CacheUpdate cache_update = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getCacheUpdateBuilder

      public CacheUpdate.Builder getCacheUpdateBuilder()
       Optional. A cache update expresses a set of changes the client should
       incorporate into its location cache. The client should discard the changes
       if they are older than the data it already has. This data can be obtained
       in response to requests that included a `RoutingHint` field, but may also
       be obtained by explicit location-fetching RPCs which may be added in the
       future.
       
      .google.spanner.v1.CacheUpdate cache_update = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getCacheUpdateOrBuilder

      public CacheUpdateOrBuilder getCacheUpdateOrBuilder()
       Optional. A cache update expresses a set of changes the client should
       incorporate into its location cache. The client should discard the changes
       if they are older than the data it already has. This data can be obtained
       in response to requests that included a `RoutingHint` field, but may also
       be obtained by explicit location-fetching RPCs which may be added in the
       future.
       
      .google.spanner.v1.CacheUpdate cache_update = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCacheUpdateOrBuilder in interface CommitResponseOrBuilder