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

package com.google.analytics.admin.v1alpha;

/**
 *
 *
 * <pre>
 * A specific filter for a single dimension.
 * </pre>
 *
 * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter}
 */
public final class ChannelGroupFilter extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilter)
    ChannelGroupFilterOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use ChannelGroupFilter.newBuilder() to construct.
  private ChannelGroupFilter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private ChannelGroupFilter() {
    fieldName_ = "";
  }

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

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

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

  public interface StringFilterOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Required. The match type for the string filter.
     * </pre>
     *
     * <code>
     * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The enum numeric value on the wire for matchType.
     */
    int getMatchTypeValue();
    /**
     *
     *
     * <pre>
     * Required. The match type for the string filter.
     * </pre>
     *
     * <code>
     * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The matchType.
     */
    com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType getMatchType();

    /**
     *
     *
     * <pre>
     * Required. The string value to be matched against.
     * </pre>
     *
     * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The value.
     */
    java.lang.String getValue();
    /**
     *
     *
     * <pre>
     * Required. The string value to be matched against.
     * </pre>
     *
     * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for value.
     */
    com.google.protobuf.ByteString getValueBytes();
  }
  /**
   *
   *
   * <pre>
   * Filter where the field value is a String. The match is case insensitive.
   * </pre>
   *
   * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter}
   */
  public static final class StringFilter extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter)
      StringFilterOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use StringFilter.newBuilder() to construct.
    private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private StringFilter() {
      matchType_ = 0;
      value_ = "";
    }

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.analytics.admin.v1alpha.ChannelGroupProto
          .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.class,
              com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder.class);
    }

    /**
     *
     *
     * <pre>
     * How the filter will be used to determine a match.
     * </pre>
     *
     * Protobuf enum {@code
     * google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType}
     */
    public enum MatchType implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * Default match type.
       * </pre>
       *
       * <code>MATCH_TYPE_UNSPECIFIED = 0;</code>
       */
      MATCH_TYPE_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * Exact match of the string value.
       * </pre>
       *
       * <code>EXACT = 1;</code>
       */
      EXACT(1),
      /**
       *
       *
       * <pre>
       * Begins with the string value.
       * </pre>
       *
       * <code>BEGINS_WITH = 2;</code>
       */
      BEGINS_WITH(2),
      /**
       *
       *
       * <pre>
       * Ends with the string value.
       * </pre>
       *
       * <code>ENDS_WITH = 3;</code>
       */
      ENDS_WITH(3),
      /**
       *
       *
       * <pre>
       * Contains the string value.
       * </pre>
       *
       * <code>CONTAINS = 4;</code>
       */
      CONTAINS(4),
      /**
       *
       *
       * <pre>
       * Full regular expression match with the string value.
       * </pre>
       *
       * <code>FULL_REGEXP = 5;</code>
       */
      FULL_REGEXP(5),
      /**
       *
       *
       * <pre>
       * Partial regular expression match with the string value.
       * </pre>
       *
       * <code>PARTIAL_REGEXP = 6;</code>
       */
      PARTIAL_REGEXP(6),
      UNRECOGNIZED(-1),
      ;

      /**
       *
       *
       * <pre>
       * Default match type.
       * </pre>
       *
       * <code>MATCH_TYPE_UNSPECIFIED = 0;</code>
       */
      public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0;
      /**
       *
       *
       * <pre>
       * Exact match of the string value.
       * </pre>
       *
       * <code>EXACT = 1;</code>
       */
      public static final int EXACT_VALUE = 1;
      /**
       *
       *
       * <pre>
       * Begins with the string value.
       * </pre>
       *
       * <code>BEGINS_WITH = 2;</code>
       */
      public static final int BEGINS_WITH_VALUE = 2;
      /**
       *
       *
       * <pre>
       * Ends with the string value.
       * </pre>
       *
       * <code>ENDS_WITH = 3;</code>
       */
      public static final int ENDS_WITH_VALUE = 3;
      /**
       *
       *
       * <pre>
       * Contains the string value.
       * </pre>
       *
       * <code>CONTAINS = 4;</code>
       */
      public static final int CONTAINS_VALUE = 4;
      /**
       *
       *
       * <pre>
       * Full regular expression match with the string value.
       * </pre>
       *
       * <code>FULL_REGEXP = 5;</code>
       */
      public static final int FULL_REGEXP_VALUE = 5;
      /**
       *
       *
       * <pre>
       * Partial regular expression match with the string value.
       * </pre>
       *
       * <code>PARTIAL_REGEXP = 6;</code>
       */
      public static final int PARTIAL_REGEXP_VALUE = 6;

      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 MatchType 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 MatchType forNumber(int value) {
        switch (value) {
          case 0:
            return MATCH_TYPE_UNSPECIFIED;
          case 1:
            return EXACT;
          case 2:
            return BEGINS_WITH;
          case 3:
            return ENDS_WITH;
          case 4:
            return CONTAINS;
          case 5:
            return FULL_REGEXP;
          case 6:
            return PARTIAL_REGEXP;
          default:
            return null;
        }
      }

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

      private static final com.google.protobuf.Internal.EnumLiteMap<MatchType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<MatchType>() {
            public MatchType findValueByNumber(int number) {
              return MatchType.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.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDescriptor()
            .getEnumTypes()
            .get(0);
      }

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

      public static MatchType 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 MatchType(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType)
    }

    public static final int MATCH_TYPE_FIELD_NUMBER = 1;
    private int matchType_ = 0;
    /**
     *
     *
     * <pre>
     * Required. The match type for the string filter.
     * </pre>
     *
     * <code>
     * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The enum numeric value on the wire for matchType.
     */
    @java.lang.Override
    public int getMatchTypeValue() {
      return matchType_;
    }
    /**
     *
     *
     * <pre>
     * Required. The match type for the string filter.
     * </pre>
     *
     * <code>
     * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The matchType.
     */
    @java.lang.Override
    public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType
        getMatchType() {
      com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType result =
          com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType.forNumber(
              matchType_);
      return result == null
          ? com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType
              .UNRECOGNIZED
          : result;
    }

    public static final int VALUE_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object value_ = "";
    /**
     *
     *
     * <pre>
     * Required. The string value to be matched against.
     * </pre>
     *
     * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The value.
     */
    @java.lang.Override
    public java.lang.String getValue() {
      java.lang.Object ref = value_;
      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();
        value_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The string value to be matched against.
     * </pre>
     *
     * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for value.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getValueBytes() {
      java.lang.Object ref = value_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        value_ = 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 (matchType_
          != com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType
              .MATCH_TYPE_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(1, matchType_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (matchType_
          != com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType
              .MATCH_TYPE_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter)) {
        return super.equals(obj);
      }
      com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter other =
          (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) obj;

      if (matchType_ != other.matchType_) return false;
      if (!getValue().equals(other.getValue())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + MATCH_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + matchType_;
      hash = (37 * hash) + VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getValue().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

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

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

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

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

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter
        parseDelimitedFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

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

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

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

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

    public static Builder newBuilder(
        com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter 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>
     * Filter where the field value is a String. The match is case insensitive.
     * </pre>
     *
     * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter)
        com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.analytics.admin.v1alpha.ChannelGroupProto
            .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.analytics.admin.v1alpha.ChannelGroupProto
            .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.class,
                com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder.class);
      }

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        matchType_ = 0;
        value_ = "";
        return this;
      }

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

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

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

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

      private void buildPartial0(
          com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.matchType_ = matchType_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.value_ = value_;
        }
      }

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

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

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

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

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

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

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) {
          return mergeFrom(
              (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter other) {
        if (other
            == com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter
                .getDefaultInstance()) return this;
        if (other.matchType_ != 0) {
          setMatchTypeValue(other.getMatchTypeValue());
        }
        if (!other.getValue().isEmpty()) {
          value_ = other.value_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8:
                {
                  matchType_ = input.readEnum();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
              case 18:
                {
                  value_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private int matchType_ = 0;
      /**
       *
       *
       * <pre>
       * Required. The match type for the string filter.
       * </pre>
       *
       * <code>
       * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @return The enum numeric value on the wire for matchType.
       */
      @java.lang.Override
      public int getMatchTypeValue() {
        return matchType_;
      }
      /**
       *
       *
       * <pre>
       * Required. The match type for the string filter.
       * </pre>
       *
       * <code>
       * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @param value The enum numeric value on the wire for matchType to set.
       * @return This builder for chaining.
       */
      public Builder setMatchTypeValue(int value) {
        matchType_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The match type for the string filter.
       * </pre>
       *
       * <code>
       * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @return The matchType.
       */
      @java.lang.Override
      public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType
          getMatchType() {
        com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType result =
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType.forNumber(
                matchType_);
        return result == null
            ? com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType
                .UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * Required. The match type for the string filter.
       * </pre>
       *
       * <code>
       * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @param value The matchType to set.
       * @return This builder for chaining.
       */
      public Builder setMatchType(
          com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        matchType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The match type for the string filter.
       * </pre>
       *
       * <code>
       * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearMatchType() {
        bitField0_ = (bitField0_ & ~0x00000001);
        matchType_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object value_ = "";
      /**
       *
       *
       * <pre>
       * Required. The string value to be matched against.
       * </pre>
       *
       * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The value.
       */
      public java.lang.String getValue() {
        java.lang.Object ref = value_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          value_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The string value to be matched against.
       * </pre>
       *
       * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The bytes for value.
       */
      public com.google.protobuf.ByteString getValueBytes() {
        java.lang.Object ref = value_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          value_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The string value to be matched against.
       * </pre>
       *
       * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The value to set.
       * @return This builder for chaining.
       */
      public Builder setValue(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        value_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The string value to be matched against.
       * </pre>
       *
       * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearValue() {
        value_ = getDefaultInstance().getValue();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The string value to be matched against.
       * </pre>
       *
       * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The bytes for value to set.
       * @return This builder for chaining.
       */
      public Builder setValueBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        value_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

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

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

      // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter)
    }

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

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

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

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

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

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

  public interface InListFilterOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Required. The list of possible string values to match against. Must be
     * non-empty.
     * </pre>
     *
     * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return A list containing the values.
     */
    java.util.List<java.lang.String> getValuesList();
    /**
     *
     *
     * <pre>
     * Required. The list of possible string values to match against. Must be
     * non-empty.
     * </pre>
     *
     * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The count of values.
     */
    int getValuesCount();
    /**
     *
     *
     * <pre>
     * Required. The list of possible string values to match against. Must be
     * non-empty.
     * </pre>
     *
     * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param index The index of the element to return.
     * @return The values at the given index.
     */
    java.lang.String getValues(int index);
    /**
     *
     *
     * <pre>
     * Required. The list of possible string values to match against. Must be
     * non-empty.
     * </pre>
     *
     * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the values at the given index.
     */
    com.google.protobuf.ByteString getValuesBytes(int index);
  }
  /**
   *
   *
   * <pre>
   * A filter for a string dimension that matches a particular list of options.
   * The match is case insensitive.
   * </pre>
   *
   * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter}
   */
  public static final class InListFilter extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter)
      InListFilterOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use InListFilter.newBuilder() to construct.
    private InListFilter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private InListFilter() {
      values_ = com.google.protobuf.LazyStringArrayList.emptyList();
    }

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.analytics.admin.v1alpha.ChannelGroupProto
          .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.class,
              com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder.class);
    }

    public static final int VALUES_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList values_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    /**
     *
     *
     * <pre>
     * Required. The list of possible string values to match against. Must be
     * non-empty.
     * </pre>
     *
     * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return A list containing the values.
     */
    public com.google.protobuf.ProtocolStringList getValuesList() {
      return values_;
    }
    /**
     *
     *
     * <pre>
     * Required. The list of possible string values to match against. Must be
     * non-empty.
     * </pre>
     *
     * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The count of values.
     */
    public int getValuesCount() {
      return values_.size();
    }
    /**
     *
     *
     * <pre>
     * Required. The list of possible string values to match against. Must be
     * non-empty.
     * </pre>
     *
     * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param index The index of the element to return.
     * @return The values at the given index.
     */
    public java.lang.String getValues(int index) {
      return values_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Required. The list of possible string values to match against. Must be
     * non-empty.
     * </pre>
     *
     * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the values at the given index.
     */
    public com.google.protobuf.ByteString getValuesBytes(int index) {
      return values_.getByteString(index);
    }

    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 {
      for (int i = 0; i < values_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < values_.size(); i++) {
          dataSize += computeStringSizeNoTag(values_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getValuesList().size();
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter)) {
        return super.equals(obj);
      }
      com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter other =
          (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) obj;

      if (!getValuesList().equals(other.getValuesList())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getValuesCount() > 0) {
        hash = (37 * hash) + VALUES_FIELD_NUMBER;
        hash = (53 * hash) + getValuesList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

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

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

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

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

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter
        parseDelimitedFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

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

    public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

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

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

    public static Builder newBuilder(
        com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter 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>
     * A filter for a string dimension that matches a particular list of options.
     * The match is case insensitive.
     * </pre>
     *
     * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter)
        com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.analytics.admin.v1alpha.ChannelGroupProto
            .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.analytics.admin.v1alpha.ChannelGroupProto
            .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.class,
                com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder.class);
      }

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        values_ = com.google.protobuf.LazyStringArrayList.emptyList();
        return this;
      }

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

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

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

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

      private void buildPartial0(
          com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          values_.makeImmutable();
          result.values_ = values_;
        }
      }

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

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

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

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

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

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

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) {
          return mergeFrom(
              (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter other) {
        if (other
            == com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter
                .getDefaultInstance()) return this;
        if (!other.values_.isEmpty()) {
          if (values_.isEmpty()) {
            values_ = other.values_;
            bitField0_ |= 0x00000001;
          } else {
            ensureValuesIsMutable();
            values_.addAll(other.values_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  java.lang.String s = input.readStringRequireUtf8();
                  ensureValuesIsMutable();
                  values_.add(s);
                  break;
                } // case 10
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

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

      private void ensureValuesIsMutable() {
        if (!values_.isModifiable()) {
          values_ = new com.google.protobuf.LazyStringArrayList(values_);
        }
        bitField0_ |= 0x00000001;
      }
      /**
       *
       *
       * <pre>
       * Required. The list of possible string values to match against. Must be
       * non-empty.
       * </pre>
       *
       * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return A list containing the values.
       */
      public com.google.protobuf.ProtocolStringList getValuesList() {
        values_.makeImmutable();
        return values_;
      }
      /**
       *
       *
       * <pre>
       * Required. The list of possible string values to match against. Must be
       * non-empty.
       * </pre>
       *
       * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The count of values.
       */
      public int getValuesCount() {
        return values_.size();
      }
      /**
       *
       *
       * <pre>
       * Required. The list of possible string values to match against. Must be
       * non-empty.
       * </pre>
       *
       * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param index The index of the element to return.
       * @return The values at the given index.
       */
      public java.lang.String getValues(int index) {
        return values_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Required. The list of possible string values to match against. Must be
       * non-empty.
       * </pre>
       *
       * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the values at the given index.
       */
      public com.google.protobuf.ByteString getValuesBytes(int index) {
        return values_.getByteString(index);
      }
      /**
       *
       *
       * <pre>
       * Required. The list of possible string values to match against. Must be
       * non-empty.
       * </pre>
       *
       * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param index The index to set the value at.
       * @param value The values to set.
       * @return This builder for chaining.
       */
      public Builder setValues(int index, java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureValuesIsMutable();
        values_.set(index, value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The list of possible string values to match against. Must be
       * non-empty.
       * </pre>
       *
       * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The values to add.
       * @return This builder for chaining.
       */
      public Builder addValues(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureValuesIsMutable();
        values_.add(value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The list of possible string values to match against. Must be
       * non-empty.
       * </pre>
       *
       * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param values The values to add.
       * @return This builder for chaining.
       */
      public Builder addAllValues(java.lang.Iterable<java.lang.String> values) {
        ensureValuesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The list of possible string values to match against. Must be
       * non-empty.
       * </pre>
       *
       * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearValues() {
        values_ = com.google.protobuf.LazyStringArrayList.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        ;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The list of possible string values to match against. Must be
       * non-empty.
       * </pre>
       *
       * <code>repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The bytes of the values to add.
       * @return This builder for chaining.
       */
      public Builder addValuesBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        ensureValuesIsMutable();
        values_.add(value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

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

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

      // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter)
    }

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

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

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

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

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

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

  private int valueFilterCase_ = 0;

  @SuppressWarnings("serial")
  private java.lang.Object valueFilter_;

  public enum ValueFilterCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    STRING_FILTER(2),
    IN_LIST_FILTER(3),
    VALUEFILTER_NOT_SET(0);
    private final int value;

    private ValueFilterCase(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 ValueFilterCase valueOf(int value) {
      return forNumber(value);
    }

    public static ValueFilterCase forNumber(int value) {
      switch (value) {
        case 2:
          return STRING_FILTER;
        case 3:
          return IN_LIST_FILTER;
        case 0:
          return VALUEFILTER_NOT_SET;
        default:
          return null;
      }
    }

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

  public ValueFilterCase getValueFilterCase() {
    return ValueFilterCase.forNumber(valueFilterCase_);
  }

  public static final int STRING_FILTER_FIELD_NUMBER = 2;
  /**
   *
   *
   * <pre>
   * A filter for a string-type dimension that matches a particular pattern.
   * </pre>
   *
   * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;</code>
   *
   * @return Whether the stringFilter field is set.
   */
  @java.lang.Override
  public boolean hasStringFilter() {
    return valueFilterCase_ == 2;
  }
  /**
   *
   *
   * <pre>
   * A filter for a string-type dimension that matches a particular pattern.
   * </pre>
   *
   * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;</code>
   *
   * @return The stringFilter.
   */
  @java.lang.Override
  public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter getStringFilter() {
    if (valueFilterCase_ == 2) {
      return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_;
    }
    return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * A filter for a string-type dimension that matches a particular pattern.
   * </pre>
   *
   * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;</code>
   */
  @java.lang.Override
  public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder
      getStringFilterOrBuilder() {
    if (valueFilterCase_ == 2) {
      return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_;
    }
    return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance();
  }

  public static final int IN_LIST_FILTER_FIELD_NUMBER = 3;
  /**
   *
   *
   * <pre>
   * A filter for a string dimension that matches a particular list of
   * options.
   * </pre>
   *
   * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
   * </code>
   *
   * @return Whether the inListFilter field is set.
   */
  @java.lang.Override
  public boolean hasInListFilter() {
    return valueFilterCase_ == 3;
  }
  /**
   *
   *
   * <pre>
   * A filter for a string dimension that matches a particular list of
   * options.
   * </pre>
   *
   * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
   * </code>
   *
   * @return The inListFilter.
   */
  @java.lang.Override
  public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter getInListFilter() {
    if (valueFilterCase_ == 3) {
      return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_;
    }
    return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * A filter for a string dimension that matches a particular list of
   * options.
   * </pre>
   *
   * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
   * </code>
   */
  @java.lang.Override
  public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder
      getInListFilterOrBuilder() {
    if (valueFilterCase_ == 3) {
      return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_;
    }
    return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance();
  }

  public static final int FIELD_NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object fieldName_ = "";
  /**
   *
   *
   * <pre>
   * Required. Immutable. The dimension name to filter.
   * </pre>
   *
   * <code>
   * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
   * </code>
   *
   * @return The fieldName.
   */
  @java.lang.Override
  public java.lang.String getFieldName() {
    java.lang.Object ref = fieldName_;
    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();
      fieldName_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. Immutable. The dimension name to filter.
   * </pre>
   *
   * <code>
   * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
   * </code>
   *
   * @return The bytes for fieldName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getFieldNameBytes() {
    java.lang.Object ref = fieldName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      fieldName_ = 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(fieldName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_);
    }
    if (valueFilterCase_ == 2) {
      output.writeMessage(
          2, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_);
    }
    if (valueFilterCase_ == 3) {
      output.writeMessage(
          3, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_);
    }
    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(fieldName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_);
    }
    if (valueFilterCase_ == 2) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              2, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_);
    }
    if (valueFilterCase_ == 3) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              3, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter)) {
      return super.equals(obj);
    }
    com.google.analytics.admin.v1alpha.ChannelGroupFilter other =
        (com.google.analytics.admin.v1alpha.ChannelGroupFilter) obj;

    if (!getFieldName().equals(other.getFieldName())) return false;
    if (!getValueFilterCase().equals(other.getValueFilterCase())) return false;
    switch (valueFilterCase_) {
      case 2:
        if (!getStringFilter().equals(other.getStringFilter())) return false;
        break;
      case 3:
        if (!getInListFilter().equals(other.getInListFilter())) 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) + FIELD_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getFieldName().hashCode();
    switch (valueFilterCase_) {
      case 2:
        hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER;
        hash = (53 * hash) + getStringFilter().hashCode();
        break;
      case 3:
        hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER;
        hash = (53 * hash) + getInListFilter().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

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

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

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

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

  public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

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

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

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

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

  public static Builder newBuilder(
      com.google.analytics.admin.v1alpha.ChannelGroupFilter 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>
   * A specific filter for a single dimension.
   * </pre>
   *
   * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilter)
      com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.analytics.admin.v1alpha.ChannelGroupProto
          .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor;
    }

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

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (stringFilterBuilder_ != null) {
        stringFilterBuilder_.clear();
      }
      if (inListFilterBuilder_ != null) {
        inListFilterBuilder_.clear();
      }
      fieldName_ = "";
      valueFilterCase_ = 0;
      valueFilter_ = null;
      return this;
    }

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

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

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

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

    private void buildPartial0(com.google.analytics.admin.v1alpha.ChannelGroupFilter result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.fieldName_ = fieldName_;
      }
    }

    private void buildPartialOneofs(com.google.analytics.admin.v1alpha.ChannelGroupFilter result) {
      result.valueFilterCase_ = valueFilterCase_;
      result.valueFilter_ = this.valueFilter_;
      if (valueFilterCase_ == 2 && stringFilterBuilder_ != null) {
        result.valueFilter_ = stringFilterBuilder_.build();
      }
      if (valueFilterCase_ == 3 && inListFilterBuilder_ != null) {
        result.valueFilter_ = inListFilterBuilder_.build();
      }
    }

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

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

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

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

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

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

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter) {
        return mergeFrom((com.google.analytics.admin.v1alpha.ChannelGroupFilter) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChannelGroupFilter other) {
      if (other == com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance())
        return this;
      if (!other.getFieldName().isEmpty()) {
        fieldName_ = other.fieldName_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      switch (other.getValueFilterCase()) {
        case STRING_FILTER:
          {
            mergeStringFilter(other.getStringFilter());
            break;
          }
        case IN_LIST_FILTER:
          {
            mergeInListFilter(other.getInListFilter());
            break;
          }
        case VALUEFILTER_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:
              {
                fieldName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry);
                valueFilterCase_ = 2;
                break;
              } // case 18
            case 26:
              {
                input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry);
                valueFilterCase_ = 3;
                break;
              } // case 26
            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 valueFilterCase_ = 0;
    private java.lang.Object valueFilter_;

    public ValueFilterCase getValueFilterCase() {
      return ValueFilterCase.forNumber(valueFilterCase_);
    }

    public Builder clearValueFilter() {
      valueFilterCase_ = 0;
      valueFilter_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter,
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder,
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder>
        stringFilterBuilder_;
    /**
     *
     *
     * <pre>
     * A filter for a string-type dimension that matches a particular pattern.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;
     * </code>
     *
     * @return Whether the stringFilter field is set.
     */
    @java.lang.Override
    public boolean hasStringFilter() {
      return valueFilterCase_ == 2;
    }
    /**
     *
     *
     * <pre>
     * A filter for a string-type dimension that matches a particular pattern.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;
     * </code>
     *
     * @return The stringFilter.
     */
    @java.lang.Override
    public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter getStringFilter() {
      if (stringFilterBuilder_ == null) {
        if (valueFilterCase_ == 2) {
          return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_;
        }
        return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter
            .getDefaultInstance();
      } else {
        if (valueFilterCase_ == 2) {
          return stringFilterBuilder_.getMessage();
        }
        return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * A filter for a string-type dimension that matches a particular pattern.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;
     * </code>
     */
    public Builder setStringFilter(
        com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter value) {
      if (stringFilterBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        valueFilter_ = value;
        onChanged();
      } else {
        stringFilterBuilder_.setMessage(value);
      }
      valueFilterCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A filter for a string-type dimension that matches a particular pattern.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;
     * </code>
     */
    public Builder setStringFilter(
        com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder
            builderForValue) {
      if (stringFilterBuilder_ == null) {
        valueFilter_ = builderForValue.build();
        onChanged();
      } else {
        stringFilterBuilder_.setMessage(builderForValue.build());
      }
      valueFilterCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A filter for a string-type dimension that matches a particular pattern.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;
     * </code>
     */
    public Builder mergeStringFilter(
        com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter value) {
      if (stringFilterBuilder_ == null) {
        if (valueFilterCase_ == 2
            && valueFilter_
                != com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter
                    .getDefaultInstance()) {
          valueFilter_ =
              com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.newBuilder(
                      (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter)
                          valueFilter_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          valueFilter_ = value;
        }
        onChanged();
      } else {
        if (valueFilterCase_ == 2) {
          stringFilterBuilder_.mergeFrom(value);
        } else {
          stringFilterBuilder_.setMessage(value);
        }
      }
      valueFilterCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A filter for a string-type dimension that matches a particular pattern.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;
     * </code>
     */
    public Builder clearStringFilter() {
      if (stringFilterBuilder_ == null) {
        if (valueFilterCase_ == 2) {
          valueFilterCase_ = 0;
          valueFilter_ = null;
          onChanged();
        }
      } else {
        if (valueFilterCase_ == 2) {
          valueFilterCase_ = 0;
          valueFilter_ = null;
        }
        stringFilterBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A filter for a string-type dimension that matches a particular pattern.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;
     * </code>
     */
    public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder
        getStringFilterBuilder() {
      return getStringFilterFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * A filter for a string-type dimension that matches a particular pattern.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;
     * </code>
     */
    @java.lang.Override
    public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder
        getStringFilterOrBuilder() {
      if ((valueFilterCase_ == 2) && (stringFilterBuilder_ != null)) {
        return stringFilterBuilder_.getMessageOrBuilder();
      } else {
        if (valueFilterCase_ == 2) {
          return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_;
        }
        return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * A filter for a string-type dimension that matches a particular pattern.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter,
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder,
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder>
        getStringFilterFieldBuilder() {
      if (stringFilterBuilder_ == null) {
        if (!(valueFilterCase_ == 2)) {
          valueFilter_ =
              com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter
                  .getDefaultInstance();
        }
        stringFilterBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter,
                com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder,
                com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder>(
                (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_,
                getParentForChildren(),
                isClean());
        valueFilter_ = null;
      }
      valueFilterCase_ = 2;
      onChanged();
      return stringFilterBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter,
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder,
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder>
        inListFilterBuilder_;
    /**
     *
     *
     * <pre>
     * A filter for a string dimension that matches a particular list of
     * options.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
     * </code>
     *
     * @return Whether the inListFilter field is set.
     */
    @java.lang.Override
    public boolean hasInListFilter() {
      return valueFilterCase_ == 3;
    }
    /**
     *
     *
     * <pre>
     * A filter for a string dimension that matches a particular list of
     * options.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
     * </code>
     *
     * @return The inListFilter.
     */
    @java.lang.Override
    public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter getInListFilter() {
      if (inListFilterBuilder_ == null) {
        if (valueFilterCase_ == 3) {
          return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_;
        }
        return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter
            .getDefaultInstance();
      } else {
        if (valueFilterCase_ == 3) {
          return inListFilterBuilder_.getMessage();
        }
        return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * A filter for a string dimension that matches a particular list of
     * options.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
     * </code>
     */
    public Builder setInListFilter(
        com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter value) {
      if (inListFilterBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        valueFilter_ = value;
        onChanged();
      } else {
        inListFilterBuilder_.setMessage(value);
      }
      valueFilterCase_ = 3;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A filter for a string dimension that matches a particular list of
     * options.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
     * </code>
     */
    public Builder setInListFilter(
        com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder
            builderForValue) {
      if (inListFilterBuilder_ == null) {
        valueFilter_ = builderForValue.build();
        onChanged();
      } else {
        inListFilterBuilder_.setMessage(builderForValue.build());
      }
      valueFilterCase_ = 3;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A filter for a string dimension that matches a particular list of
     * options.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
     * </code>
     */
    public Builder mergeInListFilter(
        com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter value) {
      if (inListFilterBuilder_ == null) {
        if (valueFilterCase_ == 3
            && valueFilter_
                != com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter
                    .getDefaultInstance()) {
          valueFilter_ =
              com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.newBuilder(
                      (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter)
                          valueFilter_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          valueFilter_ = value;
        }
        onChanged();
      } else {
        if (valueFilterCase_ == 3) {
          inListFilterBuilder_.mergeFrom(value);
        } else {
          inListFilterBuilder_.setMessage(value);
        }
      }
      valueFilterCase_ = 3;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A filter for a string dimension that matches a particular list of
     * options.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
     * </code>
     */
    public Builder clearInListFilter() {
      if (inListFilterBuilder_ == null) {
        if (valueFilterCase_ == 3) {
          valueFilterCase_ = 0;
          valueFilter_ = null;
          onChanged();
        }
      } else {
        if (valueFilterCase_ == 3) {
          valueFilterCase_ = 0;
          valueFilter_ = null;
        }
        inListFilterBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A filter for a string dimension that matches a particular list of
     * options.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
     * </code>
     */
    public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder
        getInListFilterBuilder() {
      return getInListFilterFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * A filter for a string dimension that matches a particular list of
     * options.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
     * </code>
     */
    @java.lang.Override
    public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder
        getInListFilterOrBuilder() {
      if ((valueFilterCase_ == 3) && (inListFilterBuilder_ != null)) {
        return inListFilterBuilder_.getMessageOrBuilder();
      } else {
        if (valueFilterCase_ == 3) {
          return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_;
        }
        return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * A filter for a string dimension that matches a particular list of
     * options.
     * </pre>
     *
     * <code>.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter,
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder,
            com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder>
        getInListFilterFieldBuilder() {
      if (inListFilterBuilder_ == null) {
        if (!(valueFilterCase_ == 3)) {
          valueFilter_ =
              com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter
                  .getDefaultInstance();
        }
        inListFilterBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter,
                com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder,
                com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder>(
                (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_,
                getParentForChildren(),
                isClean());
        valueFilter_ = null;
      }
      valueFilterCase_ = 3;
      onChanged();
      return inListFilterBuilder_;
    }

    private java.lang.Object fieldName_ = "";
    /**
     *
     *
     * <pre>
     * Required. Immutable. The dimension name to filter.
     * </pre>
     *
     * <code>
     * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
     * </code>
     *
     * @return The fieldName.
     */
    public java.lang.String getFieldName() {
      java.lang.Object ref = fieldName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fieldName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Immutable. The dimension name to filter.
     * </pre>
     *
     * <code>
     * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
     * </code>
     *
     * @return The bytes for fieldName.
     */
    public com.google.protobuf.ByteString getFieldNameBytes() {
      java.lang.Object ref = fieldName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        fieldName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Immutable. The dimension name to filter.
     * </pre>
     *
     * <code>
     * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
     * </code>
     *
     * @param value The fieldName to set.
     * @return This builder for chaining.
     */
    public Builder setFieldName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      fieldName_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Immutable. The dimension name to filter.
     * </pre>
     *
     * <code>
     * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearFieldName() {
      fieldName_ = getDefaultInstance().getFieldName();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Immutable. The dimension name to filter.
     * </pre>
     *
     * <code>
     * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
     * </code>
     *
     * @param value The bytes for fieldName to set.
     * @return This builder for chaining.
     */
    public Builder setFieldNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      fieldName_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

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

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

    // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroupFilter)
  }

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

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

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

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

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

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