public static final class RunAggregationQueryRequest.Builder extends GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder> implements RunAggregationQueryRequestOrBuilder
The request for Firestore.RunAggregationQuery.
Protobuf type google.firestore.v1.RunAggregationQueryRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RunAggregationQueryRequest.BuilderImplements
RunAggregationQueryRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RunAggregationQueryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
RunAggregationQueryRequest.Builder |
build()
public RunAggregationQueryRequest build()
Type | Description |
RunAggregationQueryRequest |
buildPartial()
public RunAggregationQueryRequest buildPartial()
Type | Description |
RunAggregationQueryRequest |
clear()
public RunAggregationQueryRequest.Builder clear()
Type | Description |
RunAggregationQueryRequest.Builder |
clearConsistencySelector()
public RunAggregationQueryRequest.Builder clearConsistencySelector()
Type | Description |
RunAggregationQueryRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public RunAggregationQueryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
RunAggregationQueryRequest.Builder |
clearNewTransaction()
public RunAggregationQueryRequest.Builder clearNewTransaction()
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;
Type | Description |
RunAggregationQueryRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public RunAggregationQueryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
RunAggregationQueryRequest.Builder |
clearParent()
public RunAggregationQueryRequest.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];
Type | Description |
RunAggregationQueryRequest.Builder | This builder for chaining. |
clearQueryType()
public RunAggregationQueryRequest.Builder clearQueryType()
Type | Description |
RunAggregationQueryRequest.Builder |
clearReadTime()
public RunAggregationQueryRequest.Builder clearReadTime()
Executes the query at the given timestamp. Requires:
- Cannot be more than 270 seconds in the past.
.google.protobuf.Timestamp read_time = 6;
Type | Description |
RunAggregationQueryRequest.Builder |
clearStructuredAggregationQuery()
public RunAggregationQueryRequest.Builder clearStructuredAggregationQuery()
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
Type | Description |
RunAggregationQueryRequest.Builder |
clearTransaction()
public RunAggregationQueryRequest.Builder clearTransaction()
Run the aggregation within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 4;
Type | Description |
RunAggregationQueryRequest.Builder | This builder for chaining. |
clone()
public RunAggregationQueryRequest.Builder clone()
Type | Description |
RunAggregationQueryRequest.Builder |
getConsistencySelectorCase()
public RunAggregationQueryRequest.ConsistencySelectorCase getConsistencySelectorCase()
Type | Description |
RunAggregationQueryRequest.ConsistencySelectorCase |
getDefaultInstanceForType()
public RunAggregationQueryRequest getDefaultInstanceForType()
Type | Description |
RunAggregationQueryRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getNewTransaction()
public TransactionOptions getNewTransaction()
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;
Type | Description |
TransactionOptions | The newTransaction. |
getNewTransactionBuilder()
public TransactionOptions.Builder getNewTransactionBuilder()
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;
Type | Description |
TransactionOptions.Builder |
getNewTransactionOrBuilder()
public TransactionOptionsOrBuilder getNewTransactionOrBuilder()
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;
Type | Description |
TransactionOptionsOrBuilder |
getParent()
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];
Type | Description |
String | The parent. |
getParentBytes()
public 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];
Type | Description |
ByteString | The bytes for parent. |
getQueryTypeCase()
public RunAggregationQueryRequest.QueryTypeCase getQueryTypeCase()
Type | Description |
RunAggregationQueryRequest.QueryTypeCase |
getReadTime()
public Timestamp getReadTime()
Executes the query at the given timestamp. Requires:
- Cannot be more than 270 seconds in the past.
.google.protobuf.Timestamp read_time = 6;
Type | Description |
Timestamp | The readTime. |
getReadTimeBuilder()
public Timestamp.Builder getReadTimeBuilder()
Executes the query at the given timestamp. Requires:
- Cannot be more than 270 seconds in the past.
.google.protobuf.Timestamp read_time = 6;
Type | Description |
Builder |
getReadTimeOrBuilder()
public TimestampOrBuilder getReadTimeOrBuilder()
Executes the query at the given timestamp. Requires:
- Cannot be more than 270 seconds in the past.
.google.protobuf.Timestamp read_time = 6;
Type | Description |
TimestampOrBuilder |
getStructuredAggregationQuery()
public StructuredAggregationQuery getStructuredAggregationQuery()
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
Type | Description |
StructuredAggregationQuery | The structuredAggregationQuery. |
getStructuredAggregationQueryBuilder()
public StructuredAggregationQuery.Builder getStructuredAggregationQueryBuilder()
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
Type | Description |
StructuredAggregationQuery.Builder |
getStructuredAggregationQueryOrBuilder()
public StructuredAggregationQueryOrBuilder getStructuredAggregationQueryOrBuilder()
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
Type | Description |
StructuredAggregationQueryOrBuilder |
getTransaction()
public ByteString getTransaction()
Run the aggregation within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 4;
Type | Description |
ByteString | The transaction. |
hasNewTransaction()
public boolean hasNewTransaction()
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;
Type | Description |
boolean | Whether the newTransaction field is set. |
hasReadTime()
public boolean hasReadTime()
Executes the query at the given timestamp. Requires:
- Cannot be more than 270 seconds in the past.
.google.protobuf.Timestamp read_time = 6;
Type | Description |
boolean | Whether the readTime field is set. |
hasStructuredAggregationQuery()
public boolean hasStructuredAggregationQuery()
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
Type | Description |
boolean | Whether the structuredAggregationQuery field is set. |
hasTransaction()
public boolean hasTransaction()
Run the aggregation within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 4;
Type | Description |
boolean | Whether the transaction field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(RunAggregationQueryRequest other)
public RunAggregationQueryRequest.Builder mergeFrom(RunAggregationQueryRequest other)
Name | Description |
other | RunAggregationQueryRequest |
Type | Description |
RunAggregationQueryRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RunAggregationQueryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RunAggregationQueryRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public RunAggregationQueryRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
RunAggregationQueryRequest.Builder |
mergeNewTransaction(TransactionOptions value)
public RunAggregationQueryRequest.Builder mergeNewTransaction(TransactionOptions value)
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;
Name | Description |
value | TransactionOptions |
Type | Description |
RunAggregationQueryRequest.Builder |
mergeReadTime(Timestamp value)
public RunAggregationQueryRequest.Builder mergeReadTime(Timestamp value)
Executes the query at the given timestamp. Requires:
- Cannot be more than 270 seconds in the past.
.google.protobuf.Timestamp read_time = 6;
Name | Description |
value | Timestamp |
Type | Description |
RunAggregationQueryRequest.Builder |
mergeStructuredAggregationQuery(StructuredAggregationQuery value)
public RunAggregationQueryRequest.Builder mergeStructuredAggregationQuery(StructuredAggregationQuery value)
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
Name | Description |
value | StructuredAggregationQuery |
Type | Description |
RunAggregationQueryRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RunAggregationQueryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
RunAggregationQueryRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public RunAggregationQueryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
RunAggregationQueryRequest.Builder |
setNewTransaction(TransactionOptions value)
public RunAggregationQueryRequest.Builder setNewTransaction(TransactionOptions value)
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;
Name | Description |
value | TransactionOptions |
Type | Description |
RunAggregationQueryRequest.Builder |
setNewTransaction(TransactionOptions.Builder builderForValue)
public RunAggregationQueryRequest.Builder setNewTransaction(TransactionOptions.Builder builderForValue)
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;
Name | Description |
builderForValue | TransactionOptions.Builder |
Type | Description |
RunAggregationQueryRequest.Builder |
setParent(String value)
public RunAggregationQueryRequest.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];
Name | Description |
value | String The parent to set. |
Type | Description |
RunAggregationQueryRequest.Builder | This builder for chaining. |
setParentBytes(ByteString value)
public RunAggregationQueryRequest.Builder setParentBytes(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];
Name | Description |
value | ByteString The bytes for parent to set. |
Type | Description |
RunAggregationQueryRequest.Builder | This builder for chaining. |
setReadTime(Timestamp value)
public RunAggregationQueryRequest.Builder setReadTime(Timestamp value)
Executes the query at the given timestamp. Requires:
- Cannot be more than 270 seconds in the past.
.google.protobuf.Timestamp read_time = 6;
Name | Description |
value | Timestamp |
Type | Description |
RunAggregationQueryRequest.Builder |
setReadTime(Timestamp.Builder builderForValue)
public RunAggregationQueryRequest.Builder setReadTime(Timestamp.Builder builderForValue)
Executes the query at the given timestamp. Requires:
- Cannot be more than 270 seconds in the past.
.google.protobuf.Timestamp read_time = 6;
Name | Description |
builderForValue | Builder |
Type | Description |
RunAggregationQueryRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RunAggregationQueryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
RunAggregationQueryRequest.Builder |
setStructuredAggregationQuery(StructuredAggregationQuery value)
public RunAggregationQueryRequest.Builder setStructuredAggregationQuery(StructuredAggregationQuery value)
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
Name | Description |
value | StructuredAggregationQuery |
Type | Description |
RunAggregationQueryRequest.Builder |
setStructuredAggregationQuery(StructuredAggregationQuery.Builder builderForValue)
public RunAggregationQueryRequest.Builder setStructuredAggregationQuery(StructuredAggregationQuery.Builder builderForValue)
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
Name | Description |
builderForValue | StructuredAggregationQuery.Builder |
Type | Description |
RunAggregationQueryRequest.Builder |
setTransaction(ByteString value)
public RunAggregationQueryRequest.Builder setTransaction(ByteString value)
Run the aggregation within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 4;
Name | Description |
value | ByteString The transaction to set. |
Type | Description |
RunAggregationQueryRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final RunAggregationQueryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
RunAggregationQueryRequest.Builder |