Class RunAggregationQueryRequest.Builder (2.18.5)

public static final class RunAggregationQueryRequest.Builder extends GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder> implements RunAggregationQueryRequestOrBuilder

The request for Datastore.RunAggregationQuery.

Protobuf type google.datastore.v1.RunAggregationQueryRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RunAggregationQueryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RunAggregationQueryRequest.Builder
Overrides

build()

public RunAggregationQueryRequest build()
Returns
TypeDescription
RunAggregationQueryRequest

buildPartial()

public RunAggregationQueryRequest buildPartial()
Returns
TypeDescription
RunAggregationQueryRequest

clear()

public RunAggregationQueryRequest.Builder clear()
Returns
TypeDescription
RunAggregationQueryRequest.Builder
Overrides

clearAggregationQuery()

public RunAggregationQueryRequest.Builder clearAggregationQuery()

The query to run.

.google.datastore.v1.AggregationQuery aggregation_query = 3;

Returns
TypeDescription
RunAggregationQueryRequest.Builder

clearDatabaseId()

public RunAggregationQueryRequest.Builder clearDatabaseId()

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Returns
TypeDescription
RunAggregationQueryRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RunAggregationQueryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RunAggregationQueryRequest.Builder
Overrides

clearGqlQuery()

public RunAggregationQueryRequest.Builder clearGqlQuery()

The GQL query to run. This query must be an aggregation query.

.google.datastore.v1.GqlQuery gql_query = 7;

Returns
TypeDescription
RunAggregationQueryRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public RunAggregationQueryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RunAggregationQueryRequest.Builder
Overrides

clearPartitionId()

public RunAggregationQueryRequest.Builder clearPartitionId()

Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.

.google.datastore.v1.PartitionId partition_id = 2;

Returns
TypeDescription
RunAggregationQueryRequest.Builder

clearProjectId()

public RunAggregationQueryRequest.Builder clearProjectId()

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RunAggregationQueryRequest.Builder

This builder for chaining.

clearQueryType()

public RunAggregationQueryRequest.Builder clearQueryType()
Returns
TypeDescription
RunAggregationQueryRequest.Builder

clearReadOptions()

public RunAggregationQueryRequest.Builder clearReadOptions()

The options for this query.

.google.datastore.v1.ReadOptions read_options = 1;

Returns
TypeDescription
RunAggregationQueryRequest.Builder

clone()

public RunAggregationQueryRequest.Builder clone()
Returns
TypeDescription
RunAggregationQueryRequest.Builder
Overrides

getAggregationQuery()

public AggregationQuery getAggregationQuery()

The query to run.

.google.datastore.v1.AggregationQuery aggregation_query = 3;

Returns
TypeDescription
AggregationQuery

The aggregationQuery.

getAggregationQueryBuilder()

public AggregationQuery.Builder getAggregationQueryBuilder()

The query to run.

.google.datastore.v1.AggregationQuery aggregation_query = 3;

Returns
TypeDescription
AggregationQuery.Builder

getAggregationQueryOrBuilder()

public AggregationQueryOrBuilder getAggregationQueryOrBuilder()

The query to run.

.google.datastore.v1.AggregationQuery aggregation_query = 3;

Returns
TypeDescription
AggregationQueryOrBuilder

getDatabaseId()

public String getDatabaseId()

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Returns
TypeDescription
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Returns
TypeDescription
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

public RunAggregationQueryRequest getDefaultInstanceForType()
Returns
TypeDescription
RunAggregationQueryRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGqlQuery()

public GqlQuery getGqlQuery()

The GQL query to run. This query must be an aggregation query.

.google.datastore.v1.GqlQuery gql_query = 7;

Returns
TypeDescription
GqlQuery

The gqlQuery.

getGqlQueryBuilder()

public GqlQuery.Builder getGqlQueryBuilder()

The GQL query to run. This query must be an aggregation query.

.google.datastore.v1.GqlQuery gql_query = 7;

Returns
TypeDescription
GqlQuery.Builder

getGqlQueryOrBuilder()

public GqlQueryOrBuilder getGqlQueryOrBuilder()

The GQL query to run. This query must be an aggregation query.

