Class RunQueryRequest.Builder (2.13.5)

public static final class RunQueryRequest.Builder extends GeneratedMessageV3.Builder<RunQueryRequest.Builder> implements RunQueryRequestOrBuilder

The request for Datastore.RunQuery.

Protobuf type google.datastore.v1.RunQueryRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RunQueryRequest build()
Returns
TypeDescription
RunQueryRequest

buildPartial()

public RunQueryRequest buildPartial()
Returns
TypeDescription
RunQueryRequest

clear()

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

clearDatabaseId()

public RunQueryRequest.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
RunQueryRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGqlQuery()

public RunQueryRequest.Builder clearGqlQuery()

The GQL query to run. This query must be a non-aggregation query.

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

Returns
TypeDescription
RunQueryRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitionId()

public RunQueryRequest.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
RunQueryRequest.Builder

clearProjectId()

public RunQueryRequest.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
RunQueryRequest.Builder

This builder for chaining.

clearQuery()

public RunQueryRequest.Builder clearQuery()

The query to run.

.google.datastore.v1.Query query = 3;

Returns
TypeDescription
RunQueryRequest.Builder

clearQueryType()

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

clearReadOptions()

public RunQueryRequest.Builder clearReadOptions()

The options for this query.

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

Returns
TypeDescription
RunQueryRequest.Builder

clone()

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

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 RunQueryRequest getDefaultInstanceForType()
Returns
TypeDescription
RunQueryRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGqlQuery()

public GqlQuery getGqlQuery()

The GQL query to run. This query must be a non-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 a non-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 a non-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.

getQuery()

public Query getQuery()

The query to run.

.google.datastore.v1.Query query = 3;

Returns
TypeDescription
Query

The query.

getQueryBuilder()

public Query.Builder getQueryBuilder()

The query to run.

.google.datastore.v1.Query query = 3;

Returns
TypeDescription
Query.Builder

getQueryOrBuilder()

public QueryOrBuilder getQueryOrBuilder()

The query to run.

.google.datastore.v1.Query query = 3;

Returns
TypeDescription
QueryOrBuilder

getQueryTypeCase()

public RunQueryRequest.QueryTypeCase getQueryTypeCase()
Returns
TypeDescription
RunQueryRequest.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

hasGqlQuery()

public boolean hasGqlQuery()

The GQL query to run. This query must be a non-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.

hasQuery()

public boolean hasQuery()

The query to run.

.google.datastore.v1.Query query = 3;

Returns
TypeDescription
boolean

Whether the query 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

mergeFrom(RunQueryRequest other)

public RunQueryRequest.Builder mergeFrom(RunQueryRequest other)
Parameter
NameDescription
otherRunQueryRequest
Returns
TypeDescription
RunQueryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGqlQuery(GqlQuery value)

public RunQueryRequest.Builder mergeGqlQuery(GqlQuery value)

The GQL query to run. This query must be a non-aggregation query.

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

Parameter
NameDescription
valueGqlQuery
Returns
TypeDescription
RunQueryRequest.Builder

mergePartitionId(PartitionId value)

public RunQueryRequest.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
RunQueryRequest.Builder

mergeQuery(Query value)

public RunQueryRequest.Builder mergeQuery(Query value)

The query to run.

.google.datastore.v1.Query query = 3;

Parameter
NameDescription
valueQuery
Returns
TypeDescription
RunQueryRequest.Builder

mergeReadOptions(ReadOptions value)

public RunQueryRequest.Builder mergeReadOptions(ReadOptions value)

The options for this query.

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

Parameter
NameDescription
valueReadOptions
Returns
TypeDescription
RunQueryRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDatabaseId(String value)

public RunQueryRequest.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
RunQueryRequest.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public RunQueryRequest.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
RunQueryRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGqlQuery(GqlQuery value)

public RunQueryRequest.Builder setGqlQuery(GqlQuery value)

The GQL query to run. This query must be a non-aggregation query.

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

Parameter
NameDescription
valueGqlQuery
Returns
TypeDescription
RunQueryRequest.Builder

setGqlQuery(GqlQuery.Builder builderForValue)

public RunQueryRequest.Builder setGqlQuery(GqlQuery.Builder builderForValue)

The GQL query to run. This query must be a non-aggregation query.

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

Parameter
NameDescription
builderForValueGqlQuery.Builder
Returns
TypeDescription
RunQueryRequest.Builder

setPartitionId(PartitionId value)

public RunQueryRequest.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
RunQueryRequest.Builder

setPartitionId(PartitionId.Builder builderForValue)

public RunQueryRequest.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
RunQueryRequest.Builder

setProjectId(String value)

public RunQueryRequest.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
RunQueryRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public RunQueryRequest.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
RunQueryRequest.Builder

This builder for chaining.

setQuery(Query value)

public RunQueryRequest.Builder setQuery(Query value)

The query to run.

.google.datastore.v1.Query query = 3;

Parameter
NameDescription
valueQuery
Returns
TypeDescription
RunQueryRequest.Builder

setQuery(Query.Builder builderForValue)

public RunQueryRequest.Builder setQuery(Query.Builder builderForValue)

The query to run.

.google.datastore.v1.Query query = 3;

Parameter
NameDescription
builderForValueQuery.Builder
Returns
TypeDescription
RunQueryRequest.Builder

setReadOptions(ReadOptions value)

public RunQueryRequest.Builder setReadOptions(ReadOptions value)

The options for this query.

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

Parameter
NameDescription
valueReadOptions
Returns
TypeDescription
RunQueryRequest.Builder

setReadOptions(ReadOptions.Builder builderForValue)

public RunQueryRequest.Builder setReadOptions(ReadOptions.Builder builderForValue)

The options for this query.

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

Parameter
NameDescription
builderForValueReadOptions.Builder
Returns
TypeDescription
RunQueryRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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