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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
public WriteResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public WriteResponse build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public WriteResponse buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public WriteResponse.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<WriteResponse.Builder>
IOException
public 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 WriteResponseOrBuilder
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;
getStreamIdBytes
in interface WriteResponseOrBuilder
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;
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 WriteResponseOrBuilder
public 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 WriteResponseOrBuilder
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;
getWriteResultsCount
in interface WriteResponseOrBuilder
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;
getWriteResults
in interface WriteResponseOrBuilder
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;
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 WriteResponseOrBuilder
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;
getWriteResultsOrBuilderList
in interface WriteResponseOrBuilder
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;
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 WriteResponseOrBuilder
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;
getCommitTime
in interface WriteResponseOrBuilder
public 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 WriteResponseOrBuilder
public final WriteResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
Copyright © 2023 Google LLC. All rights reserved.