public final class WriteResponse extends GeneratedMessageV3 implements WriteResponseOrBuilder
The response for [Firestore.Write][google.firestore.v1beta1.Firestore.Write].Protobuf type
google.firestore.v1beta1.WriteResponse
Modifier and Type | Class and Description |
---|---|
static class |
WriteResponse.Builder
The response for [Firestore.Write][google.firestore.v1beta1.Firestore.Write].
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
COMMIT_TIME_FIELD_NUMBER |
static int |
STREAM_ID_FIELD_NUMBER |
static int |
STREAM_TOKEN_FIELD_NUMBER |
static int |
WRITE_RESULTS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int STREAM_ID_FIELD_NUMBER
public static final int STREAM_TOKEN_FIELD_NUMBER
public static final int WRITE_RESULTS_FIELD_NUMBER
public static final int COMMIT_TIME_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.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 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 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 java.util.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.v1beta1.WriteResult write_results = 3;
getWriteResultsList
in interface WriteResponseOrBuilder
public java.util.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.v1beta1.WriteResult write_results = 3;
getWriteResultsOrBuilderList
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.v1beta1.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.v1beta1.WriteResult write_results = 3;
getWriteResults
in interface WriteResponseOrBuilder
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.v1beta1.WriteResult write_results = 3;
getWriteResultsOrBuilder
in interface WriteResponseOrBuilder
public boolean hasCommitTime()
The time at which the commit occurred.
.google.protobuf.Timestamp commit_time = 4;
hasCommitTime
in interface WriteResponseOrBuilder
public Timestamp getCommitTime()
The time at which the commit occurred.
.google.protobuf.Timestamp commit_time = 4;
getCommitTime
in interface WriteResponseOrBuilder
public TimestampOrBuilder getCommitTimeOrBuilder()
The time at which the commit occurred.
.google.protobuf.Timestamp commit_time = 4;
getCommitTimeOrBuilder
in interface WriteResponseOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static WriteResponse parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WriteResponse parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WriteResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WriteResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WriteResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WriteResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WriteResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static WriteResponse parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static WriteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static WriteResponse parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static WriteResponse parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static WriteResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public WriteResponse.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static WriteResponse.Builder newBuilder()
public static WriteResponse.Builder newBuilder(WriteResponse prototype)
public WriteResponse.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected WriteResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static WriteResponse getDefaultInstance()
public static Parser<WriteResponse> parser()
public Parser<WriteResponse> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public WriteResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder