Package com.google.datastore.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.datastore.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 [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].Protobuf type
google.datastore.v1.RunQueryRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The ID of the database against which to make the request.Optional.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The GQL query to run.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Entities are partitioned into subsets, identified by a partition ID.Required.The properties to return.The query to run.The options for this query.clone()The ID of the database against which to make the request.com.google.protobuf.ByteStringThe ID of the database against which to make the request.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.The GQL query to run.The GQL query to run.The GQL query to run.Entities are partitioned into subsets, identified by a partition ID.Entities are partitioned into subsets, identified by a partition ID.Entities are partitioned into subsets, identified by a partition ID.Required.com.google.protobuf.ByteStringRequired.The properties to return.The properties to return.The properties to return.getQuery()The query to run.The query to run.The query to run.The options for this query.The options for this query.The options for this query.booleanOptional.booleanThe GQL query to run.booleanEntities are partitioned into subsets, identified by a partition ID.booleanThe properties to return.booleanhasQuery()The query to run.booleanThe options for this query.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) mergeGqlQuery(GqlQuery value) The GQL query to run.mergePartitionId(PartitionId value) Entities are partitioned into subsets, identified by a partition ID.mergePropertyMask(PropertyMask value) The properties to return.mergeQuery(Query value) The query to run.mergeReadOptions(ReadOptions value) The options for this query.final RunQueryRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDatabaseId(String value) The ID of the database against which to make the request.setDatabaseIdBytes(com.google.protobuf.ByteString value) The ID of the database against which to make the request.setExplainOptions(ExplainOptions value) Optional.setExplainOptions(ExplainOptions.Builder builderForValue) Optional.setGqlQuery(GqlQuery value) The GQL query to run.setGqlQuery(GqlQuery.Builder builderForValue) The GQL query to run.setPartitionId(PartitionId value) Entities are partitioned into subsets, identified by a partition ID.setPartitionId(PartitionId.Builder builderForValue) Entities are partitioned into subsets, identified by a partition ID.setProjectId(String value) Required.setProjectIdBytes(com.google.protobuf.ByteString value) Required.setPropertyMask(PropertyMask value) The properties to return.setPropertyMask(PropertyMask.Builder builderForValue) The properties to return.The query to run.setQuery(Query.Builder builderForValue) The query to run.setReadOptions(ReadOptions value) The options for this query.setReadOptions(ReadOptions.Builder builderForValue) The options for this query.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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
-
getProjectId
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProjectIdin interfaceRunQueryRequestOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProjectIdBytesin interfaceRunQueryRequestOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setProjectIdBytes
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getDatabaseIdin interfaceRunQueryRequestOrBuilder- Returns:
- The databaseId.
-
getDatabaseIdBytes
public com.google.protobuf.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;- Specified by:
getDatabaseIdBytesin interfaceRunQueryRequestOrBuilder- Returns:
- The bytes for databaseId.
-
setDatabaseId
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;- Parameters:
value- The databaseId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDatabaseIdBytes
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;- Parameters:
value- The bytes for databaseId to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasPartitionIdin interfaceRunQueryRequestOrBuilder- Returns:
- Whether the partitionId field is set.
-
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;- Specified by:
getPartitionIdin interfaceRunQueryRequestOrBuilder- Returns:
- The partitionId.
-
setPartitionId
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; -
setPartitionId
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; -
mergePartitionId
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; -
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; -
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; -
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;- Specified by:
getPartitionIdOrBuilderin interfaceRunQueryRequestOrBuilder
-
hasReadOptions
public boolean hasReadOptions()The options for this query.
.google.datastore.v1.ReadOptions read_options = 1;- Specified by:
hasReadOptionsin interfaceRunQueryRequestOrBuilder- Returns:
- Whether the readOptions field is set.
-
getReadOptions
The options for this query.
.google.datastore.v1.ReadOptions read_options = 1;- Specified by:
getReadOptionsin interfaceRunQueryRequestOrBuilder- Returns:
- The readOptions.
-
setReadOptions
The options for this query.
.google.datastore.v1.ReadOptions read_options = 1; -
setReadOptions
The options for this query.
.google.datastore.v1.ReadOptions read_options = 1; -
mergeReadOptions
The options for this query.
.google.datastore.v1.ReadOptions read_options = 1; -
clearReadOptions
The options for this query.
.google.datastore.v1.ReadOptions read_options = 1; -
getReadOptionsBuilder
The options for this query.
.google.datastore.v1.ReadOptions read_options = 1; -
getReadOptionsOrBuilder
The options for this query.
.google.datastore.v1.ReadOptions read_options = 1;- Specified by:
getReadOptionsOrBuilderin interfaceRunQueryRequestOrBuilder
-
hasQuery
public boolean hasQuery()The query to run.
.google.datastore.v1.Query query = 3;- Specified by:
hasQueryin interfaceRunQueryRequestOrBuilder- Returns:
- Whether the query field is set.
-
getQuery
The query to run.
.google.datastore.v1.Query query = 3;- Specified by:
getQueryin interfaceRunQueryRequestOrBuilder- Returns:
- The query.
-
setQuery
The query to run.
.google.datastore.v1.Query query = 3; -
setQuery
The query to run.
.google.datastore.v1.Query query = 3; -
mergeQuery
The query to run.
.google.datastore.v1.Query query = 3; -
clearQuery
The query to run.
.google.datastore.v1.Query query = 3; -
getQueryBuilder
The query to run.
.google.datastore.v1.Query query = 3; -
getQueryOrBuilder
The query to run.
.google.datastore.v1.Query query = 3;- Specified by:
getQueryOrBuilderin interfaceRunQueryRequestOrBuilder
-
hasGqlQuery
public boolean hasGqlQuery()The GQL query to run. This query must be a non-aggregation query.
.google.datastore.v1.GqlQuery gql_query = 7;- Specified by:
hasGqlQueryin interfaceRunQueryRequestOrBuilder- Returns:
- Whether the gqlQuery field is set.
-
getGqlQuery
The GQL query to run. This query must be a non-aggregation query.
.google.datastore.v1.GqlQuery gql_query = 7;- Specified by:
getGqlQueryin interfaceRunQueryRequestOrBuilder- Returns:
- The gqlQuery.
-
setGqlQuery
The GQL query to run. This query must be a non-aggregation query.
.google.datastore.v1.GqlQuery gql_query = 7; -
setGqlQuery
The GQL query to run. This query must be a non-aggregation query.
.google.datastore.v1.GqlQuery gql_query = 7; -
mergeGqlQuery
The GQL query to run. This query must be a non-aggregation query.
.google.datastore.v1.GqlQuery gql_query = 7; -
clearGqlQuery
The GQL query to run. This query must be a non-aggregation query.
.google.datastore.v1.GqlQuery gql_query = 7; -
getGqlQueryBuilder
The GQL query to run. This query must be a non-aggregation query.
.google.datastore.v1.GqlQuery gql_query = 7; -
getGqlQueryOrBuilder
The GQL query to run. This query must be a non-aggregation query.
.google.datastore.v1.GqlQuery gql_query = 7;- Specified by:
getGqlQueryOrBuilderin interfaceRunQueryRequestOrBuilder
-
hasPropertyMask
public boolean hasPropertyMask()The properties to return. This field must not be set for a projection query. See [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask].
.google.datastore.v1.PropertyMask property_mask = 10;- Specified by:
hasPropertyMaskin interfaceRunQueryRequestOrBuilder- Returns:
- Whether the propertyMask field is set.
-
getPropertyMask
The properties to return. This field must not be set for a projection query. See [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask].
.google.datastore.v1.PropertyMask property_mask = 10;- Specified by:
getPropertyMaskin interfaceRunQueryRequestOrBuilder- Returns:
- The propertyMask.
-
setPropertyMask
The properties to return. This field must not be set for a projection query. See [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask].
.google.datastore.v1.PropertyMask property_mask = 10; -
setPropertyMask
The properties to return. This field must not be set for a projection query. See [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask].
.google.datastore.v1.PropertyMask property_mask = 10; -
mergePropertyMask
The properties to return. This field must not be set for a projection query. See [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask].
.google.datastore.v1.PropertyMask property_mask = 10; -
clearPropertyMask
The properties to return. This field must not be set for a projection query. See [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask].
.google.datastore.v1.PropertyMask property_mask = 10; -
getPropertyMaskBuilder
The properties to return. This field must not be set for a projection query. See [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask].
.google.datastore.v1.PropertyMask property_mask = 10; -
getPropertyMaskOrBuilder
The properties to return. This field must not be set for a projection query. See [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask].
.google.datastore.v1.PropertyMask property_mask = 10;- Specified by:
getPropertyMaskOrBuilderin 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.datastore.v1.ExplainOptions explain_options = 12 [(.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.datastore.v1.ExplainOptions explain_options = 12 [(.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.datastore.v1.ExplainOptions explain_options = 12 [(.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.datastore.v1.ExplainOptions explain_options = 12 [(.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.datastore.v1.ExplainOptions explain_options = 12 [(.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.datastore.v1.ExplainOptions explain_options = 12 [(.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.datastore.v1.ExplainOptions explain_options = 12 [(.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.datastore.v1.ExplainOptions explain_options = 12 [(.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>
-