public static final class WriteResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder> implements WriteResponseOrBuilder
The response for [Firestore.Write][google.firestore.v1.Firestore.Write].Protobuf type
google.firestore.v1.WriteResponse| Modifier and Type | Method and Description |
|---|---|
WriteResponse.Builder |
addAllWriteResults(Iterable<? extends WriteResult> values)
The result of applying the writes.
|
WriteResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WriteResponse.Builder |
addWriteResults(int index,
WriteResult.Builder builderForValue)
The result of applying the writes.
|
WriteResponse.Builder |
addWriteResults(int index,
WriteResult value)
The result of applying the writes.
|
WriteResponse.Builder |
addWriteResults(WriteResult.Builder builderForValue)
The result of applying the writes.
|
WriteResponse.Builder |
addWriteResults(WriteResult value)
The result of applying the writes.
|
WriteResult.Builder |
addWriteResultsBuilder()
The result of applying the writes.
|
WriteResult.Builder |
addWriteResultsBuilder(int index)
The result of applying the writes.
|
WriteResponse |
build() |
WriteResponse |
buildPartial() |
WriteResponse.Builder |
clear() |
WriteResponse.Builder |
clearCommitTime()
The time at which the commit occurred.
|
WriteResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
WriteResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
WriteResponse.Builder |
clearStreamId()
The ID of the stream.
|
WriteResponse.Builder |
clearStreamToken()
A token that represents the position of this response in the stream.
|
WriteResponse.Builder |
clearWriteResults()
The result of applying the writes.
|
WriteResponse.Builder |
clone() |
com.google.protobuf.Timestamp |
getCommitTime()
The time at which the commit occurred.
|
com.google.protobuf.Timestamp.Builder |
getCommitTimeBuilder()
The time at which the commit occurred.
|
com.google.protobuf.TimestampOrBuilder |
getCommitTimeOrBuilder()
The time at which the commit occurred.
|
WriteResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getStreamId()
The ID of the stream.
|
com.google.protobuf.ByteString |
getStreamIdBytes()
The ID of the stream.
|
com.google.protobuf.ByteString |
getStreamToken()
A token that represents the position of this response in the stream.
|
WriteResult |
getWriteResults(int index)
The result of applying the writes.
|
WriteResult.Builder |
getWriteResultsBuilder(int index)
The result of applying the writes.
|
List<WriteResult.Builder> |
getWriteResultsBuilderList()
The result of applying the writes.
|
int |
getWriteResultsCount()
The result of applying the writes.
|
List<WriteResult> |
getWriteResultsList()
The result of applying the writes.
|
WriteResultOrBuilder |
getWriteResultsOrBuilder(int index)
The result of applying the writes.
|
List<? extends WriteResultOrBuilder> |
getWriteResultsOrBuilderList()
The result of applying the writes.
|
boolean |
hasCommitTime()
The time at which the commit occurred.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
WriteResponse.Builder |
mergeCommitTime(com.google.protobuf.Timestamp value)
The time at which the commit occurred.
|
WriteResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
WriteResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
WriteResponse.Builder |
mergeFrom(WriteResponse other) |
WriteResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WriteResponse.Builder |
removeWriteResults(int index)
The result of applying the writes.
|
WriteResponse.Builder |
setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time at which the commit occurred.
|
WriteResponse.Builder |
setCommitTime(com.google.protobuf.Timestamp value)
The time at which the commit occurred.
|
WriteResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WriteResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
WriteResponse.Builder |
setStreamId(String value)
The ID of the stream.
|
WriteResponse.Builder |
setStreamIdBytes(com.google.protobuf.ByteString value)
The ID of the stream.
|
WriteResponse.Builder |
setStreamToken(com.google.protobuf.ByteString value)
A token that represents the position of this response in the stream.
|
WriteResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WriteResponse.Builder |
setWriteResults(int index,
WriteResult.Builder builderForValue)
The result of applying the writes.
|
WriteResponse.Builder |
setWriteResults(int index,
WriteResult value)
The result of applying the writes.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>public WriteResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>public WriteResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic WriteResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic WriteResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic WriteResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>public WriteResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>public WriteResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>public WriteResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>public WriteResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>public WriteResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>public WriteResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WriteResponse.Builder>public WriteResponse.Builder mergeFrom(WriteResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>public WriteResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WriteResponse.Builder>IOExceptionpublic String getStreamId()
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;getStreamId in interface WriteResponseOrBuilderpublic com.google.protobuf.ByteString getStreamIdBytes()
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;getStreamIdBytes in interface WriteResponseOrBuilderpublic 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;value - The streamId to set.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;public WriteResponse.Builder setStreamIdBytes(com.google.protobuf.ByteString value)
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;value - The bytes for streamId to set.public com.google.protobuf.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;getStreamToken in interface WriteResponseOrBuilderpublic WriteResponse.Builder setStreamToken(com.google.protobuf.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;value - The streamToken to set.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;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;getWriteResultsList in interface WriteResponseOrBuilderpublic 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;getWriteResultsCount in interface WriteResponseOrBuilderpublic 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;getWriteResults in interface WriteResponseOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getWriteResultsOrBuilder in interface WriteResponseOrBuilderpublic 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;getWriteResultsOrBuilderList in interface WriteResponseOrBuilderpublic 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;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;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;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;hasCommitTime in interface WriteResponseOrBuilderpublic com.google.protobuf.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;getCommitTime in interface WriteResponseOrBuilderpublic WriteResponse.Builder setCommitTime(com.google.protobuf.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;public WriteResponse.Builder setCommitTime(com.google.protobuf.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;public WriteResponse.Builder mergeCommitTime(com.google.protobuf.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;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;public com.google.protobuf.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;public com.google.protobuf.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;getCommitTimeOrBuilder in interface WriteResponseOrBuilderpublic final WriteResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>public final WriteResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>Copyright © 2022 Google LLC. All rights reserved.