/*
 * Copyright 2020 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/analytics/admin/v1alpha/analytics_admin.proto

package com.google.analytics.admin.v1alpha;

/**
 *
 *
 * <pre>
 * Request message for SearchChangeHistoryEvents RPC.
 * </pre>
 *
 * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest}
 */
public final class SearchChangeHistoryEventsRequest extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest)
    SearchChangeHistoryEventsRequestOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use SearchChangeHistoryEventsRequest.newBuilder() to construct.
  private SearchChangeHistoryEventsRequest(
      com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private SearchChangeHistoryEventsRequest() {
    account_ = "";
    property_ = "";
    resourceType_ = java.util.Collections.emptyList();
    action_ = java.util.Collections.emptyList();
    actorEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    pageToken_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.analytics.admin.v1alpha.AnalyticsAdminProto
        .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.analytics.admin.v1alpha.AnalyticsAdminProto
        .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class,
            com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.Builder.class);
  }

  public static final int ACCOUNT_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object account_ = "";
  /**
   *
   *
   * <pre>
   * Required. The account resource for which to return change history
   * resources.
   * </pre>
   *
   * <code>
   * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The account.
   */
  @java.lang.Override
  public java.lang.String getAccount() {
    java.lang.Object ref = account_;
    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();
      account_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. The account resource for which to return change history
   * resources.
   * </pre>
   *
   * <code>
   * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The bytes for account.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getAccountBytes() {
    java.lang.Object ref = account_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      account_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PROPERTY_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object property_ = "";
  /**
   *
   *
   * <pre>
   * Optional. Resource name for a child property. If set, only return changes
   * made to this property or its child resources.
   * </pre>
   *
   * <code>
   * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The property.
   */
  @java.lang.Override
  public java.lang.String getProperty() {
    java.lang.Object ref = property_;
    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();
      property_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. Resource name for a child property. If set, only return changes
   * made to this property or its child resources.
   * </pre>
   *
   * <code>
   * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The bytes for property.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getPropertyBytes() {
    java.lang.Object ref = property_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      property_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RESOURCE_TYPE_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private java.util.List<java.lang.Integer> resourceType_;

  private static final com.google.protobuf.Internal.ListAdapter.Converter<
          java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>
      resourceType_converter_ =
          new com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>() {
            public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType convert(
                java.lang.Integer from) {
              com.google.analytics.admin.v1alpha.ChangeHistoryResourceType result =
                  com.google.analytics.admin.v1alpha.ChangeHistoryResourceType.forNumber(from);
              return result == null
                  ? com.google.analytics.admin.v1alpha.ChangeHistoryResourceType.UNRECOGNIZED
                  : result;
            }
          };
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes if they are for a resource that
   * matches at least one of these types.
   * </pre>
   *
   * <code>
   * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return A list containing the resourceType.
   */
  @java.lang.Override
  public java.util.List<com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>
      getResourceTypeList() {
    return new com.google.protobuf.Internal.ListAdapter<
        java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>(
        resourceType_, resourceType_converter_);
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes if they are for a resource that
   * matches at least one of these types.
   * </pre>
   *
   * <code>
   * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The count of resourceType.
   */
  @java.lang.Override
  public int getResourceTypeCount() {
    return resourceType_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes if they are for a resource that
   * matches at least one of these types.
   * </pre>
   *
   * <code>
   * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @param index The index of the element to return.
   * @return The resourceType at the given index.
   */
  @java.lang.Override
  public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index) {
    return resourceType_converter_.convert(resourceType_.get(index));
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes if they are for a resource that
   * matches at least one of these types.
   * </pre>
   *
   * <code>
   * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return A list containing the enum numeric values on the wire for resourceType.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer> getResourceTypeValueList() {
    return resourceType_;
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes if they are for a resource that
   * matches at least one of these types.
   * </pre>
   *
   * <code>
   * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @param index The index of the value to return.
   * @return The enum numeric value on the wire of resourceType at the given index.
   */
  @java.lang.Override
  public int getResourceTypeValue(int index) {
    return resourceType_.get(index);
  }

  private int resourceTypeMemoizedSerializedSize;

  public static final int ACTION_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private java.util.List<java.lang.Integer> action_;

  private static final com.google.protobuf.Internal.ListAdapter.Converter<
          java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>
      action_converter_ =
          new com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>() {
            public com.google.analytics.admin.v1alpha.ActionType convert(java.lang.Integer from) {
              com.google.analytics.admin.v1alpha.ActionType result =
                  com.google.analytics.admin.v1alpha.ActionType.forNumber(from);
              return result == null
                  ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED
                  : result;
            }
          };
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes that match one or more of these types
   * of actions.
   * </pre>
   *
   * <code>
   * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return A list containing the action.
   */
  @java.lang.Override
  public java.util.List<com.google.analytics.admin.v1alpha.ActionType> getActionList() {
    return new com.google.protobuf.Internal.ListAdapter<
        java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>(
        action_, action_converter_);
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes that match one or more of these types
   * of actions.
   * </pre>
   *
   * <code>
   * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The count of action.
   */
  @java.lang.Override
  public int getActionCount() {
    return action_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes that match one or more of these types
   * of actions.
   * </pre>
   *
   * <code>
   * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @param index The index of the element to return.
   * @return The action at the given index.
   */
  @java.lang.Override
  public com.google.analytics.admin.v1alpha.ActionType getAction(int index) {
    return action_converter_.convert(action_.get(index));
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes that match one or more of these types
   * of actions.
   * </pre>
   *
   * <code>
   * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return A list containing the enum numeric values on the wire for action.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer> getActionValueList() {
    return action_;
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes that match one or more of these types
   * of actions.
   * </pre>
   *
   * <code>
   * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @param index The index of the value to return.
   * @return The enum numeric value on the wire of action at the given index.
   */
  @java.lang.Override
  public int getActionValue(int index) {
    return action_.get(index);
  }

  private int actionMemoizedSerializedSize;

  public static final int ACTOR_EMAIL_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringList actorEmail_;
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes if they are made by a user in this
   * list.
   * </pre>
   *
   * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return A list containing the actorEmail.
   */
  public com.google.protobuf.ProtocolStringList getActorEmailList() {
    return actorEmail_;
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes if they are made by a user in this
   * list.
   * </pre>
   *
   * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The count of actorEmail.
   */
  public int getActorEmailCount() {
    return actorEmail_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes if they are made by a user in this
   * list.
   * </pre>
   *
   * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the element to return.
   * @return The actorEmail at the given index.
   */
  public java.lang.String getActorEmail(int index) {
    return actorEmail_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes if they are made by a user in this
   * list.
   * </pre>
   *
   * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the actorEmail at the given index.
   */
  public com.google.protobuf.ByteString getActorEmailBytes(int index) {
    return actorEmail_.getByteString(index);
  }

  public static final int EARLIEST_CHANGE_TIME_FIELD_NUMBER = 6;
  private com.google.protobuf.Timestamp earliestChangeTime_;
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes made after this time (inclusive).
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the earliestChangeTime field is set.
   */
  @java.lang.Override
  public boolean hasEarliestChangeTime() {
    return earliestChangeTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes made after this time (inclusive).
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The earliestChangeTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getEarliestChangeTime() {
    return earliestChangeTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : earliestChangeTime_;
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes made after this time (inclusive).
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() {
    return earliestChangeTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : earliestChangeTime_;
  }

  public static final int LATEST_CHANGE_TIME_FIELD_NUMBER = 7;
  private com.google.protobuf.Timestamp latestChangeTime_;
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes made before this time (inclusive).
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the latestChangeTime field is set.
   */
  @java.lang.Override
  public boolean hasLatestChangeTime() {
    return latestChangeTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes made before this time (inclusive).
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The latestChangeTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getLatestChangeTime() {
    return latestChangeTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : latestChangeTime_;
  }
  /**
   *
   *
   * <pre>
   * Optional. If set, only return changes made before this time (inclusive).
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() {
    return latestChangeTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : latestChangeTime_;
  }

  public static final int PAGE_SIZE_FIELD_NUMBER = 8;
  private int pageSize_ = 0;
  /**
   *
   *
   * <pre>
   * Optional. The maximum number of ChangeHistoryEvent items to return.
   * The service may return fewer than this value, even if there are additional
   * pages. If unspecified, at most 50 items will be returned.
   * The maximum value is 200 (higher values will be coerced to the maximum).
   * </pre>
   *
   * <code>int32 page_size = 8 [(.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 = 9;

  @SuppressWarnings("serial")
  private volatile java.lang.Object pageToken_ = "";
  /**
   *
   *
   * <pre>
   * Optional. A page token, received from a previous
   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
   * page. When paginating, all other parameters provided to
   * `SearchChangeHistoryEvents` must match the call that provided the page
   * token.
   * </pre>
   *
   * <code>string page_token = 9 [(.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 page token, received from a previous
   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
   * page. When paginating, all other parameters provided to
   * `SearchChangeHistoryEvents` must match the call that provided the page
   * token.
   * </pre>
   *
   * <code>string page_token = 9 [(.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 {
    getSerializedSize();
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, account_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_);
    }
    if (getResourceTypeList().size() > 0) {
      output.writeUInt32NoTag(26);
      output.writeUInt32NoTag(resourceTypeMemoizedSerializedSize);
    }
    for (int i = 0; i < resourceType_.size(); i++) {
      output.writeEnumNoTag(resourceType_.get(i));
    }
    if (getActionList().size() > 0) {
      output.writeUInt32NoTag(34);
      output.writeUInt32NoTag(actionMemoizedSerializedSize);
    }
    for (int i = 0; i < action_.size(); i++) {
      output.writeEnumNoTag(action_.get(i));
    }
    for (int i = 0; i < actorEmail_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, actorEmail_.getRaw(i));
    }
    if (earliestChangeTime_ != null) {
      output.writeMessage(6, getEarliestChangeTime());
    }
    if (latestChangeTime_ != null) {
      output.writeMessage(7, getLatestChangeTime());
    }
    if (pageSize_ != 0) {
      output.writeInt32(8, pageSize_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, 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(account_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, account_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, property_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < resourceType_.size(); i++) {
        dataSize +=
            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(resourceType_.get(i));
      }
      size += dataSize;
      if (!getResourceTypeList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
      }
      resourceTypeMemoizedSerializedSize = dataSize;
    }
    {
      int dataSize = 0;
      for (int i = 0; i < action_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(action_.get(i));
      }
      size += dataSize;
      if (!getActionList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
      }
      actionMemoizedSerializedSize = dataSize;
    }
    {
      int dataSize = 0;
      for (int i = 0; i < actorEmail_.size(); i++) {
        dataSize += computeStringSizeNoTag(actorEmail_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getActorEmailList().size();
    }
    if (earliestChangeTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEarliestChangeTime());
    }
    if (latestChangeTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLatestChangeTime());
    }
    if (pageSize_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, 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.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest)) {
      return super.equals(obj);
    }
    com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest other =
        (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) obj;

    if (!getAccount().equals(other.getAccount())) return false;
    if (!getProperty().equals(other.getProperty())) return false;
    if (!resourceType_.equals(other.resourceType_)) return false;
    if (!action_.equals(other.action_)) return false;
    if (!getActorEmailList().equals(other.getActorEmailList())) return false;
    if (hasEarliestChangeTime() != other.hasEarliestChangeTime()) return false;
    if (hasEarliestChangeTime()) {
      if (!getEarliestChangeTime().equals(other.getEarliestChangeTime())) return false;
    }
    if (hasLatestChangeTime() != other.hasLatestChangeTime()) return false;
    if (hasLatestChangeTime()) {
      if (!getLatestChangeTime().equals(other.getLatestChangeTime())) 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) + ACCOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getAccount().hashCode();
    hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
    hash = (53 * hash) + getProperty().hashCode();
    if (getResourceTypeCount() > 0) {
      hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + resourceType_.hashCode();
    }
    if (getActionCount() > 0) {
      hash = (37 * hash) + ACTION_FIELD_NUMBER;
      hash = (53 * hash) + action_.hashCode();
    }
    if (getActorEmailCount() > 0) {
      hash = (37 * hash) + ACTOR_EMAIL_FIELD_NUMBER;
      hash = (53 * hash) + getActorEmailList().hashCode();
    }
    if (hasEarliestChangeTime()) {
      hash = (37 * hash) + EARLIEST_CHANGE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getEarliestChangeTime().hashCode();
    }
    if (hasLatestChangeTime()) {
      hash = (37 * hash) + LATEST_CHANGE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getLatestChangeTime().hashCode();
    }
    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.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest 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.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom(
      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest 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.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest
      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest
      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.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest 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.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest 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>
   * Request message for SearchChangeHistoryEvents RPC.
   * </pre>
   *
   * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest)
      com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.analytics.admin.v1alpha.AnalyticsAdminProto
          .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.analytics.admin.v1alpha.AnalyticsAdminProto
          .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class,
              com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.Builder.class);
    }

    // Construct using
    // com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      account_ = "";
      property_ = "";
      resourceType_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000004);
      action_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000008);
      actorEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000010);
      earliestChangeTime_ = null;
      if (earliestChangeTimeBuilder_ != null) {
        earliestChangeTimeBuilder_.dispose();
        earliestChangeTimeBuilder_ = null;
      }
      latestChangeTime_ = null;
      if (latestChangeTimeBuilder_ != null) {
        latestChangeTimeBuilder_.dispose();
        latestChangeTimeBuilder_ = null;
      }
      pageSize_ = 0;
      pageToken_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.analytics.admin.v1alpha.AnalyticsAdminProto
          .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor;
    }

    @java.lang.Override
    public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest
        getDefaultInstanceForType() {
      return com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest
          .getDefaultInstance();
    }

    @java.lang.Override
    public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest build() {
      com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest buildPartial() {
      com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result =
          new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(
        com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result) {
      if (((bitField0_ & 0x00000004) != 0)) {
        resourceType_ = java.util.Collections.unmodifiableList(resourceType_);
        bitField0_ = (bitField0_ & ~0x00000004);
      }
      result.resourceType_ = resourceType_;
      if (((bitField0_ & 0x00000008) != 0)) {
        action_ = java.util.Collections.unmodifiableList(action_);
        bitField0_ = (bitField0_ & ~0x00000008);
      }
      result.action_ = action_;
      if (((bitField0_ & 0x00000010) != 0)) {
        actorEmail_ = actorEmail_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000010);
      }
      result.actorEmail_ = actorEmail_;
    }

    private void buildPartial0(
        com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.account_ = account_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.property_ = property_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.earliestChangeTime_ =
            earliestChangeTimeBuilder_ == null
                ? earliestChangeTime_
                : earliestChangeTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.latestChangeTime_ =
            latestChangeTimeBuilder_ == null ? latestChangeTime_ : latestChangeTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.pageSize_ = pageSize_;
      }
      if (((from_bitField0_ & 0x00000100) != 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.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) {
        return mergeFrom(
            (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(
        com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest other) {
      if (other
          == com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest
              .getDefaultInstance()) return this;
      if (!other.getAccount().isEmpty()) {
        account_ = other.account_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getProperty().isEmpty()) {
        property_ = other.property_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.resourceType_.isEmpty()) {
        if (resourceType_.isEmpty()) {
          resourceType_ = other.resourceType_;
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          ensureResourceTypeIsMutable();
          resourceType_.addAll(other.resourceType_);
        }
        onChanged();
      }
      if (!other.action_.isEmpty()) {
        if (action_.isEmpty()) {
          action_ = other.action_;
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          ensureActionIsMutable();
          action_.addAll(other.action_);
        }
        onChanged();
      }
      if (!other.actorEmail_.isEmpty()) {
        if (actorEmail_.isEmpty()) {
          actorEmail_ = other.actorEmail_;
          bitField0_ = (bitField0_ & ~0x00000010);
        } else {
          ensureActorEmailIsMutable();
          actorEmail_.addAll(other.actorEmail_);
        }
        onChanged();
      }
      if (other.hasEarliestChangeTime()) {
        mergeEarliestChangeTime(other.getEarliestChangeTime());
      }
      if (other.hasLatestChangeTime()) {
        mergeLatestChangeTime(other.getLatestChangeTime());
      }
      if (other.getPageSize() != 0) {
        setPageSize(other.getPageSize());
      }
      if (!other.getPageToken().isEmpty()) {
        pageToken_ = other.pageToken_;
        bitField0_ |= 0x00000100;
        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:
              {
                account_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                property_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 24:
              {
                int tmpRaw = input.readEnum();
                ensureResourceTypeIsMutable();
                resourceType_.add(tmpRaw);
                break;
              } // case 24
            case 26:
              {
                int length = input.readRawVarint32();
                int oldLimit = input.pushLimit(length);
                while (input.getBytesUntilLimit() > 0) {
                  int tmpRaw = input.readEnum();
                  ensureResourceTypeIsMutable();
                  resourceType_.add(tmpRaw);
                }
                input.popLimit(oldLimit);
                break;
              } // case 26
            case 32:
              {
                int tmpRaw = input.readEnum();
                ensureActionIsMutable();
                action_.add(tmpRaw);
                break;
              } // case 32
            case 34:
              {
                int length = input.readRawVarint32();
                int oldLimit = input.pushLimit(length);
                while (input.getBytesUntilLimit() > 0) {
                  int tmpRaw = input.readEnum();
                  ensureActionIsMutable();
                  action_.add(tmpRaw);
                }
                input.popLimit(oldLimit);
                break;
              } // case 34
            case 42:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureActorEmailIsMutable();
                actorEmail_.add(s);
                break;
              } // case 42
            case 50:
              {
                input.readMessage(
                    getEarliestChangeTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            case 58:
              {
                input.readMessage(
                    getLatestChangeTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 58
            case 64:
              {
                pageSize_ = input.readInt32();
                bitField0_ |= 0x00000080;
                break;
              } // case 64
            case 74:
              {
                pageToken_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000100;
                break;
              } // case 74
            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 account_ = "";
    /**
     *
     *
     * <pre>
     * Required. The account resource for which to return change history
     * resources.
     * </pre>
     *
     * <code>
     * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The account.
     */
    public java.lang.String getAccount() {
      java.lang.Object ref = account_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        account_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The account resource for which to return change history
     * resources.
     * </pre>
     *
     * <code>
     * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The bytes for account.
     */
    public com.google.protobuf.ByteString getAccountBytes() {
      java.lang.Object ref = account_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        account_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The account resource for which to return change history
     * resources.
     * </pre>
     *
     * <code>
     * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The account to set.
     * @return This builder for chaining.
     */
    public Builder setAccount(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      account_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The account resource for which to return change history
     * resources.
     * </pre>
     *
     * <code>
     * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAccount() {
      account_ = getDefaultInstance().getAccount();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The account resource for which to return change history
     * resources.
     * </pre>
     *
     * <code>
     * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The bytes for account to set.
     * @return This builder for chaining.
     */
    public Builder setAccountBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      account_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object property_ = "";
    /**
     *
     *
     * <pre>
     * Optional. Resource name for a child property. If set, only return changes
     * made to this property or its child resources.
     * </pre>
     *
     * <code>
     * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The property.
     */
    public java.lang.String getProperty() {
      java.lang.Object ref = property_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        property_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Resource name for a child property. If set, only return changes
     * made to this property or its child resources.
     * </pre>
     *
     * <code>
     * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The bytes for property.
     */
    public com.google.protobuf.ByteString getPropertyBytes() {
      java.lang.Object ref = property_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        property_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Resource name for a child property. If set, only return changes
     * made to this property or its child resources.
     * </pre>
     *
     * <code>
     * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The property to set.
     * @return This builder for chaining.
     */
    public Builder setProperty(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      property_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Resource name for a child property. If set, only return changes
     * made to this property or its child resources.
     * </pre>
     *
     * <code>
     * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearProperty() {
      property_ = getDefaultInstance().getProperty();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Resource name for a child property. If set, only return changes
     * made to this property or its child resources.
     * </pre>
     *
     * <code>
     * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The bytes for property to set.
     * @return This builder for chaining.
     */
    public Builder setPropertyBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      property_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.util.List<java.lang.Integer> resourceType_ = java.util.Collections.emptyList();

    private void ensureResourceTypeIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        resourceType_ = new java.util.ArrayList<java.lang.Integer>(resourceType_);
        bitField0_ |= 0x00000004;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return A list containing the resourceType.
     */
    public java.util.List<com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>
        getResourceTypeList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>(
          resourceType_, resourceType_converter_);
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The count of resourceType.
     */
    public int getResourceTypeCount() {
      return resourceType_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the element to return.
     * @return The resourceType at the given index.
     */
    public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index) {
      return resourceType_converter_.convert(resourceType_.get(index));
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index to set the value at.
     * @param value The resourceType to set.
     * @return This builder for chaining.
     */
    public Builder setResourceType(
        int index, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureResourceTypeIsMutable();
      resourceType_.set(index, value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The resourceType to add.
     * @return This builder for chaining.
     */
    public Builder addResourceType(
        com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureResourceTypeIsMutable();
      resourceType_.add(value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param values The resourceType to add.
     * @return This builder for chaining.
     */
    public Builder addAllResourceType(
        java.lang.Iterable<? extends com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>
            values) {
      ensureResourceTypeIsMutable();
      for (com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value : values) {
        resourceType_.add(value.getNumber());
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearResourceType() {
      resourceType_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return A list containing the enum numeric values on the wire for resourceType.
     */
    public java.util.List<java.lang.Integer> getResourceTypeValueList() {
      return java.util.Collections.unmodifiableList(resourceType_);
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of resourceType at the given index.
     */
    public int getResourceTypeValue(int index) {
      return resourceType_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index to set the value at.
     * @param value The enum numeric value on the wire for resourceType to set.
     * @return This builder for chaining.
     */
    public Builder setResourceTypeValue(int index, int value) {
      ensureResourceTypeIsMutable();
      resourceType_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The enum numeric value on the wire for resourceType to add.
     * @return This builder for chaining.
     */
    public Builder addResourceTypeValue(int value) {
      ensureResourceTypeIsMutable();
      resourceType_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are for a resource that
     * matches at least one of these types.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param values The enum numeric values on the wire for resourceType to add.
     * @return This builder for chaining.
     */
    public Builder addAllResourceTypeValue(java.lang.Iterable<java.lang.Integer> values) {
      ensureResourceTypeIsMutable();
      for (int value : values) {
        resourceType_.add(value);
      }
      onChanged();
      return this;
    }

    private java.util.List<java.lang.Integer> action_ = java.util.Collections.emptyList();

    private void ensureActionIsMutable() {
      if (!((bitField0_ & 0x00000008) != 0)) {
        action_ = new java.util.ArrayList<java.lang.Integer>(action_);
        bitField0_ |= 0x00000008;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return A list containing the action.
     */
    public java.util.List<com.google.analytics.admin.v1alpha.ActionType> getActionList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>(
          action_, action_converter_);
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The count of action.
     */
    public int getActionCount() {
      return action_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the element to return.
     * @return The action at the given index.
     */
    public com.google.analytics.admin.v1alpha.ActionType getAction(int index) {
      return action_converter_.convert(action_.get(index));
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index to set the value at.
     * @param value The action to set.
     * @return This builder for chaining.
     */
    public Builder setAction(int index, com.google.analytics.admin.v1alpha.ActionType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureActionIsMutable();
      action_.set(index, value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The action to add.
     * @return This builder for chaining.
     */
    public Builder addAction(com.google.analytics.admin.v1alpha.ActionType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureActionIsMutable();
      action_.add(value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param values The action to add.
     * @return This builder for chaining.
     */
    public Builder addAllAction(
        java.lang.Iterable<? extends com.google.analytics.admin.v1alpha.ActionType> values) {
      ensureActionIsMutable();
      for (com.google.analytics.admin.v1alpha.ActionType value : values) {
        action_.add(value.getNumber());
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAction() {
      action_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return A list containing the enum numeric values on the wire for action.
     */
    public java.util.List<java.lang.Integer> getActionValueList() {
      return java.util.Collections.unmodifiableList(action_);
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of action at the given index.
     */
    public int getActionValue(int index) {
      return action_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index to set the value at.
     * @param value The enum numeric value on the wire for action to set.
     * @return This builder for chaining.
     */
    public Builder setActionValue(int index, int value) {
      ensureActionIsMutable();
      action_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The enum numeric value on the wire for action to add.
     * @return This builder for chaining.
     */
    public Builder addActionValue(int value) {
      ensureActionIsMutable();
      action_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes that match one or more of these types
     * of actions.
     * </pre>
     *
     * <code>
     * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param values The enum numeric values on the wire for action to add.
     * @return This builder for chaining.
     */
    public Builder addAllActionValue(java.lang.Iterable<java.lang.Integer> values) {
      ensureActionIsMutable();
      for (int value : values) {
        action_.add(value);
      }
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList actorEmail_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureActorEmailIsMutable() {
      if (!((bitField0_ & 0x00000010) != 0)) {
        actorEmail_ = new com.google.protobuf.LazyStringArrayList(actorEmail_);
        bitField0_ |= 0x00000010;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are made by a user in this
     * list.
     * </pre>
     *
     * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return A list containing the actorEmail.
     */
    public com.google.protobuf.ProtocolStringList getActorEmailList() {
      return actorEmail_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are made by a user in this
     * list.
     * </pre>
     *
     * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The count of actorEmail.
     */
    public int getActorEmailCount() {
      return actorEmail_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are made by a user in this
     * list.
     * </pre>
     *
     * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the element to return.
     * @return The actorEmail at the given index.
     */
    public java.lang.String getActorEmail(int index) {
      return actorEmail_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are made by a user in this
     * list.
     * </pre>
     *
     * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the actorEmail at the given index.
     */
    public com.google.protobuf.ByteString getActorEmailBytes(int index) {
      return actorEmail_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are made by a user in this
     * list.
     * </pre>
     *
     * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index to set the value at.
     * @param value The actorEmail to set.
     * @return This builder for chaining.
     */
    public Builder setActorEmail(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureActorEmailIsMutable();
      actorEmail_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are made by a user in this
     * list.
     * </pre>
     *
     * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The actorEmail to add.
     * @return This builder for chaining.
     */
    public Builder addActorEmail(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureActorEmailIsMutable();
      actorEmail_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are made by a user in this
     * list.
     * </pre>
     *
     * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param values The actorEmail to add.
     * @return This builder for chaining.
     */
    public Builder addAllActorEmail(java.lang.Iterable<java.lang.String> values) {
      ensureActorEmailIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actorEmail_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are made by a user in this
     * list.
     * </pre>
     *
     * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearActorEmail() {
      actorEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes if they are made by a user in this
     * list.
     * </pre>
     *
     * <code>repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes of the actorEmail to add.
     * @return This builder for chaining.
     */
    public Builder addActorEmailBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureActorEmailIsMutable();
      actorEmail_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp earliestChangeTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        earliestChangeTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made after this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the earliestChangeTime field is set.
     */
    public boolean hasEarliestChangeTime() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made after this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The earliestChangeTime.
     */
    public com.google.protobuf.Timestamp getEarliestChangeTime() {
      if (earliestChangeTimeBuilder_ == null) {
        return earliestChangeTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : earliestChangeTime_;
      } else {
        return earliestChangeTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made after this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setEarliestChangeTime(com.google.protobuf.Timestamp value) {
      if (earliestChangeTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        earliestChangeTime_ = value;
      } else {
        earliestChangeTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made after this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setEarliestChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (earliestChangeTimeBuilder_ == null) {
        earliestChangeTime_ = builderForValue.build();
      } else {
        earliestChangeTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made after this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeEarliestChangeTime(com.google.protobuf.Timestamp value) {
      if (earliestChangeTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000020) != 0)
            && earliestChangeTime_ != null
            && earliestChangeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getEarliestChangeTimeBuilder().mergeFrom(value);
        } else {
          earliestChangeTime_ = value;
        }
      } else {
        earliestChangeTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made after this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearEarliestChangeTime() {
      bitField0_ = (bitField0_ & ~0x00000020);
      earliestChangeTime_ = null;
      if (earliestChangeTimeBuilder_ != null) {
        earliestChangeTimeBuilder_.dispose();
        earliestChangeTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made after this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getEarliestChangeTimeBuilder() {
      bitField0_ |= 0x00000020;
      onChanged();
      return getEarliestChangeTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made after this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() {
      if (earliestChangeTimeBuilder_ != null) {
        return earliestChangeTimeBuilder_.getMessageOrBuilder();
      } else {
        return earliestChangeTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : earliestChangeTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made after this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getEarliestChangeTimeFieldBuilder() {
      if (earliestChangeTimeBuilder_ == null) {
        earliestChangeTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getEarliestChangeTime(), getParentForChildren(), isClean());
        earliestChangeTime_ = null;
      }
      return earliestChangeTimeBuilder_;
    }

    private com.google.protobuf.Timestamp latestChangeTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        latestChangeTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made before this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the latestChangeTime field is set.
     */
    public boolean hasLatestChangeTime() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made before this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The latestChangeTime.
     */
    public com.google.protobuf.Timestamp getLatestChangeTime() {
      if (latestChangeTimeBuilder_ == null) {
        return latestChangeTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : latestChangeTime_;
      } else {
        return latestChangeTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made before this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setLatestChangeTime(com.google.protobuf.Timestamp value) {
      if (latestChangeTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        latestChangeTime_ = value;
      } else {
        latestChangeTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made before this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setLatestChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (latestChangeTimeBuilder_ == null) {
        latestChangeTime_ = builderForValue.build();
      } else {
        latestChangeTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made before this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeLatestChangeTime(com.google.protobuf.Timestamp value) {
      if (latestChangeTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && latestChangeTime_ != null
            && latestChangeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getLatestChangeTimeBuilder().mergeFrom(value);
        } else {
          latestChangeTime_ = value;
        }
      } else {
        latestChangeTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made before this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearLatestChangeTime() {
      bitField0_ = (bitField0_ & ~0x00000040);
      latestChangeTime_ = null;
      if (latestChangeTimeBuilder_ != null) {
        latestChangeTimeBuilder_.dispose();
        latestChangeTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made before this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getLatestChangeTimeBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getLatestChangeTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made before this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() {
      if (latestChangeTimeBuilder_ != null) {
        return latestChangeTimeBuilder_.getMessageOrBuilder();
      } else {
        return latestChangeTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : latestChangeTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. If set, only return changes made before this time (inclusive).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getLatestChangeTimeFieldBuilder() {
      if (latestChangeTimeBuilder_ == null) {
        latestChangeTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getLatestChangeTime(), getParentForChildren(), isClean());
        latestChangeTime_ = null;
      }
      return latestChangeTimeBuilder_;
    }

    private int pageSize_;
    /**
     *
     *
     * <pre>
     * Optional. The maximum number of ChangeHistoryEvent items to return.
     * The service may return fewer than this value, even if there are additional
     * pages. If unspecified, at most 50 items will be returned.
     * The maximum value is 200 (higher values will be coerced to the maximum).
     * </pre>
     *
     * <code>int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The pageSize.
     */
    @java.lang.Override
    public int getPageSize() {
      return pageSize_;
    }
    /**
     *
     *
     * <pre>
     * Optional. The maximum number of ChangeHistoryEvent items to return.
     * The service may return fewer than this value, even if there are additional
     * pages. If unspecified, at most 50 items will be returned.
     * The maximum value is 200 (higher values will be coerced to the maximum).
     * </pre>
     *
     * <code>int32 page_size = 8 [(.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_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The maximum number of ChangeHistoryEvent items to return.
     * The service may return fewer than this value, even if there are additional
     * pages. If unspecified, at most 50 items will be returned.
     * The maximum value is 200 (higher values will be coerced to the maximum).
     * </pre>
     *
     * <code>int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPageSize() {
      bitField0_ = (bitField0_ & ~0x00000080);
      pageSize_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object pageToken_ = "";
    /**
     *
     *
     * <pre>
     * Optional. A page token, received from a previous
     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
     * page. When paginating, all other parameters provided to
     * `SearchChangeHistoryEvents` must match the call that provided the page
     * token.
     * </pre>
     *
     * <code>string page_token = 9 [(.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 page token, received from a previous
     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
     * page. When paginating, all other parameters provided to
     * `SearchChangeHistoryEvents` must match the call that provided the page
     * token.
     * </pre>
     *
     * <code>string page_token = 9 [(.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 page token, received from a previous
     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
     * page. When paginating, all other parameters provided to
     * `SearchChangeHistoryEvents` must match the call that provided the page
     * token.
     * </pre>
     *
     * <code>string page_token = 9 [(.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_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. A page token, received from a previous
     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
     * page. When paginating, all other parameters provided to
     * `SearchChangeHistoryEvents` must match the call that provided the page
     * token.
     * </pre>
     *
     * <code>string page_token = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPageToken() {
      pageToken_ = getDefaultInstance().getPageToken();
      bitField0_ = (bitField0_ & ~0x00000100);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. A page token, received from a previous
     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
     * page. When paginating, all other parameters provided to
     * `SearchChangeHistoryEvents` must match the call that provided the page
     * token.
     * </pre>
     *
     * <code>string page_token = 9 [(.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_ |= 0x00000100;
      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.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest)
  }

  // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest)
  private static final com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest
      DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest();
  }

  public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest
      getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<SearchChangeHistoryEventsRequest> PARSER =
      new com.google.protobuf.AbstractParser<SearchChangeHistoryEventsRequest>() {
        @java.lang.Override
        public SearchChangeHistoryEventsRequest 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<SearchChangeHistoryEventsRequest> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest
      getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
