Interface TransactionOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Transaction, Transaction.Builder

    public interface TransactionOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
      com.google.protobuf.Timestamp getReadTimestamp()
      For snapshot read-only transactions, the read timestamp chosen for the transaction.
      com.google.protobuf.TimestampOrBuilder getReadTimestampOrBuilder()
      For snapshot read-only transactions, the read timestamp chosen for the transaction.
      boolean hasReadTimestamp()
      For snapshot read-only transactions, the read timestamp chosen for the transaction.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getId

        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;
        Returns:
        The id.
      • hasReadTimestamp

        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;
        Returns:
        Whether the readTimestamp field is set.
      • getReadTimestamp

        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;
        Returns:
        The readTimestamp.
      • getReadTimestampOrBuilder

        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;