Package com.google.firestore.v1
Class BatchGetDocumentsRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.firestore.v1.BatchGetDocumentsRequest
- All Implemented Interfaces:
BatchGetDocumentsRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class BatchGetDocumentsRequest
extends com.google.protobuf.GeneratedMessageV3
implements BatchGetDocumentsRequestOrBuilder
The request for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].Protobuf type
google.firestore.v1.BatchGetDocumentsRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe request for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanRequired.com.google.protobuf.ByteStringRequired.static BatchGetDocumentsRequeststatic final com.google.protobuf.Descriptors.DescriptorgetDocuments(int index) The names of the documents to retrieve.com.google.protobuf.ByteStringgetDocumentsBytes(int index) The names of the documents to retrieve.intThe names of the documents to retrieve.com.google.protobuf.ProtocolStringListThe names of the documents to retrieve.getMask()The fields to return.The fields to return.Starts a new transaction and reads the documents.Starts a new transaction and reads the documents.com.google.protobuf.Parser<BatchGetDocumentsRequest>com.google.protobuf.TimestampReads documents as they were at the given time.com.google.protobuf.TimestampOrBuilderReads documents as they were at the given time.intcom.google.protobuf.ByteStringReads documents in a transaction.inthashCode()booleanhasMask()The fields to return.booleanStarts a new transaction and reads the documents.booleanReads documents as they were at the given time.booleanReads documents in a transaction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(BatchGetDocumentsRequest prototype) protected BatchGetDocumentsRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static BatchGetDocumentsRequestparseDelimitedFrom(InputStream input) static BatchGetDocumentsRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchGetDocumentsRequestparseFrom(byte[] data) static BatchGetDocumentsRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchGetDocumentsRequestparseFrom(com.google.protobuf.ByteString data) static BatchGetDocumentsRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchGetDocumentsRequestparseFrom(com.google.protobuf.CodedInputStream input) static BatchGetDocumentsRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchGetDocumentsRequestparseFrom(InputStream input) static BatchGetDocumentsRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchGetDocumentsRequestparseFrom(ByteBuffer data) static BatchGetDocumentsRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BatchGetDocumentsRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DATABASE_FIELD_NUMBER
public static final int DATABASE_FIELD_NUMBER- See Also:
-
DOCUMENTS_FIELD_NUMBER
public static final int DOCUMENTS_FIELD_NUMBER- See Also:
-
MASK_FIELD_NUMBER
public static final int MASK_FIELD_NUMBER- See Also:
-
TRANSACTION_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER- See Also:
-
NEW_TRANSACTION_FIELD_NUMBER
public static final int NEW_TRANSACTION_FIELD_NUMBER- See Also:
-
READ_TIME_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getConsistencySelectorCase
- Specified by:
getConsistencySelectorCasein interfaceBatchGetDocumentsRequestOrBuilder
-
getDatabase
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.string database = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatabasein interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- The database.
-
getDatabaseBytes
public com.google.protobuf.ByteString getDatabaseBytes()Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.string database = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatabaseBytesin interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- The bytes for database.
-
getDocumentsList
public com.google.protobuf.ProtocolStringList getDocumentsList()The names of the documents to retrieve. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. The request will fail if any of the document is not a child resource of the given `database`. Duplicate names will be elided.repeated string documents = 2;- Specified by:
getDocumentsListin interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- A list containing the documents.
-
getDocumentsCount
public int getDocumentsCount()The names of the documents to retrieve. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. The request will fail if any of the document is not a child resource of the given `database`. Duplicate names will be elided.repeated string documents = 2;- Specified by:
getDocumentsCountin interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- The count of documents.
-
getDocuments
The names of the documents to retrieve. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. The request will fail if any of the document is not a child resource of the given `database`. Duplicate names will be elided.repeated string documents = 2;- Specified by:
getDocumentsin interfaceBatchGetDocumentsRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The documents at the given index.
-
getDocumentsBytes
public com.google.protobuf.ByteString getDocumentsBytes(int index) The names of the documents to retrieve. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. The request will fail if any of the document is not a child resource of the given `database`. Duplicate names will be elided.repeated string documents = 2;- Specified by:
getDocumentsBytesin interfaceBatchGetDocumentsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the documents at the given index.
-
hasMask
public boolean hasMask()The fields to return. If not set, returns all fields. If a document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 3;- Specified by:
hasMaskin interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- Whether the mask field is set.
-
getMask
The fields to return. If not set, returns all fields. If a document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 3;- Specified by:
getMaskin interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- The mask.
-
getMaskOrBuilder
The fields to return. If not set, returns all fields. If a document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 3;- Specified by:
getMaskOrBuilderin interfaceBatchGetDocumentsRequestOrBuilder
-
hasTransaction
public boolean hasTransaction()Reads documents in a transaction.
bytes transaction = 4;- Specified by:
hasTransactionin interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- Whether the transaction field is set.
-
getTransaction
public com.google.protobuf.ByteString getTransaction()Reads documents in a transaction.
bytes transaction = 4;- Specified by:
getTransactionin interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- The transaction.
-
hasNewTransaction
public boolean hasNewTransaction()Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;- Specified by:
hasNewTransactionin interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- Whether the newTransaction field is set.
-
getNewTransaction
Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;- Specified by:
getNewTransactionin interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- The newTransaction.
-
getNewTransactionOrBuilder
Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;- Specified by:
getNewTransactionOrBuilderin interfaceBatchGetDocumentsRequestOrBuilder
-
hasReadTime
public boolean hasReadTime()Reads documents as they were at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 7;- Specified by:
hasReadTimein interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- Whether the readTime field is set.
-
getReadTime
public com.google.protobuf.Timestamp getReadTime()Reads documents as they were at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 7;- Specified by:
getReadTimein interfaceBatchGetDocumentsRequestOrBuilder- Returns:
- The readTime.
-
getReadTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()Reads documents as they were at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 7;- Specified by:
getReadTimeOrBuilderin interfaceBatchGetDocumentsRequestOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BatchGetDocumentsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchGetDocumentsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchGetDocumentsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchGetDocumentsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchGetDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchGetDocumentsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BatchGetDocumentsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BatchGetDocumentsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static BatchGetDocumentsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static BatchGetDocumentsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BatchGetDocumentsRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-