/*
 * 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/cloud/channel/v1/entitlement_changes.proto

package com.google.cloud.channel.v1;

/**
 *
 *
 * <pre>
 * Change event entry for Entitlement order history
 * </pre>
 *
 * Protobuf type {@code google.cloud.channel.v1.EntitlementChange}
 */
public final class EntitlementChange extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.EntitlementChange)
    EntitlementChangeOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use EntitlementChange.newBuilder() to construct.
  private EntitlementChange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private EntitlementChange() {
    entitlement_ = "";
    offer_ = "";
    changeType_ = 0;
    operatorType_ = 0;
    parameters_ = java.util.Collections.emptyList();
    operator_ = "";
  }

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

  @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.cloud.channel.v1.EntitlementChangesProto
        .internal_static_google_cloud_channel_v1_EntitlementChange_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.channel.v1.EntitlementChangesProto
        .internal_static_google_cloud_channel_v1_EntitlementChange_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.channel.v1.EntitlementChange.class,
            com.google.cloud.channel.v1.EntitlementChange.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * Specifies the type of change action
   * </pre>
   *
   * Protobuf enum {@code google.cloud.channel.v1.EntitlementChange.ChangeType}
   */
  public enum ChangeType implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Not used.
     * </pre>
     *
     * <code>CHANGE_TYPE_UNSPECIFIED = 0;</code>
     */
    CHANGE_TYPE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * New Entitlement was created.
     * </pre>
     *
     * <code>CREATED = 1;</code>
     */
    CREATED(1),
    /**
     *
     *
     * <pre>
     * Price plan associated with an Entitlement was changed.
     * </pre>
     *
     * <code>PRICE_PLAN_SWITCHED = 3;</code>
     */
    PRICE_PLAN_SWITCHED(3),
    /**
     *
     *
     * <pre>
     * Number of seats committed for a commitment Entitlement was changed.
     * </pre>
     *
     * <code>COMMITMENT_CHANGED = 4;</code>
     */
    COMMITMENT_CHANGED(4),
    /**
     *
     *
     * <pre>
     * An annual Entitlement was renewed.
     * </pre>
     *
     * <code>RENEWED = 5;</code>
     */
    RENEWED(5),
    /**
     *
     *
     * <pre>
     * Entitlement was suspended.
     * </pre>
     *
     * <code>SUSPENDED = 6;</code>
     */
    SUSPENDED(6),
    /**
     *
     *
     * <pre>
     * Entitlement was activated.
     * </pre>
     *
     * <code>ACTIVATED = 7;</code>
     */
    ACTIVATED(7),
    /**
     *
     *
     * <pre>
     * Entitlement was cancelled.
     * </pre>
     *
     * <code>CANCELLED = 8;</code>
     */
    CANCELLED(8),
    /**
     *
     *
     * <pre>
     * Entitlement was upgraded or downgraded for ex. from Google Workspace
     * Business Standard to Google Workspace Business Plus.
     * </pre>
     *
     * <code>SKU_CHANGED = 9;</code>
     */
    SKU_CHANGED(9),
    /**
     *
     *
     * <pre>
     * The settings for renewal of an Entitlement have changed.
     * </pre>
     *
     * <code>RENEWAL_SETTING_CHANGED = 10;</code>
     */
    RENEWAL_SETTING_CHANGED(10),
    /**
     *
     *
     * <pre>
     * Use for Google Workspace subscription.
     * Either a trial was converted to a paid subscription or a new subscription
     * with no trial is created.
     * </pre>
     *
     * <code>PAID_SUBSCRIPTION_STARTED = 11;</code>
     */
    PAID_SUBSCRIPTION_STARTED(11),
    /**
     *
     *
     * <pre>
     * License cap was changed for the entitlement.
     * </pre>
     *
     * <code>LICENSE_CAP_CHANGED = 12;</code>
     */
    LICENSE_CAP_CHANGED(12),
    /**
     *
     *
     * <pre>
     * The suspension details have changed (but it is still suspended).
     * </pre>
     *
     * <code>SUSPENSION_DETAILS_CHANGED = 13;</code>
     */
    SUSPENSION_DETAILS_CHANGED(13),
    /**
     *
     *
     * <pre>
     * The trial end date was extended.
     * </pre>
     *
     * <code>TRIAL_END_DATE_EXTENDED = 14;</code>
     */
    TRIAL_END_DATE_EXTENDED(14),
    /**
     *
     *
     * <pre>
     * Entitlement started trial.
     * </pre>
     *
     * <code>TRIAL_STARTED = 15;</code>
     */
    TRIAL_STARTED(15),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Not used.
     * </pre>
     *
     * <code>CHANGE_TYPE_UNSPECIFIED = 0;</code>
     */
    public static final int CHANGE_TYPE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * New Entitlement was created.
     * </pre>
     *
     * <code>CREATED = 1;</code>
     */
    public static final int CREATED_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Price plan associated with an Entitlement was changed.
     * </pre>
     *
     * <code>PRICE_PLAN_SWITCHED = 3;</code>
     */
    public static final int PRICE_PLAN_SWITCHED_VALUE = 3;
    /**
     *
     *
     * <pre>
     * Number of seats committed for a commitment Entitlement was changed.
     * </pre>
     *
     * <code>COMMITMENT_CHANGED = 4;</code>
     */
    public static final int COMMITMENT_CHANGED_VALUE = 4;
    /**
     *
     *
     * <pre>
     * An annual Entitlement was renewed.
     * </pre>
     *
     * <code>RENEWED = 5;</code>
     */
    public static final int RENEWED_VALUE = 5;
    /**
     *
     *
     * <pre>
     * Entitlement was suspended.
     * </pre>
     *
     * <code>SUSPENDED = 6;</code>
     */
    public static final int SUSPENDED_VALUE = 6;
    /**
     *
     *
     * <pre>
     * Entitlement was activated.
     * </pre>
     *
     * <code>ACTIVATED = 7;</code>
     */
    public static final int ACTIVATED_VALUE = 7;
    /**
     *
     *
     * <pre>
     * Entitlement was cancelled.
     * </pre>
     *
     * <code>CANCELLED = 8;</code>
     */
    public static final int CANCELLED_VALUE = 8;
    /**
     *
     *
     * <pre>
     * Entitlement was upgraded or downgraded for ex. from Google Workspace
     * Business Standard to Google Workspace Business Plus.
     * </pre>
     *
     * <code>SKU_CHANGED = 9;</code>
     */
    public static final int SKU_CHANGED_VALUE = 9;
    /**
     *
     *
     * <pre>
     * The settings for renewal of an Entitlement have changed.
     * </pre>
     *
     * <code>RENEWAL_SETTING_CHANGED = 10;</code>
     */
    public static final int RENEWAL_SETTING_CHANGED_VALUE = 10;
    /**
     *
     *
     * <pre>
     * Use for Google Workspace subscription.
     * Either a trial was converted to a paid subscription or a new subscription
     * with no trial is created.
     * </pre>
     *
     * <code>PAID_SUBSCRIPTION_STARTED = 11;</code>
     */
    public static final int PAID_SUBSCRIPTION_STARTED_VALUE = 11;
    /**
     *
     *
     * <pre>
     * License cap was changed for the entitlement.
     * </pre>
     *
     * <code>LICENSE_CAP_CHANGED = 12;</code>
     */
    public static final int LICENSE_CAP_CHANGED_VALUE = 12;
    /**
     *
     *
     * <pre>
     * The suspension details have changed (but it is still suspended).
     * </pre>
     *
     * <code>SUSPENSION_DETAILS_CHANGED = 13;</code>
     */
    public static final int SUSPENSION_DETAILS_CHANGED_VALUE = 13;
    /**
     *
     *
     * <pre>
     * The trial end date was extended.
     * </pre>
     *
     * <code>TRIAL_END_DATE_EXTENDED = 14;</code>
     */
    public static final int TRIAL_END_DATE_EXTENDED_VALUE = 14;
    /**
     *
     *
     * <pre>
     * Entitlement started trial.
     * </pre>
     *
     * <code>TRIAL_STARTED = 15;</code>
     */
    public static final int TRIAL_STARTED_VALUE = 15;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ChangeType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static ChangeType forNumber(int value) {
      switch (value) {
        case 0:
          return CHANGE_TYPE_UNSPECIFIED;
        case 1:
          return CREATED;
        case 3:
          return PRICE_PLAN_SWITCHED;
        case 4:
          return COMMITMENT_CHANGED;
        case 5:
          return RENEWED;
        case 6:
          return SUSPENDED;
        case 7:
          return ACTIVATED;
        case 8:
          return CANCELLED;
        case 9:
          return SKU_CHANGED;
        case 10:
          return RENEWAL_SETTING_CHANGED;
        case 11:
          return PAID_SUBSCRIPTION_STARTED;
        case 12:
          return LICENSE_CAP_CHANGED;
        case 13:
          return SUSPENSION_DETAILS_CHANGED;
        case 14:
          return TRIAL_END_DATE_EXTENDED;
        case 15:
          return TRIAL_STARTED;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<ChangeType> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<ChangeType> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<ChangeType>() {
          public ChangeType findValueByNumber(int number) {
            return ChangeType.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.channel.v1.EntitlementChange.getDescriptor().getEnumTypes().get(0);
    }

    private static final ChangeType[] VALUES = values();

    public static ChangeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private ChangeType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.channel.v1.EntitlementChange.ChangeType)
  }

  /**
   *
   *
   * <pre>
   * Specifies the type of operator responsible for the change
   * </pre>
   *
   * Protobuf enum {@code google.cloud.channel.v1.EntitlementChange.OperatorType}
   */
  public enum OperatorType implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Not used.
     * </pre>
     *
     * <code>OPERATOR_TYPE_UNSPECIFIED = 0;</code>
     */
    OPERATOR_TYPE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Customer service representative.
     * </pre>
     *
     * <code>CUSTOMER_SERVICE_REPRESENTATIVE = 1;</code>
     */
    CUSTOMER_SERVICE_REPRESENTATIVE(1),
    /**
     *
     *
     * <pre>
     * System auto job.
     * </pre>
     *
     * <code>SYSTEM = 2;</code>
     */
    SYSTEM(2),
    /**
     *
     *
     * <pre>
     * Customer user.
     * </pre>
     *
     * <code>CUSTOMER = 3;</code>
     */
    CUSTOMER(3),
    /**
     *
     *
     * <pre>
     * Reseller user.
     * </pre>
     *
     * <code>RESELLER = 4;</code>
     */
    RESELLER(4),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Not used.
     * </pre>
     *
     * <code>OPERATOR_TYPE_UNSPECIFIED = 0;</code>
     */
    public static final int OPERATOR_TYPE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Customer service representative.
     * </pre>
     *
     * <code>CUSTOMER_SERVICE_REPRESENTATIVE = 1;</code>
     */
    public static final int CUSTOMER_SERVICE_REPRESENTATIVE_VALUE = 1;
    /**
     *
     *
     * <pre>
     * System auto job.
     * </pre>
     *
     * <code>SYSTEM = 2;</code>
     */
    public static final int SYSTEM_VALUE = 2;
    /**
     *
     *
     * <pre>
     * Customer user.
     * </pre>
     *
     * <code>CUSTOMER = 3;</code>
     */
    public static final int CUSTOMER_VALUE = 3;
    /**
     *
     *
     * <pre>
     * Reseller user.
     * </pre>
     *
     * <code>RESELLER = 4;</code>
     */
    public static final int RESELLER_VALUE = 4;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static OperatorType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static OperatorType forNumber(int value) {
      switch (value) {
        case 0:
          return OPERATOR_TYPE_UNSPECIFIED;
        case 1:
          return CUSTOMER_SERVICE_REPRESENTATIVE;
        case 2:
          return SYSTEM;
        case 3:
          return CUSTOMER;
        case 4:
          return RESELLER;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<OperatorType> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<OperatorType> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<OperatorType>() {
          public OperatorType findValueByNumber(int number) {
            return OperatorType.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.channel.v1.EntitlementChange.getDescriptor().getEnumTypes().get(1);
    }

    private static final OperatorType[] VALUES = values();

    public static OperatorType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private OperatorType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.channel.v1.EntitlementChange.OperatorType)
  }

  /**
   *
   *
   * <pre>
   * Cancellation reason for the entitlement
   * </pre>
   *
   * Protobuf enum {@code google.cloud.channel.v1.EntitlementChange.CancellationReason}
   */
  public enum CancellationReason implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Not used.
     * </pre>
     *
     * <code>CANCELLATION_REASON_UNSPECIFIED = 0;</code>
     */
    CANCELLATION_REASON_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Reseller triggered a cancellation of the service.
     * </pre>
     *
     * <code>SERVICE_TERMINATED = 1;</code>
     */
    SERVICE_TERMINATED(1),
    /**
     *
     *
     * <pre>
     * Relationship between the reseller and customer has ended due to a
     * transfer.
     * </pre>
     *
     * <code>RELATIONSHIP_ENDED = 2;</code>
     */
    RELATIONSHIP_ENDED(2),
    /**
     *
     *
     * <pre>
     * Entitlement transferred away from reseller while still keeping other
     * entitlement(s) with the reseller.
     * </pre>
     *
     * <code>PARTIAL_TRANSFER = 3;</code>
     */
    PARTIAL_TRANSFER(3),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Not used.
     * </pre>
     *
     * <code>CANCELLATION_REASON_UNSPECIFIED = 0;</code>
     */
    public static final int CANCELLATION_REASON_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Reseller triggered a cancellation of the service.
     * </pre>
     *
     * <code>SERVICE_TERMINATED = 1;</code>
     */
    public static final int SERVICE_TERMINATED_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Relationship between the reseller and customer has ended due to a
     * transfer.
     * </pre>
     *
     * <code>RELATIONSHIP_ENDED = 2;</code>
     */
    public static final int RELATIONSHIP_ENDED_VALUE = 2;
    /**
     *
     *
     * <pre>
     * Entitlement transferred away from reseller while still keeping other
     * entitlement(s) with the reseller.
     * </pre>
     *
     * <code>PARTIAL_TRANSFER = 3;</code>
     */
    public static final int PARTIAL_TRANSFER_VALUE = 3;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static CancellationReason valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static CancellationReason forNumber(int value) {
      switch (value) {
        case 0:
          return CANCELLATION_REASON_UNSPECIFIED;
        case 1:
          return SERVICE_TERMINATED;
        case 2:
          return RELATIONSHIP_ENDED;
        case 3:
          return PARTIAL_TRANSFER;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<CancellationReason>
        internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<CancellationReason>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<CancellationReason>() {
              public CancellationReason findValueByNumber(int number) {
                return CancellationReason.forNumber(number);
              }
            };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.channel.v1.EntitlementChange.getDescriptor().getEnumTypes().get(2);
    }

    private static final CancellationReason[] VALUES = values();

    public static CancellationReason valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private CancellationReason(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.channel.v1.EntitlementChange.CancellationReason)
  }

  /**
   *
   *
   * <pre>
   * The Entitlement's activation reason
   * </pre>
   *
   * Protobuf enum {@code google.cloud.channel.v1.EntitlementChange.ActivationReason}
   */
  public enum ActivationReason implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Not used.
     * </pre>
     *
     * <code>ACTIVATION_REASON_UNSPECIFIED = 0;</code>
     */
    ACTIVATION_REASON_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Reseller reactivated a suspended Entitlement.
     * </pre>
     *
     * <code>RESELLER_REVOKED_SUSPENSION = 1;</code>
     */
    RESELLER_REVOKED_SUSPENSION(1),
    /**
     *
     *
     * <pre>
     * Customer accepted pending terms of service.
     * </pre>
     *
     * <code>CUSTOMER_ACCEPTED_PENDING_TOS = 2;</code>
     */
    CUSTOMER_ACCEPTED_PENDING_TOS(2),
    /**
     *
     *
     * <pre>
     * Reseller updated the renewal settings on an entitlement that was
     * suspended due to cancellation, and this update reactivated the
     * entitlement.
     * </pre>
     *
     * <code>RENEWAL_SETTINGS_CHANGED = 3;</code>
     */
    RENEWAL_SETTINGS_CHANGED(3),
    /**
     *
     *
     * <pre>
     * Other reasons (Activated temporarily for cancellation, added a payment
     * plan to a trial entitlement, etc.)
     * </pre>
     *
     * <code>OTHER_ACTIVATION_REASON = 100;</code>
     */
    OTHER_ACTIVATION_REASON(100),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Not used.
     * </pre>
     *
     * <code>ACTIVATION_REASON_UNSPECIFIED = 0;</code>
     */
    public static final int ACTIVATION_REASON_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Reseller reactivated a suspended Entitlement.
     * </pre>
     *
     * <code>RESELLER_REVOKED_SUSPENSION = 1;</code>
     */
    public static final int RESELLER_REVOKED_SUSPENSION_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Customer accepted pending terms of service.
     * </pre>
     *
     * <code>CUSTOMER_ACCEPTED_PENDING_TOS = 2;</code>
     */
    public static final int CUSTOMER_ACCEPTED_PENDING_TOS_VALUE = 2;
    /**
     *
     *
     * <pre>
     * Reseller updated the renewal settings on an entitlement that was
     * suspended due to cancellation, and this update reactivated the
     * entitlement.
     * </pre>
     *
     * <code>RENEWAL_SETTINGS_CHANGED = 3;</code>
     */
    public static final int RENEWAL_SETTINGS_CHANGED_VALUE = 3;
    /**
     *
     *
     * <pre>
     * Other reasons (Activated temporarily for cancellation, added a payment
     * plan to a trial entitlement, etc.)
     * </pre>
     *
     * <code>OTHER_ACTIVATION_REASON = 100;</code>
     */
    public static final int OTHER_ACTIVATION_REASON_VALUE = 100;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ActivationReason valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static ActivationReason forNumber(int value) {
      switch (value) {
        case 0:
          return ACTIVATION_REASON_UNSPECIFIED;
        case 1:
          return RESELLER_REVOKED_SUSPENSION;
        case 2:
          return CUSTOMER_ACCEPTED_PENDING_TOS;
        case 3:
          return RENEWAL_SETTINGS_CHANGED;
        case 100:
          return OTHER_ACTIVATION_REASON;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<ActivationReason> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<ActivationReason>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<ActivationReason>() {
              public ActivationReason findValueByNumber(int number) {
                return ActivationReason.forNumber(number);
              }
            };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.channel.v1.EntitlementChange.getDescriptor().getEnumTypes().get(3);
    }

    private static final ActivationReason[] VALUES = values();

    public static ActivationReason valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private ActivationReason(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.channel.v1.EntitlementChange.ActivationReason)
  }

  private int changeReasonCase_ = 0;
  private java.lang.Object changeReason_;

  public enum ChangeReasonCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    SUSPENSION_REASON(9),
    CANCELLATION_REASON(10),
    ACTIVATION_REASON(11),
    OTHER_CHANGE_REASON(100),
    CHANGEREASON_NOT_SET(0);
    private final int value;

    private ChangeReasonCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ChangeReasonCase valueOf(int value) {
      return forNumber(value);
    }

    public static ChangeReasonCase forNumber(int value) {
      switch (value) {
        case 9:
          return SUSPENSION_REASON;
        case 10:
          return CANCELLATION_REASON;
        case 11:
          return ACTIVATION_REASON;
        case 100:
          return OTHER_CHANGE_REASON;
        case 0:
          return CHANGEREASON_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public ChangeReasonCase getChangeReasonCase() {
    return ChangeReasonCase.forNumber(changeReasonCase_);
  }

  public static final int SUSPENSION_REASON_FIELD_NUMBER = 9;
  /**
   *
   *
   * <pre>
   * Suspension reason for the Entitlement.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;</code>
   *
   * @return Whether the suspensionReason field is set.
   */
  public boolean hasSuspensionReason() {
    return changeReasonCase_ == 9;
  }
  /**
   *
   *
   * <pre>
   * Suspension reason for the Entitlement.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;</code>
   *
   * @return The enum numeric value on the wire for suspensionReason.
   */
  public int getSuspensionReasonValue() {
    if (changeReasonCase_ == 9) {
      return (java.lang.Integer) changeReason_;
    }
    return 0;
  }
  /**
   *
   *
   * <pre>
   * Suspension reason for the Entitlement.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;</code>
   *
   * @return The suspensionReason.
   */
  public com.google.cloud.channel.v1.Entitlement.SuspensionReason getSuspensionReason() {
    if (changeReasonCase_ == 9) {
      com.google.cloud.channel.v1.Entitlement.SuspensionReason result =
          com.google.cloud.channel.v1.Entitlement.SuspensionReason.forNumber(
              (java.lang.Integer) changeReason_);
      return result == null
          ? com.google.cloud.channel.v1.Entitlement.SuspensionReason.UNRECOGNIZED
          : result;
    }
    return com.google.cloud.channel.v1.Entitlement.SuspensionReason.SUSPENSION_REASON_UNSPECIFIED;
  }

  public static final int CANCELLATION_REASON_FIELD_NUMBER = 10;
  /**
   *
   *
   * <pre>
   * Cancellation reason for the Entitlement.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
   * </code>
   *
   * @return Whether the cancellationReason field is set.
   */
  public boolean hasCancellationReason() {
    return changeReasonCase_ == 10;
  }
  /**
   *
   *
   * <pre>
   * Cancellation reason for the Entitlement.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
   * </code>
   *
   * @return The enum numeric value on the wire for cancellationReason.
   */
  public int getCancellationReasonValue() {
    if (changeReasonCase_ == 10) {
      return (java.lang.Integer) changeReason_;
    }
    return 0;
  }
  /**
   *
   *
   * <pre>
   * Cancellation reason for the Entitlement.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
   * </code>
   *
   * @return The cancellationReason.
   */
  public com.google.cloud.channel.v1.EntitlementChange.CancellationReason getCancellationReason() {
    if (changeReasonCase_ == 10) {
      com.google.cloud.channel.v1.EntitlementChange.CancellationReason result =
          com.google.cloud.channel.v1.EntitlementChange.CancellationReason.forNumber(
              (java.lang.Integer) changeReason_);
      return result == null
          ? com.google.cloud.channel.v1.EntitlementChange.CancellationReason.UNRECOGNIZED
          : result;
    }
    return com.google.cloud.channel.v1.EntitlementChange.CancellationReason
        .CANCELLATION_REASON_UNSPECIFIED;
  }

  public static final int ACTIVATION_REASON_FIELD_NUMBER = 11;
  /**
   *
   *
   * <pre>
   * The Entitlement's activation reason
   * </pre>
   *
   * <code>.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
   * </code>
   *
   * @return Whether the activationReason field is set.
   */
  public boolean hasActivationReason() {
    return changeReasonCase_ == 11;
  }
  /**
   *
   *
   * <pre>
   * The Entitlement's activation reason
   * </pre>
   *
   * <code>.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
   * </code>
   *
   * @return The enum numeric value on the wire for activationReason.
   */
  public int getActivationReasonValue() {
    if (changeReasonCase_ == 11) {
      return (java.lang.Integer) changeReason_;
    }
    return 0;
  }
  /**
   *
   *
   * <pre>
   * The Entitlement's activation reason
   * </pre>
   *
   * <code>.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
   * </code>
   *
   * @return The activationReason.
   */
  public com.google.cloud.channel.v1.EntitlementChange.ActivationReason getActivationReason() {
    if (changeReasonCase_ == 11) {
      com.google.cloud.channel.v1.EntitlementChange.ActivationReason result =
          com.google.cloud.channel.v1.EntitlementChange.ActivationReason.forNumber(
              (java.lang.Integer) changeReason_);
      return result == null
          ? com.google.cloud.channel.v1.EntitlementChange.ActivationReason.UNRECOGNIZED
          : result;
    }
    return com.google.cloud.channel.v1.EntitlementChange.ActivationReason
        .ACTIVATION_REASON_UNSPECIFIED;
  }

  public static final int OTHER_CHANGE_REASON_FIELD_NUMBER = 100;
  /**
   *
   *
   * <pre>
   * e.g. purchase_number change reason, entered by CRS.
   * </pre>
   *
   * <code>string other_change_reason = 100;</code>
   *
   * @return Whether the otherChangeReason field is set.
   */
  public boolean hasOtherChangeReason() {
    return changeReasonCase_ == 100;
  }
  /**
   *
   *
   * <pre>
   * e.g. purchase_number change reason, entered by CRS.
   * </pre>
   *
   * <code>string other_change_reason = 100;</code>
   *
   * @return The otherChangeReason.
   */
  public java.lang.String getOtherChangeReason() {
    java.lang.Object ref = "";
    if (changeReasonCase_ == 100) {
      ref = changeReason_;
    }
    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();
      if (changeReasonCase_ == 100) {
        changeReason_ = s;
      }
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * e.g. purchase_number change reason, entered by CRS.
   * </pre>
   *
   * <code>string other_change_reason = 100;</code>
   *
   * @return The bytes for otherChangeReason.
   */
  public com.google.protobuf.ByteString getOtherChangeReasonBytes() {
    java.lang.Object ref = "";
    if (changeReasonCase_ == 100) {
      ref = changeReason_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      if (changeReasonCase_ == 100) {
        changeReason_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ENTITLEMENT_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object entitlement_ = "";
  /**
   *
   *
   * <pre>
   * Required. Resource name of an entitlement in the form:
   * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
   * </pre>
   *
   * <code>
   * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The entitlement.
   */
  @java.lang.Override
  public java.lang.String getEntitlement() {
    java.lang.Object ref = entitlement_;
    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();
      entitlement_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. Resource name of an entitlement in the form:
   * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
   * </pre>
   *
   * <code>
   * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The bytes for entitlement.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getEntitlementBytes() {
    java.lang.Object ref = entitlement_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      entitlement_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OFFER_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object offer_ = "";
  /**
   *
   *
   * <pre>
   * Required. Resource name of the Offer at the time of change.
   * Takes the form: accounts/{account_id}/offers/{offer_id}.
   * </pre>
   *
   * <code>
   * string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The offer.
   */
  @java.lang.Override
  public java.lang.String getOffer() {
    java.lang.Object ref = offer_;
    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();
      offer_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. Resource name of the Offer at the time of change.
   * Takes the form: accounts/{account_id}/offers/{offer_id}.
   * </pre>
   *
   * <code>
   * string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The bytes for offer.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getOfferBytes() {
    java.lang.Object ref = offer_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      offer_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PROVISIONED_SERVICE_FIELD_NUMBER = 3;
  private com.google.cloud.channel.v1.ProvisionedService provisionedService_;
  /**
   *
   *
   * <pre>
   * Service provisioned for an Entitlement.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
   *
   * @return Whether the provisionedService field is set.
   */
  @java.lang.Override
  public boolean hasProvisionedService() {
    return provisionedService_ != null;
  }
  /**
   *
   *
   * <pre>
   * Service provisioned for an Entitlement.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
   *
   * @return The provisionedService.
   */
  @java.lang.Override
  public com.google.cloud.channel.v1.ProvisionedService getProvisionedService() {
    return provisionedService_ == null
        ? com.google.cloud.channel.v1.ProvisionedService.getDefaultInstance()
        : provisionedService_;
  }
  /**
   *
   *
   * <pre>
   * Service provisioned for an Entitlement.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
   */
  @java.lang.Override
  public com.google.cloud.channel.v1.ProvisionedServiceOrBuilder getProvisionedServiceOrBuilder() {
    return provisionedService_ == null
        ? com.google.cloud.channel.v1.ProvisionedService.getDefaultInstance()
        : provisionedService_;
  }

  public static final int CHANGE_TYPE_FIELD_NUMBER = 4;
  private int changeType_ = 0;
  /**
   *
   *
   * <pre>
   * The change action type.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4;</code>
   *
   * @return The enum numeric value on the wire for changeType.
   */
  @java.lang.Override
  public int getChangeTypeValue() {
    return changeType_;
  }
  /**
   *
   *
   * <pre>
   * The change action type.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4;</code>
   *
   * @return The changeType.
   */
  @java.lang.Override
  public com.google.cloud.channel.v1.EntitlementChange.ChangeType getChangeType() {
    com.google.cloud.channel.v1.EntitlementChange.ChangeType result =
        com.google.cloud.channel.v1.EntitlementChange.ChangeType.forNumber(changeType_);
    return result == null
        ? com.google.cloud.channel.v1.EntitlementChange.ChangeType.UNRECOGNIZED
        : result;
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 5;
  private com.google.protobuf.Timestamp createTime_;
  /**
   *
   *
   * <pre>
   * The submitted time of the change.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 5;</code>
   *
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * The submitted time of the change.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 5;</code>
   *
   * @return The createTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   *
   *
   * <pre>
   * The submitted time of the change.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 5;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }

  public static final int OPERATOR_TYPE_FIELD_NUMBER = 6;
  private int operatorType_ = 0;
  /**
   *
   *
   * <pre>
   * Operator type responsible for the change.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6;</code>
   *
   * @return The enum numeric value on the wire for operatorType.
   */
  @java.lang.Override
  public int getOperatorTypeValue() {
    return operatorType_;
  }
  /**
   *
   *
   * <pre>
   * Operator type responsible for the change.
   * </pre>
   *
   * <code>.google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6;</code>
   *
   * @return The operatorType.
   */
  @java.lang.Override
  public com.google.cloud.channel.v1.EntitlementChange.OperatorType getOperatorType() {
    com.google.cloud.channel.v1.EntitlementChange.OperatorType result =
        com.google.cloud.channel.v1.EntitlementChange.OperatorType.forNumber(operatorType_);
    return result == null
        ? com.google.cloud.channel.v1.EntitlementChange.OperatorType.UNRECOGNIZED
        : result;
  }

  public static final int PARAMETERS_FIELD_NUMBER = 8;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.channel.v1.Parameter> parameters_;
  /**
   *
   *
   * <pre>
   * Extended parameters, such as:
   * purchase_order_number, gcp_details;
   * internal_correlation_id, long_running_operation_id, order_id;
   * etc.
   * </pre>
   *
   * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.channel.v1.Parameter> getParametersList() {
    return parameters_;
  }
  /**
   *
   *
   * <pre>
   * Extended parameters, such as:
   * purchase_order_number, gcp_details;
   * internal_correlation_id, long_running_operation_id, order_id;
   * etc.
   * </pre>
   *
   * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.channel.v1.ParameterOrBuilder>
      getParametersOrBuilderList() {
    return parameters_;
  }
  /**
   *
   *
   * <pre>
   * Extended parameters, such as:
   * purchase_order_number, gcp_details;
   * internal_correlation_id, long_running_operation_id, order_id;
   * etc.
   * </pre>
   *
   * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
   */
  @java.lang.Override
  public int getParametersCount() {
    return parameters_.size();
  }
  /**
   *
   *
   * <pre>
   * Extended parameters, such as:
   * purchase_order_number, gcp_details;
   * internal_correlation_id, long_running_operation_id, order_id;
   * etc.
   * </pre>
   *
   * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
   */
  @java.lang.Override
  public com.google.cloud.channel.v1.Parameter getParameters(int index) {
    return parameters_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Extended parameters, such as:
   * purchase_order_number, gcp_details;
   * internal_correlation_id, long_running_operation_id, order_id;
   * etc.
   * </pre>
   *
   * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
   */
  @java.lang.Override
  public com.google.cloud.channel.v1.ParameterOrBuilder getParametersOrBuilder(int index) {
    return parameters_.get(index);
  }

  public static final int OPERATOR_FIELD_NUMBER = 12;

  @SuppressWarnings("serial")
  private volatile java.lang.Object operator_ = "";
  /**
   *
   *
   * <pre>
   * Human-readable identifier that shows what operator made a change.
   * When the operator_type is RESELLER, this is the user's email address.
   * For all other operator types, this is empty.
   * </pre>
   *
   * <code>string operator = 12;</code>
   *
   * @return The operator.
   */
  @java.lang.Override
  public java.lang.String getOperator() {
    java.lang.Object ref = operator_;
    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();
      operator_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Human-readable identifier that shows what operator made a change.
   * When the operator_type is RESELLER, this is the user's email address.
   * For all other operator types, this is empty.
   * </pre>
   *
   * <code>string operator = 12;</code>
   *
   * @return The bytes for operator.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getOperatorBytes() {
    java.lang.Object ref = operator_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      operator_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlement_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entitlement_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offer_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, offer_);
    }
    if (provisionedService_ != null) {
      output.writeMessage(3, getProvisionedService());
    }
    if (changeType_
        != com.google.cloud.channel.v1.EntitlementChange.ChangeType.CHANGE_TYPE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(4, changeType_);
    }
    if (createTime_ != null) {
      output.writeMessage(5, getCreateTime());
    }
    if (operatorType_
        != com.google.cloud.channel.v1.EntitlementChange.OperatorType.OPERATOR_TYPE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(6, operatorType_);
    }
    for (int i = 0; i < parameters_.size(); i++) {
      output.writeMessage(8, parameters_.get(i));
    }
    if (changeReasonCase_ == 9) {
      output.writeEnum(9, ((java.lang.Integer) changeReason_));
    }
    if (changeReasonCase_ == 10) {
      output.writeEnum(10, ((java.lang.Integer) changeReason_));
    }
    if (changeReasonCase_ == 11) {
      output.writeEnum(11, ((java.lang.Integer) changeReason_));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operator_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, operator_);
    }
    if (changeReasonCase_ == 100) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 100, changeReason_);
    }
    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(entitlement_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entitlement_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offer_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, offer_);
    }
    if (provisionedService_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProvisionedService());
    }
    if (changeType_
        != com.google.cloud.channel.v1.EntitlementChange.ChangeType.CHANGE_TYPE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, changeType_);
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime());
    }
    if (operatorType_
        != com.google.cloud.channel.v1.EntitlementChange.OperatorType.OPERATOR_TYPE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, operatorType_);
    }
    for (int i = 0; i < parameters_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, parameters_.get(i));
    }
    if (changeReasonCase_ == 9) {
      size +=
          com.google.protobuf.CodedOutputStream.computeEnumSize(
              9, ((java.lang.Integer) changeReason_));
    }
    if (changeReasonCase_ == 10) {
      size +=
          com.google.protobuf.CodedOutputStream.computeEnumSize(
              10, ((java.lang.Integer) changeReason_));
    }
    if (changeReasonCase_ == 11) {
      size +=
          com.google.protobuf.CodedOutputStream.computeEnumSize(
              11, ((java.lang.Integer) changeReason_));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operator_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, operator_);
    }
    if (changeReasonCase_ == 100) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, changeReason_);
    }
    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.cloud.channel.v1.EntitlementChange)) {
      return super.equals(obj);
    }
    com.google.cloud.channel.v1.EntitlementChange other =
        (com.google.cloud.channel.v1.EntitlementChange) obj;

    if (!getEntitlement().equals(other.getEntitlement())) return false;
    if (!getOffer().equals(other.getOffer())) return false;
    if (hasProvisionedService() != other.hasProvisionedService()) return false;
    if (hasProvisionedService()) {
      if (!getProvisionedService().equals(other.getProvisionedService())) return false;
    }
    if (changeType_ != other.changeType_) return false;
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (operatorType_ != other.operatorType_) return false;
    if (!getParametersList().equals(other.getParametersList())) return false;
    if (!getOperator().equals(other.getOperator())) return false;
    if (!getChangeReasonCase().equals(other.getChangeReasonCase())) return false;
    switch (changeReasonCase_) {
      case 9:
        if (getSuspensionReasonValue() != other.getSuspensionReasonValue()) return false;
        break;
      case 10:
        if (getCancellationReasonValue() != other.getCancellationReasonValue()) return false;
        break;
      case 11:
        if (getActivationReasonValue() != other.getActivationReasonValue()) return false;
        break;
      case 100:
        if (!getOtherChangeReason().equals(other.getOtherChangeReason())) return false;
        break;
      case 0:
      default:
    }
    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) + ENTITLEMENT_FIELD_NUMBER;
    hash = (53 * hash) + getEntitlement().hashCode();
    hash = (37 * hash) + OFFER_FIELD_NUMBER;
    hash = (53 * hash) + getOffer().hashCode();
    if (hasProvisionedService()) {
      hash = (37 * hash) + PROVISIONED_SERVICE_FIELD_NUMBER;
      hash = (53 * hash) + getProvisionedService().hashCode();
    }
    hash = (37 * hash) + CHANGE_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + changeType_;
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    hash = (37 * hash) + OPERATOR_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + operatorType_;
    if (getParametersCount() > 0) {
      hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
      hash = (53 * hash) + getParametersList().hashCode();
    }
    hash = (37 * hash) + OPERATOR_FIELD_NUMBER;
    hash = (53 * hash) + getOperator().hashCode();
    switch (changeReasonCase_) {
      case 9:
        hash = (37 * hash) + SUSPENSION_REASON_FIELD_NUMBER;
        hash = (53 * hash) + getSuspensionReasonValue();
        break;
      case 10:
        hash = (37 * hash) + CANCELLATION_REASON_FIELD_NUMBER;
        hash = (53 * hash) + getCancellationReasonValue();
        break;
      case 11:
        hash = (37 * hash) + ACTIVATION_REASON_FIELD_NUMBER;
        hash = (53 * hash) + getActivationReasonValue();
        break;
      case 100:
        hash = (37 * hash) + OTHER_CHANGE_REASON_FIELD_NUMBER;
        hash = (53 * hash) + getOtherChangeReason().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.channel.v1.EntitlementChange parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.channel.v1.EntitlementChange parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.channel.v1.EntitlementChange parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.channel.v1.EntitlementChange 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.cloud.channel.v1.EntitlementChange parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.channel.v1.EntitlementChange parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.channel.v1.EntitlementChange parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.channel.v1.EntitlementChange 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.cloud.channel.v1.EntitlementChange parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.channel.v1.EntitlementChange 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.cloud.channel.v1.EntitlementChange parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.channel.v1.EntitlementChange 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.cloud.channel.v1.EntitlementChange 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>
   * Change event entry for Entitlement order history
   * </pre>
   *
   * Protobuf type {@code google.cloud.channel.v1.EntitlementChange}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.EntitlementChange)
      com.google.cloud.channel.v1.EntitlementChangeOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.channel.v1.EntitlementChangesProto
          .internal_static_google_cloud_channel_v1_EntitlementChange_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.channel.v1.EntitlementChangesProto
          .internal_static_google_cloud_channel_v1_EntitlementChange_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.channel.v1.EntitlementChange.class,
              com.google.cloud.channel.v1.EntitlementChange.Builder.class);
    }

    // Construct using com.google.cloud.channel.v1.EntitlementChange.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      entitlement_ = "";
      offer_ = "";
      provisionedService_ = null;
      if (provisionedServiceBuilder_ != null) {
        provisionedServiceBuilder_.dispose();
        provisionedServiceBuilder_ = null;
      }
      changeType_ = 0;
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      operatorType_ = 0;
      if (parametersBuilder_ == null) {
        parameters_ = java.util.Collections.emptyList();
      } else {
        parameters_ = null;
        parametersBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000400);
      operator_ = "";
      changeReasonCase_ = 0;
      changeReason_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.channel.v1.EntitlementChangesProto
          .internal_static_google_cloud_channel_v1_EntitlementChange_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.channel.v1.EntitlementChange getDefaultInstanceForType() {
      return com.google.cloud.channel.v1.EntitlementChange.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.channel.v1.EntitlementChange build() {
      com.google.cloud.channel.v1.EntitlementChange result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.channel.v1.EntitlementChange buildPartial() {
      com.google.cloud.channel.v1.EntitlementChange result =
          new com.google.cloud.channel.v1.EntitlementChange(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(com.google.cloud.channel.v1.EntitlementChange result) {
      if (parametersBuilder_ == null) {
        if (((bitField0_ & 0x00000400) != 0)) {
          parameters_ = java.util.Collections.unmodifiableList(parameters_);
          bitField0_ = (bitField0_ & ~0x00000400);
        }
        result.parameters_ = parameters_;
      } else {
        result.parameters_ = parametersBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.channel.v1.EntitlementChange result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.entitlement_ = entitlement_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.offer_ = offer_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.provisionedService_ =
            provisionedServiceBuilder_ == null
                ? provisionedService_
                : provisionedServiceBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.changeType_ = changeType_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.operatorType_ = operatorType_;
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.operator_ = operator_;
      }
    }

    private void buildPartialOneofs(com.google.cloud.channel.v1.EntitlementChange result) {
      result.changeReasonCase_ = changeReasonCase_;
      result.changeReason_ = this.changeReason_;
    }

    @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.cloud.channel.v1.EntitlementChange) {
        return mergeFrom((com.google.cloud.channel.v1.EntitlementChange) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.channel.v1.EntitlementChange other) {
      if (other == com.google.cloud.channel.v1.EntitlementChange.getDefaultInstance()) return this;
      if (!other.getEntitlement().isEmpty()) {
        entitlement_ = other.entitlement_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (!other.getOffer().isEmpty()) {
        offer_ = other.offer_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (other.hasProvisionedService()) {
        mergeProvisionedService(other.getProvisionedService());
      }
      if (other.changeType_ != 0) {
        setChangeTypeValue(other.getChangeTypeValue());
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.operatorType_ != 0) {
        setOperatorTypeValue(other.getOperatorTypeValue());
      }
      if (parametersBuilder_ == null) {
        if (!other.parameters_.isEmpty()) {
          if (parameters_.isEmpty()) {
            parameters_ = other.parameters_;
            bitField0_ = (bitField0_ & ~0x00000400);
          } else {
            ensureParametersIsMutable();
            parameters_.addAll(other.parameters_);
          }
          onChanged();
        }
      } else {
        if (!other.parameters_.isEmpty()) {
          if (parametersBuilder_.isEmpty()) {
            parametersBuilder_.dispose();
            parametersBuilder_ = null;
            parameters_ = other.parameters_;
            bitField0_ = (bitField0_ & ~0x00000400);
            parametersBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getParametersFieldBuilder()
                    : null;
          } else {
            parametersBuilder_.addAllMessages(other.parameters_);
          }
        }
      }
      if (!other.getOperator().isEmpty()) {
        operator_ = other.operator_;
        bitField0_ |= 0x00000800;
        onChanged();
      }
      switch (other.getChangeReasonCase()) {
        case SUSPENSION_REASON:
          {
            setSuspensionReasonValue(other.getSuspensionReasonValue());
            break;
          }
        case CANCELLATION_REASON:
          {
            setCancellationReasonValue(other.getCancellationReasonValue());
            break;
          }
        case ACTIVATION_REASON:
          {
            setActivationReasonValue(other.getActivationReasonValue());
            break;
          }
        case OTHER_CHANGE_REASON:
          {
            changeReasonCase_ = 100;
            changeReason_ = other.changeReason_;
            onChanged();
            break;
          }
        case CHANGEREASON_NOT_SET:
          {
            break;
          }
      }
      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:
              {
                entitlement_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 10
            case 18:
              {
                offer_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 18
            case 26:
              {
                input.readMessage(
                    getProvisionedServiceFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 26
            case 32:
              {
                changeType_ = input.readEnum();
                bitField0_ |= 0x00000080;
                break;
              } // case 32
            case 42:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000100;
                break;
              } // case 42
            case 48:
              {
                operatorType_ = input.readEnum();
                bitField0_ |= 0x00000200;
                break;
              } // case 48
            case 66:
              {
                com.google.cloud.channel.v1.Parameter m =
                    input.readMessage(
                        com.google.cloud.channel.v1.Parameter.parser(), extensionRegistry);
                if (parametersBuilder_ == null) {
                  ensureParametersIsMutable();
                  parameters_.add(m);
                } else {
                  parametersBuilder_.addMessage(m);
                }
                break;
              } // case 66
            case 72:
              {
                int rawValue = input.readEnum();
                changeReasonCase_ = 9;
                changeReason_ = rawValue;
                break;
              } // case 72
            case 80:
              {
                int rawValue = input.readEnum();
                changeReasonCase_ = 10;
                changeReason_ = rawValue;
                break;
              } // case 80
            case 88:
              {
                int rawValue = input.readEnum();
                changeReasonCase_ = 11;
                changeReason_ = rawValue;
                break;
              } // case 88
            case 98:
              {
                operator_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000800;
                break;
              } // case 98
            case 802:
              {
                java.lang.String s = input.readStringRequireUtf8();
                changeReasonCase_ = 100;
                changeReason_ = s;
                break;
              } // case 802
            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 changeReasonCase_ = 0;
    private java.lang.Object changeReason_;

    public ChangeReasonCase getChangeReasonCase() {
      return ChangeReasonCase.forNumber(changeReasonCase_);
    }

    public Builder clearChangeReason() {
      changeReasonCase_ = 0;
      changeReason_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    /**
     *
     *
     * <pre>
     * Suspension reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;</code>
     *
     * @return Whether the suspensionReason field is set.
     */
    @java.lang.Override
    public boolean hasSuspensionReason() {
      return changeReasonCase_ == 9;
    }
    /**
     *
     *
     * <pre>
     * Suspension reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;</code>
     *
     * @return The enum numeric value on the wire for suspensionReason.
     */
    @java.lang.Override
    public int getSuspensionReasonValue() {
      if (changeReasonCase_ == 9) {
        return ((java.lang.Integer) changeReason_).intValue();
      }
      return 0;
    }
    /**
     *
     *
     * <pre>
     * Suspension reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;</code>
     *
     * @param value The enum numeric value on the wire for suspensionReason to set.
     * @return This builder for chaining.
     */
    public Builder setSuspensionReasonValue(int value) {
      changeReasonCase_ = 9;
      changeReason_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Suspension reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;</code>
     *
     * @return The suspensionReason.
     */
    @java.lang.Override
    public com.google.cloud.channel.v1.Entitlement.SuspensionReason getSuspensionReason() {
      if (changeReasonCase_ == 9) {
        com.google.cloud.channel.v1.Entitlement.SuspensionReason result =
            com.google.cloud.channel.v1.Entitlement.SuspensionReason.forNumber(
                (java.lang.Integer) changeReason_);
        return result == null
            ? com.google.cloud.channel.v1.Entitlement.SuspensionReason.UNRECOGNIZED
            : result;
      }
      return com.google.cloud.channel.v1.Entitlement.SuspensionReason.SUSPENSION_REASON_UNSPECIFIED;
    }
    /**
     *
     *
     * <pre>
     * Suspension reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;</code>
     *
     * @param value The suspensionReason to set.
     * @return This builder for chaining.
     */
    public Builder setSuspensionReason(
        com.google.cloud.channel.v1.Entitlement.SuspensionReason value) {
      if (value == null) {
        throw new NullPointerException();
      }
      changeReasonCase_ = 9;
      changeReason_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Suspension reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSuspensionReason() {
      if (changeReasonCase_ == 9) {
        changeReasonCase_ = 0;
        changeReason_ = null;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Cancellation reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
     * </code>
     *
     * @return Whether the cancellationReason field is set.
     */
    @java.lang.Override
    public boolean hasCancellationReason() {
      return changeReasonCase_ == 10;
    }
    /**
     *
     *
     * <pre>
     * Cancellation reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
     * </code>
     *
     * @return The enum numeric value on the wire for cancellationReason.
     */
    @java.lang.Override
    public int getCancellationReasonValue() {
      if (changeReasonCase_ == 10) {
        return ((java.lang.Integer) changeReason_).intValue();
      }
      return 0;
    }
    /**
     *
     *
     * <pre>
     * Cancellation reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
     * </code>
     *
     * @param value The enum numeric value on the wire for cancellationReason to set.
     * @return This builder for chaining.
     */
    public Builder setCancellationReasonValue(int value) {
      changeReasonCase_ = 10;
      changeReason_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Cancellation reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
     * </code>
     *
     * @return The cancellationReason.
     */
    @java.lang.Override
    public com.google.cloud.channel.v1.EntitlementChange.CancellationReason
        getCancellationReason() {
      if (changeReasonCase_ == 10) {
        com.google.cloud.channel.v1.EntitlementChange.CancellationReason result =
            com.google.cloud.channel.v1.EntitlementChange.CancellationReason.forNumber(
                (java.lang.Integer) changeReason_);
        return result == null
            ? com.google.cloud.channel.v1.EntitlementChange.CancellationReason.UNRECOGNIZED
            : result;
      }
      return com.google.cloud.channel.v1.EntitlementChange.CancellationReason
          .CANCELLATION_REASON_UNSPECIFIED;
    }
    /**
     *
     *
     * <pre>
     * Cancellation reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
     * </code>
     *
     * @param value The cancellationReason to set.
     * @return This builder for chaining.
     */
    public Builder setCancellationReason(
        com.google.cloud.channel.v1.EntitlementChange.CancellationReason value) {
      if (value == null) {
        throw new NullPointerException();
      }
      changeReasonCase_ = 10;
      changeReason_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Cancellation reason for the Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCancellationReason() {
      if (changeReasonCase_ == 10) {
        changeReasonCase_ = 0;
        changeReason_ = null;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The Entitlement's activation reason
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
     * </code>
     *
     * @return Whether the activationReason field is set.
     */
    @java.lang.Override
    public boolean hasActivationReason() {
      return changeReasonCase_ == 11;
    }
    /**
     *
     *
     * <pre>
     * The Entitlement's activation reason
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
     * </code>
     *
     * @return The enum numeric value on the wire for activationReason.
     */
    @java.lang.Override
    public int getActivationReasonValue() {
      if (changeReasonCase_ == 11) {
        return ((java.lang.Integer) changeReason_).intValue();
      }
      return 0;
    }
    /**
     *
     *
     * <pre>
     * The Entitlement's activation reason
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
     * </code>
     *
     * @param value The enum numeric value on the wire for activationReason to set.
     * @return This builder for chaining.
     */
    public Builder setActivationReasonValue(int value) {
      changeReasonCase_ = 11;
      changeReason_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Entitlement's activation reason
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
     * </code>
     *
     * @return The activationReason.
     */
    @java.lang.Override
    public com.google.cloud.channel.v1.EntitlementChange.ActivationReason getActivationReason() {
      if (changeReasonCase_ == 11) {
        com.google.cloud.channel.v1.EntitlementChange.ActivationReason result =
            com.google.cloud.channel.v1.EntitlementChange.ActivationReason.forNumber(
                (java.lang.Integer) changeReason_);
        return result == null
            ? com.google.cloud.channel.v1.EntitlementChange.ActivationReason.UNRECOGNIZED
            : result;
      }
      return com.google.cloud.channel.v1.EntitlementChange.ActivationReason
          .ACTIVATION_REASON_UNSPECIFIED;
    }
    /**
     *
     *
     * <pre>
     * The Entitlement's activation reason
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
     * </code>
     *
     * @param value The activationReason to set.
     * @return This builder for chaining.
     */
    public Builder setActivationReason(
        com.google.cloud.channel.v1.EntitlementChange.ActivationReason value) {
      if (value == null) {
        throw new NullPointerException();
      }
      changeReasonCase_ = 11;
      changeReason_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Entitlement's activation reason
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearActivationReason() {
      if (changeReasonCase_ == 11) {
        changeReasonCase_ = 0;
        changeReason_ = null;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * e.g. purchase_number change reason, entered by CRS.
     * </pre>
     *
     * <code>string other_change_reason = 100;</code>
     *
     * @return Whether the otherChangeReason field is set.
     */
    @java.lang.Override
    public boolean hasOtherChangeReason() {
      return changeReasonCase_ == 100;
    }
    /**
     *
     *
     * <pre>
     * e.g. purchase_number change reason, entered by CRS.
     * </pre>
     *
     * <code>string other_change_reason = 100;</code>
     *
     * @return The otherChangeReason.
     */
    @java.lang.Override
    public java.lang.String getOtherChangeReason() {
      java.lang.Object ref = "";
      if (changeReasonCase_ == 100) {
        ref = changeReason_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (changeReasonCase_ == 100) {
          changeReason_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * e.g. purchase_number change reason, entered by CRS.
     * </pre>
     *
     * <code>string other_change_reason = 100;</code>
     *
     * @return The bytes for otherChangeReason.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getOtherChangeReasonBytes() {
      java.lang.Object ref = "";
      if (changeReasonCase_ == 100) {
        ref = changeReason_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        if (changeReasonCase_ == 100) {
          changeReason_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * e.g. purchase_number change reason, entered by CRS.
     * </pre>
     *
     * <code>string other_change_reason = 100;</code>
     *
     * @param value The otherChangeReason to set.
     * @return This builder for chaining.
     */
    public Builder setOtherChangeReason(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      changeReasonCase_ = 100;
      changeReason_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * e.g. purchase_number change reason, entered by CRS.
     * </pre>
     *
     * <code>string other_change_reason = 100;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearOtherChangeReason() {
      if (changeReasonCase_ == 100) {
        changeReasonCase_ = 0;
        changeReason_ = null;
        onChanged();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * e.g. purchase_number change reason, entered by CRS.
     * </pre>
     *
     * <code>string other_change_reason = 100;</code>
     *
     * @param value The bytes for otherChangeReason to set.
     * @return This builder for chaining.
     */
    public Builder setOtherChangeReasonBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      changeReasonCase_ = 100;
      changeReason_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object entitlement_ = "";
    /**
     *
     *
     * <pre>
     * Required. Resource name of an entitlement in the form:
     * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
     * </pre>
     *
     * <code>
     * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The entitlement.
     */
    public java.lang.String getEntitlement() {
      java.lang.Object ref = entitlement_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        entitlement_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Resource name of an entitlement in the form:
     * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
     * </pre>
     *
     * <code>
     * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The bytes for entitlement.
     */
    public com.google.protobuf.ByteString getEntitlementBytes() {
      java.lang.Object ref = entitlement_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        entitlement_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Resource name of an entitlement in the form:
     * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
     * </pre>
     *
     * <code>
     * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The entitlement to set.
     * @return This builder for chaining.
     */
    public Builder setEntitlement(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      entitlement_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Resource name of an entitlement in the form:
     * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
     * </pre>
     *
     * <code>
     * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearEntitlement() {
      entitlement_ = getDefaultInstance().getEntitlement();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Resource name of an entitlement in the form:
     * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
     * </pre>
     *
     * <code>
     * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The bytes for entitlement to set.
     * @return This builder for chaining.
     */
    public Builder setEntitlementBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      entitlement_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private java.lang.Object offer_ = "";
    /**
     *
     *
     * <pre>
     * Required. Resource name of the Offer at the time of change.
     * Takes the form: accounts/{account_id}/offers/{offer_id}.
     * </pre>
     *
     * <code>
     * string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The offer.
     */
    public java.lang.String getOffer() {
      java.lang.Object ref = offer_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        offer_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Resource name of the Offer at the time of change.
     * Takes the form: accounts/{account_id}/offers/{offer_id}.
     * </pre>
     *
     * <code>
     * string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The bytes for offer.
     */
    public com.google.protobuf.ByteString getOfferBytes() {
      java.lang.Object ref = offer_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        offer_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Resource name of the Offer at the time of change.
     * Takes the form: accounts/{account_id}/offers/{offer_id}.
     * </pre>
     *
     * <code>
     * string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The offer to set.
     * @return This builder for chaining.
     */
    public Builder setOffer(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      offer_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Resource name of the Offer at the time of change.
     * Takes the form: accounts/{account_id}/offers/{offer_id}.
     * </pre>
     *
     * <code>
     * string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearOffer() {
      offer_ = getDefaultInstance().getOffer();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Resource name of the Offer at the time of change.
     * Takes the form: accounts/{account_id}/offers/{offer_id}.
     * </pre>
     *
     * <code>
     * string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The bytes for offer to set.
     * @return This builder for chaining.
     */
    public Builder setOfferBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      offer_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    private com.google.cloud.channel.v1.ProvisionedService provisionedService_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.channel.v1.ProvisionedService,
            com.google.cloud.channel.v1.ProvisionedService.Builder,
            com.google.cloud.channel.v1.ProvisionedServiceOrBuilder>
        provisionedServiceBuilder_;
    /**
     *
     *
     * <pre>
     * Service provisioned for an Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
     *
     * @return Whether the provisionedService field is set.
     */
    public boolean hasProvisionedService() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     *
     *
     * <pre>
     * Service provisioned for an Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
     *
     * @return The provisionedService.
     */
    public com.google.cloud.channel.v1.ProvisionedService getProvisionedService() {
      if (provisionedServiceBuilder_ == null) {
        return provisionedService_ == null
            ? com.google.cloud.channel.v1.ProvisionedService.getDefaultInstance()
            : provisionedService_;
      } else {
        return provisionedServiceBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Service provisioned for an Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
     */
    public Builder setProvisionedService(com.google.cloud.channel.v1.ProvisionedService value) {
      if (provisionedServiceBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        provisionedService_ = value;
      } else {
        provisionedServiceBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Service provisioned for an Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
     */
    public Builder setProvisionedService(
        com.google.cloud.channel.v1.ProvisionedService.Builder builderForValue) {
      if (provisionedServiceBuilder_ == null) {
        provisionedService_ = builderForValue.build();
      } else {
        provisionedServiceBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Service provisioned for an Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
     */
    public Builder mergeProvisionedService(com.google.cloud.channel.v1.ProvisionedService value) {
      if (provisionedServiceBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && provisionedService_ != null
            && provisionedService_
                != com.google.cloud.channel.v1.ProvisionedService.getDefaultInstance()) {
          getProvisionedServiceBuilder().mergeFrom(value);
        } else {
          provisionedService_ = value;
        }
      } else {
        provisionedServiceBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Service provisioned for an Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
     */
    public Builder clearProvisionedService() {
      bitField0_ = (bitField0_ & ~0x00000040);
      provisionedService_ = null;
      if (provisionedServiceBuilder_ != null) {
        provisionedServiceBuilder_.dispose();
        provisionedServiceBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Service provisioned for an Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
     */
    public com.google.cloud.channel.v1.ProvisionedService.Builder getProvisionedServiceBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getProvisionedServiceFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Service provisioned for an Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
     */
    public com.google.cloud.channel.v1.ProvisionedServiceOrBuilder
        getProvisionedServiceOrBuilder() {
      if (provisionedServiceBuilder_ != null) {
        return provisionedServiceBuilder_.getMessageOrBuilder();
      } else {
        return provisionedService_ == null
            ? com.google.cloud.channel.v1.ProvisionedService.getDefaultInstance()
            : provisionedService_;
      }
    }
    /**
     *
     *
     * <pre>
     * Service provisioned for an Entitlement.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.channel.v1.ProvisionedService,
            com.google.cloud.channel.v1.ProvisionedService.Builder,
            com.google.cloud.channel.v1.ProvisionedServiceOrBuilder>
        getProvisionedServiceFieldBuilder() {
      if (provisionedServiceBuilder_ == null) {
        provisionedServiceBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.channel.v1.ProvisionedService,
                com.google.cloud.channel.v1.ProvisionedService.Builder,
                com.google.cloud.channel.v1.ProvisionedServiceOrBuilder>(
                getProvisionedService(), getParentForChildren(), isClean());
        provisionedService_ = null;
      }
      return provisionedServiceBuilder_;
    }

    private int changeType_ = 0;
    /**
     *
     *
     * <pre>
     * The change action type.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4;</code>
     *
     * @return The enum numeric value on the wire for changeType.
     */
    @java.lang.Override
    public int getChangeTypeValue() {
      return changeType_;
    }
    /**
     *
     *
     * <pre>
     * The change action type.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4;</code>
     *
     * @param value The enum numeric value on the wire for changeType to set.
     * @return This builder for chaining.
     */
    public Builder setChangeTypeValue(int value) {
      changeType_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The change action type.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4;</code>
     *
     * @return The changeType.
     */
    @java.lang.Override
    public com.google.cloud.channel.v1.EntitlementChange.ChangeType getChangeType() {
      com.google.cloud.channel.v1.EntitlementChange.ChangeType result =
          com.google.cloud.channel.v1.EntitlementChange.ChangeType.forNumber(changeType_);
      return result == null
          ? com.google.cloud.channel.v1.EntitlementChange.ChangeType.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * The change action type.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4;</code>
     *
     * @param value The changeType to set.
     * @return This builder for chaining.
     */
    public Builder setChangeType(com.google.cloud.channel.v1.EntitlementChange.ChangeType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000080;
      changeType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The change action type.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearChangeType() {
      bitField0_ = (bitField0_ & ~0x00000080);
      changeType_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp createTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        createTimeBuilder_;
    /**
     *
     *
     * <pre>
     * The submitted time of the change.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     *
     * @return Whether the createTime field is set.
     */
    public boolean hasCreateTime() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     *
     *
     * <pre>
     * The submitted time of the change.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     *
     * @return The createTime.
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The submitted time of the change.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
      } else {
        createTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The submitted time of the change.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The submitted time of the change.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000100) != 0)
            && createTime_ != null
            && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getCreateTimeBuilder().mergeFrom(value);
        } else {
          createTime_ = value;
        }
      } else {
        createTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The submitted time of the change.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public Builder clearCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000100);
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The submitted time of the change.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      bitField0_ |= 0x00000100;
      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The submitted time of the change.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * The submitted time of the change.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(), getParentForChildren(), isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private int operatorType_ = 0;
    /**
     *
     *
     * <pre>
     * Operator type responsible for the change.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6;</code>
     *
     * @return The enum numeric value on the wire for operatorType.
     */
    @java.lang.Override
    public int getOperatorTypeValue() {
      return operatorType_;
    }
    /**
     *
     *
     * <pre>
     * Operator type responsible for the change.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6;</code>
     *
     * @param value The enum numeric value on the wire for operatorType to set.
     * @return This builder for chaining.
     */
    public Builder setOperatorTypeValue(int value) {
      operatorType_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Operator type responsible for the change.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6;</code>
     *
     * @return The operatorType.
     */
    @java.lang.Override
    public com.google.cloud.channel.v1.EntitlementChange.OperatorType getOperatorType() {
      com.google.cloud.channel.v1.EntitlementChange.OperatorType result =
          com.google.cloud.channel.v1.EntitlementChange.OperatorType.forNumber(operatorType_);
      return result == null
          ? com.google.cloud.channel.v1.EntitlementChange.OperatorType.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Operator type responsible for the change.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6;</code>
     *
     * @param value The operatorType to set.
     * @return This builder for chaining.
     */
    public Builder setOperatorType(
        com.google.cloud.channel.v1.EntitlementChange.OperatorType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000200;
      operatorType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Operator type responsible for the change.
     * </pre>
     *
     * <code>.google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearOperatorType() {
      bitField0_ = (bitField0_ & ~0x00000200);
      operatorType_ = 0;
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.channel.v1.Parameter> parameters_ =
        java.util.Collections.emptyList();

    private void ensureParametersIsMutable() {
      if (!((bitField0_ & 0x00000400) != 0)) {
        parameters_ = new java.util.ArrayList<com.google.cloud.channel.v1.Parameter>(parameters_);
        bitField0_ |= 0x00000400;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.channel.v1.Parameter,
            com.google.cloud.channel.v1.Parameter.Builder,
            com.google.cloud.channel.v1.ParameterOrBuilder>
        parametersBuilder_;

    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public java.util.List<com.google.cloud.channel.v1.Parameter> getParametersList() {
      if (parametersBuilder_ == null) {
        return java.util.Collections.unmodifiableList(parameters_);
      } else {
        return parametersBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public int getParametersCount() {
      if (parametersBuilder_ == null) {
        return parameters_.size();
      } else {
        return parametersBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public com.google.cloud.channel.v1.Parameter getParameters(int index) {
      if (parametersBuilder_ == null) {
        return parameters_.get(index);
      } else {
        return parametersBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public Builder setParameters(int index, com.google.cloud.channel.v1.Parameter value) {
      if (parametersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParametersIsMutable();
        parameters_.set(index, value);
        onChanged();
      } else {
        parametersBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public Builder setParameters(
        int index, com.google.cloud.channel.v1.Parameter.Builder builderForValue) {
      if (parametersBuilder_ == null) {
        ensureParametersIsMutable();
        parameters_.set(index, builderForValue.build());
        onChanged();
      } else {
        parametersBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public Builder addParameters(com.google.cloud.channel.v1.Parameter value) {
      if (parametersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParametersIsMutable();
        parameters_.add(value);
        onChanged();
      } else {
        parametersBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public Builder addParameters(int index, com.google.cloud.channel.v1.Parameter value) {
      if (parametersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParametersIsMutable();
        parameters_.add(index, value);
        onChanged();
      } else {
        parametersBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public Builder addParameters(com.google.cloud.channel.v1.Parameter.Builder builderForValue) {
      if (parametersBuilder_ == null) {
        ensureParametersIsMutable();
        parameters_.add(builderForValue.build());
        onChanged();
      } else {
        parametersBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public Builder addParameters(
        int index, com.google.cloud.channel.v1.Parameter.Builder builderForValue) {
      if (parametersBuilder_ == null) {
        ensureParametersIsMutable();
        parameters_.add(index, builderForValue.build());
        onChanged();
      } else {
        parametersBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public Builder addAllParameters(
        java.lang.Iterable<? extends com.google.cloud.channel.v1.Parameter> values) {
      if (parametersBuilder_ == null) {
        ensureParametersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_);
        onChanged();
      } else {
        parametersBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public Builder clearParameters() {
      if (parametersBuilder_ == null) {
        parameters_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000400);
        onChanged();
      } else {
        parametersBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public Builder removeParameters(int index) {
      if (parametersBuilder_ == null) {
        ensureParametersIsMutable();
        parameters_.remove(index);
        onChanged();
      } else {
        parametersBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public com.google.cloud.channel.v1.Parameter.Builder getParametersBuilder(int index) {
      return getParametersFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public com.google.cloud.channel.v1.ParameterOrBuilder getParametersOrBuilder(int index) {
      if (parametersBuilder_ == null) {
        return parameters_.get(index);
      } else {
        return parametersBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public java.util.List<? extends com.google.cloud.channel.v1.ParameterOrBuilder>
        getParametersOrBuilderList() {
      if (parametersBuilder_ != null) {
        return parametersBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(parameters_);
      }
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public com.google.cloud.channel.v1.Parameter.Builder addParametersBuilder() {
      return getParametersFieldBuilder()
          .addBuilder(com.google.cloud.channel.v1.Parameter.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public com.google.cloud.channel.v1.Parameter.Builder addParametersBuilder(int index) {
      return getParametersFieldBuilder()
          .addBuilder(index, com.google.cloud.channel.v1.Parameter.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Extended parameters, such as:
     * purchase_order_number, gcp_details;
     * internal_correlation_id, long_running_operation_id, order_id;
     * etc.
     * </pre>
     *
     * <code>repeated .google.cloud.channel.v1.Parameter parameters = 8;</code>
     */
    public java.util.List<com.google.cloud.channel.v1.Parameter.Builder>
        getParametersBuilderList() {
      return getParametersFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.channel.v1.Parameter,
            com.google.cloud.channel.v1.Parameter.Builder,
            com.google.cloud.channel.v1.ParameterOrBuilder>
        getParametersFieldBuilder() {
      if (parametersBuilder_ == null) {
        parametersBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.channel.v1.Parameter,
                com.google.cloud.channel.v1.Parameter.Builder,
                com.google.cloud.channel.v1.ParameterOrBuilder>(
                parameters_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean());
        parameters_ = null;
      }
      return parametersBuilder_;
    }

    private java.lang.Object operator_ = "";
    /**
     *
     *
     * <pre>
     * Human-readable identifier that shows what operator made a change.
     * When the operator_type is RESELLER, this is the user's email address.
     * For all other operator types, this is empty.
     * </pre>
     *
     * <code>string operator = 12;</code>
     *
     * @return The operator.
     */
    public java.lang.String getOperator() {
      java.lang.Object ref = operator_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        operator_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Human-readable identifier that shows what operator made a change.
     * When the operator_type is RESELLER, this is the user's email address.
     * For all other operator types, this is empty.
     * </pre>
     *
     * <code>string operator = 12;</code>
     *
     * @return The bytes for operator.
     */
    public com.google.protobuf.ByteString getOperatorBytes() {
      java.lang.Object ref = operator_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        operator_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Human-readable identifier that shows what operator made a change.
     * When the operator_type is RESELLER, this is the user's email address.
     * For all other operator types, this is empty.
     * </pre>
     *
     * <code>string operator = 12;</code>
     *
     * @param value The operator to set.
     * @return This builder for chaining.
     */
    public Builder setOperator(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      operator_ = value;
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Human-readable identifier that shows what operator made a change.
     * When the operator_type is RESELLER, this is the user's email address.
     * For all other operator types, this is empty.
     * </pre>
     *
     * <code>string operator = 12;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearOperator() {
      operator_ = getDefaultInstance().getOperator();
      bitField0_ = (bitField0_ & ~0x00000800);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Human-readable identifier that shows what operator made a change.
     * When the operator_type is RESELLER, this is the user's email address.
     * For all other operator types, this is empty.
     * </pre>
     *
     * <code>string operator = 12;</code>
     *
     * @param value The bytes for operator to set.
     * @return This builder for chaining.
     */
    public Builder setOperatorBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      operator_ = value;
      bitField0_ |= 0x00000800;
      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.cloud.channel.v1.EntitlementChange)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.EntitlementChange)
  private static final com.google.cloud.channel.v1.EntitlementChange DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.channel.v1.EntitlementChange();
  }

  public static com.google.cloud.channel.v1.EntitlementChange getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

  @java.lang.Override
  public com.google.cloud.channel.v1.EntitlementChange getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
