Class CommitResponse.Builder

public static final class CommitResponse.Builder extends GeneratedMessageV3.Builder<CommitResponse.Builder> implements CommitResponseOrBuilder

The response for Commit.

Protobuf type google.spanner.v1.CommitResponse

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommitResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommitResponse.Builder
Overrides

build()

public CommitResponse build()
Returns
TypeDescription
CommitResponse

buildPartial()

public CommitResponse buildPartial()
Returns
TypeDescription
CommitResponse

clear()

public CommitResponse.Builder clear()
Returns
TypeDescription
CommitResponse.Builder
Overrides

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.CommitResponse.CommitStats commit_stats = 2;

Returns
TypeDescription
CommitResponse.Builder

clearCommitTimestamp()

public CommitResponse.Builder clearCommitTimestamp()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
TypeDescription
CommitResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public CommitResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CommitResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CommitResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CommitResponse.Builder
Overrides

clone()

public CommitResponse.Builder clone()
Returns
TypeDescription
CommitResponse.Builder
Overrides

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.CommitResponse.CommitStats commit_stats = 2;

Returns
TypeDescription
CommitResponse.CommitStats

The commitStats.

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.CommitResponse.CommitStats commit_stats = 2;

Returns
TypeDescription
CommitResponse.CommitStats.Builder

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.CommitResponse.CommitStats commit_stats = 2;

Returns
TypeDescription
CommitResponse.CommitStatsOrBuilder

getCommitTimestamp()

public Timestamp getCommitTimestamp()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
TypeDescription
Timestamp

The commitTimestamp.

getCommitTimestampBuilder()

public Timestamp.Builder getCommitTimestampBuilder()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
TypeDescription
Builder

getCommitTimestampOrBuilder()

public TimestampOrBuilder getCommitTimestampOrBuilder()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public CommitResponse getDefaultInstanceForType()
Returns
TypeDescription
CommitResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasCommitStats()

public boolean hasCommitStats()

The statistics about this Commit. Not returned by default. For more information, see CommitRequest.return_commit_stats.

.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;

Returns
TypeDescription
boolean

Whether the commitStats field is set.

hasCommitTimestamp()

public boolean hasCommitTimestamp()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
TypeDescription
boolean

Whether the commitTimestamp field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCommitStats(CommitResponse.CommitStats value)

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.CommitResponse.CommitStats commit_stats = 2;

Parameter
NameDescription
valueCommitResponse.CommitStats
Returns
TypeDescription
CommitResponse.Builder

mergeCommitTimestamp(Timestamp value)

public CommitResponse.Builder mergeCommitTimestamp(Timestamp value)

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CommitResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommitResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CommitResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CommitResponse.Builder
Overrides

mergeFrom(CommitResponse other)

public CommitResponse.Builder mergeFrom(CommitResponse other)
Parameter
NameDescription
otherCommitResponse
Returns
TypeDescription
CommitResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommitResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CommitResponse.Builder
Overrides

setCommitStats(CommitResponse.CommitStats value)

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.CommitResponse.CommitStats commit_stats = 2;

Parameter
NameDescription
valueCommitResponse.CommitStats
Returns
TypeDescription
CommitResponse.Builder

setCommitStats(CommitResponse.CommitStats.Builder builderForValue)

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.CommitResponse.CommitStats commit_stats = 2;

Parameter
NameDescription
builderForValueCommitResponse.CommitStats.Builder
Returns
TypeDescription
CommitResponse.Builder

setCommitTimestamp(Timestamp value)

public CommitResponse.Builder setCommitTimestamp(Timestamp value)

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CommitResponse.Builder

setCommitTimestamp(Timestamp.Builder builderForValue)

public CommitResponse.Builder setCommitTimestamp(Timestamp.Builder builderForValue)

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CommitResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CommitResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommitResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CommitResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CommitResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CommitResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CommitResponse.Builder
Overrides