Package com.google.firestore.v1
Class WriteResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
com.google.firestore.v1.WriteResponse.Builder
- All Implemented Interfaces:
WriteResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- WriteResponse
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllWriteResults(Iterable<? extends WriteResult> values) The result of applying the writes.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addWriteResults(int index, WriteResult value) The result of applying the writes.addWriteResults(int index, WriteResult.Builder builderForValue) The result of applying the writes.addWriteResults(WriteResult value) The result of applying the writes.addWriteResults(WriteResult.Builder builderForValue) The result of applying the writes.The result of applying the writes.addWriteResultsBuilder(int index) The result of applying the writes.build()clear()The time at which the commit occurred.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The ID of the stream.A token that represents the position of this response in the stream.The result of applying the writes.clone()com.google.protobuf.TimestampThe time at which the commit occurred.com.google.protobuf.Timestamp.BuilderThe time at which the commit occurred.com.google.protobuf.TimestampOrBuilderThe time at which the commit occurred.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe ID of the stream.com.google.protobuf.ByteStringThe ID of the stream.com.google.protobuf.ByteStringA token that represents the position of this response in the stream.getWriteResults(int index) The result of applying the writes.getWriteResultsBuilder(int index) The result of applying the writes.The result of applying the writes.intThe result of applying the writes.The result of applying the writes.getWriteResultsOrBuilder(int index) The result of applying the writes.List<? extends WriteResultOrBuilder>The result of applying the writes.booleanThe time at which the commit occurred.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCommitTime(com.google.protobuf.Timestamp value) The time at which the commit occurred.mergeFrom(WriteResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final WriteResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeWriteResults(int index) The result of applying the writes.setCommitTime(com.google.protobuf.Timestamp value) The time at which the commit occurred.setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which the commit occurred.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStreamId(String value) The ID of the stream.setStreamIdBytes(com.google.protobuf.ByteString value) The ID of the stream.setStreamToken(com.google.protobuf.ByteString value) A token that represents the position of this response in the stream.final WriteResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWriteResults(int index, WriteResult value) The result of applying the writes.setWriteResults(int index, WriteResult.Builder builderForValue) The result of applying the writes.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-
setField
public WriteResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-
setRepeatedField
public WriteResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-
addRepeatedField
public WriteResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WriteResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-
mergeFrom
public WriteResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WriteResponse.Builder>- Throws:
IOException
-
getStreamId
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;- Specified by:
getStreamIdin interfaceWriteResponseOrBuilder- Returns:
- The streamId.
-
getStreamIdBytes
public 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;- Specified by:
getStreamIdBytesin interfaceWriteResponseOrBuilder- Returns:
- The bytes for streamId.
-
setStreamId
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;- Parameters:
value- The streamId to set.- Returns:
- This builder for chaining.
-
clearStreamId
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;- Returns:
- This builder for chaining.
-
setStreamIdBytes
The ID of the stream. Only set on the first message, when a new stream was created.
string stream_id = 1;- Parameters:
value- The bytes for streamId to set.- Returns:
- This builder for chaining.
-
getStreamToken
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;- Specified by:
getStreamTokenin interfaceWriteResponseOrBuilder- Returns:
- The streamToken.
-
setStreamToken
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;- Parameters:
value- The streamToken to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
getWriteResultsListin interfaceWriteResponseOrBuilder
-
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;- Specified by:
getWriteResultsCountin interfaceWriteResponseOrBuilder
-
getWriteResults
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;- Specified by:
getWriteResultsin interfaceWriteResponseOrBuilder
-
setWriteResults
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; -
setWriteResults
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; -
addWriteResults
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; -
addWriteResults
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; -
addWriteResults
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; -
addWriteResults
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; -
addAllWriteResults
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; -
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; -
removeWriteResults
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; -
getWriteResultsBuilder
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
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;- Specified by:
getWriteResultsOrBuilderin interfaceWriteResponseOrBuilder
-
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;- Specified by:
getWriteResultsOrBuilderListin interfaceWriteResponseOrBuilder
-
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; -
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; -
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; -
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;- Specified by:
hasCommitTimein interfaceWriteResponseOrBuilder- Returns:
- Whether the commitTime field is set.
-
getCommitTime
public 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;- Specified by:
getCommitTimein interfaceWriteResponseOrBuilder- Returns:
- The commitTime.
-
setCommitTime
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; -
setCommitTime
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; -
mergeCommitTime
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; -
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; -
getCommitTimeBuilder
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; -
getCommitTimeOrBuilder
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;- Specified by:
getCommitTimeOrBuilderin interfaceWriteResponseOrBuilder
-
setUnknownFields
public final WriteResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-
mergeUnknownFields
public final WriteResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
-