public static final class WriteResponse.Builder extends GeneratedMessageV3.Builder<WriteResponse.Builder> implements WriteResponseOrBuilder
The response for Firestore.Write.
Protobuf type google.firestore.v1.WriteResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WriteResponse.BuilderImplements
WriteResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllWriteResults(Iterable<? extends WriteResult> values)
public WriteResponse.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 = 3;
Name | Description |
values | Iterable<? extends com.google.firestore.v1.WriteResult> |
Type | Description |
WriteResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WriteResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
WriteResponse.Builder |
addWriteResults(WriteResult value)
public WriteResponse.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 = 3;
Name | Description |
value | WriteResult |
Type | Description |
WriteResponse.Builder |
addWriteResults(WriteResult.Builder builderForValue)
public WriteResponse.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 = 3;
Name | Description |
builderForValue | WriteResult.Builder |
Type | Description |
WriteResponse.Builder |
addWriteResults(int index, WriteResult value)
public WriteResponse.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 = 3;
Name | Description |
index | int |
value | WriteResult |
Type | Description |
WriteResponse.Builder |
addWriteResults(int index, WriteResult.Builder builderForValue)
public WriteResponse.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 = 3;
Name | Description |
index | int |
builderForValue | WriteResult.Builder |
Type | Description |
WriteResponse.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 = 3;
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 = 3;
Name | Description |
index | int |
Type | Description |
WriteResult.Builder |
build()
public WriteResponse build()
Type | Description |
WriteResponse |
buildPartial()
public WriteResponse buildPartial()
Type | Description |
WriteResponse |
clear()
public WriteResponse.Builder clear()
Type | Description |
WriteResponse.Builder |
clearCommitTime()
public WriteResponse.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 write.
.google.protobuf.Timestamp commit_time = 4;
Type | Description |
WriteResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public WriteResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
WriteResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public WriteResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
WriteResponse.Builder |
clearStreamId()
public WriteResponse.Builder clearStreamId()
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;
Type | Description |
WriteResponse.Builder | This builder for chaining. |
clearStreamToken()
public WriteResponse.Builder clearStreamToken()
A token that represents the position of this response in the stream. This can be used by a client to resume the stream at this point. This field is always set.
bytes stream_token = 2;
Type | Description |
WriteResponse.Builder | This builder for chaining. |
clearWriteResults()
public WriteResponse.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 = 3;
Type | Description |
WriteResponse.Builder |
clone()
public WriteResponse.Builder clone()
Type | Description |
WriteResponse.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 write.
.google.protobuf.Timestamp commit_time = 4;
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 write.
.google.protobuf.Timestamp commit_time = 4;
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 write.
.google.protobuf.Timestamp commit_time = 4;
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public WriteResponse getDefaultInstanceForType()
Type | Description |
WriteResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getStreamId()
public String getStreamId()
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;
Type | Description |
String | The streamId. |
getStreamIdBytes()
public ByteString getStreamIdBytes()
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;
Type | Description |
ByteString | The bytes for streamId. |
getStreamToken()
public ByteString getStreamToken()
A token that represents the position of this response in the stream. This can be used by a client to resume the stream at this point. This field is always set.
bytes stream_token = 2;
Type | Description |
ByteString | The streamToken. |
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 = 3;
Name | Description |
index | int |
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 = 3;
Name | Description |
index | int |
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 = 3;
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 = 3;
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 = 3;
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 = 3;
Name | Description |
index | int |
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 = 3;
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 write.
.google.protobuf.Timestamp commit_time = 4;
Type | Description |
boolean | Whether the commitTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCommitTime(Timestamp value)
public WriteResponse.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 write.
.google.protobuf.Timestamp commit_time = 4;
Name | Description |
value | Timestamp |
Type | Description |
WriteResponse.Builder |
mergeFrom(WriteResponse other)
public WriteResponse.Builder mergeFrom(WriteResponse other)
Name | Description |
other | WriteResponse |
Type | Description |
WriteResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WriteResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
WriteResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public WriteResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
WriteResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WriteResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
WriteResponse.Builder |
removeWriteResults(int index)
public WriteResponse.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 = 3;
Name | Description |
index | int |
Type | Description |
WriteResponse.Builder |
setCommitTime(Timestamp value)
public WriteResponse.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 write.
.google.protobuf.Timestamp commit_time = 4;
Name | Description |
value | Timestamp |
Type | Description |
WriteResponse.Builder |
setCommitTime(Timestamp.Builder builderForValue)
public WriteResponse.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 write.
.google.protobuf.Timestamp commit_time = 4;
Name | Description |
builderForValue | Builder |
Type | Description |
WriteResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public WriteResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
WriteResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WriteResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
WriteResponse.Builder |
setStreamId(String value)
public WriteResponse.Builder setStreamId(String value)
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;
Name | Description |
value | String The streamId to set. |
Type | Description |
WriteResponse.Builder | This builder for chaining. |
setStreamIdBytes(ByteString value)
public WriteResponse.Builder setStreamIdBytes(ByteString value)
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;
Name | Description |
value | ByteString The bytes for streamId to set. |
Type | Description |
WriteResponse.Builder | This builder for chaining. |
setStreamToken(ByteString value)
public WriteResponse.Builder setStreamToken(ByteString value)
A token that represents the position of this response in the stream. This can be used by a client to resume the stream at this point. This field is always set.
bytes stream_token = 2;
Name | Description |
value | ByteString The streamToken to set. |
Type | Description |
WriteResponse.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final WriteResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
WriteResponse.Builder |
setWriteResults(int index, WriteResult value)
public WriteResponse.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 = 3;
Name | Description |
index | int |
value | WriteResult |
Type | Description |
WriteResponse.Builder |
setWriteResults(int index, WriteResult.Builder builderForValue)
public WriteResponse.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 = 3;
Name | Description |
index | int |
builderForValue | WriteResult.Builder |
Type | Description |
WriteResponse.Builder |