public static final class Transaction.Builder extends GeneratedMessageV3.Builder<Transaction.Builder> implements TransactionOrBuilder
A transaction.Protobuf type
google.spanner.v1.Transaction
Modifier and Type | Method and Description |
---|---|
Transaction.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Transaction |
build() |
Transaction |
buildPartial() |
Transaction.Builder |
clear() |
Transaction.Builder |
clearField(Descriptors.FieldDescriptor field) |
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.
|
Transaction.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Transaction.Builder |
clearReadTimestamp()
For snapshot read-only transactions, the read timestamp chosen
for the transaction.
|
Transaction.Builder |
clone() |
Transaction |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
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.
|
Timestamp |
getReadTimestamp()
For snapshot read-only transactions, the read timestamp chosen
for the transaction.
|
Timestamp.Builder |
getReadTimestampBuilder()
For snapshot read-only transactions, the read timestamp chosen
for the transaction.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Transaction.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Transaction.Builder |
mergeFrom(Message other) |
Transaction.Builder |
mergeFrom(Transaction other) |
Transaction.Builder |
mergeReadTimestamp(Timestamp value)
For snapshot read-only transactions, the read timestamp chosen
for the transaction.
|
Transaction.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Transaction.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Transaction.Builder |
setId(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.
|
Transaction.Builder |
setReadTimestamp(Timestamp.Builder builderForValue)
For snapshot read-only transactions, the read timestamp chosen
for the transaction.
|
Transaction.Builder |
setReadTimestamp(Timestamp value)
For snapshot read-only transactions, the read timestamp chosen
for the transaction.
|
Transaction.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Transaction.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Transaction.Builder>
public Transaction.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Transaction.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Transaction.Builder>
public Transaction getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Transaction build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Transaction buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Transaction.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Transaction.Builder>
public Transaction.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Transaction.Builder>
public Transaction.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Transaction.Builder>
public Transaction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Transaction.Builder>
public Transaction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Transaction.Builder>
public Transaction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Transaction.Builder>
public Transaction.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Transaction.Builder>
public Transaction.Builder mergeFrom(Transaction other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Transaction.Builder>
public Transaction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Transaction.Builder>
IOException
public 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;
getId
in interface TransactionOrBuilder
public Transaction.Builder setId(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;
value
- The id to set.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;
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;
hasReadTimestamp
in interface TransactionOrBuilder
public 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;
getReadTimestamp
in interface TransactionOrBuilder
public Transaction.Builder setReadTimestamp(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;
public Transaction.Builder setReadTimestamp(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;
public Transaction.Builder mergeReadTimestamp(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;
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;
public 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;
public 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;
getReadTimestampOrBuilder
in interface TransactionOrBuilder
public final Transaction.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Transaction.Builder>
public final Transaction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Transaction.Builder>
Copyright © 2022 Google LLC. All rights reserved.