Class ResultSet.Builder

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

public static final class ResultSet.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResultSet.Builder> implements ResultSetOrBuilder
 Results from [Read][google.spanner.v1.Spanner.Read] or
 [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
 
Protobuf type google.spanner.v1.ResultSet
  • 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<ResultSet.Builder>
    • clear

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

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

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

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

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

      public ResultSet.Builder mergeFrom(ResultSet other)
    • isInitialized

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

      public ResultSet.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<ResultSet.Builder>
      Throws:
      IOException
    • hasMetadata

      public boolean hasMetadata()
       Metadata about the result set, such as row type information.
       
      .google.spanner.v1.ResultSetMetadata metadata = 1;
      Specified by:
      hasMetadata in interface ResultSetOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public ResultSetMetadata getMetadata()
       Metadata about the result set, such as row type information.
       
      .google.spanner.v1.ResultSetMetadata metadata = 1;
      Specified by:
      getMetadata in interface ResultSetOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public ResultSet.Builder setMetadata(ResultSetMetadata value)
       Metadata about the result set, such as row type information.
       
      .google.spanner.v1.ResultSetMetadata metadata = 1;
    • setMetadata

      public ResultSet.Builder setMetadata(ResultSetMetadata.Builder builderForValue)
       Metadata about the result set, such as row type information.
       
      .google.spanner.v1.ResultSetMetadata metadata = 1;
    • mergeMetadata

      public ResultSet.Builder mergeMetadata(ResultSetMetadata value)
       Metadata about the result set, such as row type information.
       
      .google.spanner.v1.ResultSetMetadata metadata = 1;
    • clearMetadata

      public ResultSet.Builder clearMetadata()
       Metadata about the result set, such as row type information.
       
      .google.spanner.v1.ResultSetMetadata metadata = 1;
    • getMetadataBuilder

      public ResultSetMetadata.Builder getMetadataBuilder()
       Metadata about the result set, such as row type information.
       
      .google.spanner.v1.ResultSetMetadata metadata = 1;
    • getMetadataOrBuilder

      public ResultSetMetadataOrBuilder getMetadataOrBuilder()
       Metadata about the result set, such as row type information.
       
      .google.spanner.v1.ResultSetMetadata metadata = 1;
      Specified by:
      getMetadataOrBuilder in interface ResultSetOrBuilder
    • getRowsList

      public List<com.google.protobuf.ListValue> getRowsList()
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
      Specified by:
      getRowsList in interface ResultSetOrBuilder
    • getRowsCount

      public int getRowsCount()
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
      Specified by:
      getRowsCount in interface ResultSetOrBuilder
    • getRows

      public com.google.protobuf.ListValue getRows(int index)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
      Specified by:
      getRows in interface ResultSetOrBuilder
    • setRows

      public ResultSet.Builder setRows(int index, com.google.protobuf.ListValue value)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • setRows

      public ResultSet.Builder setRows(int index, com.google.protobuf.ListValue.Builder builderForValue)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • addRows

      public ResultSet.Builder addRows(com.google.protobuf.ListValue value)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • addRows

      public ResultSet.Builder addRows(int index, com.google.protobuf.ListValue value)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • addRows

      public ResultSet.Builder addRows(com.google.protobuf.ListValue.Builder builderForValue)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • addRows

      public ResultSet.Builder addRows(int index, com.google.protobuf.ListValue.Builder builderForValue)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • addAllRows

      public ResultSet.Builder addAllRows(Iterable<? extends com.google.protobuf.ListValue> values)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • clearRows

      public ResultSet.Builder clearRows()
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • removeRows

      public ResultSet.Builder removeRows(int index)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • getRowsBuilder

      public com.google.protobuf.ListValue.Builder getRowsBuilder(int index)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • getRowsOrBuilder

      public com.google.protobuf.ListValueOrBuilder getRowsOrBuilder(int index)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
      Specified by:
      getRowsOrBuilder in interface ResultSetOrBuilder
    • getRowsOrBuilderList

      public List<? extends com.google.protobuf.ListValueOrBuilder> getRowsOrBuilderList()
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
      Specified by:
      getRowsOrBuilderList in interface ResultSetOrBuilder
    • addRowsBuilder

      public com.google.protobuf.ListValue.Builder addRowsBuilder()
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • addRowsBuilder

      public com.google.protobuf.ListValue.Builder addRowsBuilder(int index)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • getRowsBuilderList

      public List<com.google.protobuf.ListValue.Builder> getRowsBuilderList()
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith
       element in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements
       are encoded based on type as described [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • hasStats

      public boolean hasStats()
       Query plan and execution statistics for the SQL statement that
       produced this result set. These can be requested by setting
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       DML statements always produce stats containing the number of rows
       modified, unless executed using the
       [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       Other fields might or might not be populated, based on the
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       
      .google.spanner.v1.ResultSetStats stats = 3;
      Specified by:
      hasStats in interface ResultSetOrBuilder
      Returns:
      Whether the stats field is set.
    • getStats

      public ResultSetStats getStats()
       Query plan and execution statistics for the SQL statement that
       produced this result set. These can be requested by setting
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       DML statements always produce stats containing the number of rows
       modified, unless executed using the
       [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       Other fields might or might not be populated, based on the
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       
      .google.spanner.v1.ResultSetStats stats = 3;
      Specified by:
      getStats in interface ResultSetOrBuilder
      Returns:
      The stats.
    • setStats

      public ResultSet.Builder setStats(ResultSetStats value)
       Query plan and execution statistics for the SQL statement that
       produced this result set. These can be requested by setting
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       DML statements always produce stats containing the number of rows
       modified, unless executed using the
       [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       Other fields might or might not be populated, based on the
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       
      .google.spanner.v1.ResultSetStats stats = 3;
    • setStats

      public ResultSet.Builder setStats(ResultSetStats.Builder builderForValue)
       Query plan and execution statistics for the SQL statement that
       produced this result set. These can be requested by setting
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       DML statements always produce stats containing the number of rows
       modified, unless executed using the
       [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       Other fields might or might not be populated, based on the
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       
      .google.spanner.v1.ResultSetStats stats = 3;
    • mergeStats

      public ResultSet.Builder mergeStats(ResultSetStats value)
       Query plan and execution statistics for the SQL statement that
       produced this result set. These can be requested by setting
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       DML statements always produce stats containing the number of rows
       modified, unless executed using the
       [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       Other fields might or might not be populated, based on the
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       
      .google.spanner.v1.ResultSetStats stats = 3;
    • clearStats

      public ResultSet.Builder clearStats()
       Query plan and execution statistics for the SQL statement that
       produced this result set. These can be requested by setting
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       DML statements always produce stats containing the number of rows
       modified, unless executed using the
       [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       Other fields might or might not be populated, based on the
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       
      .google.spanner.v1.ResultSetStats stats = 3;
    • getStatsBuilder

      public ResultSetStats.Builder getStatsBuilder()
       Query plan and execution statistics for the SQL statement that
       produced this result set. These can be requested by setting
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       DML statements always produce stats containing the number of rows
       modified, unless executed using the
       [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       Other fields might or might not be populated, based on the
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       
      .google.spanner.v1.ResultSetStats stats = 3;
    • getStatsOrBuilder

      public ResultSetStatsOrBuilder getStatsOrBuilder()
       Query plan and execution statistics for the SQL statement that
       produced this result set. These can be requested by setting
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       DML statements always produce stats containing the number of rows
       modified, unless executed using the
       [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       Other fields might or might not be populated, based on the
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       
      .google.spanner.v1.ResultSetStats stats = 3;
      Specified by:
      getStatsOrBuilder in interface ResultSetOrBuilder
    • hasPrecommitToken

      public boolean hasPrecommitToken()
       Optional. A precommit token is included if the read-write transaction is on
       a multiplexed session. Pass the precommit token with the highest sequence
       number from this transaction attempt to the
       [Commit][google.spanner.v1.Spanner.Commit] request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPrecommitToken in interface ResultSetOrBuilder
      Returns:
      Whether the precommitToken field is set.
    • getPrecommitToken

      public MultiplexedSessionPrecommitToken getPrecommitToken()
       Optional. A precommit token is included if the read-write transaction is on
       a multiplexed session. Pass the precommit token with the highest sequence
       number from this transaction attempt to the
       [Commit][google.spanner.v1.Spanner.Commit] request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrecommitToken in interface ResultSetOrBuilder
      Returns:
      The precommitToken.
    • setPrecommitToken

      public ResultSet.Builder setPrecommitToken(MultiplexedSessionPrecommitToken value)
       Optional. A precommit token is included if the read-write transaction is on
       a multiplexed session. Pass the precommit token with the highest sequence
       number from this transaction attempt to the
       [Commit][google.spanner.v1.Spanner.Commit] request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setPrecommitToken

      public ResultSet.Builder setPrecommitToken(MultiplexedSessionPrecommitToken.Builder builderForValue)
       Optional. A precommit token is included if the read-write transaction is on
       a multiplexed session. Pass the precommit token with the highest sequence
       number from this transaction attempt to the
       [Commit][google.spanner.v1.Spanner.Commit] request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergePrecommitToken

      public ResultSet.Builder mergePrecommitToken(MultiplexedSessionPrecommitToken value)
       Optional. A precommit token is included if the read-write transaction is on
       a multiplexed session. Pass the precommit token with the highest sequence
       number from this transaction attempt to the
       [Commit][google.spanner.v1.Spanner.Commit] request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearPrecommitToken

      public ResultSet.Builder clearPrecommitToken()
       Optional. A precommit token is included if the read-write transaction is on
       a multiplexed session. Pass the precommit token with the highest sequence
       number from this transaction attempt to the
       [Commit][google.spanner.v1.Spanner.Commit] request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getPrecommitTokenBuilder

      public MultiplexedSessionPrecommitToken.Builder getPrecommitTokenBuilder()
       Optional. A precommit token is included if the read-write transaction is on
       a multiplexed session. Pass the precommit token with the highest sequence
       number from this transaction attempt to the
       [Commit][google.spanner.v1.Spanner.Commit] request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getPrecommitTokenOrBuilder

      public MultiplexedSessionPrecommitTokenOrBuilder getPrecommitTokenOrBuilder()
       Optional. A precommit token is included if the read-write transaction is on
       a multiplexed session. Pass the precommit token with the highest sequence
       number from this transaction attempt to the
       [Commit][google.spanner.v1.Spanner.Commit] request for this transaction.
       
      .google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrecommitTokenOrBuilder in interface ResultSetOrBuilder
    • 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 ResultSetOrBuilder
      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 ResultSetOrBuilder
      Returns:
      The cacheUpdate.
    • setCacheUpdate

      public ResultSet.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 ResultSet.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 ResultSet.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 ResultSet.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 ResultSetOrBuilder