Class RunAggregationQueryRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
com.google.datastore.v1.RunAggregationQueryRequest.Builder
All Implemented Interfaces:
RunAggregationQueryRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RunAggregationQueryRequest

public static final class RunAggregationQueryRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder> implements RunAggregationQueryRequestOrBuilder
 The request for
 [Datastore.RunAggregationQuery][google.datastore.v1.Datastore.RunAggregationQuery].
 
Protobuf type google.datastore.v1.RunAggregationQueryRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
    • getDefaultInstanceForType

      public RunAggregationQueryRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RunAggregationQueryRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
    • setField

      public RunAggregationQueryRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
    • clearField

      public RunAggregationQueryRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
    • clearOneof

      public RunAggregationQueryRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
    • setRepeatedField

      public RunAggregationQueryRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
    • addRepeatedField

      public RunAggregationQueryRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
    • mergeFrom

      public RunAggregationQueryRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RunAggregationQueryRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
    • mergeFrom

      public RunAggregationQueryRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RunAggregationQueryRequest.Builder>
      Throws:
      IOException
    • getQueryTypeCase

      public RunAggregationQueryRequest.QueryTypeCase getQueryTypeCase()
      Specified by:
      getQueryTypeCase in interface RunAggregationQueryRequestOrBuilder
    • clearQueryType

      public RunAggregationQueryRequest.Builder clearQueryType()
    • 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];
      Specified by:
      getProjectId in interface RunAggregationQueryRequestOrBuilder
      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:
      getProjectIdBytes in interface RunAggregationQueryRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      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];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setProjectIdBytes

      public RunAggregationQueryRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       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

      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;
      Specified by:
      getDatabaseId in interface RunAggregationQueryRequestOrBuilder
      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:
      getDatabaseIdBytes in interface RunAggregationQueryRequestOrBuilder
      Returns:
      The bytes for databaseId.
    • setDatabaseId

      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;
      Parameters:
      value - The databaseId to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDatabaseIdBytes

      public RunAggregationQueryRequest.Builder setDatabaseIdBytes(com.google.protobuf.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;
      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:
      hasPartitionId in interface RunAggregationQueryRequestOrBuilder
      Returns:
      Whether the partitionId field is set.
    • 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;
      Specified by:
      getPartitionId in interface RunAggregationQueryRequestOrBuilder
      Returns:
      The partitionId.
    • setPartitionId

      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;
    • setPartitionId

      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;
    • mergePartitionId

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getPartitionIdOrBuilder in interface RunAggregationQueryRequestOrBuilder
    • hasReadOptions

      public boolean hasReadOptions()
       The options for this query.
       
      .google.datastore.v1.ReadOptions read_options = 1;
      Specified by:
      hasReadOptions in interface RunAggregationQueryRequestOrBuilder
      Returns:
      Whether the readOptions field is set.
    • getReadOptions

      public ReadOptions getReadOptions()
       The options for this query.
       
      .google.datastore.v1.ReadOptions read_options = 1;
      Specified by:
      getReadOptions in interface RunAggregationQueryRequestOrBuilder
      Returns:
      The readOptions.
    • setReadOptions

      public RunAggregationQueryRequest.Builder setReadOptions(ReadOptions value)
       The options for this query.
       
      .google.datastore.v1.ReadOptions read_options = 1;
    • setReadOptions

      public RunAggregationQueryRequest.Builder setReadOptions(ReadOptions.Builder builderForValue)
       The options for this query.
       
      .google.datastore.v1.ReadOptions read_options = 1;
    • mergeReadOptions

      public RunAggregationQueryRequest.Builder mergeReadOptions(ReadOptions value)
       The options for this query.
       
      .google.datastore.v1.ReadOptions read_options = 1;
    • clearReadOptions

      public RunAggregationQueryRequest.Builder clearReadOptions()
       The options for this query.
       
      .google.datastore.v1.ReadOptions read_options = 1;
    • getReadOptionsBuilder

      public ReadOptions.Builder getReadOptionsBuilder()
       The options for this query.
       
      .google.datastore.v1.ReadOptions read_options = 1;
    • getReadOptionsOrBuilder

      public ReadOptionsOrBuilder getReadOptionsOrBuilder()
       The options for this query.
       
      .google.datastore.v1.ReadOptions read_options = 1;
      Specified by:
      getReadOptionsOrBuilder in interface RunAggregationQueryRequestOrBuilder
    • hasAggregationQuery

      public boolean hasAggregationQuery()
       The query to run.
       
      .google.datastore.v1.AggregationQuery aggregation_query = 3;
      Specified by:
      hasAggregationQuery in interface RunAggregationQueryRequestOrBuilder
      Returns:
      Whether the aggregationQuery field is set.
    • getAggregationQuery

      public AggregationQuery getAggregationQuery()
       The query to run.
       
      .google.datastore.v1.AggregationQuery aggregation_query = 3;
      Specified by:
      getAggregationQuery in interface RunAggregationQueryRequestOrBuilder
      Returns:
      The aggregationQuery.
    • setAggregationQuery

      public RunAggregationQueryRequest.Builder setAggregationQuery(AggregationQuery value)
       The query to run.
       
      .google.datastore.v1.AggregationQuery aggregation_query = 3;
    • setAggregationQuery

      public RunAggregationQueryRequest.Builder setAggregationQuery(AggregationQuery.Builder builderForValue)
       The query to run.
       
      .google.datastore.v1.AggregationQuery aggregation_query = 3;
    • mergeAggregationQuery

      public RunAggregationQueryRequest.Builder mergeAggregationQuery(AggregationQuery value)
       The query to run.
       
      .google.datastore.v1.AggregationQuery aggregation_query = 3;
    • clearAggregationQuery

      public RunAggregationQueryRequest.Builder clearAggregationQuery()
       The query to run.
       
      .google.datastore.v1.AggregationQuery aggregation_query = 3;
    • getAggregationQueryBuilder

      public AggregationQuery.Builder getAggregationQueryBuilder()
       The query to run.
       
      .google.datastore.v1.AggregationQuery aggregation_query = 3;
    • getAggregationQueryOrBuilder

      public AggregationQueryOrBuilder getAggregationQueryOrBuilder()
       The query to run.
       
      .google.datastore.v1.AggregationQuery aggregation_query = 3;
      Specified by:
      getAggregationQueryOrBuilder in interface RunAggregationQueryRequestOrBuilder
    • hasGqlQuery

      public boolean hasGqlQuery()
       The GQL query to run. This query must be an aggregation query.
       
      .google.datastore.v1.GqlQuery gql_query = 7;
      Specified by:
      hasGqlQuery in interface RunAggregationQueryRequestOrBuilder
      Returns:
      Whether the gqlQuery field is set.
    • getGqlQuery

      public GqlQuery getGqlQuery()
       The GQL query to run. This query must be an aggregation query.
       
      .google.datastore.v1.GqlQuery gql_query = 7;
      Specified by:
      getGqlQuery in interface RunAggregationQueryRequestOrBuilder
      Returns:
      The gqlQuery.
    • setGqlQuery

      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;
    • setGqlQuery

      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;
    • mergeGqlQuery

      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;
    • clearGqlQuery

      public RunAggregationQueryRequest.Builder clearGqlQuery()
       The GQL query to run. This query must be an aggregation query.
       
      .google.datastore.v1.GqlQuery gql_query = 7;
    • getGqlQueryBuilder

      public GqlQuery.Builder getGqlQueryBuilder()
       The GQL query to run. This query must be an aggregation query.
       
      .google.datastore.v1.GqlQuery gql_query = 7;
    • getGqlQueryOrBuilder

      public GqlQueryOrBuilder getGqlQueryOrBuilder()
       The GQL query to run. This query must be an aggregation query.
       
      .google.datastore.v1.GqlQuery gql_query = 7;
      Specified by:
      getGqlQueryOrBuilder in interface RunAggregationQueryRequestOrBuilder
    • setUnknownFields

      public final RunAggregationQueryRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
    • mergeUnknownFields

      public final RunAggregationQueryRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>