.google.datastore.v1.GqlQuery gql_query = 7;

Returns
TypeDescription
GqlQueryOrBuilder

getPartitionId()

public PartitionId getPartitionId()

Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.

.google.datastore.v1.PartitionId partition_id = 2;

Returns
TypeDescription
PartitionId

The partitionId.

getPartitionIdBuilder()

public PartitionId.Builder getPartitionIdBuilder()

Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.

.google.datastore.v1.PartitionId partition_id = 2;

Returns
TypeDescription
PartitionId.Builder

getPartitionIdOrBuilder()

public PartitionIdOrBuilder getPartitionIdOrBuilder()

Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.

.google.datastore.v1.PartitionId partition_id = 2;

Returns
TypeDescription
PartitionIdOrBuilder

getProjectId()

public String getProjectId()

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for projectId.

getQueryTypeCase()

public RunAggregationQueryRequest.QueryTypeCase getQueryTypeCase()
Returns
TypeDescription
RunAggregationQueryRequest.QueryTypeCase

getReadOptions()

public ReadOptions getReadOptions()

The options for this query.

.google.datastore.v1.ReadOptions read_options = 1;

Returns
TypeDescription
ReadOptions

The readOptions.

getReadOptionsBuilder()

public ReadOptions.Builder getReadOptionsBuilder()

The options for this query.

.google.datastore.v1.ReadOptions read_options = 1;

Returns
TypeDescription
ReadOptions.Builder

getReadOptionsOrBuilder()

public ReadOptionsOrBuilder getReadOptionsOrBuilder()

The options for this query.

.google.datastore.v1.ReadOptions read_options = 1;

Returns
TypeDescription
ReadOptionsOrBuilder

hasAggregationQuery()

public boolean hasAggregationQuery()

The query to run.

.google.datastore.v1.AggregationQuery aggregation_query = 3;

Returns
TypeDescription
boolean

Whether the aggregationQuery field is set.

hasGqlQuery()

public boolean hasGqlQuery()

The GQL query to run. This query must be an aggregation query.

.google.datastore.v1.GqlQuery gql_query = 7;

Returns
TypeDescription
boolean

Whether the gqlQuery field is set.

hasPartitionId()

public boolean hasPartitionId()

Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.

.google.datastore.v1.PartitionId partition_id = 2;

Returns
TypeDescription
boolean

Whether the partitionId field is set.

hasReadOptions()

public boolean hasReadOptions()

The options for this query.

.google.datastore.v1.ReadOptions read_options = 1;

Returns
TypeDescription
boolean

Whether the readOptions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAggregationQuery(AggregationQuery value)

public RunAggregationQueryRequest.Builder mergeAggregationQuery(AggregationQuery value)

The query to run.

.google.datastore.v1.AggregationQuery aggregation_query = 3;

Parameter
NameDescription
valueAggregationQuery
Returns
TypeDescription
RunAggregationQueryRequest.Builder

mergeFrom(RunAggregationQueryRequest other)

public RunAggregationQueryRequest.Builder mergeFrom(RunAggregationQueryRequest other)
Parameter
NameDescription
otherRunAggregationQueryRequest
Returns
TypeDescription
RunAggregationQueryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RunAggregationQueryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RunAggregationQueryRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RunAggregationQueryRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RunAggregationQueryRequest.Builder
Overrides

mergeGqlQuery(GqlQuery value)

public RunAggregationQueryRequest.Builder mergeGqlQuery(GqlQuery value)

The GQL query to run. This query must be an aggregation query.

.google.datastore.v1.GqlQuery gql_query = 7;

Parameter
NameDescription
valueGqlQuery
Returns
TypeDescription
RunAggregationQueryRequest.Builder

mergePartitionId(PartitionId value)

public RunAggregationQueryRequest.Builder mergePartitionId(PartitionId value)

Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.

.google.datastore.v1.PartitionId partition_id = 2;

Parameter
NameDescription
valuePartitionId
Returns
TypeDescription
RunAggregationQueryRequest.Builder

mergeReadOptions(ReadOptions value)

public RunAggregationQueryRequest.Builder mergeReadOptions(ReadOptions value)

