Class CommitResponse.Builder (3.36.0)

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

The response for Firestore.Commit.

Protobuf type google.firestore.v1.CommitResponse

Static Methods

getDescriptor()

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

Methods

addAllWriteResults(Iterable<? extends WriteResult> values)

public CommitResponse.Builder addAllWriteResults(Iterable<? extends WriteResult> values)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameter
Name Description
values Iterable<? extends com.google.firestore.v1.WriteResult>
Returns
Type Description
CommitResponse.Builder

addWriteResults(WriteResult value)

public CommitResponse.Builder addWriteResults(WriteResult value)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameter
Name Description
value WriteResult
Returns
Type Description
CommitResponse.Builder

addWriteResults(WriteResult.Builder builderForValue)

public CommitResponse.Builder addWriteResults(WriteResult.Builder builderForValue)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameter
Name Description
builderForValue WriteResult.Builder
Returns
Type Description
CommitResponse.Builder

addWriteResults(int index, WriteResult value)

public CommitResponse.Builder addWriteResults(int index, WriteResult value)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameters
Name Description
index int
value WriteResult
Returns
Type Description
CommitResponse.Builder

addWriteResults(int index, WriteResult.Builder builderForValue)

public CommitResponse.Builder addWriteResults(int index, WriteResult.Builder builderForValue)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameters
Name Description
index int
builderForValue WriteResult.Builder
Returns
Type Description
CommitResponse.Builder

addWriteResultsBuilder()

public WriteResult.Builder addWriteResultsBuilder()

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Returns
Type Description
WriteResult.Builder

addWriteResultsBuilder(int index)

public WriteResult.Builder addWriteResultsBuilder(int index)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameter
Name Description
index int
Returns
Type Description
WriteResult.Builder

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

clearCommitTime()

public CommitResponse.Builder clearCommitTime()

The time at which the commit occurred. Any read with an equal or greater read_time is guaranteed to see the effects of the commit.

.google.protobuf.Timestamp commit_time = 2;

Returns
Type Description
CommitResponse.Builder

clearWriteResults()

public CommitResponse.Builder clearWriteResults()

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Returns
Type Description
CommitResponse.Builder

getCommitTime()

public Timestamp getCommitTime()

The time at which the commit occurred. Any read with an equal or greater read_time is guaranteed to see the effects of the commit.

.google.protobuf.Timestamp commit_time = 2;

Returns
Type Description
Timestamp

The commitTime.

getCommitTimeBuilder()

public Timestamp.Builder getCommitTimeBuilder()

The time at which the commit occurred. Any read with an equal or greater read_time is guaranteed to see the effects of the commit.

.google.protobuf.Timestamp commit_time = 2;

Returns
Type Description
Builder

getCommitTimeOrBuilder()

public TimestampOrBuilder getCommitTimeOrBuilder()

The time at which the commit occurred. Any read with an equal or greater read_time is guaranteed to see the effects of the commit.

.google.protobuf.Timestamp commit_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CommitResponse getDefaultInstanceForType()
Returns
Type Description
CommitResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getWriteResults(int index)

public WriteResult getWriteResults(int index)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameter
Name Description
index int
Returns
Type Description
WriteResult

getWriteResultsBuilder(int index)

public WriteResult.Builder getWriteResultsBuilder(int index)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameter
Name Description
index int
Returns
Type Description
WriteResult.Builder

getWriteResultsBuilderList()

public List<WriteResult.Builder> getWriteResultsBuilderList()

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Returns
Type Description
List<Builder>

getWriteResultsCount()

public int getWriteResultsCount()

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Returns
Type Description
int

getWriteResultsList()

public List<WriteResult> getWriteResultsList()

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Returns
Type Description
List<WriteResult>

getWriteResultsOrBuilder(int index)

public WriteResultOrBuilder getWriteResultsOrBuilder(int index)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameter
Name Description
index int
Returns
Type Description
WriteResultOrBuilder

getWriteResultsOrBuilderList()

public List<? extends WriteResultOrBuilder> getWriteResultsOrBuilderList()

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Returns
Type Description
List<? extends com.google.firestore.v1.WriteResultOrBuilder>

hasCommitTime()

public boolean hasCommitTime()

The time at which the commit occurred. Any read with an equal or greater read_time is guaranteed to see the effects of the commit.

.google.protobuf.Timestamp commit_time = 2;

Returns
Type Description
boolean

Whether the commitTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCommitTime(Timestamp value)

public CommitResponse.Builder mergeCommitTime(Timestamp value)

The time at which the commit occurred. Any read with an equal or greater read_time is guaranteed to see the effects of the commit.

.google.protobuf.Timestamp commit_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
CommitResponse.Builder

mergeFrom(CommitResponse other)

public CommitResponse.Builder mergeFrom(CommitResponse other)
Parameter
Name Description
other CommitResponse
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

removeWriteResults(int index)

public CommitResponse.Builder removeWriteResults(int index)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameter
Name Description
index int
Returns
Type Description
CommitResponse.Builder

setCommitTime(Timestamp value)

public CommitResponse.Builder setCommitTime(Timestamp value)

The time at which the commit occurred. Any read with an equal or greater read_time is guaranteed to see the effects of the commit.

.google.protobuf.Timestamp commit_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
CommitResponse.Builder

setCommitTime(Timestamp.Builder builderForValue)

public CommitResponse.Builder setCommitTime(Timestamp.Builder builderForValue)

The time at which the commit occurred. Any read with an equal or greater read_time is guaranteed to see the effects of the commit.

.google.protobuf.Timestamp commit_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CommitResponse.Builder

setWriteResults(int index, WriteResult value)

public CommitResponse.Builder setWriteResults(int index, WriteResult value)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameters
Name Description
index int
value WriteResult
Returns
Type Description
CommitResponse.Builder

setWriteResults(int index, WriteResult.Builder builderForValue)

public CommitResponse.Builder setWriteResults(int index, WriteResult.Builder builderForValue)

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

repeated .google.firestore.v1.WriteResult write_results = 1;

Parameters
Name Description
index int
builderForValue WriteResult.Builder
Returns
Type Description
CommitResponse.Builder