Class CommitResponse.Builder (6.77.0)

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

The response for Commit.

Protobuf type google.spanner.v1.CommitResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommitResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommitResponse.Builder
Overrides

build()

public CommitResponse build()
Returns
Type Description
CommitResponse

buildPartial()

public CommitResponse buildPartial()
Returns
Type Description
CommitResponse

clear()

public CommitResponse.Builder clear()
Returns
Type Description
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
Type Description
CommitResponse.Builder

clearCommitTimestamp()

public CommitResponse.Builder clearCommitTimestamp()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
Type Description
CommitResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public CommitResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CommitResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CommitResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CommitResponse.Builder
Overrides

clone()

public CommitResponse.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
CommitResponse.CommitStatsOrBuilder

getCommitTimestamp()

public Timestamp getCommitTimestamp()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
Type Description
Timestamp

The commitTimestamp.

getCommitTimestampBuilder()

public Timestamp.Builder getCommitTimestampBuilder()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
Type Description
Builder

getCommitTimestampOrBuilder()

public TimestampOrBuilder getCommitTimestampOrBuilder()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CommitResponse getDefaultInstanceForType()
Returns
Type Description
CommitResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the commitTimestamp field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value CommitResponse.CommitStats
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
CommitResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommitResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommitResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CommitResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CommitResponse.Builder
Overrides

mergeFrom(CommitResponse other)

public CommitResponse.Builder mergeFrom(CommitResponse other)
Parameter
Name Description
other CommitResponse
Returns
Type Description
CommitResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommitResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value CommitResponse.CommitStats
Returns
Type Description
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
Name Description
builderForValue CommitResponse.CommitStats.Builder
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
CommitResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CommitResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommitResponse.Builder
Overrides

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

public CommitResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CommitResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CommitResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CommitResponse.Builder
Overrides