The options for this query.

.google.datastore.v1.ReadOptions read_options = 1;

Parameter
NameDescription
valueReadOptions
Returns
TypeDescription
RunAggregationQueryRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RunAggregationQueryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RunAggregationQueryRequest.Builder
Overrides

setAggregationQuery(AggregationQuery value)

public RunAggregationQueryRequest.Builder setAggregationQuery(AggregationQuery value)

The query to run.

.google.datastore.v1.AggregationQuery aggregation_query = 3;

Parameter
NameDescription
valueAggregationQuery
Returns
TypeDescription
RunAggregationQueryRequest.Builder

setAggregationQuery(AggregationQuery.Builder builderForValue)

public RunAggregationQueryRequest.Builder setAggregationQuery(AggregationQuery.Builder builderForValue)

The query to run.

.google.datastore.v1.AggregationQuery aggregation_query = 3;

Parameter
NameDescription
builderForValueAggregationQuery.Builder
Returns
TypeDescription
RunAggregationQueryRequest.Builder

setDatabaseId(String value)

public RunAggregationQueryRequest.Builder setDatabaseId(String value)

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Parameter
NameDescription
valueString

The databaseId to set.

Returns
TypeDescription
RunAggregationQueryRequest.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public RunAggregationQueryRequest.Builder setDatabaseIdBytes(ByteString value)

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Parameter
NameDescription
valueByteString

The bytes for databaseId to set.

Returns
TypeDescription
RunAggregationQueryRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RunAggregationQueryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RunAggregationQueryRequest.Builder
Overrides

setGqlQuery(GqlQuery value)

public RunAggregationQueryRequest.Builder setGqlQuery(GqlQuery value)

The GQL query to run. This query must be an aggregation query.

.google.datastore.v1.GqlQuery gql_query = 7;

Parameter
NameDescription
valueGqlQuery
Returns
TypeDescription
RunAggregationQueryRequest.Builder

setGqlQuery(GqlQuery.Builder builderForValue)

public RunAggregationQueryRequest.Builder setGqlQuery(GqlQuery.Builder builderForValue)

The GQL query to run. This query must be an aggregation query.

.google.datastore.v1.GqlQuery gql_query = 7;

Parameter
NameDescription
builderForValueGqlQuery.Builder
Returns
TypeDescription
RunAggregationQueryRequest.Builder

setPartitionId(PartitionId value)

public RunAggregationQueryRequest.Builder setPartitionId(PartitionId value)

Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.

.google.datastore.v1.PartitionId partition_id = 2;

Parameter
NameDescription
valuePartitionId
Returns
TypeDescription
RunAggregationQueryRequest.Builder

setPartitionId(PartitionId.Builder builderForValue)

public RunAggregationQueryRequest.Builder setPartitionId(PartitionId.Builder builderForValue)

Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.

.google.datastore.v1.PartitionId partition_id = 2;

Parameter
NameDescription
builderForValuePartitionId.Builder
Returns
TypeDescription
RunAggregationQueryRequest.Builder

setProjectId(String value)

public RunAggregationQueryRequest.Builder setProjectId(String value)

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
RunAggregationQueryRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public RunAggregationQueryRequest.Builder setProjectIdBytes(ByteString value)

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
RunAggregationQueryRequest.Builder

This builder for chaining.

setReadOptions(ReadOptions value)

public RunAggregationQueryRequest.Builder setReadOptions(ReadOptions value)

The options for this query.

.google.datastore.v1.ReadOptions read_options = 1;

Parameter
NameDescription
valueReadOptions
Returns
TypeDescription
RunAggregationQueryRequest.Builder

setReadOptions(ReadOptions.Builder builderForValue)

public RunAggregationQueryRequest.Builder setReadOptions(ReadOptions.Builder builderForValue)

The options for this query.

.google.datastore.v1.ReadOptions read_options = 1;

Parameter
NameDescription
builderForValueReadOptions.Builder
Returns
TypeDescription
RunAggregationQueryRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RunAggregationQueryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RunAggregationQueryRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RunAggregationQueryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RunAggregationQueryRequest.Builder
Overrides