Class CommitResponse.Builder (3.30.0)

public static final class CommitResponse.Builder extends GeneratedMessageV3.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

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

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

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

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

clone()

public CommitResponse.Builder clone()
Returns
Type Description
CommitResponse.Builder
Overrides

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommitResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

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

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