Package com.google.firestore.v1
Class RunQueryRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
com.google.firestore.v1.RunQueryRequest.Builder
- All Implemented Interfaces:
RunQueryRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RunQueryRequest
public static final class RunQueryRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
implements RunQueryRequestOrBuilder
The request for [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery].Protobuf type
google.firestore.v1.RunQueryRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Optional.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Starts a new transaction and reads the documents.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Required.Reads documents as they were at the given time.A structured query.Run the query within an already active transaction.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Starts a new transaction and reads the documents.Starts a new transaction and reads the documents.Starts a new transaction and reads the documents.Required.com.google.protobuf.ByteStringRequired.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.A structured query.A structured query.A structured query.com.google.protobuf.ByteStringRun the query within an already active transaction.booleanOptional.booleanStarts a new transaction and reads the documents.booleanReads documents as they were at the given time.booleanA structured query.booleanRun the query within an already active transaction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanOptional.mergeFrom(RunQueryRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Starts a new transaction and reads the documents.mergeReadTime(com.google.protobuf.Timestamp value) Reads documents as they were at the given time.A structured query.final RunQueryRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setExplainOptions(ExplainOptions value) Optional.setExplainOptions(ExplainOptions.Builder builderForValue) Optional.Starts a new transaction and reads the documents.setNewTransaction(TransactionOptions.Builder builderForValue) Starts a new transaction and reads the documents.Required.setParentBytes(com.google.protobuf.ByteString value) Required.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) A structured query.setStructuredQuery(StructuredQuery.Builder builderForValue) A structured query.setTransaction(com.google.protobuf.ByteString value) Run the query within an already active transaction.final RunQueryRequest.BuildersetUnknownFields(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<RunQueryRequest.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<RunQueryRequest.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<RunQueryRequest.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<RunQueryRequest.Builder>
-
setField
public RunQueryRequest.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<RunQueryRequest.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
-
setRepeatedField
public RunQueryRequest.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<RunQueryRequest.Builder>
-
addRepeatedField
public RunQueryRequest.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<RunQueryRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RunQueryRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
-
mergeFrom
public RunQueryRequest.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<RunQueryRequest.Builder>- Throws:
IOException
-
getQueryTypeCase
- Specified by:
getQueryTypeCasein interfaceRunQueryRequestOrBuilder
-
clearQueryType
-
getConsistencySelectorCase
- Specified by:
getConsistencySelectorCasein interfaceRunQueryRequestOrBuilder
-
clearConsistencySelector
-
getParent
Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParentin interfaceRunQueryRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParentBytesin interfaceRunQueryRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setParentBytes
Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasStructuredQuery
public boolean hasStructuredQuery()A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2;- Specified by:
hasStructuredQueryin interfaceRunQueryRequestOrBuilder- Returns:
- Whether the structuredQuery field is set.
-
getStructuredQuery
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2;- Specified by:
getStructuredQueryin interfaceRunQueryRequestOrBuilder- Returns:
- The structuredQuery.
-
setStructuredQuery
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2; -
setStructuredQuery
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2; -
mergeStructuredQuery
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2; -
clearStructuredQuery
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2; -
getStructuredQueryBuilder
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2; -
getStructuredQueryOrBuilder
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2;- Specified by:
getStructuredQueryOrBuilderin interfaceRunQueryRequestOrBuilder
-
hasTransaction
public boolean hasTransaction()Run the query within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 5;- Specified by:
hasTransactionin interfaceRunQueryRequestOrBuilder- Returns:
- Whether the transaction field is set.
-
getTransaction
public com.google.protobuf.ByteString getTransaction()Run the query within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 5;- Specified by:
getTransactionin interfaceRunQueryRequestOrBuilder- Returns:
- The transaction.
-
setTransaction
Run the query within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 5;- Parameters:
value- The transaction to set.- Returns:
- This builder for chaining.
-
clearTransaction
Run the query within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 5;- 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 = 6;- Specified by:
hasNewTransactionin interfaceRunQueryRequestOrBuilder- 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 = 6;- Specified by:
getNewTransactionin interfaceRunQueryRequestOrBuilder- 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 = 6; -
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 = 6; -
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 = 6; -
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 = 6; -
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 = 6; -
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 = 6;- Specified by:
getNewTransactionOrBuilderin interfaceRunQueryRequestOrBuilder
-
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 interfaceRunQueryRequestOrBuilder- 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 interfaceRunQueryRequestOrBuilder- 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
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 interfaceRunQueryRequestOrBuilder
-
hasExplainOptions
public boolean hasExplainOptions()Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasExplainOptionsin interfaceRunQueryRequestOrBuilder- Returns:
- Whether the explainOptions field is set.
-
getExplainOptions
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExplainOptionsin interfaceRunQueryRequestOrBuilder- Returns:
- The explainOptions.
-
setExplainOptions
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL]; -
setExplainOptions
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL]; -
mergeExplainOptions
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL]; -
clearExplainOptions
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getExplainOptionsBuilder
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getExplainOptionsOrBuilder
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExplainOptionsOrBuilderin interfaceRunQueryRequestOrBuilder
-
setUnknownFields
public final RunQueryRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
-
mergeUnknownFields
public final RunQueryRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
-