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, 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 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public GetDocumentRequest.ConsistencySelectorCase getConsistencySelectorCase()
getConsistencySelectorCase
in interface GetDocumentRequestOrBuilder
public 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 GetDocumentRequestOrBuilder
public 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 GetDocumentRequestOrBuilder
public 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 GetDocumentRequestOrBuilder
public 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 GetDocumentRequestOrBuilder
public 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 GetDocumentRequestOrBuilder
public ByteString getTransaction()
Reads the document in a transaction.
bytes transaction = 3;
getTransaction
in interface GetDocumentRequestOrBuilder
public 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 GetDocumentRequestOrBuilder
public 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 GetDocumentRequestOrBuilder
public 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 GetDocumentRequestOrBuilder
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 GetDocumentRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GetDocumentRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GetDocumentRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GetDocumentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GetDocumentRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GetDocumentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GetDocumentRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static GetDocumentRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static GetDocumentRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static GetDocumentRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static GetDocumentRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static GetDocumentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public GetDocumentRequest.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static GetDocumentRequest.Builder newBuilder()
public static GetDocumentRequest.Builder newBuilder(GetDocumentRequest prototype)
public GetDocumentRequest.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected GetDocumentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static GetDocumentRequest getDefaultInstance()
public static Parser<GetDocumentRequest> parser()
public Parser<GetDocumentRequest> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public GetDocumentRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder