/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto

package com.google.devtools.clouderrorreporting.v1beta1;

/**
 *
 *
 * <pre>
 * Specifies a set of `ErrorGroupStats` to return.
 * </pre>
 *
 * Protobuf type {@code google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest}
 */
public final class ListGroupStatsRequest extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest)
    ListGroupStatsRequestOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use ListGroupStatsRequest.newBuilder() to construct.
  private ListGroupStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private ListGroupStatsRequest() {
    projectName_ = "";
    groupId_ = com.google.protobuf.LazyStringArrayList.emptyList();
    alignment_ = 0;
    order_ = 0;
    pageToken_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new ListGroupStatsRequest();
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.devtools.clouderrorreporting.v1beta1.ErrorStatsServiceProto
        .internal_static_google_devtools_clouderrorreporting_v1beta1_ListGroupStatsRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.devtools.clouderrorreporting.v1beta1.ErrorStatsServiceProto
        .internal_static_google_devtools_clouderrorreporting_v1beta1_ListGroupStatsRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.class,
            com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.Builder.class);
  }

  public static final int PROJECT_NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object projectName_ = "";
  /**
   *
   *
   * <pre>
   * Required. The resource name of the Google Cloud Platform project. Written
   * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
   * and `{projectNumber}` can be found in the
   * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
   *
   * Examples: `projects/my-project-123`, `projects/5551234`.
   * </pre>
   *
   * <code>
   * string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The projectName.
   */
  @java.lang.Override
  public java.lang.String getProjectName() {
    java.lang.Object ref = projectName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      projectName_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. The resource name of the Google Cloud Platform project. Written
   * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
   * and `{projectNumber}` can be found in the
   * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
   *
   * Examples: `projects/my-project-123`, `projects/5551234`.
   * </pre>
   *
   * <code>
   * string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The bytes for projectName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getProjectNameBytes() {
    java.lang.Object ref = projectName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      projectName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int GROUP_ID_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList groupId_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   *
   *
   * <pre>
   * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
   * </pre>
   *
   * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return A list containing the groupId.
   */
  public com.google.protobuf.ProtocolStringList getGroupIdList() {
    return groupId_;
  }
  /**
   *
   *
   * <pre>
   * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
   * </pre>
   *
   * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The count of groupId.
   */
  public int getGroupIdCount() {
    return groupId_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
   * </pre>
   *
   * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the element to return.
   * @return The groupId at the given index.
   */
  public java.lang.String getGroupId(int index) {
    return groupId_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
   * </pre>
   *
   * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the groupId at the given index.
   */
  public com.google.protobuf.ByteString getGroupIdBytes(int index) {
    return groupId_.getByteString(index);
  }

  public static final int SERVICE_FILTER_FIELD_NUMBER = 3;
  private com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter serviceFilter_;
  /**
   *
   *
   * <pre>
   * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
   * context that matches the filter.
   * Data for all service contexts is returned if this field is not specified.
   * </pre>
   *
   * <code>
   * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the serviceFilter field is set.
   */
  @java.lang.Override
  public boolean hasServiceFilter() {
    return serviceFilter_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
   * context that matches the filter.
   * Data for all service contexts is returned if this field is not specified.
   * </pre>
   *
   * <code>
   * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The serviceFilter.
   */
  @java.lang.Override
  public com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter getServiceFilter() {
    return serviceFilter_ == null
        ? com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.getDefaultInstance()
        : serviceFilter_;
  }
  /**
   *
   *
   * <pre>
   * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
   * context that matches the filter.
   * Data for all service contexts is returned if this field is not specified.
   * </pre>
   *
   * <code>
   * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilterOrBuilder
      getServiceFilterOrBuilder() {
    return serviceFilter_ == null
        ? com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.getDefaultInstance()
        : serviceFilter_;
  }

  public static final int TIME_RANGE_FIELD_NUMBER = 5;
  private com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange timeRange_;
  /**
   *
   *
   * <pre>
   * Optional. List data for the given time range.
   * If not set, a default time range is used. The field
   * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
   * of this time range.
   * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
   * range are returned, unless the request contains an explicit
   * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
   * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
   * </pre>
   *
   * <code>
   * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the timeRange field is set.
   */
  @java.lang.Override
  public boolean hasTimeRange() {
    return timeRange_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. List data for the given time range.
   * If not set, a default time range is used. The field
   * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
   * of this time range.
   * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
   * range are returned, unless the request contains an explicit
   * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
   * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
   * </pre>
   *
   * <code>
   * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The timeRange.
   */
  @java.lang.Override
  public com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange getTimeRange() {
    return timeRange_ == null
        ? com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.getDefaultInstance()
        : timeRange_;
  }
  /**
   *
   *
   * <pre>
   * Optional. List data for the given time range.
   * If not set, a default time range is used. The field
   * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
   * of this time range.
   * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
   * range are returned, unless the request contains an explicit
   * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
   * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
   * </pre>
   *
   * <code>
   * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRangeOrBuilder
      getTimeRangeOrBuilder() {
    return timeRange_ == null
        ? com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.getDefaultInstance()
        : timeRange_;
  }

  public static final int TIMED_COUNT_DURATION_FIELD_NUMBER = 6;
  private com.google.protobuf.Duration timedCountDuration_;
  /**
   *
   *
   * <pre>
   * Optional. The preferred duration for a single returned `TimedCount`.
   * If not set, no timed counts are returned.
   * </pre>
   *
   * <code>
   * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the timedCountDuration field is set.
   */
  @java.lang.Override
  public boolean hasTimedCountDuration() {
    return timedCountDuration_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. The preferred duration for a single returned `TimedCount`.
   * If not set, no timed counts are returned.
   * </pre>
   *
   * <code>
   * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The timedCountDuration.
   */
  @java.lang.Override
  public com.google.protobuf.Duration getTimedCountDuration() {
    return timedCountDuration_ == null
        ? com.google.protobuf.Duration.getDefaultInstance()
        : timedCountDuration_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The preferred duration for a single returned `TimedCount`.
   * If not set, no timed counts are returned.
   * </pre>
   *
   * <code>
   * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.DurationOrBuilder getTimedCountDurationOrBuilder() {
    return timedCountDuration_ == null
        ? com.google.protobuf.Duration.getDefaultInstance()
        : timedCountDuration_;
  }

  public static final int ALIGNMENT_FIELD_NUMBER = 7;
  private int alignment_ = 0;
  /**
   *
   *
   * <pre>
   * Optional. The alignment of the timed counts to be returned.
   * Default is `ALIGNMENT_EQUAL_AT_END`.
   * </pre>
   *
   * <code>
   * .google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment alignment = 7 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The enum numeric value on the wire for alignment.
   */
  @java.lang.Override
  public int getAlignmentValue() {
    return alignment_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The alignment of the timed counts to be returned.
   * Default is `ALIGNMENT_EQUAL_AT_END`.
   * </pre>
   *
   * <code>
   * .google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment alignment = 7 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The alignment.
   */
  @java.lang.Override
  public com.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment getAlignment() {
    com.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment result =
        com.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment.forNumber(alignment_);
    return result == null
        ? com.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment.UNRECOGNIZED
        : result;
  }

  public static final int ALIGNMENT_TIME_FIELD_NUMBER = 8;
  private com.google.protobuf.Timestamp alignmentTime_;
  /**
   *
   *
   * <pre>
   * Optional. Time where the timed counts shall be aligned if rounded
   * alignment is chosen. Default is 00:00 UTC.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the alignmentTime field is set.
   */
  @java.lang.Override
  public boolean hasAlignmentTime() {
    return alignmentTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Time where the timed counts shall be aligned if rounded
   * alignment is chosen. Default is 00:00 UTC.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The alignmentTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getAlignmentTime() {
    return alignmentTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : alignmentTime_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Time where the timed counts shall be aligned if rounded
   * alignment is chosen. Default is 00:00 UTC.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getAlignmentTimeOrBuilder() {
    return alignmentTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : alignmentTime_;
  }

  public static final int ORDER_FIELD_NUMBER = 9;
  private int order_ = 0;
  /**
   *
   *
   * <pre>
   * Optional. The sort order in which the results are returned.
   * Default is `COUNT_DESC`.
   * </pre>
   *
   * <code>
   * .google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder order = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The enum numeric value on the wire for order.
   */
  @java.lang.Override
  public int getOrderValue() {
    return order_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The sort order in which the results are returned.
   * Default is `COUNT_DESC`.
   * </pre>
   *
   * <code>
   * .google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder order = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The order.
   */
  @java.lang.Override
  public com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder getOrder() {
    com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder result =
        com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder.forNumber(order_);
    return result == null
        ? com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder.UNRECOGNIZED
        : result;
  }

  public static final int PAGE_SIZE_FIELD_NUMBER = 11;
  private int pageSize_ = 0;
  /**
   *
   *
   * <pre>
   * Optional. The maximum number of results to return per response.
   * Default is 20.
   * </pre>
   *
   * <code>int32 page_size = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The pageSize.
   */
  @java.lang.Override
  public int getPageSize() {
    return pageSize_;
  }

  public static final int PAGE_TOKEN_FIELD_NUMBER = 12;

  @SuppressWarnings("serial")
  private volatile java.lang.Object pageToken_ = "";
  /**
   *
   *
   * <pre>
   * Optional. A `next_page_token` provided by a previous response. To view
   * additional results, pass this token along with the identical query
   * parameters as the first request.
   * </pre>
   *
   * <code>string page_token = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The pageToken.
   */
  @java.lang.Override
  public java.lang.String getPageToken() {
    java.lang.Object ref = pageToken_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      pageToken_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. A `next_page_token` provided by a previous response. To view
   * additional results, pass this token along with the identical query
   * parameters as the first request.
   * </pre>
   *
   * <code>string page_token = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for pageToken.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getPageTokenBytes() {
    java.lang.Object ref = pageToken_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      pageToken_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectName_);
    }
    for (int i = 0; i < groupId_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupId_.getRaw(i));
    }
    if (serviceFilter_ != null) {
      output.writeMessage(3, getServiceFilter());
    }
    if (timeRange_ != null) {
      output.writeMessage(5, getTimeRange());
    }
    if (timedCountDuration_ != null) {
      output.writeMessage(6, getTimedCountDuration());
    }
    if (alignment_
        != com.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment
            .ERROR_COUNT_ALIGNMENT_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(7, alignment_);
    }
    if (alignmentTime_ != null) {
      output.writeMessage(8, getAlignmentTime());
    }
    if (order_
        != com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder.GROUP_ORDER_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(9, order_);
    }
    if (pageSize_ != 0) {
      output.writeInt32(11, pageSize_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, pageToken_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectName_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < groupId_.size(); i++) {
        dataSize += computeStringSizeNoTag(groupId_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getGroupIdList().size();
    }
    if (serviceFilter_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getServiceFilter());
    }
    if (timeRange_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTimeRange());
    }
    if (timedCountDuration_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTimedCountDuration());
    }
    if (alignment_
        != com.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment
            .ERROR_COUNT_ALIGNMENT_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, alignment_);
    }
    if (alignmentTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAlignmentTime());
    }
    if (order_
        != com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder.GROUP_ORDER_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, order_);
    }
    if (pageSize_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, pageSize_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, pageToken_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest)) {
      return super.equals(obj);
    }
    com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest other =
        (com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest) obj;

    if (!getProjectName().equals(other.getProjectName())) return false;
    if (!getGroupIdList().equals(other.getGroupIdList())) return false;
    if (hasServiceFilter() != other.hasServiceFilter()) return false;
    if (hasServiceFilter()) {
      if (!getServiceFilter().equals(other.getServiceFilter())) return false;
    }
    if (hasTimeRange() != other.hasTimeRange()) return false;
    if (hasTimeRange()) {
      if (!getTimeRange().equals(other.getTimeRange())) return false;
    }
    if (hasTimedCountDuration() != other.hasTimedCountDuration()) return false;
    if (hasTimedCountDuration()) {
      if (!getTimedCountDuration().equals(other.getTimedCountDuration())) return false;
    }
    if (alignment_ != other.alignment_) return false;
    if (hasAlignmentTime() != other.hasAlignmentTime()) return false;
    if (hasAlignmentTime()) {
      if (!getAlignmentTime().equals(other.getAlignmentTime())) return false;
    }
    if (order_ != other.order_) return false;
    if (getPageSize() != other.getPageSize()) return false;
    if (!getPageToken().equals(other.getPageToken())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + PROJECT_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getProjectName().hashCode();
    if (getGroupIdCount() > 0) {
      hash = (37 * hash) + GROUP_ID_FIELD_NUMBER;
      hash = (53 * hash) + getGroupIdList().hashCode();
    }
    if (hasServiceFilter()) {
      hash = (37 * hash) + SERVICE_FILTER_FIELD_NUMBER;
      hash = (53 * hash) + getServiceFilter().hashCode();
    }
    if (hasTimeRange()) {
      hash = (37 * hash) + TIME_RANGE_FIELD_NUMBER;
      hash = (53 * hash) + getTimeRange().hashCode();
    }
    if (hasTimedCountDuration()) {
      hash = (37 * hash) + TIMED_COUNT_DURATION_FIELD_NUMBER;
      hash = (53 * hash) + getTimedCountDuration().hashCode();
    }
    hash = (37 * hash) + ALIGNMENT_FIELD_NUMBER;
    hash = (53 * hash) + alignment_;
    if (hasAlignmentTime()) {
      hash = (37 * hash) + ALIGNMENT_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getAlignmentTime().hashCode();
    }
    hash = (37 * hash) + ORDER_FIELD_NUMBER;
    hash = (53 * hash) + order_;
    hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
    hash = (53 * hash) + getPageSize();
    hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
    hash = (53 * hash) + getPageToken().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest parseFrom(
      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
      parseDelimitedFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(
      com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * Specifies a set of `ErrorGroupStats` to return.
   * </pre>
   *
   * Protobuf type {@code google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest)
      com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.devtools.clouderrorreporting.v1beta1.ErrorStatsServiceProto
          .internal_static_google_devtools_clouderrorreporting_v1beta1_ListGroupStatsRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.clouderrorreporting.v1beta1.ErrorStatsServiceProto
          .internal_static_google_devtools_clouderrorreporting_v1beta1_ListGroupStatsRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.class,
              com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.Builder.class);
    }

    // Construct using
    // com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      projectName_ = "";
      groupId_ = com.google.protobuf.LazyStringArrayList.emptyList();
      serviceFilter_ = null;
      if (serviceFilterBuilder_ != null) {
        serviceFilterBuilder_.dispose();
        serviceFilterBuilder_ = null;
      }
      timeRange_ = null;
      if (timeRangeBuilder_ != null) {
        timeRangeBuilder_.dispose();
        timeRangeBuilder_ = null;
      }
      timedCountDuration_ = null;
      if (timedCountDurationBuilder_ != null) {
        timedCountDurationBuilder_.dispose();
        timedCountDurationBuilder_ = null;
      }
      alignment_ = 0;
      alignmentTime_ = null;
      if (alignmentTimeBuilder_ != null) {
        alignmentTimeBuilder_.dispose();
        alignmentTimeBuilder_ = null;
      }
      order_ = 0;
      pageSize_ = 0;
      pageToken_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.devtools.clouderrorreporting.v1beta1.ErrorStatsServiceProto
          .internal_static_google_devtools_clouderrorreporting_v1beta1_ListGroupStatsRequest_descriptor;
    }

    @java.lang.Override
    public com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
        getDefaultInstanceForType() {
      return com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
          .getDefaultInstance();
    }

    @java.lang.Override
    public com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest build() {
      com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest buildPartial() {
      com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest result =
          new com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartial0(
        com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.projectName_ = projectName_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        groupId_.makeImmutable();
        result.groupId_ = groupId_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.serviceFilter_ =
            serviceFilterBuilder_ == null ? serviceFilter_ : serviceFilterBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.timeRange_ = timeRangeBuilder_ == null ? timeRange_ : timeRangeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.timedCountDuration_ =
            timedCountDurationBuilder_ == null
                ? timedCountDuration_
                : timedCountDurationBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.alignment_ = alignment_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.alignmentTime_ =
            alignmentTimeBuilder_ == null ? alignmentTime_ : alignmentTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.order_ = order_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.pageSize_ = pageSize_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.pageToken_ = pageToken_;
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest) {
        return mergeFrom(
            (com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(
        com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest other) {
      if (other
          == com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
              .getDefaultInstance()) return this;
      if (!other.getProjectName().isEmpty()) {
        projectName_ = other.projectName_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.groupId_.isEmpty()) {
        if (groupId_.isEmpty()) {
          groupId_ = other.groupId_;
          bitField0_ |= 0x00000002;
        } else {
          ensureGroupIdIsMutable();
          groupId_.addAll(other.groupId_);
        }
        onChanged();
      }
      if (other.hasServiceFilter()) {
        mergeServiceFilter(other.getServiceFilter());
      }
      if (other.hasTimeRange()) {
        mergeTimeRange(other.getTimeRange());
      }
      if (other.hasTimedCountDuration()) {
        mergeTimedCountDuration(other.getTimedCountDuration());
      }
      if (other.alignment_ != 0) {
        setAlignmentValue(other.getAlignmentValue());
      }
      if (other.hasAlignmentTime()) {
        mergeAlignmentTime(other.getAlignmentTime());
      }
      if (other.order_ != 0) {
        setOrderValue(other.getOrderValue());
      }
      if (other.getPageSize() != 0) {
        setPageSize(other.getPageSize());
      }
      if (!other.getPageToken().isEmpty()) {
        pageToken_ = other.pageToken_;
        bitField0_ |= 0x00000200;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                projectName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureGroupIdIsMutable();
                groupId_.add(s);
                break;
              } // case 18
            case 26:
              {
                input.readMessage(getServiceFilterFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 42:
              {
                input.readMessage(getTimeRangeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000008;
                break;
              } // case 42
            case 50:
              {
                input.readMessage(
                    getTimedCountDurationFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 50
            case 56:
              {
                alignment_ = input.readEnum();
                bitField0_ |= 0x00000020;
                break;
              } // case 56
            case 66:
              {
                input.readMessage(getAlignmentTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 66
            case 72:
              {
                order_ = input.readEnum();
                bitField0_ |= 0x00000080;
                break;
              } // case 72
            case 88:
              {
                pageSize_ = input.readInt32();
                bitField0_ |= 0x00000100;
                break;
              } // case 88
            case 98:
              {
                pageToken_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000200;
                break;
              } // case 98
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object projectName_ = "";
    /**
     *
     *
     * <pre>
     * Required. The resource name of the Google Cloud Platform project. Written
     * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
     * and `{projectNumber}` can be found in the
     * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
     *
     * Examples: `projects/my-project-123`, `projects/5551234`.
     * </pre>
     *
     * <code>
     * string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The projectName.
     */
    public java.lang.String getProjectName() {
      java.lang.Object ref = projectName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        projectName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The resource name of the Google Cloud Platform project. Written
     * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
     * and `{projectNumber}` can be found in the
     * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
     *
     * Examples: `projects/my-project-123`, `projects/5551234`.
     * </pre>
     *
     * <code>
     * string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The bytes for projectName.
     */
    public com.google.protobuf.ByteString getProjectNameBytes() {
      java.lang.Object ref = projectName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        projectName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The resource name of the Google Cloud Platform project. Written
     * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
     * and `{projectNumber}` can be found in the
     * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
     *
     * Examples: `projects/my-project-123`, `projects/5551234`.
     * </pre>
     *
     * <code>
     * string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The projectName to set.
     * @return This builder for chaining.
     */
    public Builder setProjectName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      projectName_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The resource name of the Google Cloud Platform project. Written
     * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
     * and `{projectNumber}` can be found in the
     * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
     *
     * Examples: `projects/my-project-123`, `projects/5551234`.
     * </pre>
     *
     * <code>
     * string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearProjectName() {
      projectName_ = getDefaultInstance().getProjectName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The resource name of the Google Cloud Platform project. Written
     * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
     * and `{projectNumber}` can be found in the
     * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
     *
     * Examples: `projects/my-project-123`, `projects/5551234`.
     * </pre>
     *
     * <code>
     * string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The bytes for projectName to set.
     * @return This builder for chaining.
     */
    public Builder setProjectNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      projectName_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringArrayList groupId_ =
        com.google.protobuf.LazyStringArrayList.emptyList();

    private void ensureGroupIdIsMutable() {
      if (!groupId_.isModifiable()) {
        groupId_ = new com.google.protobuf.LazyStringArrayList(groupId_);
      }
      bitField0_ |= 0x00000002;
    }
    /**
     *
     *
     * <pre>
     * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
     * </pre>
     *
     * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return A list containing the groupId.
     */
    public com.google.protobuf.ProtocolStringList getGroupIdList() {
      groupId_.makeImmutable();
      return groupId_;
    }
    /**
     *
     *
     * <pre>
     * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
     * </pre>
     *
     * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The count of groupId.
     */
    public int getGroupIdCount() {
      return groupId_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
     * </pre>
     *
     * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the element to return.
     * @return The groupId at the given index.
     */
    public java.lang.String getGroupId(int index) {
      return groupId_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
     * </pre>
     *
     * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the groupId at the given index.
     */
    public com.google.protobuf.ByteString getGroupIdBytes(int index) {
      return groupId_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
     * </pre>
     *
     * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index to set the value at.
     * @param value The groupId to set.
     * @return This builder for chaining.
     */
    public Builder setGroupId(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureGroupIdIsMutable();
      groupId_.set(index, value);
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
     * </pre>
     *
     * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The groupId to add.
     * @return This builder for chaining.
     */
    public Builder addGroupId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureGroupIdIsMutable();
      groupId_.add(value);
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
     * </pre>
     *
     * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param values The groupId to add.
     * @return This builder for chaining.
     */
    public Builder addAllGroupId(java.lang.Iterable<java.lang.String> values) {
      ensureGroupIdIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupId_);
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
     * </pre>
     *
     * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearGroupId() {
      groupId_ = com.google.protobuf.LazyStringArrayList.emptyList();
      bitField0_ = (bitField0_ & ~0x00000002);
      ;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List all &lt;code&gt;ErrorGroupStats&lt;/code&gt; with these IDs.
     * </pre>
     *
     * <code>repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes of the groupId to add.
     * @return This builder for chaining.
     */
    public Builder addGroupIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureGroupIdIsMutable();
      groupId_.add(value);
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter serviceFilter_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter,
            com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.Builder,
            com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilterOrBuilder>
        serviceFilterBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
     * context that matches the filter.
     * Data for all service contexts is returned if this field is not specified.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the serviceFilter field is set.
     */
    public boolean hasServiceFilter() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
     * context that matches the filter.
     * Data for all service contexts is returned if this field is not specified.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The serviceFilter.
     */
    public com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter getServiceFilter() {
      if (serviceFilterBuilder_ == null) {
        return serviceFilter_ == null
            ? com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
                .getDefaultInstance()
            : serviceFilter_;
      } else {
        return serviceFilterBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
     * context that matches the filter.
     * Data for all service contexts is returned if this field is not specified.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setServiceFilter(
        com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter value) {
      if (serviceFilterBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        serviceFilter_ = value;
      } else {
        serviceFilterBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
     * context that matches the filter.
     * Data for all service contexts is returned if this field is not specified.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setServiceFilter(
        com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.Builder
            builderForValue) {
      if (serviceFilterBuilder_ == null) {
        serviceFilter_ = builderForValue.build();
      } else {
        serviceFilterBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
     * context that matches the filter.
     * Data for all service contexts is returned if this field is not specified.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeServiceFilter(
        com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter value) {
      if (serviceFilterBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)
            && serviceFilter_ != null
            && serviceFilter_
                != com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
                    .getDefaultInstance()) {
          getServiceFilterBuilder().mergeFrom(value);
        } else {
          serviceFilter_ = value;
        }
      } else {
        serviceFilterBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
     * context that matches the filter.
     * Data for all service contexts is returned if this field is not specified.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearServiceFilter() {
      bitField0_ = (bitField0_ & ~0x00000004);
      serviceFilter_ = null;
      if (serviceFilterBuilder_ != null) {
        serviceFilterBuilder_.dispose();
        serviceFilterBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
     * context that matches the filter.
     * Data for all service contexts is returned if this field is not specified.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.Builder
        getServiceFilterBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getServiceFilterFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
     * context that matches the filter.
     * Data for all service contexts is returned if this field is not specified.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilterOrBuilder
        getServiceFilterOrBuilder() {
      if (serviceFilterBuilder_ != null) {
        return serviceFilterBuilder_.getMessageOrBuilder();
      } else {
        return serviceFilter_ == null
            ? com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
                .getDefaultInstance()
            : serviceFilter_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. List only &lt;code&gt;ErrorGroupStats&lt;/code&gt; which belong to a service
     * context that matches the filter.
     * Data for all service contexts is returned if this field is not specified.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter,
            com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.Builder,
            com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilterOrBuilder>
        getServiceFilterFieldBuilder() {
      if (serviceFilterBuilder_ == null) {
        serviceFilterBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter,
                com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.Builder,
                com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilterOrBuilder>(
                getServiceFilter(), getParentForChildren(), isClean());
        serviceFilter_ = null;
      }
      return serviceFilterBuilder_;
    }

    private com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange timeRange_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange,
            com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Builder,
            com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRangeOrBuilder>
        timeRangeBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. List data for the given time range.
     * If not set, a default time range is used. The field
     * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
     * of this time range.
     * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
     * range are returned, unless the request contains an explicit
     * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
     * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the timeRange field is set.
     */
    public boolean hasTimeRange() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. List data for the given time range.
     * If not set, a default time range is used. The field
     * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
     * of this time range.
     * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
     * range are returned, unless the request contains an explicit
     * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
     * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The timeRange.
     */
    public com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange getTimeRange() {
      if (timeRangeBuilder_ == null) {
        return timeRange_ == null
            ? com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.getDefaultInstance()
            : timeRange_;
      } else {
        return timeRangeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. List data for the given time range.
     * If not set, a default time range is used. The field
     * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
     * of this time range.
     * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
     * range are returned, unless the request contains an explicit
     * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
     * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setTimeRange(
        com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange value) {
      if (timeRangeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        timeRange_ = value;
      } else {
        timeRangeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List data for the given time range.
     * If not set, a default time range is used. The field
     * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
     * of this time range.
     * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
     * range are returned, unless the request contains an explicit
     * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
     * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setTimeRange(
        com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Builder builderForValue) {
      if (timeRangeBuilder_ == null) {
        timeRange_ = builderForValue.build();
      } else {
        timeRangeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List data for the given time range.
     * If not set, a default time range is used. The field
     * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
     * of this time range.
     * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
     * range are returned, unless the request contains an explicit
     * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
     * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeTimeRange(
        com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange value) {
      if (timeRangeBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)
            && timeRange_ != null
            && timeRange_
                != com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
                    .getDefaultInstance()) {
          getTimeRangeBuilder().mergeFrom(value);
        } else {
          timeRange_ = value;
        }
      } else {
        timeRangeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List data for the given time range.
     * If not set, a default time range is used. The field
     * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
     * of this time range.
     * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
     * range are returned, unless the request contains an explicit
     * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
     * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearTimeRange() {
      bitField0_ = (bitField0_ & ~0x00000008);
      timeRange_ = null;
      if (timeRangeBuilder_ != null) {
        timeRangeBuilder_.dispose();
        timeRangeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. List data for the given time range.
     * If not set, a default time range is used. The field
     * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
     * of this time range.
     * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
     * range are returned, unless the request contains an explicit
     * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
     * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Builder
        getTimeRangeBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getTimeRangeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. List data for the given time range.
     * If not set, a default time range is used. The field
     * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
     * of this time range.
     * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
     * range are returned, unless the request contains an explicit
     * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
     * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRangeOrBuilder
        getTimeRangeOrBuilder() {
      if (timeRangeBuilder_ != null) {
        return timeRangeBuilder_.getMessageOrBuilder();
      } else {
        return timeRange_ == null
            ? com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.getDefaultInstance()
            : timeRange_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. List data for the given time range.
     * If not set, a default time range is used. The field
     * &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning
     * of this time range.
     * Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time
     * range are returned, unless the request contains an explicit
     * &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also
     * &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange,
            com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Builder,
            com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRangeOrBuilder>
        getTimeRangeFieldBuilder() {
      if (timeRangeBuilder_ == null) {
        timeRangeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange,
                com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Builder,
                com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRangeOrBuilder>(
                getTimeRange(), getParentForChildren(), isClean());
        timeRange_ = null;
      }
      return timeRangeBuilder_;
    }

    private com.google.protobuf.Duration timedCountDuration_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Duration,
            com.google.protobuf.Duration.Builder,
            com.google.protobuf.DurationOrBuilder>
        timedCountDurationBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. The preferred duration for a single returned `TimedCount`.
     * If not set, no timed counts are returned.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the timedCountDuration field is set.
     */
    public boolean hasTimedCountDuration() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. The preferred duration for a single returned `TimedCount`.
     * If not set, no timed counts are returned.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The timedCountDuration.
     */
    public com.google.protobuf.Duration getTimedCountDuration() {
      if (timedCountDurationBuilder_ == null) {
        return timedCountDuration_ == null
            ? com.google.protobuf.Duration.getDefaultInstance()
            : timedCountDuration_;
      } else {
        return timedCountDurationBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The preferred duration for a single returned `TimedCount`.
     * If not set, no timed counts are returned.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setTimedCountDuration(com.google.protobuf.Duration value) {
      if (timedCountDurationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        timedCountDuration_ = value;
      } else {
        timedCountDurationBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The preferred duration for a single returned `TimedCount`.
     * If not set, no timed counts are returned.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setTimedCountDuration(com.google.protobuf.Duration.Builder builderForValue) {
      if (timedCountDurationBuilder_ == null) {
        timedCountDuration_ = builderForValue.build();
      } else {
        timedCountDurationBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The preferred duration for a single returned `TimedCount`.
     * If not set, no timed counts are returned.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeTimedCountDuration(com.google.protobuf.Duration value) {
      if (timedCountDurationBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)
            && timedCountDuration_ != null
            && timedCountDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
          getTimedCountDurationBuilder().mergeFrom(value);
        } else {
          timedCountDuration_ = value;
        }
      } else {
        timedCountDurationBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The preferred duration for a single returned `TimedCount`.
     * If not set, no timed counts are returned.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearTimedCountDuration() {
      bitField0_ = (bitField0_ & ~0x00000010);
      timedCountDuration_ = null;
      if (timedCountDurationBuilder_ != null) {
        timedCountDurationBuilder_.dispose();
        timedCountDurationBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The preferred duration for a single returned `TimedCount`.
     * If not set, no timed counts are returned.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.protobuf.Duration.Builder getTimedCountDurationBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getTimedCountDurationFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. The preferred duration for a single returned `TimedCount`.
     * If not set, no timed counts are returned.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.protobuf.DurationOrBuilder getTimedCountDurationOrBuilder() {
      if (timedCountDurationBuilder_ != null) {
        return timedCountDurationBuilder_.getMessageOrBuilder();
      } else {
        return timedCountDuration_ == null
            ? com.google.protobuf.Duration.getDefaultInstance()
            : timedCountDuration_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The preferred duration for a single returned `TimedCount`.
     * If not set, no timed counts are returned.
     * </pre>
     *
     * <code>
     * .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Duration,
            com.google.protobuf.Duration.Builder,
            com.google.protobuf.DurationOrBuilder>
        getTimedCountDurationFieldBuilder() {
      if (timedCountDurationBuilder_ == null) {
        timedCountDurationBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Duration,
                com.google.protobuf.Duration.Builder,
                com.google.protobuf.DurationOrBuilder>(
                getTimedCountDuration(), getParentForChildren(), isClean());
        timedCountDuration_ = null;
      }
      return timedCountDurationBuilder_;
    }

    private int alignment_ = 0;
    /**
     *
     *
     * <pre>
     * Optional. The alignment of the timed counts to be returned.
     * Default is `ALIGNMENT_EQUAL_AT_END`.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment alignment = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The enum numeric value on the wire for alignment.
     */
    @java.lang.Override
    public int getAlignmentValue() {
      return alignment_;
    }
    /**
     *
     *
     * <pre>
     * Optional. The alignment of the timed counts to be returned.
     * Default is `ALIGNMENT_EQUAL_AT_END`.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment alignment = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The enum numeric value on the wire for alignment to set.
     * @return This builder for chaining.
     */
    public Builder setAlignmentValue(int value) {
      alignment_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The alignment of the timed counts to be returned.
     * Default is `ALIGNMENT_EQUAL_AT_END`.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment alignment = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The alignment.
     */
    @java.lang.Override
    public com.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment getAlignment() {
      com.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment result =
          com.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment.forNumber(alignment_);
      return result == null
          ? com.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Optional. The alignment of the timed counts to be returned.
     * Default is `ALIGNMENT_EQUAL_AT_END`.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment alignment = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The alignment to set.
     * @return This builder for chaining.
     */
    public Builder setAlignment(
        com.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000020;
      alignment_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The alignment of the timed counts to be returned.
     * Default is `ALIGNMENT_EQUAL_AT_END`.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment alignment = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAlignment() {
      bitField0_ = (bitField0_ & ~0x00000020);
      alignment_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp alignmentTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        alignmentTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Time where the timed counts shall be aligned if rounded
     * alignment is chosen. Default is 00:00 UTC.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the alignmentTime field is set.
     */
    public boolean hasAlignmentTime() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Time where the timed counts shall be aligned if rounded
     * alignment is chosen. Default is 00:00 UTC.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The alignmentTime.
     */
    public com.google.protobuf.Timestamp getAlignmentTime() {
      if (alignmentTimeBuilder_ == null) {
        return alignmentTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : alignmentTime_;
      } else {
        return alignmentTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Time where the timed counts shall be aligned if rounded
     * alignment is chosen. Default is 00:00 UTC.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setAlignmentTime(com.google.protobuf.Timestamp value) {
      if (alignmentTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        alignmentTime_ = value;
      } else {
        alignmentTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Time where the timed counts shall be aligned if rounded
     * alignment is chosen. Default is 00:00 UTC.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setAlignmentTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (alignmentTimeBuilder_ == null) {
        alignmentTime_ = builderForValue.build();
      } else {
        alignmentTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Time where the timed counts shall be aligned if rounded
     * alignment is chosen. Default is 00:00 UTC.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeAlignmentTime(com.google.protobuf.Timestamp value) {
      if (alignmentTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && alignmentTime_ != null
            && alignmentTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getAlignmentTimeBuilder().mergeFrom(value);
        } else {
          alignmentTime_ = value;
        }
      } else {
        alignmentTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Time where the timed counts shall be aligned if rounded
     * alignment is chosen. Default is 00:00 UTC.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearAlignmentTime() {
      bitField0_ = (bitField0_ & ~0x00000040);
      alignmentTime_ = null;
      if (alignmentTimeBuilder_ != null) {
        alignmentTimeBuilder_.dispose();
        alignmentTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Time where the timed counts shall be aligned if rounded
     * alignment is chosen. Default is 00:00 UTC.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getAlignmentTimeBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getAlignmentTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Time where the timed counts shall be aligned if rounded
     * alignment is chosen. Default is 00:00 UTC.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getAlignmentTimeOrBuilder() {
      if (alignmentTimeBuilder_ != null) {
        return alignmentTimeBuilder_.getMessageOrBuilder();
      } else {
        return alignmentTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : alignmentTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Time where the timed counts shall be aligned if rounded
     * alignment is chosen. Default is 00:00 UTC.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getAlignmentTimeFieldBuilder() {
      if (alignmentTimeBuilder_ == null) {
        alignmentTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getAlignmentTime(), getParentForChildren(), isClean());
        alignmentTime_ = null;
      }
      return alignmentTimeBuilder_;
    }

    private int order_ = 0;
    /**
     *
     *
     * <pre>
     * Optional. The sort order in which the results are returned.
     * Default is `COUNT_DESC`.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder order = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The enum numeric value on the wire for order.
     */
    @java.lang.Override
    public int getOrderValue() {
      return order_;
    }
    /**
     *
     *
     * <pre>
     * Optional. The sort order in which the results are returned.
     * Default is `COUNT_DESC`.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder order = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The enum numeric value on the wire for order to set.
     * @return This builder for chaining.
     */
    public Builder setOrderValue(int value) {
      order_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The sort order in which the results are returned.
     * Default is `COUNT_DESC`.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder order = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The order.
     */
    @java.lang.Override
    public com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder getOrder() {
      com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder result =
          com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder.forNumber(order_);
      return result == null
          ? com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Optional. The sort order in which the results are returned.
     * Default is `COUNT_DESC`.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder order = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The order to set.
     * @return This builder for chaining.
     */
    public Builder setOrder(com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000080;
      order_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The sort order in which the results are returned.
     * Default is `COUNT_DESC`.
     * </pre>
     *
     * <code>
     * .google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder order = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearOrder() {
      bitField0_ = (bitField0_ & ~0x00000080);
      order_ = 0;
      onChanged();
      return this;
    }

    private int pageSize_;
    /**
     *
     *
     * <pre>
     * Optional. The maximum number of results to return per response.
     * Default is 20.
     * </pre>
     *
     * <code>int32 page_size = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The pageSize.
     */
    @java.lang.Override
    public int getPageSize() {
      return pageSize_;
    }
    /**
     *
     *
     * <pre>
     * Optional. The maximum number of results to return per response.
     * Default is 20.
     * </pre>
     *
     * <code>int32 page_size = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The pageSize to set.
     * @return This builder for chaining.
     */
    public Builder setPageSize(int value) {

      pageSize_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The maximum number of results to return per response.
     * Default is 20.
     * </pre>
     *
     * <code>int32 page_size = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPageSize() {
      bitField0_ = (bitField0_ & ~0x00000100);
      pageSize_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object pageToken_ = "";
    /**
     *
     *
     * <pre>
     * Optional. A `next_page_token` provided by a previous response. To view
     * additional results, pass this token along with the identical query
     * parameters as the first request.
     * </pre>
     *
     * <code>string page_token = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The pageToken.
     */
    public java.lang.String getPageToken() {
      java.lang.Object ref = pageToken_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        pageToken_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. A `next_page_token` provided by a previous response. To view
     * additional results, pass this token along with the identical query
     * parameters as the first request.
     * </pre>
     *
     * <code>string page_token = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for pageToken.
     */
    public com.google.protobuf.ByteString getPageTokenBytes() {
      java.lang.Object ref = pageToken_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        pageToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. A `next_page_token` provided by a previous response. To view
     * additional results, pass this token along with the identical query
     * parameters as the first request.
     * </pre>
     *
     * <code>string page_token = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The pageToken to set.
     * @return This builder for chaining.
     */
    public Builder setPageToken(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      pageToken_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. A `next_page_token` provided by a previous response. To view
     * additional results, pass this token along with the identical query
     * parameters as the first request.
     * </pre>
     *
     * <code>string page_token = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPageToken() {
      pageToken_ = getDefaultInstance().getPageToken();
      bitField0_ = (bitField0_ & ~0x00000200);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. A `next_page_token` provided by a previous response. To view
     * additional results, pass this token along with the identical query
     * parameters as the first request.
     * </pre>
     *
     * <code>string page_token = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes for pageToken to set.
     * @return This builder for chaining.
     */
    public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      pageToken_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest)
  }

  // @@protoc_insertion_point(class_scope:google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest)
  private static final com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
      DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest();
  }

  public static com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
      getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<ListGroupStatsRequest> PARSER =
      new com.google.protobuf.AbstractParser<ListGroupStatsRequest>() {
        @java.lang.Override
        public ListGroupStatsRequest parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<ListGroupStatsRequest> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<ListGroupStatsRequest> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
      getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
