Class CommitResponse.Builder (3.3.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.firestore.v1.WriteResult>
Returns
TypeDescription
CommitResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommitResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueWriteResult
Returns
TypeDescription
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
NameDescription
builderForValueWriteResult.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueWriteResult
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWriteResult.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
WriteResult.Builder

build()

public CommitResponse build()
Returns
TypeDescription
CommitResponse

buildPartial()

public CommitResponse buildPartial()
Returns
TypeDescription
CommitResponse

clear()

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

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
TypeDescription
CommitResponse.Builder

clone()

public CommitResponse.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public CommitResponse getDefaultInstanceForType()
Returns
TypeDescription
CommitResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the commitTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
CommitResponse.Builder

mergeFrom(CommitResponse other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommitResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
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

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
NameDescription
indexint
valueWriteResult
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWriteResult.Builder
Returns
TypeDescription
CommitResponse.Builder