Class Transaction.Builder

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

public static final class Transaction.Builder extends com.google.protobuf.GeneratedMessage.Builder<Transaction.Builder> implements TransactionOrBuilder
 A transaction.
 
Protobuf type google.spanner.v1.Transaction
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Optional.
    `id` may be used to identify the transaction in subsequent [Read][google.spanner.v1.Spanner.Read], [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], [Commit][google.spanner.v1.Spanner.Commit], or [Rollback][google.spanner.v1.Spanner.Rollback] calls.
    A precommit token is included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
    For snapshot read-only transactions, the read timestamp chosen for the transaction.
    Optional.
    Optional.
    Optional.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.ByteString
    `id` may be used to identify the transaction in subsequent [Read][google.spanner.v1.Spanner.Read], [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], [Commit][google.spanner.v1.Spanner.Commit], or [Rollback][google.spanner.v1.Spanner.Rollback] calls.
    A precommit token is included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
    A precommit token is included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
    A precommit token is included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
    com.google.protobuf.Timestamp
    For snapshot read-only transactions, the read timestamp chosen for the transaction.
    com.google.protobuf.Timestamp.Builder
    For snapshot read-only transactions, the read timestamp chosen for the transaction.
    com.google.protobuf.TimestampOrBuilder
    For snapshot read-only transactions, the read timestamp chosen for the transaction.
    boolean
    Optional.
    boolean
    A precommit token is included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
    boolean
    For snapshot read-only transactions, the read timestamp chosen for the transaction.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    Optional.
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    A precommit token is included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
    mergeReadTimestamp(com.google.protobuf.Timestamp value)
    For snapshot read-only transactions, the read timestamp chosen for the transaction.
    Optional.
    Optional.
    setId(com.google.protobuf.ByteString value)
    `id` may be used to identify the transaction in subsequent [Read][google.spanner.v1.Spanner.Read], [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], [Commit][google.spanner.v1.Spanner.Commit], or [Rollback][google.spanner.v1.Spanner.Rollback] calls.
    A precommit token is included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
    A precommit token is included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
    setReadTimestamp(com.google.protobuf.Timestamp value)
    For snapshot read-only transactions, the read timestamp chosen for the transaction.
    setReadTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
    For snapshot read-only transactions, the read timestamp chosen for the transaction.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Transaction.Builder>
    • clear

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

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

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

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

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

      public Transaction.Builder mergeFrom(Transaction other)
    • isInitialized

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

      public Transaction.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<Transaction.Builder>
      Throws:
      IOException
    • getId

      public com.google.protobuf.ByteString getId()
       `id` may be used to identify the transaction in subsequent
       [Read][google.spanner.v1.Spanner.Read],
       [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql],
       [Commit][google.spanner.v1.Spanner.Commit], or
       [Rollback][google.spanner.v1.Spanner.Rollback] calls.
      
       Single-use read-only transactions do not have IDs, because
       single-use transactions do not support multiple requests.
       
      bytes id = 1;
      Specified by:
      getId in interface TransactionOrBuilder
      Returns:
      The id.
    • setId

      public Transaction.Builder setId(com.google.protobuf.ByteString value)
       `id` may be used to identify the transaction in subsequent
       [Read][google.spanner.v1.Spanner.Read],
       [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql],
       [Commit][google.spanner.v1.Spanner.Commit], or
       [Rollback][google.spanner.v1.Spanner.Rollback] calls.
      
       Single-use read-only transactions do not have IDs, because
       single-use transactions do not support multiple requests.
       
      bytes id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Transaction.Builder clearId()
       `id` may be used to identify the transaction in subsequent
       [Read][google.spanner.v1.Spanner.Read],
       [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql],
       [Commit][google.spanner.v1.Spanner.Commit], or
       [Rollback][google.spanner.v1.Spanner.Rollback] calls.
      
       Single-use read-only transactions do not have IDs, because
       single-use transactions do not support multiple requests.
       
      bytes id = 1;
      Returns:
      This builder for chaining.
    • hasReadTimestamp

      public boolean hasReadTimestamp()
       For snapshot read-only transactions, the read timestamp chosen
       for the transaction. Not returned by default: see
       [TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp].
      
       A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
       Example: `"2014-10-02T15:01:23.045123456Z"`.
       
      .google.protobuf.Timestamp read_timestamp = 2;
      Specified by:
      hasReadTimestamp in interface TransactionOrBuilder
      Returns:
      Whether the readTimestamp field is set.
    • getReadTimestamp

      public com.google.protobuf.Timestamp getReadTimestamp()
       For snapshot read-only transactions, the read timestamp chosen
       for the transaction. Not returned by default: see
       [TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp].
      
       A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
       Example: `"2014-10-02T15:01:23.045123456Z"`.
       
      .google.protobuf.Timestamp read_timestamp = 2;
      Specified by:
      getReadTimestamp in interface TransactionOrBuilder
      Returns:
      The readTimestamp.
    • setReadTimestamp

      public Transaction.Builder setReadTimestamp(com.google.protobuf.Timestamp value)
       For snapshot read-only transactions, the read timestamp chosen
       for the transaction. Not returned by default: see
       [TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp].
      
       A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
       Example: `"2014-10-02T15:01:23.045123456Z"`.
       
      .google.protobuf.Timestamp read_timestamp = 2;
    • setReadTimestamp

      public Transaction.Builder setReadTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
       For snapshot read-only transactions, the read timestamp chosen
       for the transaction. Not returned by default: see
       [TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp].
      
       A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
       Example: `"2014-10-02T15:01:23.045123456Z"`.
       
      .google.protobuf.Timestamp read_timestamp = 2;
    • mergeReadTimestamp

      public Transaction.Builder mergeReadTimestamp(com.google.protobuf.Timestamp value)
       For snapshot read-only transactions, the read timestamp chosen
       for the transaction. Not returned by default: see
       [TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp].
      
       A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
       Example: `"2014-10-02T15:01:23.045123456Z"`.
       
      .google.protobuf.Timestamp read_timestamp = 2;
    • clearReadTimestamp

      public Transaction.Builder clearReadTimestamp()
       For snapshot read-only transactions, the read timestamp chosen
       for the transaction. Not returned by default: see
       [TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp].
      
       A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
       Example: `"2014-10-02T15:01:23.045123456Z"`.
       
      .google.protobuf.Timestamp read_timestamp = 2;
    • getReadTimestampBuilder

      public com.google.protobuf.Timestamp.Builder getReadTimestampBuilder()
       For snapshot read-only transactions, the read timestamp chosen
       for the transaction. Not returned by default: see
       [TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp].
      
       A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
       Example: `"2014-10-02T15:01:23.045123456Z"`.
       
      .google.protobuf.Timestamp read_timestamp = 2;
    • getReadTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getReadTimestampOrBuilder()
       For snapshot read-only transactions, the read timestamp chosen
       for the transaction. Not returned by default: see
       [TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp].
      
       A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds.
       Example: `"2014-10-02T15:01:23.045123456Z"`.
       
      .google.protobuf.Timestamp read_timestamp = 2;
      Specified by:
      getReadTimestampOrBuilder in interface TransactionOrBuilder
    • hasPrecommitToken

      public boolean hasPrecommitToken()
       A precommit token is included in the response of a BeginTransaction
       request if the read-write transaction is on a multiplexed session and
       a mutation_key was specified in the
       [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
       The precommit token with the highest sequence number from this transaction
       attempt should be passed to the [Commit][google.spanner.v1.Spanner.Commit]
       request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 3;
      Specified by:
      hasPrecommitToken in interface TransactionOrBuilder
      Returns:
      Whether the precommitToken field is set.
    • getPrecommitToken

      public MultiplexedSessionPrecommitToken getPrecommitToken()
       A precommit token is included in the response of a BeginTransaction
       request if the read-write transaction is on a multiplexed session and
       a mutation_key was specified in the
       [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
       The precommit token with the highest sequence number from this transaction
       attempt should be passed to the [Commit][google.spanner.v1.Spanner.Commit]
       request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 3;
      Specified by:
      getPrecommitToken in interface TransactionOrBuilder
      Returns:
      The precommitToken.
    • setPrecommitToken

      public Transaction.Builder setPrecommitToken(MultiplexedSessionPrecommitToken value)
       A precommit token is included in the response of a BeginTransaction
       request if the read-write transaction is on a multiplexed session and
       a mutation_key was specified in the
       [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
       The precommit token with the highest sequence number from this transaction
       attempt should be passed to the [Commit][google.spanner.v1.Spanner.Commit]
       request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 3;
    • setPrecommitToken

      public Transaction.Builder setPrecommitToken(MultiplexedSessionPrecommitToken.Builder builderForValue)
       A precommit token is included in the response of a BeginTransaction
       request if the read-write transaction is on a multiplexed session and
       a mutation_key was specified in the
       [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
       The precommit token with the highest sequence number from this transaction
       attempt should be passed to the [Commit][google.spanner.v1.Spanner.Commit]
       request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 3;
    • mergePrecommitToken

      public Transaction.Builder mergePrecommitToken(MultiplexedSessionPrecommitToken value)
       A precommit token is included in the response of a BeginTransaction
       request if the read-write transaction is on a multiplexed session and
       a mutation_key was specified in the
       [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
       The precommit token with the highest sequence number from this transaction
       attempt should be passed to the [Commit][google.spanner.v1.Spanner.Commit]
       request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 3;
    • clearPrecommitToken

      public Transaction.Builder clearPrecommitToken()
       A precommit token is included in the response of a BeginTransaction
       request if the read-write transaction is on a multiplexed session and
       a mutation_key was specified in the
       [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
       The precommit token with the highest sequence number from this transaction
       attempt should be passed to the [Commit][google.spanner.v1.Spanner.Commit]
       request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 3;
    • getPrecommitTokenBuilder

      public MultiplexedSessionPrecommitToken.Builder getPrecommitTokenBuilder()
       A precommit token is included in the response of a BeginTransaction
       request if the read-write transaction is on a multiplexed session and
       a mutation_key was specified in the
       [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
       The precommit token with the highest sequence number from this transaction
       attempt should be passed to the [Commit][google.spanner.v1.Spanner.Commit]
       request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 3;
    • getPrecommitTokenOrBuilder

      public MultiplexedSessionPrecommitTokenOrBuilder getPrecommitTokenOrBuilder()
       A precommit token is included in the response of a BeginTransaction
       request if the read-write transaction is on a multiplexed session and
       a mutation_key was specified in the
       [BeginTransaction][google.spanner.v1.BeginTransactionRequest].
       The precommit token with the highest sequence number from this transaction
       attempt should be passed to the [Commit][google.spanner.v1.Spanner.Commit]
       request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 3;
      Specified by:
      getPrecommitTokenOrBuilder in interface TransactionOrBuilder
    • 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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCacheUpdate in interface TransactionOrBuilder
      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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCacheUpdate in interface TransactionOrBuilder
      Returns:
      The cacheUpdate.
    • setCacheUpdate

      public Transaction.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 = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setCacheUpdate

      public Transaction.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 = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCacheUpdate

      public Transaction.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 = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearCacheUpdate

      public Transaction.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 = 5 [(.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 = 5 [(.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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCacheUpdateOrBuilder in interface TransactionOrBuilder