public final class GetDocumentRequest extends GeneratedMessageV3 implements GetDocumentRequestOrBuilder
The request for [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument].Protobuf type
google.firestore.v1beta1.GetDocumentRequest| Modifier and Type | Class and Description |
|---|---|
static class |
GetDocumentRequest.Builder
The request for [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument].
|
static class |
GetDocumentRequest.ConsistencySelectorCase |
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 |
MASK_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
READ_TIME_FIELD_NUMBER |
static int |
TRANSACTION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int MASK_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public GetDocumentRequest.ConsistencySelectorCase getConsistencySelectorCase()
getConsistencySelectorCase in interface GetDocumentRequestOrBuilderpublic java.lang.String getName()
The resource name of the Document to get. In the format:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string name = 1;getName in interface GetDocumentRequestOrBuilderpublic ByteString getNameBytes()
The resource name of the Document to get. In the format:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string name = 1;getNameBytes in interface GetDocumentRequestOrBuilderpublic boolean hasMask()
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1beta1.DocumentMask mask = 2;hasMask in interface GetDocumentRequestOrBuilderpublic DocumentMask getMask()
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1beta1.DocumentMask mask = 2;getMask in interface GetDocumentRequestOrBuilderpublic DocumentMaskOrBuilder getMaskOrBuilder()
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1beta1.DocumentMask mask = 2;getMaskOrBuilder in interface GetDocumentRequestOrBuilderpublic ByteString getTransaction()
Reads the document in a transaction.
bytes transaction = 3;getTransaction in interface GetDocumentRequestOrBuilderpublic boolean hasReadTime()
Reads the version of the document at the given time. This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 5;hasReadTime in interface GetDocumentRequestOrBuilderpublic Timestamp getReadTime()
Reads the version of the document at the given time. This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 5;getReadTime in interface GetDocumentRequestOrBuilderpublic TimestampOrBuilder getReadTimeOrBuilder()
Reads the version of the document at the given time. This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 5;getReadTimeOrBuilder in interface GetDocumentRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static GetDocumentRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GetDocumentRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GetDocumentRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GetDocumentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GetDocumentRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GetDocumentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static GetDocumentRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static GetDocumentRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static GetDocumentRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static GetDocumentRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static GetDocumentRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static GetDocumentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic GetDocumentRequest.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static GetDocumentRequest.Builder newBuilder()
public static GetDocumentRequest.Builder newBuilder(GetDocumentRequest prototype)
public GetDocumentRequest.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected GetDocumentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static GetDocumentRequest getDefaultInstance()
public static Parser<GetDocumentRequest> parser()
public Parser<GetDocumentRequest> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public GetDocumentRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder