Package com.google.firestore.v1
Class BatchGetDocumentsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
com.google.firestore.v1.BatchGetDocumentsRequest.Builder
- All Implemented Interfaces:
BatchGetDocumentsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchGetDocumentsRequest
public static final class BatchGetDocumentsRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
implements BatchGetDocumentsRequestOrBuilder
The request for [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].Protobuf type
google.firestore.v1.BatchGetDocumentsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllDocuments(Iterable<String> values) The names of the documents to retrieve.addDocuments(String value) The names of the documents to retrieve.addDocumentsBytes(com.google.protobuf.ByteString value) The names of the documents to retrieve.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Required.The names of the documents to retrieve.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The fields to return.Starts a new transaction and reads the documents.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Reads documents as they were at the given time.Reads documents in a transaction.clone()Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.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.The fields to return.Starts a new transaction and reads the documents.Starts a new transaction and reads the documents.Starts a new transaction and reads the documents.com.google.protobuf.TimestampReads documents as they were at the given time.com.google.protobuf.Timestamp.BuilderReads documents as they were at the given time.com.google.protobuf.TimestampOrBuilderReads documents as they were at the given time.com.google.protobuf.ByteStringReads documents in a transaction.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 booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMask(DocumentMask value) The fields to return.Starts a new transaction and reads the documents.mergeReadTime(com.google.protobuf.Timestamp value) Reads documents as they were at the given time.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDatabase(String value) Required.setDatabaseBytes(com.google.protobuf.ByteString value) Required.setDocuments(int index, String value) The names of the documents to retrieve.setMask(DocumentMask value) The fields to return.setMask(DocumentMask.Builder builderForValue) The fields to return.Starts a new transaction and reads the documents.setNewTransaction(TransactionOptions.Builder builderForValue) Starts a new transaction and reads the documents.setReadTime(com.google.protobuf.Timestamp value) Reads documents as they were at the given time.setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) Reads documents as they were at the given time.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTransaction(com.google.protobuf.ByteString value) Reads documents in a transaction.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<BatchGetDocumentsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
-
setField
public BatchGetDocumentsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
-
clearField
public BatchGetDocumentsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
-
clearOneof
public BatchGetDocumentsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
-
setRepeatedField
public BatchGetDocumentsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
-
addRepeatedField
public BatchGetDocumentsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchGetDocumentsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
-
mergeFrom
public BatchGetDocumentsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchGetDocumentsRequest.Builder>- Throws:
IOException
-
getConsistencySelectorCase
- Specified by:
getConsistencySelectorCasein interfaceBatchGetDocumentsRequestOrBuilder
-
clearConsistencySelector
-
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.
-
setDatabase
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.string database = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The database to set.- Returns:
- This builder for chaining.
-
clearDatabase
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.string database = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDatabaseBytes
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.string database = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for database to set.- Returns:
- This builder for chaining.
-
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.
-
setDocuments
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;- Parameters:
index- The index to set the value at.value- The documents to set.- Returns:
- This builder for chaining.
-
addDocuments
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;- Parameters:
value- The documents to add.- Returns:
- This builder for chaining.
-
addAllDocuments
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;- Parameters:
values- The documents to add.- Returns:
- This builder for chaining.
-
clearDocuments
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;- Returns:
- This builder for chaining.
-
addDocumentsBytes
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;- Parameters:
value- The bytes of the documents to add.- Returns:
- This builder for chaining.
-
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.
-
setMask
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; -
setMask
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; -
mergeMask
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; -
clearMask
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; -
getMaskBuilder
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; -
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.
-
setTransaction
Reads documents in a transaction.
bytes transaction = 4;- Parameters:
value- The transaction to set.- Returns:
- This builder for chaining.
-
clearTransaction
Reads documents in a transaction.
bytes transaction = 4;- Returns:
- This builder for chaining.
-
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.
-
setNewTransaction
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; -
setNewTransaction
public BatchGetDocumentsRequest.Builder setNewTransaction(TransactionOptions.Builder builderForValue) 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; -
mergeNewTransaction
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; -
clearNewTransaction
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; -
getNewTransactionBuilder
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; -
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.
-
setReadTime
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; -
setReadTime
public BatchGetDocumentsRequest.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) 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; -
mergeReadTime
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; -
clearReadTime
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; -
getReadTimeBuilder
public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()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; -
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
-
setUnknownFields
public final BatchGetDocumentsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
-
mergeUnknownFields
public final BatchGetDocumentsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetDocumentsRequest.Builder>
-