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
Modifier and Type | Method and Description |
---|---|
RunQueryRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RunQueryRequest |
build() |
RunQueryRequest |
buildPartial() |
RunQueryRequest.Builder |
clear() |
RunQueryRequest.Builder |
clearConsistencySelector() |
RunQueryRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RunQueryRequest.Builder |
clearNewTransaction()
Starts a new transaction and reads the documents.
|
RunQueryRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RunQueryRequest.Builder |
clearParent()
Required.
|
RunQueryRequest.Builder |
clearQueryType() |
RunQueryRequest.Builder |
clearReadTime()
Reads documents as they were at the given time.
|
RunQueryRequest.Builder |
clearStructuredQuery()
A structured query.
|
RunQueryRequest.Builder |
clearTransaction()
Run the query within an already active transaction.
|
RunQueryRequest.Builder |
clone() |
RunQueryRequest.ConsistencySelectorCase |
getConsistencySelectorCase() |
RunQueryRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TransactionOptions |
getNewTransaction()
Starts a new transaction and reads the documents.
|
TransactionOptions.Builder |
getNewTransactionBuilder()
Starts a new transaction and reads the documents.
|
TransactionOptionsOrBuilder |
getNewTransactionOrBuilder()
Starts a new transaction and reads the documents.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
RunQueryRequest.QueryTypeCase |
getQueryTypeCase() |
com.google.protobuf.Timestamp |
getReadTime()
Reads documents as they were at the given time.
|
com.google.protobuf.Timestamp.Builder |
getReadTimeBuilder()
Reads documents as they were at the given time.
|
com.google.protobuf.TimestampOrBuilder |
getReadTimeOrBuilder()
Reads documents as they were at the given time.
|
StructuredQuery |
getStructuredQuery()
A structured query.
|
StructuredQuery.Builder |
getStructuredQueryBuilder()
A structured query.
|
StructuredQueryOrBuilder |
getStructuredQueryOrBuilder()
A structured query.
|
com.google.protobuf.ByteString |
getTransaction()
Run the query within an already active transaction.
|
boolean |
hasNewTransaction()
Starts a new transaction and reads the documents.
|
boolean |
hasReadTime()
Reads documents as they were at the given time.
|
boolean |
hasStructuredQuery()
A structured query.
|
boolean |
hasTransaction()
Run the query within an already active transaction.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RunQueryRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RunQueryRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
RunQueryRequest.Builder |
mergeFrom(RunQueryRequest other) |
RunQueryRequest.Builder |
mergeNewTransaction(TransactionOptions value)
Starts a new transaction and reads the documents.
|
RunQueryRequest.Builder |
mergeReadTime(com.google.protobuf.Timestamp value)
Reads documents as they were at the given time.
|
RunQueryRequest.Builder |
mergeStructuredQuery(StructuredQuery value)
A structured query.
|
RunQueryRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RunQueryRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RunQueryRequest.Builder |
setNewTransaction(TransactionOptions.Builder builderForValue)
Starts a new transaction and reads the documents.
|
RunQueryRequest.Builder |
setNewTransaction(TransactionOptions value)
Starts a new transaction and reads the documents.
|
RunQueryRequest.Builder |
setParent(String value)
Required.
|
RunQueryRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Required.
|
RunQueryRequest.Builder |
setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
Reads documents as they were at the given time.
|
RunQueryRequest.Builder |
setReadTime(com.google.protobuf.Timestamp value)
Reads documents as they were at the given time.
|
RunQueryRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RunQueryRequest.Builder |
setStructuredQuery(StructuredQuery.Builder builderForValue)
A structured query.
|
RunQueryRequest.Builder |
setStructuredQuery(StructuredQuery value)
A structured query.
|
RunQueryRequest.Builder |
setTransaction(com.google.protobuf.ByteString value)
Run the query within an already active transaction.
|
RunQueryRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
public RunQueryRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
public RunQueryRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public RunQueryRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public RunQueryRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public RunQueryRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
public RunQueryRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
public RunQueryRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
public RunQueryRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
public RunQueryRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
public RunQueryRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
public RunQueryRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RunQueryRequest.Builder>
public RunQueryRequest.Builder mergeFrom(RunQueryRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
public RunQueryRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RunQueryRequest.Builder>
IOException
public RunQueryRequest.QueryTypeCase getQueryTypeCase()
getQueryTypeCase
in interface RunQueryRequestOrBuilder
public RunQueryRequest.Builder clearQueryType()
public RunQueryRequest.ConsistencySelectorCase getConsistencySelectorCase()
getConsistencySelectorCase
in interface RunQueryRequestOrBuilder
public RunQueryRequest.Builder clearConsistencySelector()
public String 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];
getParent
in interface RunQueryRequestOrBuilder
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];
getParentBytes
in interface RunQueryRequestOrBuilder
public RunQueryRequest.Builder setParent(String value)
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];
value
- The parent to set.public RunQueryRequest.Builder 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];
public RunQueryRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
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];
value
- The bytes for parent to set.public boolean hasStructuredQuery()
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2;
hasStructuredQuery
in interface RunQueryRequestOrBuilder
public StructuredQuery getStructuredQuery()
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2;
getStructuredQuery
in interface RunQueryRequestOrBuilder
public RunQueryRequest.Builder setStructuredQuery(StructuredQuery value)
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2;
public RunQueryRequest.Builder setStructuredQuery(StructuredQuery.Builder builderForValue)
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2;
public RunQueryRequest.Builder mergeStructuredQuery(StructuredQuery value)
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2;
public RunQueryRequest.Builder clearStructuredQuery()
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2;
public StructuredQuery.Builder getStructuredQueryBuilder()
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2;
public StructuredQueryOrBuilder getStructuredQueryOrBuilder()
A structured query.
.google.firestore.v1.StructuredQuery structured_query = 2;
getStructuredQueryOrBuilder
in interface RunQueryRequestOrBuilder
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;
hasTransaction
in interface RunQueryRequestOrBuilder
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;
getTransaction
in interface RunQueryRequestOrBuilder
public RunQueryRequest.Builder setTransaction(com.google.protobuf.ByteString value)
Run the query within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 5;
value
- The transaction to set.public RunQueryRequest.Builder 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;
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;
hasNewTransaction
in interface RunQueryRequestOrBuilder
public TransactionOptions 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;
getNewTransaction
in interface RunQueryRequestOrBuilder
public RunQueryRequest.Builder setNewTransaction(TransactionOptions value)
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;
public RunQueryRequest.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 = 6;
public RunQueryRequest.Builder mergeNewTransaction(TransactionOptions value)
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;
public RunQueryRequest.Builder 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;
public TransactionOptions.Builder 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;
public TransactionOptionsOrBuilder 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;
getNewTransactionOrBuilder
in interface RunQueryRequestOrBuilder
public boolean hasReadTime()
Reads documents as they were at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 7;
hasReadTime
in interface RunQueryRequestOrBuilder
public com.google.protobuf.Timestamp getReadTime()
Reads documents as they were at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 7;
getReadTime
in interface RunQueryRequestOrBuilder
public RunQueryRequest.Builder setReadTime(com.google.protobuf.Timestamp value)
Reads documents as they were at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 7;
public RunQueryRequest.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
Reads documents as they were at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 7;
public RunQueryRequest.Builder mergeReadTime(com.google.protobuf.Timestamp value)
Reads documents as they were at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 7;
public RunQueryRequest.Builder clearReadTime()
Reads documents as they were at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 7;
public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()
Reads documents as they were at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 7;
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()
Reads documents as they were at the given time. This may not be older than 270 seconds.
.google.protobuf.Timestamp read_time = 7;
getReadTimeOrBuilder
in interface RunQueryRequestOrBuilder
public final RunQueryRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
public final RunQueryRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RunQueryRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.