/*
 * 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/cloud/dialogflow/v2beta1/intent.proto

package com.google.cloud.dialogflow.v2beta1;

/**
 *
 *
 * <pre>
 * An intent categorizes an end-user's intention for one conversation turn. For
 * each agent, you define many intents, where your combined intents can handle a
 * complete conversation. When an end-user writes or says something, referred to
 * as an end-user expression or end-user input, Dialogflow matches the end-user
 * input to the best intent in your agent. Matching an intent is also known as
 * intent classification.
 *
 * For more information, see the [intent
 * guide](https://cloud.google.com/dialogflow/docs/intents-overview).
 * </pre>
 *
 * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent}
 */
public final class Intent extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent)
    IntentOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Intent.newBuilder() to construct.
  private Intent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Intent() {
    name_ = "";
    displayName_ = "";
    webhookState_ = 0;
    inputContextNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
    events_ = com.google.protobuf.LazyStringArrayList.emptyList();
    trainingPhrases_ = java.util.Collections.emptyList();
    action_ = "";
    outputContexts_ = java.util.Collections.emptyList();
    parameters_ = java.util.Collections.emptyList();
    messages_ = java.util.Collections.emptyList();
    defaultResponsePlatforms_ = java.util.Collections.emptyList();
    rootFollowupIntentName_ = "";
    parentFollowupIntentName_ = "";
    followupIntentInfo_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.dialogflow.v2beta1.IntentProto
        .internal_static_google_cloud_dialogflow_v2beta1_Intent_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.dialogflow.v2beta1.IntentProto
        .internal_static_google_cloud_dialogflow_v2beta1_Intent_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.dialogflow.v2beta1.Intent.class,
            com.google.cloud.dialogflow.v2beta1.Intent.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * Represents the different states that webhooks can be in.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.dialogflow.v2beta1.Intent.WebhookState}
   */
  public enum WebhookState implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Webhook is disabled in the agent and in the intent.
     * </pre>
     *
     * <code>WEBHOOK_STATE_UNSPECIFIED = 0;</code>
     */
    WEBHOOK_STATE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Webhook is enabled in the agent and in the intent.
     * </pre>
     *
     * <code>WEBHOOK_STATE_ENABLED = 1;</code>
     */
    WEBHOOK_STATE_ENABLED(1),
    /**
     *
     *
     * <pre>
     * Webhook is enabled in the agent and in the intent. Also, each slot
     * filling prompt is forwarded to the webhook.
     * </pre>
     *
     * <code>WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING = 2;</code>
     */
    WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Webhook is disabled in the agent and in the intent.
     * </pre>
     *
     * <code>WEBHOOK_STATE_UNSPECIFIED = 0;</code>
     */
    public static final int WEBHOOK_STATE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Webhook is enabled in the agent and in the intent.
     * </pre>
     *
     * <code>WEBHOOK_STATE_ENABLED = 1;</code>
     */
    public static final int WEBHOOK_STATE_ENABLED_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Webhook is enabled in the agent and in the intent. Also, each slot
     * filling prompt is forwarded to the webhook.
     * </pre>
     *
     * <code>WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING = 2;</code>
     */
    public static final int WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING_VALUE = 2;

    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 WebhookState 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 WebhookState forNumber(int value) {
      switch (value) {
        case 0:
          return WEBHOOK_STATE_UNSPECIFIED;
        case 1:
          return WEBHOOK_STATE_ENABLED;
        case 2:
          return WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING;
        default:
          return null;
      }
    }

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

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

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

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

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.dialogflow.v2beta1.Intent.getDescriptor().getEnumTypes().get(0);
    }

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

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

    // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.WebhookState)
  }

  public interface TrainingPhraseOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Output only. The unique identifier of this training phrase.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    java.lang.String getName();
    /**
     *
     *
     * <pre>
     * Output only. The unique identifier of this training phrase.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString getNameBytes();

    /**
     *
     *
     * <pre>
     * Required. The type of the training phrase.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The enum numeric value on the wire for type.
     */
    int getTypeValue();
    /**
     *
     *
     * <pre>
     * Required. The type of the training phrase.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The type.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type getType();

    /**
     *
     *
     * <pre>
     * Required. The ordered list of training phrase parts.
     * The parts are concatenated in order to form the training phrase.
     *
     * Note: The API does not automatically annotate training phrases like the
     * Dialogflow Console does.
     *
     * Note: Do not forget to include whitespace at part boundaries,
     * so the training phrase is well formatted when the parts are concatenated.
     *
     * If the training phrase does not need to be annotated with parameters,
     * you just need a single part with only the
     * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
     * field set.
     *
     * If you want to annotate the training phrase, you must create multiple
     * parts, where the fields of each part are populated in one of two ways:
     *
     * -   `Part.text` is set to a part of the phrase that has no parameters.
     * -   `Part.text` is set to a part of the phrase that you want to annotate,
     *     and the `entity_type`, `alias`, and `user_defined` fields are all
     *     set.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part> getPartsList();
    /**
     *
     *
     * <pre>
     * Required. The ordered list of training phrase parts.
     * The parts are concatenated in order to form the training phrase.
     *
     * Note: The API does not automatically annotate training phrases like the
     * Dialogflow Console does.
     *
     * Note: Do not forget to include whitespace at part boundaries,
     * so the training phrase is well formatted when the parts are concatenated.
     *
     * If the training phrase does not need to be annotated with parameters,
     * you just need a single part with only the
     * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
     * field set.
     *
     * If you want to annotate the training phrase, you must create multiple
     * parts, where the fields of each part are populated in one of two ways:
     *
     * -   `Part.text` is set to a part of the phrase that has no parameters.
     * -   `Part.text` is set to a part of the phrase that you want to annotate,
     *     and the `entity_type`, `alias`, and `user_defined` fields are all
     *     set.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part getParts(int index);
    /**
     *
     *
     * <pre>
     * Required. The ordered list of training phrase parts.
     * The parts are concatenated in order to form the training phrase.
     *
     * Note: The API does not automatically annotate training phrases like the
     * Dialogflow Console does.
     *
     * Note: Do not forget to include whitespace at part boundaries,
     * so the training phrase is well formatted when the parts are concatenated.
     *
     * If the training phrase does not need to be annotated with parameters,
     * you just need a single part with only the
     * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
     * field set.
     *
     * If you want to annotate the training phrase, you must create multiple
     * parts, where the fields of each part are populated in one of two ways:
     *
     * -   `Part.text` is set to a part of the phrase that has no parameters.
     * -   `Part.text` is set to a part of the phrase that you want to annotate,
     *     and the `entity_type`, `alias`, and `user_defined` fields are all
     *     set.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    int getPartsCount();
    /**
     *
     *
     * <pre>
     * Required. The ordered list of training phrase parts.
     * The parts are concatenated in order to form the training phrase.
     *
     * Note: The API does not automatically annotate training phrases like the
     * Dialogflow Console does.
     *
     * Note: Do not forget to include whitespace at part boundaries,
     * so the training phrase is well formatted when the parts are concatenated.
     *
     * If the training phrase does not need to be annotated with parameters,
     * you just need a single part with only the
     * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
     * field set.
     *
     * If you want to annotate the training phrase, you must create multiple
     * parts, where the fields of each part are populated in one of two ways:
     *
     * -   `Part.text` is set to a part of the phrase that has no parameters.
     * -   `Part.text` is set to a part of the phrase that you want to annotate,
     *     and the `entity_type`, `alias`, and `user_defined` fields are all
     *     set.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    java.util.List<
            ? extends com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder>
        getPartsOrBuilderList();
    /**
     *
     *
     * <pre>
     * Required. The ordered list of training phrase parts.
     * The parts are concatenated in order to form the training phrase.
     *
     * Note: The API does not automatically annotate training phrases like the
     * Dialogflow Console does.
     *
     * Note: Do not forget to include whitespace at part boundaries,
     * so the training phrase is well formatted when the parts are concatenated.
     *
     * If the training phrase does not need to be annotated with parameters,
     * you just need a single part with only the
     * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
     * field set.
     *
     * If you want to annotate the training phrase, you must create multiple
     * parts, where the fields of each part are populated in one of two ways:
     *
     * -   `Part.text` is set to a part of the phrase that has no parameters.
     * -   `Part.text` is set to a part of the phrase that you want to annotate,
     *     and the `entity_type`, `alias`, and `user_defined` fields are all
     *     set.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder getPartsOrBuilder(
        int index);

    /**
     *
     *
     * <pre>
     * Optional. Indicates how many times this example was added to
     * the intent. Each time a developer adds an existing sample by editing an
     * intent or training, this counter is increased.
     * </pre>
     *
     * <code>int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The timesAddedCount.
     */
    int getTimesAddedCount();
  }
  /**
   *
   *
   * <pre>
   * Represents an example that the agent is trained on.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase}
   */
  public static final class TrainingPhrase extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase)
      TrainingPhraseOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use TrainingPhrase.newBuilder() to construct.
    private TrainingPhrase(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private TrainingPhrase() {
      name_ = "";
      type_ = 0;
      parts_ = java.util.Collections.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto
          .internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto
          .internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.class,
              com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder.class);
    }

    /**
     *
     *
     * <pre>
     * Represents different types of training phrases.
     * </pre>
     *
     * Protobuf enum {@code google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type}
     */
    public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * Not specified. This value should never be used.
       * </pre>
       *
       * <code>TYPE_UNSPECIFIED = 0;</code>
       */
      TYPE_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * Examples do not contain &#64;-prefixed entity type names, but example parts
       * can be annotated with entity types.
       * </pre>
       *
       * <code>EXAMPLE = 1;</code>
       */
      EXAMPLE(1),
      /**
       *
       *
       * <pre>
       * Templates are not annotated with entity types, but they can contain
       * &#64;-prefixed entity type names as substrings.
       * Note: Template mode has been deprecated. Example mode is the only
       * supported way to create new training phrases. If you have existing
       * training phrases in template mode, they will be removed during training
       * and it can cause a drop in agent performance.
       * </pre>
       *
       * <code>TEMPLATE = 2 [deprecated = true];</code>
       */
      @java.lang.Deprecated
      TEMPLATE(2),
      UNRECOGNIZED(-1),
      ;

      /**
       *
       *
       * <pre>
       * Not specified. This value should never be used.
       * </pre>
       *
       * <code>TYPE_UNSPECIFIED = 0;</code>
       */
      public static final int TYPE_UNSPECIFIED_VALUE = 0;
      /**
       *
       *
       * <pre>
       * Examples do not contain &#64;-prefixed entity type names, but example parts
       * can be annotated with entity types.
       * </pre>
       *
       * <code>EXAMPLE = 1;</code>
       */
      public static final int EXAMPLE_VALUE = 1;
      /**
       *
       *
       * <pre>
       * Templates are not annotated with entity types, but they can contain
       * &#64;-prefixed entity type names as substrings.
       * Note: Template mode has been deprecated. Example mode is the only
       * supported way to create new training phrases. If you have existing
       * training phrases in template mode, they will be removed during training
       * and it can cause a drop in agent performance.
       * </pre>
       *
       * <code>TEMPLATE = 2 [deprecated = true];</code>
       */
      @java.lang.Deprecated public static final int TEMPLATE_VALUE = 2;

      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 Type 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 Type forNumber(int value) {
        switch (value) {
          case 0:
            return TYPE_UNSPECIFIED;
          case 1:
            return EXAMPLE;
          case 2:
            return TEMPLATE;
          default:
            return null;
        }
      }

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

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

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

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

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.getDescriptor()
            .getEnumTypes()
            .get(0);
      }

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

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

      // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type)
    }

    public interface PartOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. The text for this part.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      java.lang.String getText();
      /**
       *
       *
       * <pre>
       * Required. The text for this part.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      com.google.protobuf.ByteString getTextBytes();

      /**
       *
       *
       * <pre>
       * Optional. The entity type name prefixed with `&#64;`.
       * This field is required for annotated parts of the training phrase.
       * </pre>
       *
       * <code>string entity_type = 2;</code>
       *
       * @return The entityType.
       */
      java.lang.String getEntityType();
      /**
       *
       *
       * <pre>
       * Optional. The entity type name prefixed with `&#64;`.
       * This field is required for annotated parts of the training phrase.
       * </pre>
       *
       * <code>string entity_type = 2;</code>
       *
       * @return The bytes for entityType.
       */
      com.google.protobuf.ByteString getEntityTypeBytes();

      /**
       *
       *
       * <pre>
       * Optional. The parameter name for the value extracted from the
       * annotated part of the example.
       * This field is required for annotated parts of the training phrase.
       * </pre>
       *
       * <code>string alias = 3;</code>
       *
       * @return The alias.
       */
      java.lang.String getAlias();
      /**
       *
       *
       * <pre>
       * Optional. The parameter name for the value extracted from the
       * annotated part of the example.
       * This field is required for annotated parts of the training phrase.
       * </pre>
       *
       * <code>string alias = 3;</code>
       *
       * @return The bytes for alias.
       */
      com.google.protobuf.ByteString getAliasBytes();

      /**
       *
       *
       * <pre>
       * Optional. Indicates whether the text was manually annotated.
       * This field is set to true when the Dialogflow Console is used to
       * manually annotate the part. When creating an annotated part with the
       * API, you must set this to true.
       * </pre>
       *
       * <code>bool user_defined = 4;</code>
       *
       * @return The userDefined.
       */
      boolean getUserDefined();
    }
    /**
     *
     *
     * <pre>
     * Represents a part of a training phrase.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part}
     */
    public static final class Part extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part)
        PartOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use Part.newBuilder() to construct.
      private Part(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private Part() {
        text_ = "";
        entityType_ = "";
        alias_ = "";
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_Part_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_Part_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.class,
                com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder.class);
      }

      public static final int TEXT_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object text_ = "";
      /**
       *
       *
       * <pre>
       * Required. The text for this part.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      @java.lang.Override
      public java.lang.String getText() {
        java.lang.Object ref = text_;
        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();
          text_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The text for this part.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTextBytes() {
        java.lang.Object ref = text_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          text_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int ENTITY_TYPE_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private volatile java.lang.Object entityType_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The entity type name prefixed with `&#64;`.
       * This field is required for annotated parts of the training phrase.
       * </pre>
       *
       * <code>string entity_type = 2;</code>
       *
       * @return The entityType.
       */
      @java.lang.Override
      public java.lang.String getEntityType() {
        java.lang.Object ref = entityType_;
        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();
          entityType_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The entity type name prefixed with `&#64;`.
       * This field is required for annotated parts of the training phrase.
       * </pre>
       *
       * <code>string entity_type = 2;</code>
       *
       * @return The bytes for entityType.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getEntityTypeBytes() {
        java.lang.Object ref = entityType_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          entityType_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int ALIAS_FIELD_NUMBER = 3;

      @SuppressWarnings("serial")
      private volatile java.lang.Object alias_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The parameter name for the value extracted from the
       * annotated part of the example.
       * This field is required for annotated parts of the training phrase.
       * </pre>
       *
       * <code>string alias = 3;</code>
       *
       * @return The alias.
       */
      @java.lang.Override
      public java.lang.String getAlias() {
        java.lang.Object ref = alias_;
        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();
          alias_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The parameter name for the value extracted from the
       * annotated part of the example.
       * This field is required for annotated parts of the training phrase.
       * </pre>
       *
       * <code>string alias = 3;</code>
       *
       * @return The bytes for alias.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getAliasBytes() {
        java.lang.Object ref = alias_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          alias_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int USER_DEFINED_FIELD_NUMBER = 4;
      private boolean userDefined_ = false;
      /**
       *
       *
       * <pre>
       * Optional. Indicates whether the text was manually annotated.
       * This field is set to true when the Dialogflow Console is used to
       * manually annotate the part. When creating an annotated part with the
       * API, you must set this to true.
       * </pre>
       *
       * <code>bool user_defined = 4;</code>
       *
       * @return The userDefined.
       */
      @java.lang.Override
      public boolean getUserDefined() {
        return userDefined_;
      }

      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(text_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entityType_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 3, alias_);
        }
        if (userDefined_ != false) {
          output.writeBool(4, userDefined_);
        }
        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(text_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entityType_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, alias_);
        }
        if (userDefined_ != false) {
          size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, userDefined_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part other =
            (com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part) obj;

        if (!getText().equals(other.getText())) return false;
        if (!getEntityType().equals(other.getEntityType())) return false;
        if (!getAlias().equals(other.getAlias())) return false;
        if (getUserDefined() != other.getUserDefined()) 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) + TEXT_FIELD_NUMBER;
        hash = (53 * hash) + getText().hashCode();
        hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + getEntityType().hashCode();
        hash = (37 * hash) + ALIAS_FIELD_NUMBER;
        hash = (53 * hash) + getAlias().hashCode();
        hash = (37 * hash) + USER_DEFINED_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUserDefined());
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part 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>
       * Represents a part of a training phrase.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part)
          com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_Part_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_Part_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          text_ = "";
          entityType_ = "";
          alias_ = "";
          userDefined_ = false;
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_Part_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part build() {
          com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part result =
              new com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.text_ = text_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.entityType_ = entityType_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.alias_ = alias_;
          }
          if (((from_bitField0_ & 0x00000008) != 0)) {
            result.userDefined_ = userDefined_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part
                  .getDefaultInstance()) return this;
          if (!other.getText().isEmpty()) {
            text_ = other.text_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.getEntityType().isEmpty()) {
            entityType_ = other.entityType_;
            bitField0_ |= 0x00000002;
            onChanged();
          }
          if (!other.getAlias().isEmpty()) {
            alias_ = other.alias_;
            bitField0_ |= 0x00000004;
            onChanged();
          }
          if (other.getUserDefined() != false) {
            setUserDefined(other.getUserDefined());
          }
          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:
                  {
                    text_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    entityType_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 18
                case 26:
                  {
                    alias_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000004;
                    break;
                  } // case 26
                case 32:
                  {
                    userDefined_ = input.readBool();
                    bitField0_ |= 0x00000008;
                    break;
                  } // case 32
                default:
                  {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }

        private int bitField0_;

        private java.lang.Object text_ = "";
        /**
         *
         *
         * <pre>
         * Required. The text for this part.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The text.
         */
        public java.lang.String getText() {
          java.lang.Object ref = text_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            text_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The text for this part.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The bytes for text.
         */
        public com.google.protobuf.ByteString getTextBytes() {
          java.lang.Object ref = text_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            text_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The text for this part.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The text to set.
         * @return This builder for chaining.
         */
        public Builder setText(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          text_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The text for this part.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearText() {
          text_ = getDefaultInstance().getText();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The text for this part.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The bytes for text to set.
         * @return This builder for chaining.
         */
        public Builder setTextBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          text_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.lang.Object entityType_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The entity type name prefixed with `&#64;`.
         * This field is required for annotated parts of the training phrase.
         * </pre>
         *
         * <code>string entity_type = 2;</code>
         *
         * @return The entityType.
         */
        public java.lang.String getEntityType() {
          java.lang.Object ref = entityType_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            entityType_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The entity type name prefixed with `&#64;`.
         * This field is required for annotated parts of the training phrase.
         * </pre>
         *
         * <code>string entity_type = 2;</code>
         *
         * @return The bytes for entityType.
         */
        public com.google.protobuf.ByteString getEntityTypeBytes() {
          java.lang.Object ref = entityType_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            entityType_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The entity type name prefixed with `&#64;`.
         * This field is required for annotated parts of the training phrase.
         * </pre>
         *
         * <code>string entity_type = 2;</code>
         *
         * @param value The entityType to set.
         * @return This builder for chaining.
         */
        public Builder setEntityType(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          entityType_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The entity type name prefixed with `&#64;`.
         * This field is required for annotated parts of the training phrase.
         * </pre>
         *
         * <code>string entity_type = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearEntityType() {
          entityType_ = getDefaultInstance().getEntityType();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The entity type name prefixed with `&#64;`.
         * This field is required for annotated parts of the training phrase.
         * </pre>
         *
         * <code>string entity_type = 2;</code>
         *
         * @param value The bytes for entityType to set.
         * @return This builder for chaining.
         */
        public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          entityType_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }

        private java.lang.Object alias_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The parameter name for the value extracted from the
         * annotated part of the example.
         * This field is required for annotated parts of the training phrase.
         * </pre>
         *
         * <code>string alias = 3;</code>
         *
         * @return The alias.
         */
        public java.lang.String getAlias() {
          java.lang.Object ref = alias_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            alias_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The parameter name for the value extracted from the
         * annotated part of the example.
         * This field is required for annotated parts of the training phrase.
         * </pre>
         *
         * <code>string alias = 3;</code>
         *
         * @return The bytes for alias.
         */
        public com.google.protobuf.ByteString getAliasBytes() {
          java.lang.Object ref = alias_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            alias_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The parameter name for the value extracted from the
         * annotated part of the example.
         * This field is required for annotated parts of the training phrase.
         * </pre>
         *
         * <code>string alias = 3;</code>
         *
         * @param value The alias to set.
         * @return This builder for chaining.
         */
        public Builder setAlias(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          alias_ = value;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The parameter name for the value extracted from the
         * annotated part of the example.
         * This field is required for annotated parts of the training phrase.
         * </pre>
         *
         * <code>string alias = 3;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearAlias() {
          alias_ = getDefaultInstance().getAlias();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The parameter name for the value extracted from the
         * annotated part of the example.
         * This field is required for annotated parts of the training phrase.
         * </pre>
         *
         * <code>string alias = 3;</code>
         *
         * @param value The bytes for alias to set.
         * @return This builder for chaining.
         */
        public Builder setAliasBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          alias_ = value;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }

        private boolean userDefined_;
        /**
         *
         *
         * <pre>
         * Optional. Indicates whether the text was manually annotated.
         * This field is set to true when the Dialogflow Console is used to
         * manually annotate the part. When creating an annotated part with the
         * API, you must set this to true.
         * </pre>
         *
         * <code>bool user_defined = 4;</code>
         *
         * @return The userDefined.
         */
        @java.lang.Override
        public boolean getUserDefined() {
          return userDefined_;
        }
        /**
         *
         *
         * <pre>
         * Optional. Indicates whether the text was manually annotated.
         * This field is set to true when the Dialogflow Console is used to
         * manually annotate the part. When creating an annotated part with the
         * API, you must set this to true.
         * </pre>
         *
         * <code>bool user_defined = 4;</code>
         *
         * @param value The userDefined to set.
         * @return This builder for chaining.
         */
        public Builder setUserDefined(boolean value) {

          userDefined_ = value;
          bitField0_ |= 0x00000008;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Indicates whether the text was manually annotated.
         * This field is set to true when the Dialogflow Console is used to
         * manually annotate the part. When creating an annotated part with the
         * API, you must set this to true.
         * </pre>
         *
         * <code>bool user_defined = 4;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearUserDefined() {
          bitField0_ = (bitField0_ & ~0x00000008);
          userDefined_ = false;
          onChanged();
          return this;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public static final int NAME_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The unique identifier of this training phrase.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The unique identifier of this training phrase.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TYPE_FIELD_NUMBER = 2;
    private int type_ = 0;
    /**
     *
     *
     * <pre>
     * Required. The type of the training phrase.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override
    public int getTypeValue() {
      return type_;
    }
    /**
     *
     *
     * <pre>
     * Required. The type of the training phrase.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     *
     * @return The type.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type getType() {
      com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type result =
          com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type.forNumber(type_);
      return result == null
          ? com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type.UNRECOGNIZED
          : result;
    }

    public static final int PARTS_FIELD_NUMBER = 3;

    @SuppressWarnings("serial")
    private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part> parts_;
    /**
     *
     *
     * <pre>
     * Required. The ordered list of training phrase parts.
     * The parts are concatenated in order to form the training phrase.
     *
     * Note: The API does not automatically annotate training phrases like the
     * Dialogflow Console does.
     *
     * Note: Do not forget to include whitespace at part boundaries,
     * so the training phrase is well formatted when the parts are concatenated.
     *
     * If the training phrase does not need to be annotated with parameters,
     * you just need a single part with only the
     * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
     * field set.
     *
     * If you want to annotate the training phrase, you must create multiple
     * parts, where the fields of each part are populated in one of two ways:
     *
     * -   `Part.text` is set to a part of the phrase that has no parameters.
     * -   `Part.text` is set to a part of the phrase that you want to annotate,
     *     and the `entity_type`, `alias`, and `user_defined` fields are all
     *     set.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    @java.lang.Override
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part>
        getPartsList() {
      return parts_;
    }
    /**
     *
     *
     * <pre>
     * Required. The ordered list of training phrase parts.
     * The parts are concatenated in order to form the training phrase.
     *
     * Note: The API does not automatically annotate training phrases like the
     * Dialogflow Console does.
     *
     * Note: Do not forget to include whitespace at part boundaries,
     * so the training phrase is well formatted when the parts are concatenated.
     *
     * If the training phrase does not need to be annotated with parameters,
     * you just need a single part with only the
     * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
     * field set.
     *
     * If you want to annotate the training phrase, you must create multiple
     * parts, where the fields of each part are populated in one of two ways:
     *
     * -   `Part.text` is set to a part of the phrase that has no parameters.
     * -   `Part.text` is set to a part of the phrase that you want to annotate,
     *     and the `entity_type`, `alias`, and `user_defined` fields are all
     *     set.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    @java.lang.Override
    public java.util.List<
            ? extends com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder>
        getPartsOrBuilderList() {
      return parts_;
    }
    /**
     *
     *
     * <pre>
     * Required. The ordered list of training phrase parts.
     * The parts are concatenated in order to form the training phrase.
     *
     * Note: The API does not automatically annotate training phrases like the
     * Dialogflow Console does.
     *
     * Note: Do not forget to include whitespace at part boundaries,
     * so the training phrase is well formatted when the parts are concatenated.
     *
     * If the training phrase does not need to be annotated with parameters,
     * you just need a single part with only the
     * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
     * field set.
     *
     * If you want to annotate the training phrase, you must create multiple
     * parts, where the fields of each part are populated in one of two ways:
     *
     * -   `Part.text` is set to a part of the phrase that has no parameters.
     * -   `Part.text` is set to a part of the phrase that you want to annotate,
     *     and the `entity_type`, `alias`, and `user_defined` fields are all
     *     set.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    @java.lang.Override
    public int getPartsCount() {
      return parts_.size();
    }
    /**
     *
     *
     * <pre>
     * Required. The ordered list of training phrase parts.
     * The parts are concatenated in order to form the training phrase.
     *
     * Note: The API does not automatically annotate training phrases like the
     * Dialogflow Console does.
     *
     * Note: Do not forget to include whitespace at part boundaries,
     * so the training phrase is well formatted when the parts are concatenated.
     *
     * If the training phrase does not need to be annotated with parameters,
     * you just need a single part with only the
     * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
     * field set.
     *
     * If you want to annotate the training phrase, you must create multiple
     * parts, where the fields of each part are populated in one of two ways:
     *
     * -   `Part.text` is set to a part of the phrase that has no parameters.
     * -   `Part.text` is set to a part of the phrase that you want to annotate,
     *     and the `entity_type`, `alias`, and `user_defined` fields are all
     *     set.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part getParts(int index) {
      return parts_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Required. The ordered list of training phrase parts.
     * The parts are concatenated in order to form the training phrase.
     *
     * Note: The API does not automatically annotate training phrases like the
     * Dialogflow Console does.
     *
     * Note: Do not forget to include whitespace at part boundaries,
     * so the training phrase is well formatted when the parts are concatenated.
     *
     * If the training phrase does not need to be annotated with parameters,
     * you just need a single part with only the
     * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
     * field set.
     *
     * If you want to annotate the training phrase, you must create multiple
     * parts, where the fields of each part are populated in one of two ways:
     *
     * -   `Part.text` is set to a part of the phrase that has no parameters.
     * -   `Part.text` is set to a part of the phrase that you want to annotate,
     *     and the `entity_type`, `alias`, and `user_defined` fields are all
     *     set.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder
        getPartsOrBuilder(int index) {
      return parts_.get(index);
    }

    public static final int TIMES_ADDED_COUNT_FIELD_NUMBER = 4;
    private int timesAddedCount_ = 0;
    /**
     *
     *
     * <pre>
     * Optional. Indicates how many times this example was added to
     * the intent. Each time a developer adds an existing sample by editing an
     * intent or training, this counter is increased.
     * </pre>
     *
     * <code>int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The timesAddedCount.
     */
    @java.lang.Override
    public int getTimesAddedCount() {
      return timesAddedCount_;
    }

    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(name_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (type_
          != com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type.TYPE_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(2, type_);
      }
      for (int i = 0; i < parts_.size(); i++) {
        output.writeMessage(3, parts_.get(i));
      }
      if (timesAddedCount_ != 0) {
        output.writeInt32(4, timesAddedCount_);
      }
      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(name_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (type_
          != com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type.TYPE_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_);
      }
      for (int i = 0; i < parts_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parts_.get(i));
      }
      if (timesAddedCount_ != 0) {
        size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, timesAddedCount_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase)) {
        return super.equals(obj);
      }
      com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase other =
          (com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase) obj;

      if (!getName().equals(other.getName())) return false;
      if (type_ != other.type_) return false;
      if (!getPartsList().equals(other.getPartsList())) return false;
      if (getTimesAddedCount() != other.getTimesAddedCount()) 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) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + type_;
      if (getPartsCount() > 0) {
        hash = (37 * hash) + PARTS_FIELD_NUMBER;
        hash = (53 * hash) + getPartsList().hashCode();
      }
      hash = (37 * hash) + TIMES_ADDED_COUNT_FIELD_NUMBER;
      hash = (53 * hash) + getTimesAddedCount();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

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

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

    public static Builder newBuilder(
        com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase 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>
     * Represents an example that the agent is trained on.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase)
        com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhraseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.class,
                com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder.class);
      }

      // Construct using com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        name_ = "";
        type_ = 0;
        if (partsBuilder_ == null) {
          parts_ = java.util.Collections.emptyList();
        } else {
          parts_ = null;
          partsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        timesAddedCount_ = 0;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase getDefaultInstanceForType() {
        return com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase build() {
        com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase buildPartial() {
        com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase result =
            new com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(
          com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase result) {
        if (partsBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            parts_ = java.util.Collections.unmodifiableList(parts_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.parts_ = parts_;
        } else {
          result.parts_ = partsBuilder_.build();
        }
      }

      private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.name_ = name_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.type_ = type_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.timesAddedCount_ = timesAddedCount_;
        }
      }

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

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

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

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

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

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

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase) {
          return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase other) {
        if (other == com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.getDefaultInstance())
          return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (other.type_ != 0) {
          setTypeValue(other.getTypeValue());
        }
        if (partsBuilder_ == null) {
          if (!other.parts_.isEmpty()) {
            if (parts_.isEmpty()) {
              parts_ = other.parts_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensurePartsIsMutable();
              parts_.addAll(other.parts_);
            }
            onChanged();
          }
        } else {
          if (!other.parts_.isEmpty()) {
            if (partsBuilder_.isEmpty()) {
              partsBuilder_.dispose();
              partsBuilder_ = null;
              parts_ = other.parts_;
              bitField0_ = (bitField0_ & ~0x00000004);
              partsBuilder_ =
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                      ? getPartsFieldBuilder()
                      : null;
            } else {
              partsBuilder_.addAllMessages(other.parts_);
            }
          }
        }
        if (other.getTimesAddedCount() != 0) {
          setTimesAddedCount(other.getTimesAddedCount());
        }
        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:
                {
                  name_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 16:
                {
                  type_ = input.readEnum();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 16
              case 26:
                {
                  com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part m =
                      input.readMessage(
                          com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.parser(),
                          extensionRegistry);
                  if (partsBuilder_ == null) {
                    ensurePartsIsMutable();
                    parts_.add(m);
                  } else {
                    partsBuilder_.addMessage(m);
                  }
                  break;
                } // case 26
              case 32:
                {
                  timesAddedCount_ = input.readInt32();
                  bitField0_ |= 0x00000008;
                  break;
                } // case 32
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private java.lang.Object name_ = "";
      /**
       *
       *
       * <pre>
       * Output only. The unique identifier of this training phrase.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Output only. The unique identifier of this training phrase.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Output only. The unique identifier of this training phrase.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. The unique identifier of this training phrase.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearName() {
        name_ = getDefaultInstance().getName();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. The unique identifier of this training phrase.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private int type_ = 0;
      /**
       *
       *
       * <pre>
       * Required. The type of the training phrase.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @return The enum numeric value on the wire for type.
       */
      @java.lang.Override
      public int getTypeValue() {
        return type_;
      }
      /**
       *
       *
       * <pre>
       * Required. The type of the training phrase.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @param value The enum numeric value on the wire for type to set.
       * @return This builder for chaining.
       */
      public Builder setTypeValue(int value) {
        type_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The type of the training phrase.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @return The type.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type getType() {
        com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type result =
            com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type.forNumber(type_);
        return result == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type.UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * Required. The type of the training phrase.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @param value The type to set.
       * @return This builder for chaining.
       */
      public Builder setType(com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        type_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The type of the training phrase.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearType() {
        bitField0_ = (bitField0_ & ~0x00000002);
        type_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part>
          parts_ = java.util.Collections.emptyList();

      private void ensurePartsIsMutable() {
        if (!((bitField0_ & 0x00000004) != 0)) {
          parts_ =
              new java.util.ArrayList<
                  com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part>(parts_);
          bitField0_ |= 0x00000004;
        }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part,
              com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder>
          partsBuilder_;

      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part>
          getPartsList() {
        if (partsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(parts_);
        } else {
          return partsBuilder_.getMessageList();
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public int getPartsCount() {
        if (partsBuilder_ == null) {
          return parts_.size();
        } else {
          return partsBuilder_.getCount();
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part getParts(int index) {
        if (partsBuilder_ == null) {
          return parts_.get(index);
        } else {
          return partsBuilder_.getMessage(index);
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder setParts(
          int index, com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part value) {
        if (partsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePartsIsMutable();
          parts_.set(index, value);
          onChanged();
        } else {
          partsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder setParts(
          int index,
          com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder builderForValue) {
        if (partsBuilder_ == null) {
          ensurePartsIsMutable();
          parts_.set(index, builderForValue.build());
          onChanged();
        } else {
          partsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder addParts(
          com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part value) {
        if (partsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePartsIsMutable();
          parts_.add(value);
          onChanged();
        } else {
          partsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder addParts(
          int index, com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part value) {
        if (partsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePartsIsMutable();
          parts_.add(index, value);
          onChanged();
        } else {
          partsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder addParts(
          com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder builderForValue) {
        if (partsBuilder_ == null) {
          ensurePartsIsMutable();
          parts_.add(builderForValue.build());
          onChanged();
        } else {
          partsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder addParts(
          int index,
          com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder builderForValue) {
        if (partsBuilder_ == null) {
          ensurePartsIsMutable();
          parts_.add(index, builderForValue.build());
          onChanged();
        } else {
          partsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder addAllParts(
          java.lang.Iterable<
                  ? extends com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part>
              values) {
        if (partsBuilder_ == null) {
          ensurePartsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parts_);
          onChanged();
        } else {
          partsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder clearParts() {
        if (partsBuilder_ == null) {
          parts_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          partsBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public Builder removeParts(int index) {
        if (partsBuilder_ == null) {
          ensurePartsIsMutable();
          parts_.remove(index);
          onChanged();
        } else {
          partsBuilder_.remove(index);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder getPartsBuilder(
          int index) {
        return getPartsFieldBuilder().getBuilder(index);
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder
          getPartsOrBuilder(int index) {
        if (partsBuilder_ == null) {
          return parts_.get(index);
        } else {
          return partsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder>
          getPartsOrBuilderList() {
        if (partsBuilder_ != null) {
          return partsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(parts_);
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder
          addPartsBuilder() {
        return getPartsFieldBuilder()
            .addBuilder(
                com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part
                    .getDefaultInstance());
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder addPartsBuilder(
          int index) {
        return getPartsFieldBuilder()
            .addBuilder(
                index,
                com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part
                    .getDefaultInstance());
      }
      /**
       *
       *
       * <pre>
       * Required. The ordered list of training phrase parts.
       * The parts are concatenated in order to form the training phrase.
       *
       * Note: The API does not automatically annotate training phrases like the
       * Dialogflow Console does.
       *
       * Note: Do not forget to include whitespace at part boundaries,
       * so the training phrase is well formatted when the parts are concatenated.
       *
       * If the training phrase does not need to be annotated with parameters,
       * you just need a single part with only the
       * [Part.text][google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.text]
       * field set.
       *
       * If you want to annotate the training phrase, you must create multiple
       * parts, where the fields of each part are populated in one of two ways:
       *
       * -   `Part.text` is set to a part of the phrase that has no parameters.
       * -   `Part.text` is set to a part of the phrase that you want to annotate,
       *     and the `entity_type`, `alias`, and `user_defined` fields are all
       *     set.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED];
       * </code>
       */
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder>
          getPartsBuilderList() {
        return getPartsFieldBuilder().getBuilderList();
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part,
              com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder>
          getPartsFieldBuilder() {
        if (partsBuilder_ == null) {
          partsBuilder_ =
              new com.google.protobuf.RepeatedFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part,
                  com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder>(
                  parts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
          parts_ = null;
        }
        return partsBuilder_;
      }

      private int timesAddedCount_;
      /**
       *
       *
       * <pre>
       * Optional. Indicates how many times this example was added to
       * the intent. Each time a developer adds an existing sample by editing an
       * intent or training, this counter is increased.
       * </pre>
       *
       * <code>int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The timesAddedCount.
       */
      @java.lang.Override
      public int getTimesAddedCount() {
        return timesAddedCount_;
      }
      /**
       *
       *
       * <pre>
       * Optional. Indicates how many times this example was added to
       * the intent. Each time a developer adds an existing sample by editing an
       * intent or training, this counter is increased.
       * </pre>
       *
       * <code>int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param value The timesAddedCount to set.
       * @return This builder for chaining.
       */
      public Builder setTimesAddedCount(int value) {

        timesAddedCount_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Indicates how many times this example was added to
       * the intent. Each time a developer adds an existing sample by editing an
       * intent or training, this counter is increased.
       * </pre>
       *
       * <code>int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearTimesAddedCount() {
        bitField0_ = (bitField0_ & ~0x00000008);
        timesAddedCount_ = 0;
        onChanged();
        return this;
      }

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

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

      // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase)
    private static final com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase();
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface ParameterOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Parameter)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The unique identifier of this parameter.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    java.lang.String getName();
    /**
     *
     *
     * <pre>
     * The unique identifier of this parameter.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString getNameBytes();

    /**
     *
     *
     * <pre>
     * Required. The name of the parameter.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return The displayName.
     */
    java.lang.String getDisplayName();
    /**
     *
     *
     * <pre>
     * Required. The name of the parameter.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return The bytes for displayName.
     */
    com.google.protobuf.ByteString getDisplayNameBytes();

    /**
     *
     *
     * <pre>
     * Optional. The definition of the parameter value. It can be:
     *
     * - a constant string,
     * - a parameter value defined as `$parameter_name`,
     * - an original parameter value defined as `$parameter_name.original`,
     * - a parameter value from some context defined as
     *   `#context_name.parameter_name`.
     * </pre>
     *
     * <code>string value = 3;</code>
     *
     * @return The value.
     */
    java.lang.String getValue();
    /**
     *
     *
     * <pre>
     * Optional. The definition of the parameter value. It can be:
     *
     * - a constant string,
     * - a parameter value defined as `$parameter_name`,
     * - an original parameter value defined as `$parameter_name.original`,
     * - a parameter value from some context defined as
     *   `#context_name.parameter_name`.
     * </pre>
     *
     * <code>string value = 3;</code>
     *
     * @return The bytes for value.
     */
    com.google.protobuf.ByteString getValueBytes();

    /**
     *
     *
     * <pre>
     * Optional. The default value to use when the `value` yields an empty
     * result.
     * Default values can be extracted from contexts by using the following
     * syntax: `#context_name.parameter_name`.
     * </pre>
     *
     * <code>string default_value = 4;</code>
     *
     * @return The defaultValue.
     */
    java.lang.String getDefaultValue();
    /**
     *
     *
     * <pre>
     * Optional. The default value to use when the `value` yields an empty
     * result.
     * Default values can be extracted from contexts by using the following
     * syntax: `#context_name.parameter_name`.
     * </pre>
     *
     * <code>string default_value = 4;</code>
     *
     * @return The bytes for defaultValue.
     */
    com.google.protobuf.ByteString getDefaultValueBytes();

    /**
     *
     *
     * <pre>
     * Optional. The name of the entity type, prefixed with `&#64;`, that
     * describes values of the parameter. If the parameter is
     * required, this must be provided.
     * </pre>
     *
     * <code>string entity_type_display_name = 5;</code>
     *
     * @return The entityTypeDisplayName.
     */
    java.lang.String getEntityTypeDisplayName();
    /**
     *
     *
     * <pre>
     * Optional. The name of the entity type, prefixed with `&#64;`, that
     * describes values of the parameter. If the parameter is
     * required, this must be provided.
     * </pre>
     *
     * <code>string entity_type_display_name = 5;</code>
     *
     * @return The bytes for entityTypeDisplayName.
     */
    com.google.protobuf.ByteString getEntityTypeDisplayNameBytes();

    /**
     *
     *
     * <pre>
     * Optional. Indicates whether the parameter is required. That is,
     * whether the intent cannot be completed without collecting the parameter
     * value.
     * </pre>
     *
     * <code>bool mandatory = 6;</code>
     *
     * @return The mandatory.
     */
    boolean getMandatory();

    /**
     *
     *
     * <pre>
     * Optional. The collection of prompts that the agent can present to the
     * user in order to collect a value for the parameter.
     * </pre>
     *
     * <code>repeated string prompts = 7;</code>
     *
     * @return A list containing the prompts.
     */
    java.util.List<java.lang.String> getPromptsList();
    /**
     *
     *
     * <pre>
     * Optional. The collection of prompts that the agent can present to the
     * user in order to collect a value for the parameter.
     * </pre>
     *
     * <code>repeated string prompts = 7;</code>
     *
     * @return The count of prompts.
     */
    int getPromptsCount();
    /**
     *
     *
     * <pre>
     * Optional. The collection of prompts that the agent can present to the
     * user in order to collect a value for the parameter.
     * </pre>
     *
     * <code>repeated string prompts = 7;</code>
     *
     * @param index The index of the element to return.
     * @return The prompts at the given index.
     */
    java.lang.String getPrompts(int index);
    /**
     *
     *
     * <pre>
     * Optional. The collection of prompts that the agent can present to the
     * user in order to collect a value for the parameter.
     * </pre>
     *
     * <code>repeated string prompts = 7;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the prompts at the given index.
     */
    com.google.protobuf.ByteString getPromptsBytes(int index);

    /**
     *
     *
     * <pre>
     * Optional. Indicates whether the parameter represents a list of values.
     * </pre>
     *
     * <code>bool is_list = 8;</code>
     *
     * @return The isList.
     */
    boolean getIsList();
  }
  /**
   *
   *
   * <pre>
   * Represents intent parameters.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Parameter}
   */
  public static final class Parameter extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Parameter)
      ParameterOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use Parameter.newBuilder() to construct.
    private Parameter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private Parameter() {
      name_ = "";
      displayName_ = "";
      value_ = "";
      defaultValue_ = "";
      entityTypeDisplayName_ = "";
      prompts_ = com.google.protobuf.LazyStringArrayList.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto
          .internal_static_google_cloud_dialogflow_v2beta1_Intent_Parameter_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto
          .internal_static_google_cloud_dialogflow_v2beta1_Intent_Parameter_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dialogflow.v2beta1.Intent.Parameter.class,
              com.google.cloud.dialogflow.v2beta1.Intent.Parameter.Builder.class);
    }

    public static final int NAME_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * The unique identifier of this parameter.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The unique identifier of this parameter.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DISPLAY_NAME_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object displayName_ = "";
    /**
     *
     *
     * <pre>
     * Required. The name of the parameter.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return The displayName.
     */
    @java.lang.Override
    public java.lang.String getDisplayName() {
      java.lang.Object ref = displayName_;
      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();
        displayName_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The name of the parameter.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return The bytes for displayName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getDisplayNameBytes() {
      java.lang.Object ref = displayName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        displayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int VALUE_FIELD_NUMBER = 3;

    @SuppressWarnings("serial")
    private volatile java.lang.Object value_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The definition of the parameter value. It can be:
     *
     * - a constant string,
     * - a parameter value defined as `$parameter_name`,
     * - an original parameter value defined as `$parameter_name.original`,
     * - a parameter value from some context defined as
     *   `#context_name.parameter_name`.
     * </pre>
     *
     * <code>string value = 3;</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>
     * Optional. The definition of the parameter value. It can be:
     *
     * - a constant string,
     * - a parameter value defined as `$parameter_name`,
     * - an original parameter value defined as `$parameter_name.original`,
     * - a parameter value from some context defined as
     *   `#context_name.parameter_name`.
     * </pre>
     *
     * <code>string value = 3;</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;
      }
    }

    public static final int DEFAULT_VALUE_FIELD_NUMBER = 4;

    @SuppressWarnings("serial")
    private volatile java.lang.Object defaultValue_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The default value to use when the `value` yields an empty
     * result.
     * Default values can be extracted from contexts by using the following
     * syntax: `#context_name.parameter_name`.
     * </pre>
     *
     * <code>string default_value = 4;</code>
     *
     * @return The defaultValue.
     */
    @java.lang.Override
    public java.lang.String getDefaultValue() {
      java.lang.Object ref = defaultValue_;
      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();
        defaultValue_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The default value to use when the `value` yields an empty
     * result.
     * Default values can be extracted from contexts by using the following
     * syntax: `#context_name.parameter_name`.
     * </pre>
     *
     * <code>string default_value = 4;</code>
     *
     * @return The bytes for defaultValue.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getDefaultValueBytes() {
      java.lang.Object ref = defaultValue_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        defaultValue_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ENTITY_TYPE_DISPLAY_NAME_FIELD_NUMBER = 5;

    @SuppressWarnings("serial")
    private volatile java.lang.Object entityTypeDisplayName_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The name of the entity type, prefixed with `&#64;`, that
     * describes values of the parameter. If the parameter is
     * required, this must be provided.
     * </pre>
     *
     * <code>string entity_type_display_name = 5;</code>
     *
     * @return The entityTypeDisplayName.
     */
    @java.lang.Override
    public java.lang.String getEntityTypeDisplayName() {
      java.lang.Object ref = entityTypeDisplayName_;
      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();
        entityTypeDisplayName_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The name of the entity type, prefixed with `&#64;`, that
     * describes values of the parameter. If the parameter is
     * required, this must be provided.
     * </pre>
     *
     * <code>string entity_type_display_name = 5;</code>
     *
     * @return The bytes for entityTypeDisplayName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getEntityTypeDisplayNameBytes() {
      java.lang.Object ref = entityTypeDisplayName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        entityTypeDisplayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int MANDATORY_FIELD_NUMBER = 6;
    private boolean mandatory_ = false;
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether the parameter is required. That is,
     * whether the intent cannot be completed without collecting the parameter
     * value.
     * </pre>
     *
     * <code>bool mandatory = 6;</code>
     *
     * @return The mandatory.
     */
    @java.lang.Override
    public boolean getMandatory() {
      return mandatory_;
    }

    public static final int PROMPTS_FIELD_NUMBER = 7;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList prompts_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    /**
     *
     *
     * <pre>
     * Optional. The collection of prompts that the agent can present to the
     * user in order to collect a value for the parameter.
     * </pre>
     *
     * <code>repeated string prompts = 7;</code>
     *
     * @return A list containing the prompts.
     */
    public com.google.protobuf.ProtocolStringList getPromptsList() {
      return prompts_;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of prompts that the agent can present to the
     * user in order to collect a value for the parameter.
     * </pre>
     *
     * <code>repeated string prompts = 7;</code>
     *
     * @return The count of prompts.
     */
    public int getPromptsCount() {
      return prompts_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of prompts that the agent can present to the
     * user in order to collect a value for the parameter.
     * </pre>
     *
     * <code>repeated string prompts = 7;</code>
     *
     * @param index The index of the element to return.
     * @return The prompts at the given index.
     */
    public java.lang.String getPrompts(int index) {
      return prompts_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of prompts that the agent can present to the
     * user in order to collect a value for the parameter.
     * </pre>
     *
     * <code>repeated string prompts = 7;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the prompts at the given index.
     */
    public com.google.protobuf.ByteString getPromptsBytes(int index) {
      return prompts_.getByteString(index);
    }

    public static final int IS_LIST_FIELD_NUMBER = 8;
    private boolean isList_ = false;
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether the parameter represents a list of values.
     * </pre>
     *
     * <code>bool is_list = 8;</code>
     *
     * @return The isList.
     */
    @java.lang.Override
    public boolean getIsList() {
      return isList_;
    }

    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(name_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultValue_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityTypeDisplayName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, entityTypeDisplayName_);
      }
      if (mandatory_ != false) {
        output.writeBool(6, mandatory_);
      }
      for (int i = 0; i < prompts_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, prompts_.getRaw(i));
      }
      if (isList_ != false) {
        output.writeBool(8, isList_);
      }
      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(name_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultValue_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityTypeDisplayName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, entityTypeDisplayName_);
      }
      if (mandatory_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, mandatory_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < prompts_.size(); i++) {
          dataSize += computeStringSizeNoTag(prompts_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getPromptsList().size();
      }
      if (isList_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, isList_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Parameter)) {
        return super.equals(obj);
      }
      com.google.cloud.dialogflow.v2beta1.Intent.Parameter other =
          (com.google.cloud.dialogflow.v2beta1.Intent.Parameter) obj;

      if (!getName().equals(other.getName())) return false;
      if (!getDisplayName().equals(other.getDisplayName())) return false;
      if (!getValue().equals(other.getValue())) return false;
      if (!getDefaultValue().equals(other.getDefaultValue())) return false;
      if (!getEntityTypeDisplayName().equals(other.getEntityTypeDisplayName())) return false;
      if (getMandatory() != other.getMandatory()) return false;
      if (!getPromptsList().equals(other.getPromptsList())) return false;
      if (getIsList() != other.getIsList()) 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) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getDisplayName().hashCode();
      hash = (37 * hash) + VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getValue().hashCode();
      hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getDefaultValue().hashCode();
      hash = (37 * hash) + ENTITY_TYPE_DISPLAY_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getEntityTypeDisplayName().hashCode();
      hash = (37 * hash) + MANDATORY_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMandatory());
      if (getPromptsCount() > 0) {
        hash = (37 * hash) + PROMPTS_FIELD_NUMBER;
        hash = (53 * hash) + getPromptsList().hashCode();
      }
      hash = (37 * hash) + IS_LIST_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsList());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

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

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

    public static Builder newBuilder(
        com.google.cloud.dialogflow.v2beta1.Intent.Parameter 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>
     * Represents intent parameters.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Parameter}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Parameter)
        com.google.cloud.dialogflow.v2beta1.Intent.ParameterOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Parameter_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Parameter_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Parameter.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Parameter.Builder.class);
      }

      // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Parameter.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        name_ = "";
        displayName_ = "";
        value_ = "";
        defaultValue_ = "";
        entityTypeDisplayName_ = "";
        mandatory_ = false;
        prompts_ = com.google.protobuf.LazyStringArrayList.emptyList();
        isList_ = false;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Parameter_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Parameter getDefaultInstanceForType() {
        return com.google.cloud.dialogflow.v2beta1.Intent.Parameter.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Parameter build() {
        com.google.cloud.dialogflow.v2beta1.Intent.Parameter result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Parameter buildPartial() {
        com.google.cloud.dialogflow.v2beta1.Intent.Parameter result =
            new com.google.cloud.dialogflow.v2beta1.Intent.Parameter(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Intent.Parameter result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.name_ = name_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.displayName_ = displayName_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.value_ = value_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.defaultValue_ = defaultValue_;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.entityTypeDisplayName_ = entityTypeDisplayName_;
        }
        if (((from_bitField0_ & 0x00000020) != 0)) {
          result.mandatory_ = mandatory_;
        }
        if (((from_bitField0_ & 0x00000040) != 0)) {
          prompts_.makeImmutable();
          result.prompts_ = prompts_;
        }
        if (((from_bitField0_ & 0x00000080) != 0)) {
          result.isList_ = isList_;
        }
      }

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

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

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

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

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

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

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Parameter) {
          return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Parameter) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Parameter other) {
        if (other == com.google.cloud.dialogflow.v2beta1.Intent.Parameter.getDefaultInstance())
          return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getDisplayName().isEmpty()) {
          displayName_ = other.displayName_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        if (!other.getValue().isEmpty()) {
          value_ = other.value_;
          bitField0_ |= 0x00000004;
          onChanged();
        }
        if (!other.getDefaultValue().isEmpty()) {
          defaultValue_ = other.defaultValue_;
          bitField0_ |= 0x00000008;
          onChanged();
        }
        if (!other.getEntityTypeDisplayName().isEmpty()) {
          entityTypeDisplayName_ = other.entityTypeDisplayName_;
          bitField0_ |= 0x00000010;
          onChanged();
        }
        if (other.getMandatory() != false) {
          setMandatory(other.getMandatory());
        }
        if (!other.prompts_.isEmpty()) {
          if (prompts_.isEmpty()) {
            prompts_ = other.prompts_;
            bitField0_ |= 0x00000040;
          } else {
            ensurePromptsIsMutable();
            prompts_.addAll(other.prompts_);
          }
          onChanged();
        }
        if (other.getIsList() != false) {
          setIsList(other.getIsList());
        }
        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:
                {
                  name_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  displayName_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              case 26:
                {
                  value_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 26
              case 34:
                {
                  defaultValue_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000008;
                  break;
                } // case 34
              case 42:
                {
                  entityTypeDisplayName_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000010;
                  break;
                } // case 42
              case 48:
                {
                  mandatory_ = input.readBool();
                  bitField0_ |= 0x00000020;
                  break;
                } // case 48
              case 58:
                {
                  java.lang.String s = input.readStringRequireUtf8();
                  ensurePromptsIsMutable();
                  prompts_.add(s);
                  break;
                } // case 58
              case 64:
                {
                  isList_ = input.readBool();
                  bitField0_ |= 0x00000080;
                  break;
                } // case 64
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private java.lang.Object name_ = "";
      /**
       *
       *
       * <pre>
       * The unique identifier of this parameter.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of this parameter.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of this parameter.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of this parameter.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearName() {
        name_ = getDefaultInstance().getName();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of this parameter.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object displayName_ = "";
      /**
       *
       *
       * <pre>
       * Required. The name of the parameter.
       * </pre>
       *
       * <code>string display_name = 2;</code>
       *
       * @return The displayName.
       */
      public java.lang.String getDisplayName() {
        java.lang.Object ref = displayName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          displayName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the parameter.
       * </pre>
       *
       * <code>string display_name = 2;</code>
       *
       * @return The bytes for displayName.
       */
      public com.google.protobuf.ByteString getDisplayNameBytes() {
        java.lang.Object ref = displayName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          displayName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the parameter.
       * </pre>
       *
       * <code>string display_name = 2;</code>
       *
       * @param value The displayName to set.
       * @return This builder for chaining.
       */
      public Builder setDisplayName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        displayName_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the parameter.
       * </pre>
       *
       * <code>string display_name = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDisplayName() {
        displayName_ = getDefaultInstance().getDisplayName();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the parameter.
       * </pre>
       *
       * <code>string display_name = 2;</code>
       *
       * @param value The bytes for displayName to set.
       * @return This builder for chaining.
       */
      public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        displayName_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      private java.lang.Object value_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The definition of the parameter value. It can be:
       *
       * - a constant string,
       * - a parameter value defined as `$parameter_name`,
       * - an original parameter value defined as `$parameter_name.original`,
       * - a parameter value from some context defined as
       *   `#context_name.parameter_name`.
       * </pre>
       *
       * <code>string value = 3;</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>
       * Optional. The definition of the parameter value. It can be:
       *
       * - a constant string,
       * - a parameter value defined as `$parameter_name`,
       * - an original parameter value defined as `$parameter_name.original`,
       * - a parameter value from some context defined as
       *   `#context_name.parameter_name`.
       * </pre>
       *
       * <code>string value = 3;</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>
       * Optional. The definition of the parameter value. It can be:
       *
       * - a constant string,
       * - a parameter value defined as `$parameter_name`,
       * - an original parameter value defined as `$parameter_name.original`,
       * - a parameter value from some context defined as
       *   `#context_name.parameter_name`.
       * </pre>
       *
       * <code>string value = 3;</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_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The definition of the parameter value. It can be:
       *
       * - a constant string,
       * - a parameter value defined as `$parameter_name`,
       * - an original parameter value defined as `$parameter_name.original`,
       * - a parameter value from some context defined as
       *   `#context_name.parameter_name`.
       * </pre>
       *
       * <code>string value = 3;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearValue() {
        value_ = getDefaultInstance().getValue();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The definition of the parameter value. It can be:
       *
       * - a constant string,
       * - a parameter value defined as `$parameter_name`,
       * - an original parameter value defined as `$parameter_name.original`,
       * - a parameter value from some context defined as
       *   `#context_name.parameter_name`.
       * </pre>
       *
       * <code>string value = 3;</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_ |= 0x00000004;
        onChanged();
        return this;
      }

      private java.lang.Object defaultValue_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The default value to use when the `value` yields an empty
       * result.
       * Default values can be extracted from contexts by using the following
       * syntax: `#context_name.parameter_name`.
       * </pre>
       *
       * <code>string default_value = 4;</code>
       *
       * @return The defaultValue.
       */
      public java.lang.String getDefaultValue() {
        java.lang.Object ref = defaultValue_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          defaultValue_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The default value to use when the `value` yields an empty
       * result.
       * Default values can be extracted from contexts by using the following
       * syntax: `#context_name.parameter_name`.
       * </pre>
       *
       * <code>string default_value = 4;</code>
       *
       * @return The bytes for defaultValue.
       */
      public com.google.protobuf.ByteString getDefaultValueBytes() {
        java.lang.Object ref = defaultValue_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          defaultValue_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The default value to use when the `value` yields an empty
       * result.
       * Default values can be extracted from contexts by using the following
       * syntax: `#context_name.parameter_name`.
       * </pre>
       *
       * <code>string default_value = 4;</code>
       *
       * @param value The defaultValue to set.
       * @return This builder for chaining.
       */
      public Builder setDefaultValue(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        defaultValue_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The default value to use when the `value` yields an empty
       * result.
       * Default values can be extracted from contexts by using the following
       * syntax: `#context_name.parameter_name`.
       * </pre>
       *
       * <code>string default_value = 4;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDefaultValue() {
        defaultValue_ = getDefaultInstance().getDefaultValue();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The default value to use when the `value` yields an empty
       * result.
       * Default values can be extracted from contexts by using the following
       * syntax: `#context_name.parameter_name`.
       * </pre>
       *
       * <code>string default_value = 4;</code>
       *
       * @param value The bytes for defaultValue to set.
       * @return This builder for chaining.
       */
      public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        defaultValue_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }

      private java.lang.Object entityTypeDisplayName_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The name of the entity type, prefixed with `&#64;`, that
       * describes values of the parameter. If the parameter is
       * required, this must be provided.
       * </pre>
       *
       * <code>string entity_type_display_name = 5;</code>
       *
       * @return The entityTypeDisplayName.
       */
      public java.lang.String getEntityTypeDisplayName() {
        java.lang.Object ref = entityTypeDisplayName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          entityTypeDisplayName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The name of the entity type, prefixed with `&#64;`, that
       * describes values of the parameter. If the parameter is
       * required, this must be provided.
       * </pre>
       *
       * <code>string entity_type_display_name = 5;</code>
       *
       * @return The bytes for entityTypeDisplayName.
       */
      public com.google.protobuf.ByteString getEntityTypeDisplayNameBytes() {
        java.lang.Object ref = entityTypeDisplayName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          entityTypeDisplayName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The name of the entity type, prefixed with `&#64;`, that
       * describes values of the parameter. If the parameter is
       * required, this must be provided.
       * </pre>
       *
       * <code>string entity_type_display_name = 5;</code>
       *
       * @param value The entityTypeDisplayName to set.
       * @return This builder for chaining.
       */
      public Builder setEntityTypeDisplayName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        entityTypeDisplayName_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The name of the entity type, prefixed with `&#64;`, that
       * describes values of the parameter. If the parameter is
       * required, this must be provided.
       * </pre>
       *
       * <code>string entity_type_display_name = 5;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearEntityTypeDisplayName() {
        entityTypeDisplayName_ = getDefaultInstance().getEntityTypeDisplayName();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The name of the entity type, prefixed with `&#64;`, that
       * describes values of the parameter. If the parameter is
       * required, this must be provided.
       * </pre>
       *
       * <code>string entity_type_display_name = 5;</code>
       *
       * @param value The bytes for entityTypeDisplayName to set.
       * @return This builder for chaining.
       */
      public Builder setEntityTypeDisplayNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        entityTypeDisplayName_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }

      private boolean mandatory_;
      /**
       *
       *
       * <pre>
       * Optional. Indicates whether the parameter is required. That is,
       * whether the intent cannot be completed without collecting the parameter
       * value.
       * </pre>
       *
       * <code>bool mandatory = 6;</code>
       *
       * @return The mandatory.
       */
      @java.lang.Override
      public boolean getMandatory() {
        return mandatory_;
      }
      /**
       *
       *
       * <pre>
       * Optional. Indicates whether the parameter is required. That is,
       * whether the intent cannot be completed without collecting the parameter
       * value.
       * </pre>
       *
       * <code>bool mandatory = 6;</code>
       *
       * @param value The mandatory to set.
       * @return This builder for chaining.
       */
      public Builder setMandatory(boolean value) {

        mandatory_ = value;
        bitField0_ |= 0x00000020;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Indicates whether the parameter is required. That is,
       * whether the intent cannot be completed without collecting the parameter
       * value.
       * </pre>
       *
       * <code>bool mandatory = 6;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearMandatory() {
        bitField0_ = (bitField0_ & ~0x00000020);
        mandatory_ = false;
        onChanged();
        return this;
      }

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

      private void ensurePromptsIsMutable() {
        if (!prompts_.isModifiable()) {
          prompts_ = new com.google.protobuf.LazyStringArrayList(prompts_);
        }
        bitField0_ |= 0x00000040;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of prompts that the agent can present to the
       * user in order to collect a value for the parameter.
       * </pre>
       *
       * <code>repeated string prompts = 7;</code>
       *
       * @return A list containing the prompts.
       */
      public com.google.protobuf.ProtocolStringList getPromptsList() {
        prompts_.makeImmutable();
        return prompts_;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of prompts that the agent can present to the
       * user in order to collect a value for the parameter.
       * </pre>
       *
       * <code>repeated string prompts = 7;</code>
       *
       * @return The count of prompts.
       */
      public int getPromptsCount() {
        return prompts_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of prompts that the agent can present to the
       * user in order to collect a value for the parameter.
       * </pre>
       *
       * <code>repeated string prompts = 7;</code>
       *
       * @param index The index of the element to return.
       * @return The prompts at the given index.
       */
      public java.lang.String getPrompts(int index) {
        return prompts_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of prompts that the agent can present to the
       * user in order to collect a value for the parameter.
       * </pre>
       *
       * <code>repeated string prompts = 7;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the prompts at the given index.
       */
      public com.google.protobuf.ByteString getPromptsBytes(int index) {
        return prompts_.getByteString(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of prompts that the agent can present to the
       * user in order to collect a value for the parameter.
       * </pre>
       *
       * <code>repeated string prompts = 7;</code>
       *
       * @param index The index to set the value at.
       * @param value The prompts to set.
       * @return This builder for chaining.
       */
      public Builder setPrompts(int index, java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePromptsIsMutable();
        prompts_.set(index, value);
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of prompts that the agent can present to the
       * user in order to collect a value for the parameter.
       * </pre>
       *
       * <code>repeated string prompts = 7;</code>
       *
       * @param value The prompts to add.
       * @return This builder for chaining.
       */
      public Builder addPrompts(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePromptsIsMutable();
        prompts_.add(value);
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of prompts that the agent can present to the
       * user in order to collect a value for the parameter.
       * </pre>
       *
       * <code>repeated string prompts = 7;</code>
       *
       * @param values The prompts to add.
       * @return This builder for chaining.
       */
      public Builder addAllPrompts(java.lang.Iterable<java.lang.String> values) {
        ensurePromptsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prompts_);
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of prompts that the agent can present to the
       * user in order to collect a value for the parameter.
       * </pre>
       *
       * <code>repeated string prompts = 7;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearPrompts() {
        prompts_ = com.google.protobuf.LazyStringArrayList.emptyList();
        bitField0_ = (bitField0_ & ~0x00000040);
        ;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of prompts that the agent can present to the
       * user in order to collect a value for the parameter.
       * </pre>
       *
       * <code>repeated string prompts = 7;</code>
       *
       * @param value The bytes of the prompts to add.
       * @return This builder for chaining.
       */
      public Builder addPromptsBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        ensurePromptsIsMutable();
        prompts_.add(value);
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }

      private boolean isList_;
      /**
       *
       *
       * <pre>
       * Optional. Indicates whether the parameter represents a list of values.
       * </pre>
       *
       * <code>bool is_list = 8;</code>
       *
       * @return The isList.
       */
      @java.lang.Override
      public boolean getIsList() {
        return isList_;
      }
      /**
       *
       *
       * <pre>
       * Optional. Indicates whether the parameter represents a list of values.
       * </pre>
       *
       * <code>bool is_list = 8;</code>
       *
       * @param value The isList to set.
       * @return This builder for chaining.
       */
      public Builder setIsList(boolean value) {

        isList_ = value;
        bitField0_ |= 0x00000080;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Indicates whether the parameter represents a list of values.
       * </pre>
       *
       * <code>bool is_list = 8;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearIsList() {
        bitField0_ = (bitField0_ & ~0x00000080);
        isList_ = false;
        onChanged();
        return this;
      }

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

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

      // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Parameter)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Parameter)
    private static final com.google.cloud.dialogflow.v2beta1.Intent.Parameter DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Parameter();
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Parameter getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Parameter getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface MessageOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Returns a text response.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
     *
     * @return Whether the text field is set.
     */
    boolean hasText();
    /**
     *
     *
     * <pre>
     * Returns a text response.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
     *
     * @return The text.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText();
    /**
     *
     *
     * <pre>
     * Returns a text response.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder();

    /**
     *
     *
     * <pre>
     * Displays an image.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
     *
     * @return Whether the image field is set.
     */
    boolean hasImage();
    /**
     *
     *
     * <pre>
     * Displays an image.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
     *
     * @return The image.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage();
    /**
     *
     *
     * <pre>
     * Displays an image.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder();

    /**
     *
     *
     * <pre>
     * Displays quick replies.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;</code>
     *
     * @return Whether the quickReplies field is set.
     */
    boolean hasQuickReplies();
    /**
     *
     *
     * <pre>
     * Displays quick replies.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;</code>
     *
     * @return The quickReplies.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies();
    /**
     *
     *
     * <pre>
     * Displays quick replies.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;</code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder
        getQuickRepliesOrBuilder();

    /**
     *
     *
     * <pre>
     * Displays a card.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
     *
     * @return Whether the card field is set.
     */
    boolean hasCard();
    /**
     *
     *
     * <pre>
     * Displays a card.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
     *
     * @return The card.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard();
    /**
     *
     *
     * <pre>
     * Displays a card.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder();

    /**
     *
     *
     * <pre>
     * A custom platform-specific response.
     * </pre>
     *
     * <code>.google.protobuf.Struct payload = 5;</code>
     *
     * @return Whether the payload field is set.
     */
    boolean hasPayload();
    /**
     *
     *
     * <pre>
     * A custom platform-specific response.
     * </pre>
     *
     * <code>.google.protobuf.Struct payload = 5;</code>
     *
     * @return The payload.
     */
    com.google.protobuf.Struct getPayload();
    /**
     *
     *
     * <pre>
     * A custom platform-specific response.
     * </pre>
     *
     * <code>.google.protobuf.Struct payload = 5;</code>
     */
    com.google.protobuf.StructOrBuilder getPayloadOrBuilder();

    /**
     *
     *
     * <pre>
     * Returns a voice or text-only response for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
     * </code>
     *
     * @return Whether the simpleResponses field is set.
     */
    boolean hasSimpleResponses();
    /**
     *
     *
     * <pre>
     * Returns a voice or text-only response for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
     * </code>
     *
     * @return The simpleResponses.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses getSimpleResponses();
    /**
     *
     *
     * <pre>
     * Returns a voice or text-only response for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
     * </code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder
        getSimpleResponsesOrBuilder();

    /**
     *
     *
     * <pre>
     * Displays a basic card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
     *
     * @return Whether the basicCard field is set.
     */
    boolean hasBasicCard();
    /**
     *
     *
     * <pre>
     * Displays a basic card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
     *
     * @return The basicCard.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard getBasicCard();
    /**
     *
     *
     * <pre>
     * Displays a basic card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder getBasicCardOrBuilder();

    /**
     *
     *
     * <pre>
     * Displays suggestion chips for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
     *
     * @return Whether the suggestions field is set.
     */
    boolean hasSuggestions();
    /**
     *
     *
     * <pre>
     * Displays suggestion chips for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
     *
     * @return The suggestions.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggestions();
    /**
     *
     *
     * <pre>
     * Displays suggestion chips for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder
        getSuggestionsOrBuilder();

    /**
     *
     *
     * <pre>
     * Displays a link out suggestion chip for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
     * </code>
     *
     * @return Whether the linkOutSuggestion field is set.
     */
    boolean hasLinkOutSuggestion();
    /**
     *
     *
     * <pre>
     * Displays a link out suggestion chip for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
     * </code>
     *
     * @return The linkOutSuggestion.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion getLinkOutSuggestion();
    /**
     *
     *
     * <pre>
     * Displays a link out suggestion chip for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
     * </code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder
        getLinkOutSuggestionOrBuilder();

    /**
     *
     *
     * <pre>
     * Displays a list card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
     *
     * @return Whether the listSelect field is set.
     */
    boolean hasListSelect();
    /**
     *
     *
     * <pre>
     * Displays a list card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
     *
     * @return The listSelect.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect getListSelect();
    /**
     *
     *
     * <pre>
     * Displays a list card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder getListSelectOrBuilder();

    /**
     *
     *
     * <pre>
     * Displays a carousel card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
     * </code>
     *
     * @return Whether the carouselSelect field is set.
     */
    boolean hasCarouselSelect();
    /**
     *
     *
     * <pre>
     * Displays a carousel card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
     * </code>
     *
     * @return The carouselSelect.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCarouselSelect();
    /**
     *
     *
     * <pre>
     * Displays a carousel card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
     * </code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder
        getCarouselSelectOrBuilder();

    /**
     *
     *
     * <pre>
     * Plays audio from a file in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
     * </code>
     *
     * @return Whether the telephonyPlayAudio field is set.
     */
    boolean hasTelephonyPlayAudio();
    /**
     *
     *
     * <pre>
     * Plays audio from a file in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
     * </code>
     *
     * @return The telephonyPlayAudio.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio getTelephonyPlayAudio();
    /**
     *
     *
     * <pre>
     * Plays audio from a file in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
     * </code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder
        getTelephonyPlayAudioOrBuilder();

    /**
     *
     *
     * <pre>
     * Synthesizes speech in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
     * </code>
     *
     * @return Whether the telephonySynthesizeSpeech field is set.
     */
    boolean hasTelephonySynthesizeSpeech();
    /**
     *
     *
     * <pre>
     * Synthesizes speech in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
     * </code>
     *
     * @return The telephonySynthesizeSpeech.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
        getTelephonySynthesizeSpeech();
    /**
     *
     *
     * <pre>
     * Synthesizes speech in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
     * </code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder
        getTelephonySynthesizeSpeechOrBuilder();

    /**
     *
     *
     * <pre>
     * Transfers the call in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
     * </code>
     *
     * @return Whether the telephonyTransferCall field is set.
     */
    boolean hasTelephonyTransferCall();
    /**
     *
     *
     * <pre>
     * Transfers the call in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
     * </code>
     *
     * @return The telephonyTransferCall.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
        getTelephonyTransferCall();
    /**
     *
     *
     * <pre>
     * Transfers the call in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
     * </code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder
        getTelephonyTransferCallOrBuilder();

    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) text response.
     *
     * RBM allows businesses to send enriched and branded versions of SMS. See
     * https://jibe.google.com/business-messaging.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
     *
     * @return Whether the rbmText field is set.
     */
    boolean hasRbmText();
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) text response.
     *
     * RBM allows businesses to send enriched and branded versions of SMS. See
     * https://jibe.google.com/business-messaging.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
     *
     * @return The rbmText.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText getRbmText();
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) text response.
     *
     * RBM allows businesses to send enriched and branded versions of SMS. See
     * https://jibe.google.com/business-messaging.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder getRbmTextOrBuilder();

    /**
     *
     *
     * <pre>
     * Standalone Rich Business Messaging (RBM) rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
     * </code>
     *
     * @return Whether the rbmStandaloneRichCard field is set.
     */
    boolean hasRbmStandaloneRichCard();
    /**
     *
     *
     * <pre>
     * Standalone Rich Business Messaging (RBM) rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
     * </code>
     *
     * @return The rbmStandaloneRichCard.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard getRbmStandaloneRichCard();
    /**
     *
     *
     * <pre>
     * Standalone Rich Business Messaging (RBM) rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
     * </code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder
        getRbmStandaloneRichCardOrBuilder();

    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) carousel rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
     * </code>
     *
     * @return Whether the rbmCarouselRichCard field is set.
     */
    boolean hasRbmCarouselRichCard();
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) carousel rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
     * </code>
     *
     * @return The rbmCarouselRichCard.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard getRbmCarouselRichCard();
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) carousel rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
     * </code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder
        getRbmCarouselRichCardOrBuilder();

    /**
     *
     *
     * <pre>
     * Browse carousel card for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
     * </code>
     *
     * @return Whether the browseCarouselCard field is set.
     */
    boolean hasBrowseCarouselCard();
    /**
     *
     *
     * <pre>
     * Browse carousel card for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
     * </code>
     *
     * @return The browseCarouselCard.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard getBrowseCarouselCard();
    /**
     *
     *
     * <pre>
     * Browse carousel card for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
     * </code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder
        getBrowseCarouselCardOrBuilder();

    /**
     *
     *
     * <pre>
     * Table card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
     *
     * @return Whether the tableCard field is set.
     */
    boolean hasTableCard();
    /**
     *
     *
     * <pre>
     * Table card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
     *
     * @return The tableCard.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard getTableCard();
    /**
     *
     *
     * <pre>
     * Table card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder getTableCardOrBuilder();

    /**
     *
     *
     * <pre>
     * The media content card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;</code>
     *
     * @return Whether the mediaContent field is set.
     */
    boolean hasMediaContent();
    /**
     *
     *
     * <pre>
     * The media content card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;</code>
     *
     * @return The mediaContent.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent getMediaContent();
    /**
     *
     *
     * <pre>
     * The media content card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;</code>
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder
        getMediaContentOrBuilder();

    /**
     *
     *
     * <pre>
     * Optional. The platform that this message is intended for.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The enum numeric value on the wire for platform.
     */
    int getPlatformValue();
    /**
     *
     *
     * <pre>
     * Optional. The platform that this message is intended for.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The platform.
     */
    com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getPlatform();

    com.google.cloud.dialogflow.v2beta1.Intent.Message.MessageCase getMessageCase();
  }
  /**
   *
   *
   * <pre>
   * Corresponds to the `Response` field in the Dialogflow console.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message}
   */
  public static final class Message extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message)
      MessageOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use Message.newBuilder() to construct.
    private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private Message() {
      platform_ = 0;
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto
          .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto
          .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.class,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder.class);
    }

    /**
     *
     *
     * <pre>
     * Represents different platforms that a rich message can be intended for.
     * </pre>
     *
     * Protobuf enum {@code google.cloud.dialogflow.v2beta1.Intent.Message.Platform}
     */
    public enum Platform implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * Not specified.
       * </pre>
       *
       * <code>PLATFORM_UNSPECIFIED = 0;</code>
       */
      PLATFORM_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * Facebook.
       * </pre>
       *
       * <code>FACEBOOK = 1;</code>
       */
      FACEBOOK(1),
      /**
       *
       *
       * <pre>
       * Slack.
       * </pre>
       *
       * <code>SLACK = 2;</code>
       */
      SLACK(2),
      /**
       *
       *
       * <pre>
       * Telegram.
       * </pre>
       *
       * <code>TELEGRAM = 3;</code>
       */
      TELEGRAM(3),
      /**
       *
       *
       * <pre>
       * Kik.
       * </pre>
       *
       * <code>KIK = 4;</code>
       */
      KIK(4),
      /**
       *
       *
       * <pre>
       * Skype.
       * </pre>
       *
       * <code>SKYPE = 5;</code>
       */
      SKYPE(5),
      /**
       *
       *
       * <pre>
       * Line.
       * </pre>
       *
       * <code>LINE = 6;</code>
       */
      LINE(6),
      /**
       *
       *
       * <pre>
       * Viber.
       * </pre>
       *
       * <code>VIBER = 7;</code>
       */
      VIBER(7),
      /**
       *
       *
       * <pre>
       * Google Assistant
       * See [Dialogflow webhook
       * format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
       * </pre>
       *
       * <code>ACTIONS_ON_GOOGLE = 8;</code>
       */
      ACTIONS_ON_GOOGLE(8),
      /**
       *
       *
       * <pre>
       * Telephony Gateway.
       * </pre>
       *
       * <code>TELEPHONY = 10;</code>
       */
      TELEPHONY(10),
      /**
       *
       *
       * <pre>
       * Google Hangouts.
       * </pre>
       *
       * <code>GOOGLE_HANGOUTS = 11;</code>
       */
      GOOGLE_HANGOUTS(11),
      UNRECOGNIZED(-1),
      ;

      /**
       *
       *
       * <pre>
       * Not specified.
       * </pre>
       *
       * <code>PLATFORM_UNSPECIFIED = 0;</code>
       */
      public static final int PLATFORM_UNSPECIFIED_VALUE = 0;
      /**
       *
       *
       * <pre>
       * Facebook.
       * </pre>
       *
       * <code>FACEBOOK = 1;</code>
       */
      public static final int FACEBOOK_VALUE = 1;
      /**
       *
       *
       * <pre>
       * Slack.
       * </pre>
       *
       * <code>SLACK = 2;</code>
       */
      public static final int SLACK_VALUE = 2;
      /**
       *
       *
       * <pre>
       * Telegram.
       * </pre>
       *
       * <code>TELEGRAM = 3;</code>
       */
      public static final int TELEGRAM_VALUE = 3;
      /**
       *
       *
       * <pre>
       * Kik.
       * </pre>
       *
       * <code>KIK = 4;</code>
       */
      public static final int KIK_VALUE = 4;
      /**
       *
       *
       * <pre>
       * Skype.
       * </pre>
       *
       * <code>SKYPE = 5;</code>
       */
      public static final int SKYPE_VALUE = 5;
      /**
       *
       *
       * <pre>
       * Line.
       * </pre>
       *
       * <code>LINE = 6;</code>
       */
      public static final int LINE_VALUE = 6;
      /**
       *
       *
       * <pre>
       * Viber.
       * </pre>
       *
       * <code>VIBER = 7;</code>
       */
      public static final int VIBER_VALUE = 7;
      /**
       *
       *
       * <pre>
       * Google Assistant
       * See [Dialogflow webhook
       * format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
       * </pre>
       *
       * <code>ACTIONS_ON_GOOGLE = 8;</code>
       */
      public static final int ACTIONS_ON_GOOGLE_VALUE = 8;
      /**
       *
       *
       * <pre>
       * Telephony Gateway.
       * </pre>
       *
       * <code>TELEPHONY = 10;</code>
       */
      public static final int TELEPHONY_VALUE = 10;
      /**
       *
       *
       * <pre>
       * Google Hangouts.
       * </pre>
       *
       * <code>GOOGLE_HANGOUTS = 11;</code>
       */
      public static final int GOOGLE_HANGOUTS_VALUE = 11;

      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 Platform 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 Platform forNumber(int value) {
        switch (value) {
          case 0:
            return PLATFORM_UNSPECIFIED;
          case 1:
            return FACEBOOK;
          case 2:
            return SLACK;
          case 3:
            return TELEGRAM;
          case 4:
            return KIK;
          case 5:
            return SKYPE;
          case 6:
            return LINE;
          case 7:
            return VIBER;
          case 8:
            return ACTIONS_ON_GOOGLE;
          case 10:
            return TELEPHONY;
          case 11:
            return GOOGLE_HANGOUTS;
          default:
            return null;
        }
      }

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

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

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

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

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.getDescriptor()
            .getEnumTypes()
            .get(0);
      }

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

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

      // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.Platform)
    }

    public interface TextOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.Text)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Optional. The collection of the agent's responses.
       * </pre>
       *
       * <code>repeated string text = 1;</code>
       *
       * @return A list containing the text.
       */
      java.util.List<java.lang.String> getTextList();
      /**
       *
       *
       * <pre>
       * Optional. The collection of the agent's responses.
       * </pre>
       *
       * <code>repeated string text = 1;</code>
       *
       * @return The count of text.
       */
      int getTextCount();
      /**
       *
       *
       * <pre>
       * Optional. The collection of the agent's responses.
       * </pre>
       *
       * <code>repeated string text = 1;</code>
       *
       * @param index The index of the element to return.
       * @return The text at the given index.
       */
      java.lang.String getText(int index);
      /**
       *
       *
       * <pre>
       * Optional. The collection of the agent's responses.
       * </pre>
       *
       * <code>repeated string text = 1;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the text at the given index.
       */
      com.google.protobuf.ByteString getTextBytes(int index);
    }
    /**
     *
     *
     * <pre>
     * The text response message.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Text}
     */
    public static final class Text extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Text)
        TextOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use Text.newBuilder() to construct.
      private Text(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private Text() {
        text_ = com.google.protobuf.LazyStringArrayList.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Text_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Text_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder.class);
      }

      public static final int TEXT_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private com.google.protobuf.LazyStringArrayList text_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      /**
       *
       *
       * <pre>
       * Optional. The collection of the agent's responses.
       * </pre>
       *
       * <code>repeated string text = 1;</code>
       *
       * @return A list containing the text.
       */
      public com.google.protobuf.ProtocolStringList getTextList() {
        return text_;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of the agent's responses.
       * </pre>
       *
       * <code>repeated string text = 1;</code>
       *
       * @return The count of text.
       */
      public int getTextCount() {
        return text_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of the agent's responses.
       * </pre>
       *
       * <code>repeated string text = 1;</code>
       *
       * @param index The index of the element to return.
       * @return The text at the given index.
       */
      public java.lang.String getText(int index) {
        return text_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of the agent's responses.
       * </pre>
       *
       * <code>repeated string text = 1;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the text at the given index.
       */
      public com.google.protobuf.ByteString getTextBytes(int index) {
        return text_.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 < text_.size(); i++) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_.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 < text_.size(); i++) {
            dataSize += computeStringSizeNoTag(text_.getRaw(i));
          }
          size += dataSize;
          size += 1 * getTextList().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.cloud.dialogflow.v2beta1.Intent.Message.Text)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Text other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) obj;

        if (!getTextList().equals(other.getTextList())) 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 (getTextCount() > 0) {
          hash = (37 * hash) + TEXT_FIELD_NUMBER;
          hash = (53 * hash) + getTextList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseDelimitedFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseDelimitedFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Text 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>
       * The text response message.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Text}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Text)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Text_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Text_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder.class);
        }

        // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Text_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Text result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Text result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.Text(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            text_.makeImmutable();
            result.text_ = text_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) {
            return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text other) {
          if (other == com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance())
            return this;
          if (!other.text_.isEmpty()) {
            if (text_.isEmpty()) {
              text_ = other.text_;
              bitField0_ |= 0x00000001;
            } else {
              ensureTextIsMutable();
              text_.addAll(other.text_);
            }
            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();
                    ensureTextIsMutable();
                    text_.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 text_ =
            com.google.protobuf.LazyStringArrayList.emptyList();

        private void ensureTextIsMutable() {
          if (!text_.isModifiable()) {
            text_ = new com.google.protobuf.LazyStringArrayList(text_);
          }
          bitField0_ |= 0x00000001;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of the agent's responses.
         * </pre>
         *
         * <code>repeated string text = 1;</code>
         *
         * @return A list containing the text.
         */
        public com.google.protobuf.ProtocolStringList getTextList() {
          text_.makeImmutable();
          return text_;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of the agent's responses.
         * </pre>
         *
         * <code>repeated string text = 1;</code>
         *
         * @return The count of text.
         */
        public int getTextCount() {
          return text_.size();
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of the agent's responses.
         * </pre>
         *
         * <code>repeated string text = 1;</code>
         *
         * @param index The index of the element to return.
         * @return The text at the given index.
         */
        public java.lang.String getText(int index) {
          return text_.get(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of the agent's responses.
         * </pre>
         *
         * <code>repeated string text = 1;</code>
         *
         * @param index The index of the value to return.
         * @return The bytes of the text at the given index.
         */
        public com.google.protobuf.ByteString getTextBytes(int index) {
          return text_.getByteString(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of the agent's responses.
         * </pre>
         *
         * <code>repeated string text = 1;</code>
         *
         * @param index The index to set the value at.
         * @param value The text to set.
         * @return This builder for chaining.
         */
        public Builder setText(int index, java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTextIsMutable();
          text_.set(index, value);
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of the agent's responses.
         * </pre>
         *
         * <code>repeated string text = 1;</code>
         *
         * @param value The text to add.
         * @return This builder for chaining.
         */
        public Builder addText(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTextIsMutable();
          text_.add(value);
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of the agent's responses.
         * </pre>
         *
         * <code>repeated string text = 1;</code>
         *
         * @param values The text to add.
         * @return This builder for chaining.
         */
        public Builder addAllText(java.lang.Iterable<java.lang.String> values) {
          ensureTextIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, text_);
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of the agent's responses.
         * </pre>
         *
         * <code>repeated string text = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearText() {
          text_ = com.google.protobuf.LazyStringArrayList.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          ;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of the agent's responses.
         * </pre>
         *
         * <code>repeated string text = 1;</code>
         *
         * @param value The bytes of the text to add.
         * @return This builder for chaining.
         */
        public Builder addTextBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          ensureTextIsMutable();
          text_.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.cloud.dialogflow.v2beta1.Intent.Message.Text)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.Text)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.Text DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.Text();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface ImageOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.Image)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Optional. The public URI to an image file.
       * </pre>
       *
       * <code>string image_uri = 1;</code>
       *
       * @return The imageUri.
       */
      java.lang.String getImageUri();
      /**
       *
       *
       * <pre>
       * Optional. The public URI to an image file.
       * </pre>
       *
       * <code>string image_uri = 1;</code>
       *
       * @return The bytes for imageUri.
       */
      com.google.protobuf.ByteString getImageUriBytes();

      /**
       *
       *
       * <pre>
       * A text description of the image to be used for accessibility,
       * e.g., screen readers. Required if image_uri is set for CarouselSelect.
       * </pre>
       *
       * <code>string accessibility_text = 2;</code>
       *
       * @return The accessibilityText.
       */
      java.lang.String getAccessibilityText();
      /**
       *
       *
       * <pre>
       * A text description of the image to be used for accessibility,
       * e.g., screen readers. Required if image_uri is set for CarouselSelect.
       * </pre>
       *
       * <code>string accessibility_text = 2;</code>
       *
       * @return The bytes for accessibilityText.
       */
      com.google.protobuf.ByteString getAccessibilityTextBytes();
    }
    /**
     *
     *
     * <pre>
     * The image response message.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Image}
     */
    public static final class Image extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Image)
        ImageOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use Image.newBuilder() to construct.
      private Image(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private Image() {
        imageUri_ = "";
        accessibilityText_ = "";
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Image_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Image_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder.class);
      }

      public static final int IMAGE_URI_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object imageUri_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The public URI to an image file.
       * </pre>
       *
       * <code>string image_uri = 1;</code>
       *
       * @return The imageUri.
       */
      @java.lang.Override
      public java.lang.String getImageUri() {
        java.lang.Object ref = imageUri_;
        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();
          imageUri_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The public URI to an image file.
       * </pre>
       *
       * <code>string image_uri = 1;</code>
       *
       * @return The bytes for imageUri.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getImageUriBytes() {
        java.lang.Object ref = imageUri_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          imageUri_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int ACCESSIBILITY_TEXT_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private volatile java.lang.Object accessibilityText_ = "";
      /**
       *
       *
       * <pre>
       * A text description of the image to be used for accessibility,
       * e.g., screen readers. Required if image_uri is set for CarouselSelect.
       * </pre>
       *
       * <code>string accessibility_text = 2;</code>
       *
       * @return The accessibilityText.
       */
      @java.lang.Override
      public java.lang.String getAccessibilityText() {
        java.lang.Object ref = accessibilityText_;
        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();
          accessibilityText_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * A text description of the image to be used for accessibility,
       * e.g., screen readers. Required if image_uri is set for CarouselSelect.
       * </pre>
       *
       * <code>string accessibility_text = 2;</code>
       *
       * @return The bytes for accessibilityText.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getAccessibilityTextBytes() {
        java.lang.Object ref = accessibilityText_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          accessibilityText_ = 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(imageUri_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageUri_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessibilityText_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accessibilityText_);
        }
        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(imageUri_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageUri_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessibilityText_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accessibilityText_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.Image)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Image other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) obj;

        if (!getImageUri().equals(other.getImageUri())) return false;
        if (!getAccessibilityText().equals(other.getAccessibilityText())) 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) + IMAGE_URI_FIELD_NUMBER;
        hash = (53 * hash) + getImageUri().hashCode();
        hash = (37 * hash) + ACCESSIBILITY_TEXT_FIELD_NUMBER;
        hash = (53 * hash) + getAccessibilityText().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseDelimitedFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseDelimitedFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Image 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>
       * The image response message.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Image}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Image)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Image_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Image_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder.class);
        }

        // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Image_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Image result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Image result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.Image(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Image result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.imageUri_ = imageUri_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.accessibilityText_ = accessibilityText_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) {
            return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance())
            return this;
          if (!other.getImageUri().isEmpty()) {
            imageUri_ = other.imageUri_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.getAccessibilityText().isEmpty()) {
            accessibilityText_ = other.accessibilityText_;
            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 10:
                  {
                    imageUri_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    accessibilityText_ = 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 java.lang.Object imageUri_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The public URI to an image file.
         * </pre>
         *
         * <code>string image_uri = 1;</code>
         *
         * @return The imageUri.
         */
        public java.lang.String getImageUri() {
          java.lang.Object ref = imageUri_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            imageUri_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The public URI to an image file.
         * </pre>
         *
         * <code>string image_uri = 1;</code>
         *
         * @return The bytes for imageUri.
         */
        public com.google.protobuf.ByteString getImageUriBytes() {
          java.lang.Object ref = imageUri_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            imageUri_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The public URI to an image file.
         * </pre>
         *
         * <code>string image_uri = 1;</code>
         *
         * @param value The imageUri to set.
         * @return This builder for chaining.
         */
        public Builder setImageUri(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          imageUri_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The public URI to an image file.
         * </pre>
         *
         * <code>string image_uri = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearImageUri() {
          imageUri_ = getDefaultInstance().getImageUri();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The public URI to an image file.
         * </pre>
         *
         * <code>string image_uri = 1;</code>
         *
         * @param value The bytes for imageUri to set.
         * @return This builder for chaining.
         */
        public Builder setImageUriBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          imageUri_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.lang.Object accessibilityText_ = "";
        /**
         *
         *
         * <pre>
         * A text description of the image to be used for accessibility,
         * e.g., screen readers. Required if image_uri is set for CarouselSelect.
         * </pre>
         *
         * <code>string accessibility_text = 2;</code>
         *
         * @return The accessibilityText.
         */
        public java.lang.String getAccessibilityText() {
          java.lang.Object ref = accessibilityText_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            accessibilityText_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * A text description of the image to be used for accessibility,
         * e.g., screen readers. Required if image_uri is set for CarouselSelect.
         * </pre>
         *
         * <code>string accessibility_text = 2;</code>
         *
         * @return The bytes for accessibilityText.
         */
        public com.google.protobuf.ByteString getAccessibilityTextBytes() {
          java.lang.Object ref = accessibilityText_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            accessibilityText_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * A text description of the image to be used for accessibility,
         * e.g., screen readers. Required if image_uri is set for CarouselSelect.
         * </pre>
         *
         * <code>string accessibility_text = 2;</code>
         *
         * @param value The accessibilityText to set.
         * @return This builder for chaining.
         */
        public Builder setAccessibilityText(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          accessibilityText_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * A text description of the image to be used for accessibility,
         * e.g., screen readers. Required if image_uri is set for CarouselSelect.
         * </pre>
         *
         * <code>string accessibility_text = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearAccessibilityText() {
          accessibilityText_ = getDefaultInstance().getAccessibilityText();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * A text description of the image to be used for accessibility,
         * e.g., screen readers. Required if image_uri is set for CarouselSelect.
         * </pre>
         *
         * <code>string accessibility_text = 2;</code>
         *
         * @param value The bytes for accessibilityText to set.
         * @return This builder for chaining.
         */
        public Builder setAccessibilityTextBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          accessibilityText_ = 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.cloud.dialogflow.v2beta1.Intent.Message.Image)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.Image)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.Image();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface QuickRepliesOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Optional. The title of the collection of quick replies.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      java.lang.String getTitle();
      /**
       *
       *
       * <pre>
       * Optional. The title of the collection of quick replies.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      com.google.protobuf.ByteString getTitleBytes();

      /**
       *
       *
       * <pre>
       * Optional. The collection of quick replies.
       * </pre>
       *
       * <code>repeated string quick_replies = 2;</code>
       *
       * @return A list containing the quickReplies.
       */
      java.util.List<java.lang.String> getQuickRepliesList();
      /**
       *
       *
       * <pre>
       * Optional. The collection of quick replies.
       * </pre>
       *
       * <code>repeated string quick_replies = 2;</code>
       *
       * @return The count of quickReplies.
       */
      int getQuickRepliesCount();
      /**
       *
       *
       * <pre>
       * Optional. The collection of quick replies.
       * </pre>
       *
       * <code>repeated string quick_replies = 2;</code>
       *
       * @param index The index of the element to return.
       * @return The quickReplies at the given index.
       */
      java.lang.String getQuickReplies(int index);
      /**
       *
       *
       * <pre>
       * Optional. The collection of quick replies.
       * </pre>
       *
       * <code>repeated string quick_replies = 2;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the quickReplies at the given index.
       */
      com.google.protobuf.ByteString getQuickRepliesBytes(int index);
    }
    /**
     *
     *
     * <pre>
     * The quick replies response message.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies}
     */
    public static final class QuickReplies extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies)
        QuickRepliesOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use QuickReplies.newBuilder() to construct.
      private QuickReplies(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private QuickReplies() {
        title_ = "";
        quickReplies_ = com.google.protobuf.LazyStringArrayList.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_QuickReplies_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_QuickReplies_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder.class);
      }

      public static final int TITLE_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object title_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The title of the collection of quick replies.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      @java.lang.Override
      public java.lang.String getTitle() {
        java.lang.Object ref = title_;
        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();
          title_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The title of the collection of quick replies.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTitleBytes() {
        java.lang.Object ref = title_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          title_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int QUICK_REPLIES_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private com.google.protobuf.LazyStringArrayList quickReplies_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      /**
       *
       *
       * <pre>
       * Optional. The collection of quick replies.
       * </pre>
       *
       * <code>repeated string quick_replies = 2;</code>
       *
       * @return A list containing the quickReplies.
       */
      public com.google.protobuf.ProtocolStringList getQuickRepliesList() {
        return quickReplies_;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of quick replies.
       * </pre>
       *
       * <code>repeated string quick_replies = 2;</code>
       *
       * @return The count of quickReplies.
       */
      public int getQuickRepliesCount() {
        return quickReplies_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of quick replies.
       * </pre>
       *
       * <code>repeated string quick_replies = 2;</code>
       *
       * @param index The index of the element to return.
       * @return The quickReplies at the given index.
       */
      public java.lang.String getQuickReplies(int index) {
        return quickReplies_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of quick replies.
       * </pre>
       *
       * <code>repeated string quick_replies = 2;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the quickReplies at the given index.
       */
      public com.google.protobuf.ByteString getQuickRepliesBytes(int index) {
        return quickReplies_.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 {
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
        }
        for (int i = 0; i < quickReplies_.size(); i++) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, quickReplies_.getRaw(i));
        }
        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(title_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
        }
        {
          int dataSize = 0;
          for (int i = 0; i < quickReplies_.size(); i++) {
            dataSize += computeStringSizeNoTag(quickReplies_.getRaw(i));
          }
          size += dataSize;
          size += 1 * getQuickRepliesList().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.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) obj;

        if (!getTitle().equals(other.getTitle())) return false;
        if (!getQuickRepliesList().equals(other.getQuickRepliesList())) 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) + TITLE_FIELD_NUMBER;
        hash = (53 * hash) + getTitle().hashCode();
        if (getQuickRepliesCount() > 0) {
          hash = (37 * hash) + QUICK_REPLIES_FIELD_NUMBER;
          hash = (53 * hash) + getQuickRepliesList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies 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>
       * The quick replies response message.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_QuickReplies_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_QuickReplies_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_QuickReplies_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.title_ = title_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            quickReplies_.makeImmutable();
            result.quickReplies_ = quickReplies_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
                  .getDefaultInstance()) return this;
          if (!other.getTitle().isEmpty()) {
            title_ = other.title_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.quickReplies_.isEmpty()) {
            if (quickReplies_.isEmpty()) {
              quickReplies_ = other.quickReplies_;
              bitField0_ |= 0x00000002;
            } else {
              ensureQuickRepliesIsMutable();
              quickReplies_.addAll(other.quickReplies_);
            }
            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:
                  {
                    title_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    java.lang.String s = input.readStringRequireUtf8();
                    ensureQuickRepliesIsMutable();
                    quickReplies_.add(s);
                    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 java.lang.Object title_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The title of the collection of quick replies.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The title.
         */
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            title_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the collection of quick replies.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The bytes for title.
         */
        public com.google.protobuf.ByteString getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the collection of quick replies.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The title to set.
         * @return This builder for chaining.
         */
        public Builder setTitle(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the collection of quick replies.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearTitle() {
          title_ = getDefaultInstance().getTitle();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the collection of quick replies.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The bytes for title to set.
         * @return This builder for chaining.
         */
        public Builder setTitleBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

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

        private void ensureQuickRepliesIsMutable() {
          if (!quickReplies_.isModifiable()) {
            quickReplies_ = new com.google.protobuf.LazyStringArrayList(quickReplies_);
          }
          bitField0_ |= 0x00000002;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of quick replies.
         * </pre>
         *
         * <code>repeated string quick_replies = 2;</code>
         *
         * @return A list containing the quickReplies.
         */
        public com.google.protobuf.ProtocolStringList getQuickRepliesList() {
          quickReplies_.makeImmutable();
          return quickReplies_;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of quick replies.
         * </pre>
         *
         * <code>repeated string quick_replies = 2;</code>
         *
         * @return The count of quickReplies.
         */
        public int getQuickRepliesCount() {
          return quickReplies_.size();
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of quick replies.
         * </pre>
         *
         * <code>repeated string quick_replies = 2;</code>
         *
         * @param index The index of the element to return.
         * @return The quickReplies at the given index.
         */
        public java.lang.String getQuickReplies(int index) {
          return quickReplies_.get(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of quick replies.
         * </pre>
         *
         * <code>repeated string quick_replies = 2;</code>
         *
         * @param index The index of the value to return.
         * @return The bytes of the quickReplies at the given index.
         */
        public com.google.protobuf.ByteString getQuickRepliesBytes(int index) {
          return quickReplies_.getByteString(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of quick replies.
         * </pre>
         *
         * <code>repeated string quick_replies = 2;</code>
         *
         * @param index The index to set the value at.
         * @param value The quickReplies to set.
         * @return This builder for chaining.
         */
        public Builder setQuickReplies(int index, java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureQuickRepliesIsMutable();
          quickReplies_.set(index, value);
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of quick replies.
         * </pre>
         *
         * <code>repeated string quick_replies = 2;</code>
         *
         * @param value The quickReplies to add.
         * @return This builder for chaining.
         */
        public Builder addQuickReplies(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureQuickRepliesIsMutable();
          quickReplies_.add(value);
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of quick replies.
         * </pre>
         *
         * <code>repeated string quick_replies = 2;</code>
         *
         * @param values The quickReplies to add.
         * @return This builder for chaining.
         */
        public Builder addAllQuickReplies(java.lang.Iterable<java.lang.String> values) {
          ensureQuickRepliesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quickReplies_);
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of quick replies.
         * </pre>
         *
         * <code>repeated string quick_replies = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearQuickReplies() {
          quickReplies_ = com.google.protobuf.LazyStringArrayList.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          ;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of quick replies.
         * </pre>
         *
         * <code>repeated string quick_replies = 2;</code>
         *
         * @param value The bytes of the quickReplies to add.
         * @return This builder for chaining.
         */
        public Builder addQuickRepliesBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          ensureQuickRepliesIsMutable();
          quickReplies_.add(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.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface CardOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.Card)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Optional. The title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      java.lang.String getTitle();
      /**
       *
       *
       * <pre>
       * Optional. The title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      com.google.protobuf.ByteString getTitleBytes();

      /**
       *
       *
       * <pre>
       * Optional. The subtitle of the card.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The subtitle.
       */
      java.lang.String getSubtitle();
      /**
       *
       *
       * <pre>
       * Optional. The subtitle of the card.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The bytes for subtitle.
       */
      com.google.protobuf.ByteString getSubtitleBytes();

      /**
       *
       *
       * <pre>
       * Optional. The public URI to an image file for the card.
       * </pre>
       *
       * <code>string image_uri = 3;</code>
       *
       * @return The imageUri.
       */
      java.lang.String getImageUri();
      /**
       *
       *
       * <pre>
       * Optional. The public URI to an image file for the card.
       * </pre>
       *
       * <code>string image_uri = 3;</code>
       *
       * @return The bytes for imageUri.
       */
      com.google.protobuf.ByteString getImageUriBytes();

      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button>
          getButtonsList();
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button getButtons(int index);
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
       * </code>
       */
      int getButtonsCount();
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
       * </code>
       */
      java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.ButtonOrBuilder>
          getButtonsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.ButtonOrBuilder getButtonsOrBuilder(
          int index);
    }
    /**
     *
     *
     * <pre>
     * The card response message.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Card}
     */
    public static final class Card extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Card)
        CardOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use Card.newBuilder() to construct.
      private Card(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private Card() {
        title_ = "";
        subtitle_ = "";
        imageUri_ = "";
        buttons_ = java.util.Collections.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Card_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Card_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder.class);
      }

      public interface ButtonOrBuilder
          extends
          // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button)
          com.google.protobuf.MessageOrBuilder {

        /**
         *
         *
         * <pre>
         * Optional. The text to show on the button.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The text.
         */
        java.lang.String getText();
        /**
         *
         *
         * <pre>
         * Optional. The text to show on the button.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The bytes for text.
         */
        com.google.protobuf.ByteString getTextBytes();

        /**
         *
         *
         * <pre>
         * Optional. The text to send back to the Dialogflow API or a URI to
         * open.
         * </pre>
         *
         * <code>string postback = 2;</code>
         *
         * @return The postback.
         */
        java.lang.String getPostback();
        /**
         *
         *
         * <pre>
         * Optional. The text to send back to the Dialogflow API or a URI to
         * open.
         * </pre>
         *
         * <code>string postback = 2;</code>
         *
         * @return The bytes for postback.
         */
        com.google.protobuf.ByteString getPostbackBytes();
      }
      /**
       *
       *
       * <pre>
       * Optional. Contains information about a button.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button}
       */
      public static final class Button extends com.google.protobuf.GeneratedMessageV3
          implements
          // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button)
          ButtonOrBuilder {
        private static final long serialVersionUID = 0L;
        // Use Button.newBuilder() to construct.
        private Button(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
          super(builder);
        }

        private Button() {
          text_ = "";
          postback_ = "";
        }

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

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Card_Button_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Card_Button_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder.class);
        }

        public static final int TEXT_FIELD_NUMBER = 1;

        @SuppressWarnings("serial")
        private volatile java.lang.Object text_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The text to show on the button.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The text.
         */
        @java.lang.Override
        public java.lang.String getText() {
          java.lang.Object ref = text_;
          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();
            text_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The text to show on the button.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The bytes for text.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getTextBytes() {
          java.lang.Object ref = text_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            text_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int POSTBACK_FIELD_NUMBER = 2;

        @SuppressWarnings("serial")
        private volatile java.lang.Object postback_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The text to send back to the Dialogflow API or a URI to
         * open.
         * </pre>
         *
         * <code>string postback = 2;</code>
         *
         * @return The postback.
         */
        @java.lang.Override
        public java.lang.String getPostback() {
          java.lang.Object ref = postback_;
          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();
            postback_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The text to send back to the Dialogflow API or a URI to
         * open.
         * </pre>
         *
         * <code>string postback = 2;</code>
         *
         * @return The bytes for postback.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getPostbackBytes() {
          java.lang.Object ref = postback_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            postback_ = 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(text_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postback_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 2, postback_);
          }
          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(text_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postback_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, postback_);
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button)) {
            return super.equals(obj);
          }
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button other =
              (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button) obj;

          if (!getText().equals(other.getText())) return false;
          if (!getPostback().equals(other.getPostback())) 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) + TEXT_FIELD_NUMBER;
          hash = (53 * hash) + getText().hashCode();
          hash = (37 * hash) + POSTBACK_FIELD_NUMBER;
          hash = (53 * hash) + getPostback().hashCode();
          hash = (29 * hash) + getUnknownFields().hashCode();
          memoizedHashCode = hash;
          return hash;
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button parseFrom(
            java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button parseFrom(
            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button parseFrom(
            com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button parseFrom(
            com.google.protobuf.ByteString data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button parseFrom(
            byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button parseFrom(
            byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button parseFrom(
            java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button parseFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button
            parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button
            parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button parseFrom(
            com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button parseFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

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

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

        public static Builder newBuilder(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button 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>
         * Optional. Contains information about a button.
         * </pre>
         *
         * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button}
         */
        public static final class Builder
            extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
            implements
            // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button)
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.ButtonOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Card_Button_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Card_Button_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder.class);
          }

          // Construct using
          // com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.newBuilder()
          private Builder() {}

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

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

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Card_Button_descriptor;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button
              getDefaultInstanceForType() {
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button
                .getDefaultInstance();
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button build() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buildPartial() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button result =
                new com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button(this);
            if (bitField0_ != 0) {
              buildPartial0(result);
            }
            onBuilt();
            return result;
          }

          private void buildPartial0(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.text_ = text_;
            }
            if (((from_bitField0_ & 0x00000002) != 0)) {
              result.postback_ = postback_;
            }
          }

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

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

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

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

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

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

          @java.lang.Override
          public Builder mergeFrom(com.google.protobuf.Message other) {
            if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button) {
              return mergeFrom(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button) other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }

          public Builder mergeFrom(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button other) {
            if (other
                == com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button
                    .getDefaultInstance()) return this;
            if (!other.getText().isEmpty()) {
              text_ = other.text_;
              bitField0_ |= 0x00000001;
              onChanged();
            }
            if (!other.getPostback().isEmpty()) {
              postback_ = other.postback_;
              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 10:
                    {
                      text_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000001;
                      break;
                    } // case 10
                  case 18:
                    {
                      postback_ = 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 java.lang.Object text_ = "";
          /**
           *
           *
           * <pre>
           * Optional. The text to show on the button.
           * </pre>
           *
           * <code>string text = 1;</code>
           *
           * @return The text.
           */
          public java.lang.String getText() {
            java.lang.Object ref = text_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              text_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The text to show on the button.
           * </pre>
           *
           * <code>string text = 1;</code>
           *
           * @return The bytes for text.
           */
          public com.google.protobuf.ByteString getTextBytes() {
            java.lang.Object ref = text_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              text_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The text to show on the button.
           * </pre>
           *
           * <code>string text = 1;</code>
           *
           * @param value The text to set.
           * @return This builder for chaining.
           */
          public Builder setText(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            text_ = value;
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The text to show on the button.
           * </pre>
           *
           * <code>string text = 1;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearText() {
            text_ = getDefaultInstance().getText();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The text to show on the button.
           * </pre>
           *
           * <code>string text = 1;</code>
           *
           * @param value The bytes for text to set.
           * @return This builder for chaining.
           */
          public Builder setTextBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            text_ = value;
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }

          private java.lang.Object postback_ = "";
          /**
           *
           *
           * <pre>
           * Optional. The text to send back to the Dialogflow API or a URI to
           * open.
           * </pre>
           *
           * <code>string postback = 2;</code>
           *
           * @return The postback.
           */
          public java.lang.String getPostback() {
            java.lang.Object ref = postback_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              postback_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The text to send back to the Dialogflow API or a URI to
           * open.
           * </pre>
           *
           * <code>string postback = 2;</code>
           *
           * @return The bytes for postback.
           */
          public com.google.protobuf.ByteString getPostbackBytes() {
            java.lang.Object ref = postback_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              postback_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The text to send back to the Dialogflow API or a URI to
           * open.
           * </pre>
           *
           * <code>string postback = 2;</code>
           *
           * @param value The postback to set.
           * @return This builder for chaining.
           */
          public Builder setPostback(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            postback_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The text to send back to the Dialogflow API or a URI to
           * open.
           * </pre>
           *
           * <code>string postback = 2;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearPostback() {
            postback_ = getDefaultInstance().getPostback();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The text to send back to the Dialogflow API or a URI to
           * open.
           * </pre>
           *
           * <code>string postback = 2;</code>
           *
           * @param value The bytes for postback to set.
           * @return This builder for chaining.
           */
          public Builder setPostbackBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            postback_ = 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.cloud.dialogflow.v2beta1.Intent.Message.Card.Button)
        }

        // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button)
        private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button
            DEFAULT_INSTANCE;

        static {
          DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button();
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button
            getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

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

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button
            getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }
      }

      public static final int TITLE_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object title_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      @java.lang.Override
      public java.lang.String getTitle() {
        java.lang.Object ref = title_;
        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();
          title_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTitleBytes() {
        java.lang.Object ref = title_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          title_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int SUBTITLE_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private volatile java.lang.Object subtitle_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The subtitle of the card.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The subtitle.
       */
      @java.lang.Override
      public java.lang.String getSubtitle() {
        java.lang.Object ref = subtitle_;
        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();
          subtitle_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The subtitle of the card.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The bytes for subtitle.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getSubtitleBytes() {
        java.lang.Object ref = subtitle_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          subtitle_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int IMAGE_URI_FIELD_NUMBER = 3;

      @SuppressWarnings("serial")
      private volatile java.lang.Object imageUri_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The public URI to an image file for the card.
       * </pre>
       *
       * <code>string image_uri = 3;</code>
       *
       * @return The imageUri.
       */
      @java.lang.Override
      public java.lang.String getImageUri() {
        java.lang.Object ref = imageUri_;
        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();
          imageUri_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The public URI to an image file for the card.
       * </pre>
       *
       * <code>string image_uri = 3;</code>
       *
       * @return The bytes for imageUri.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getImageUriBytes() {
        java.lang.Object ref = imageUri_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          imageUri_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int BUTTONS_FIELD_NUMBER = 4;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button>
          buttons_;
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button>
          getButtonsList() {
        return buttons_;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.ButtonOrBuilder>
          getButtonsOrBuilderList() {
        return buttons_;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
       * </code>
       */
      @java.lang.Override
      public int getButtonsCount() {
        return buttons_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button getButtons(int index) {
        return buttons_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.ButtonOrBuilder
          getButtonsOrBuilder(int index) {
        return buttons_.get(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 {
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subtitle_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUri_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUri_);
        }
        for (int i = 0; i < buttons_.size(); i++) {
          output.writeMessage(4, buttons_.get(i));
        }
        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(title_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subtitle_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUri_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUri_);
        }
        for (int i = 0; i < buttons_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, buttons_.get(i));
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.Card)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Card other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) obj;

        if (!getTitle().equals(other.getTitle())) return false;
        if (!getSubtitle().equals(other.getSubtitle())) return false;
        if (!getImageUri().equals(other.getImageUri())) return false;
        if (!getButtonsList().equals(other.getButtonsList())) 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) + TITLE_FIELD_NUMBER;
        hash = (53 * hash) + getTitle().hashCode();
        hash = (37 * hash) + SUBTITLE_FIELD_NUMBER;
        hash = (53 * hash) + getSubtitle().hashCode();
        hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER;
        hash = (53 * hash) + getImageUri().hashCode();
        if (getButtonsCount() > 0) {
          hash = (37 * hash) + BUTTONS_FIELD_NUMBER;
          hash = (53 * hash) + getButtonsList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseDelimitedFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseDelimitedFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Card 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>
       * The card response message.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Card}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Card)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Card_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Card_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder.class);
        }

        // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          title_ = "";
          subtitle_ = "";
          imageUri_ = "";
          if (buttonsBuilder_ == null) {
            buttons_ = java.util.Collections.emptyList();
          } else {
            buttons_ = null;
            buttonsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000008);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Card_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Card result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Card result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.Card(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Card result) {
          if (buttonsBuilder_ == null) {
            if (((bitField0_ & 0x00000008) != 0)) {
              buttons_ = java.util.Collections.unmodifiableList(buttons_);
              bitField0_ = (bitField0_ & ~0x00000008);
            }
            result.buttons_ = buttons_;
          } else {
            result.buttons_ = buttonsBuilder_.build();
          }
        }

        private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.title_ = title_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.subtitle_ = subtitle_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.imageUri_ = imageUri_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) {
            return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card other) {
          if (other == com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance())
            return this;
          if (!other.getTitle().isEmpty()) {
            title_ = other.title_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.getSubtitle().isEmpty()) {
            subtitle_ = other.subtitle_;
            bitField0_ |= 0x00000002;
            onChanged();
          }
          if (!other.getImageUri().isEmpty()) {
            imageUri_ = other.imageUri_;
            bitField0_ |= 0x00000004;
            onChanged();
          }
          if (buttonsBuilder_ == null) {
            if (!other.buttons_.isEmpty()) {
              if (buttons_.isEmpty()) {
                buttons_ = other.buttons_;
                bitField0_ = (bitField0_ & ~0x00000008);
              } else {
                ensureButtonsIsMutable();
                buttons_.addAll(other.buttons_);
              }
              onChanged();
            }
          } else {
            if (!other.buttons_.isEmpty()) {
              if (buttonsBuilder_.isEmpty()) {
                buttonsBuilder_.dispose();
                buttonsBuilder_ = null;
                buttons_ = other.buttons_;
                bitField0_ = (bitField0_ & ~0x00000008);
                buttonsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getButtonsFieldBuilder()
                        : null;
              } else {
                buttonsBuilder_.addAllMessages(other.buttons_);
              }
            }
          }
          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:
                  {
                    title_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    subtitle_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 18
                case 26:
                  {
                    imageUri_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000004;
                    break;
                  } // case 26
                case 34:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.parser(),
                            extensionRegistry);
                    if (buttonsBuilder_ == null) {
                      ensureButtonsIsMutable();
                      buttons_.add(m);
                    } else {
                      buttonsBuilder_.addMessage(m);
                    }
                    break;
                  } // case 34
                default:
                  {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }

        private int bitField0_;

        private java.lang.Object title_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The title.
         */
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            title_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The bytes for title.
         */
        public com.google.protobuf.ByteString getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The title to set.
         * @return This builder for chaining.
         */
        public Builder setTitle(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearTitle() {
          title_ = getDefaultInstance().getTitle();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The bytes for title to set.
         * @return This builder for chaining.
         */
        public Builder setTitleBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.lang.Object subtitle_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The subtitle of the card.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @return The subtitle.
         */
        public java.lang.String getSubtitle() {
          java.lang.Object ref = subtitle_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            subtitle_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The subtitle of the card.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @return The bytes for subtitle.
         */
        public com.google.protobuf.ByteString getSubtitleBytes() {
          java.lang.Object ref = subtitle_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            subtitle_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The subtitle of the card.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @param value The subtitle to set.
         * @return This builder for chaining.
         */
        public Builder setSubtitle(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          subtitle_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The subtitle of the card.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearSubtitle() {
          subtitle_ = getDefaultInstance().getSubtitle();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The subtitle of the card.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @param value The bytes for subtitle to set.
         * @return This builder for chaining.
         */
        public Builder setSubtitleBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          subtitle_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }

        private java.lang.Object imageUri_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The public URI to an image file for the card.
         * </pre>
         *
         * <code>string image_uri = 3;</code>
         *
         * @return The imageUri.
         */
        public java.lang.String getImageUri() {
          java.lang.Object ref = imageUri_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            imageUri_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The public URI to an image file for the card.
         * </pre>
         *
         * <code>string image_uri = 3;</code>
         *
         * @return The bytes for imageUri.
         */
        public com.google.protobuf.ByteString getImageUriBytes() {
          java.lang.Object ref = imageUri_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            imageUri_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The public URI to an image file for the card.
         * </pre>
         *
         * <code>string image_uri = 3;</code>
         *
         * @param value The imageUri to set.
         * @return This builder for chaining.
         */
        public Builder setImageUri(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          imageUri_ = value;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The public URI to an image file for the card.
         * </pre>
         *
         * <code>string image_uri = 3;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearImageUri() {
          imageUri_ = getDefaultInstance().getImageUri();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The public URI to an image file for the card.
         * </pre>
         *
         * <code>string image_uri = 3;</code>
         *
         * @param value The bytes for imageUri to set.
         * @return This builder for chaining.
         */
        public Builder setImageUriBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          imageUri_ = value;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }

        private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button>
            buttons_ = java.util.Collections.emptyList();

        private void ensureButtonsIsMutable() {
          if (!((bitField0_ & 0x00000008) != 0)) {
            buttons_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button>(buttons_);
            bitField0_ |= 0x00000008;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.ButtonOrBuilder>
            buttonsBuilder_;

        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button>
            getButtonsList() {
          if (buttonsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(buttons_);
          } else {
            return buttonsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public int getButtonsCount() {
          if (buttonsBuilder_ == null) {
            return buttons_.size();
          } else {
            return buttonsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button getButtons(
            int index) {
          if (buttonsBuilder_ == null) {
            return buttons_.get(index);
          } else {
            return buttonsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public Builder setButtons(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button value) {
          if (buttonsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureButtonsIsMutable();
            buttons_.set(index, value);
            onChanged();
          } else {
            buttonsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public Builder setButtons(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder
                builderForValue) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.set(index, builderForValue.build());
            onChanged();
          } else {
            buttonsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public Builder addButtons(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button value) {
          if (buttonsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureButtonsIsMutable();
            buttons_.add(value);
            onChanged();
          } else {
            buttonsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public Builder addButtons(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button value) {
          if (buttonsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureButtonsIsMutable();
            buttons_.add(index, value);
            onChanged();
          } else {
            buttonsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public Builder addButtons(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder
                builderForValue) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.add(builderForValue.build());
            onChanged();
          } else {
            buttonsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public Builder addButtons(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder
                builderForValue) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.add(index, builderForValue.build());
            onChanged();
          } else {
            buttonsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public Builder addAllButtons(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button>
                values) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buttons_);
            onChanged();
          } else {
            buttonsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public Builder clearButtons() {
          if (buttonsBuilder_ == null) {
            buttons_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000008);
            onChanged();
          } else {
            buttonsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public Builder removeButtons(int index) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.remove(index);
            onChanged();
          } else {
            buttonsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder
            getButtonsBuilder(int index) {
          return getButtonsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.ButtonOrBuilder
            getButtonsOrBuilder(int index) {
          if (buttonsBuilder_ == null) {
            return buttons_.get(index);
          } else {
            return buttonsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public java.util.List<
                ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.ButtonOrBuilder>
            getButtonsOrBuilderList() {
          if (buttonsBuilder_ != null) {
            return buttonsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(buttons_);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder
            addButtonsBuilder() {
          return getButtonsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder
            addButtonsBuilder(int index) {
          return getButtonsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button buttons = 4;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder>
            getButtonsBuilderList() {
          return getButtonsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.ButtonOrBuilder>
            getButtonsFieldBuilder() {
          if (buttonsBuilder_ == null) {
            buttonsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Button.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.ButtonOrBuilder>(
                    buttons_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
            buttons_ = null;
          }
          return buttonsBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.Card)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.Card)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.Card DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.Card();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface SimpleResponseOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * One of text_to_speech or ssml must be provided. The plain text of the
       * speech output. Mutually exclusive with ssml.
       * </pre>
       *
       * <code>string text_to_speech = 1;</code>
       *
       * @return The textToSpeech.
       */
      java.lang.String getTextToSpeech();
      /**
       *
       *
       * <pre>
       * One of text_to_speech or ssml must be provided. The plain text of the
       * speech output. Mutually exclusive with ssml.
       * </pre>
       *
       * <code>string text_to_speech = 1;</code>
       *
       * @return The bytes for textToSpeech.
       */
      com.google.protobuf.ByteString getTextToSpeechBytes();

      /**
       *
       *
       * <pre>
       * One of text_to_speech or ssml must be provided. Structured spoken
       * response to the user in the SSML format. Mutually exclusive with
       * text_to_speech.
       * </pre>
       *
       * <code>string ssml = 2;</code>
       *
       * @return The ssml.
       */
      java.lang.String getSsml();
      /**
       *
       *
       * <pre>
       * One of text_to_speech or ssml must be provided. Structured spoken
       * response to the user in the SSML format. Mutually exclusive with
       * text_to_speech.
       * </pre>
       *
       * <code>string ssml = 2;</code>
       *
       * @return The bytes for ssml.
       */
      com.google.protobuf.ByteString getSsmlBytes();

      /**
       *
       *
       * <pre>
       * Optional. The text to display.
       * </pre>
       *
       * <code>string display_text = 3;</code>
       *
       * @return The displayText.
       */
      java.lang.String getDisplayText();
      /**
       *
       *
       * <pre>
       * Optional. The text to display.
       * </pre>
       *
       * <code>string display_text = 3;</code>
       *
       * @return The bytes for displayText.
       */
      com.google.protobuf.ByteString getDisplayTextBytes();
    }
    /**
     *
     *
     * <pre>
     * The simple response message containing speech or text.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse}
     */
    public static final class SimpleResponse extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse)
        SimpleResponseOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use SimpleResponse.newBuilder() to construct.
      private SimpleResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private SimpleResponse() {
        textToSpeech_ = "";
        ssml_ = "";
        displayText_ = "";
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SimpleResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SimpleResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder.class);
      }

      public static final int TEXT_TO_SPEECH_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object textToSpeech_ = "";
      /**
       *
       *
       * <pre>
       * One of text_to_speech or ssml must be provided. The plain text of the
       * speech output. Mutually exclusive with ssml.
       * </pre>
       *
       * <code>string text_to_speech = 1;</code>
       *
       * @return The textToSpeech.
       */
      @java.lang.Override
      public java.lang.String getTextToSpeech() {
        java.lang.Object ref = textToSpeech_;
        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();
          textToSpeech_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * One of text_to_speech or ssml must be provided. The plain text of the
       * speech output. Mutually exclusive with ssml.
       * </pre>
       *
       * <code>string text_to_speech = 1;</code>
       *
       * @return The bytes for textToSpeech.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTextToSpeechBytes() {
        java.lang.Object ref = textToSpeech_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          textToSpeech_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int SSML_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private volatile java.lang.Object ssml_ = "";
      /**
       *
       *
       * <pre>
       * One of text_to_speech or ssml must be provided. Structured spoken
       * response to the user in the SSML format. Mutually exclusive with
       * text_to_speech.
       * </pre>
       *
       * <code>string ssml = 2;</code>
       *
       * @return The ssml.
       */
      @java.lang.Override
      public java.lang.String getSsml() {
        java.lang.Object ref = ssml_;
        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();
          ssml_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * One of text_to_speech or ssml must be provided. Structured spoken
       * response to the user in the SSML format. Mutually exclusive with
       * text_to_speech.
       * </pre>
       *
       * <code>string ssml = 2;</code>
       *
       * @return The bytes for ssml.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getSsmlBytes() {
        java.lang.Object ref = ssml_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          ssml_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int DISPLAY_TEXT_FIELD_NUMBER = 3;

      @SuppressWarnings("serial")
      private volatile java.lang.Object displayText_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The text to display.
       * </pre>
       *
       * <code>string display_text = 3;</code>
       *
       * @return The displayText.
       */
      @java.lang.Override
      public java.lang.String getDisplayText() {
        java.lang.Object ref = displayText_;
        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();
          displayText_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The text to display.
       * </pre>
       *
       * <code>string display_text = 3;</code>
       *
       * @return The bytes for displayText.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getDisplayTextBytes() {
        java.lang.Object ref = displayText_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          displayText_ = 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(textToSpeech_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, textToSpeech_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ssml_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ssml_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayText_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayText_);
        }
        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(textToSpeech_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, textToSpeech_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ssml_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ssml_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayText_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayText_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse) obj;

        if (!getTextToSpeech().equals(other.getTextToSpeech())) return false;
        if (!getSsml().equals(other.getSsml())) return false;
        if (!getDisplayText().equals(other.getDisplayText())) 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) + TEXT_TO_SPEECH_FIELD_NUMBER;
        hash = (53 * hash) + getTextToSpeech().hashCode();
        hash = (37 * hash) + SSML_FIELD_NUMBER;
        hash = (53 * hash) + getSsml().hashCode();
        hash = (37 * hash) + DISPLAY_TEXT_FIELD_NUMBER;
        hash = (53 * hash) + getDisplayText().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse 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>
       * The simple response message containing speech or text.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SimpleResponse_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SimpleResponse_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SimpleResponse_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.textToSpeech_ = textToSpeech_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.ssml_ = ssml_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.displayText_ = displayText_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
                  .getDefaultInstance()) return this;
          if (!other.getTextToSpeech().isEmpty()) {
            textToSpeech_ = other.textToSpeech_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.getSsml().isEmpty()) {
            ssml_ = other.ssml_;
            bitField0_ |= 0x00000002;
            onChanged();
          }
          if (!other.getDisplayText().isEmpty()) {
            displayText_ = other.displayText_;
            bitField0_ |= 0x00000004;
            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:
                  {
                    textToSpeech_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    ssml_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 18
                case 26:
                  {
                    displayText_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000004;
                    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 bitField0_;

        private java.lang.Object textToSpeech_ = "";
        /**
         *
         *
         * <pre>
         * One of text_to_speech or ssml must be provided. The plain text of the
         * speech output. Mutually exclusive with ssml.
         * </pre>
         *
         * <code>string text_to_speech = 1;</code>
         *
         * @return The textToSpeech.
         */
        public java.lang.String getTextToSpeech() {
          java.lang.Object ref = textToSpeech_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            textToSpeech_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * One of text_to_speech or ssml must be provided. The plain text of the
         * speech output. Mutually exclusive with ssml.
         * </pre>
         *
         * <code>string text_to_speech = 1;</code>
         *
         * @return The bytes for textToSpeech.
         */
        public com.google.protobuf.ByteString getTextToSpeechBytes() {
          java.lang.Object ref = textToSpeech_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            textToSpeech_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * One of text_to_speech or ssml must be provided. The plain text of the
         * speech output. Mutually exclusive with ssml.
         * </pre>
         *
         * <code>string text_to_speech = 1;</code>
         *
         * @param value The textToSpeech to set.
         * @return This builder for chaining.
         */
        public Builder setTextToSpeech(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          textToSpeech_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * One of text_to_speech or ssml must be provided. The plain text of the
         * speech output. Mutually exclusive with ssml.
         * </pre>
         *
         * <code>string text_to_speech = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearTextToSpeech() {
          textToSpeech_ = getDefaultInstance().getTextToSpeech();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * One of text_to_speech or ssml must be provided. The plain text of the
         * speech output. Mutually exclusive with ssml.
         * </pre>
         *
         * <code>string text_to_speech = 1;</code>
         *
         * @param value The bytes for textToSpeech to set.
         * @return This builder for chaining.
         */
        public Builder setTextToSpeechBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          textToSpeech_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.lang.Object ssml_ = "";
        /**
         *
         *
         * <pre>
         * One of text_to_speech or ssml must be provided. Structured spoken
         * response to the user in the SSML format. Mutually exclusive with
         * text_to_speech.
         * </pre>
         *
         * <code>string ssml = 2;</code>
         *
         * @return The ssml.
         */
        public java.lang.String getSsml() {
          java.lang.Object ref = ssml_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            ssml_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * One of text_to_speech or ssml must be provided. Structured spoken
         * response to the user in the SSML format. Mutually exclusive with
         * text_to_speech.
         * </pre>
         *
         * <code>string ssml = 2;</code>
         *
         * @return The bytes for ssml.
         */
        public com.google.protobuf.ByteString getSsmlBytes() {
          java.lang.Object ref = ssml_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            ssml_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * One of text_to_speech or ssml must be provided. Structured spoken
         * response to the user in the SSML format. Mutually exclusive with
         * text_to_speech.
         * </pre>
         *
         * <code>string ssml = 2;</code>
         *
         * @param value The ssml to set.
         * @return This builder for chaining.
         */
        public Builder setSsml(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          ssml_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * One of text_to_speech or ssml must be provided. Structured spoken
         * response to the user in the SSML format. Mutually exclusive with
         * text_to_speech.
         * </pre>
         *
         * <code>string ssml = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearSsml() {
          ssml_ = getDefaultInstance().getSsml();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * One of text_to_speech or ssml must be provided. Structured spoken
         * response to the user in the SSML format. Mutually exclusive with
         * text_to_speech.
         * </pre>
         *
         * <code>string ssml = 2;</code>
         *
         * @param value The bytes for ssml to set.
         * @return This builder for chaining.
         */
        public Builder setSsmlBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          ssml_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }

        private java.lang.Object displayText_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The text to display.
         * </pre>
         *
         * <code>string display_text = 3;</code>
         *
         * @return The displayText.
         */
        public java.lang.String getDisplayText() {
          java.lang.Object ref = displayText_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            displayText_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The text to display.
         * </pre>
         *
         * <code>string display_text = 3;</code>
         *
         * @return The bytes for displayText.
         */
        public com.google.protobuf.ByteString getDisplayTextBytes() {
          java.lang.Object ref = displayText_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            displayText_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The text to display.
         * </pre>
         *
         * <code>string display_text = 3;</code>
         *
         * @param value The displayText to set.
         * @return This builder for chaining.
         */
        public Builder setDisplayText(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          displayText_ = value;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The text to display.
         * </pre>
         *
         * <code>string display_text = 3;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearDisplayText() {
          displayText_ = getDefaultInstance().getDisplayText();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The text to display.
         * </pre>
         *
         * <code>string display_text = 3;</code>
         *
         * @param value The bytes for displayText to set.
         * @return This builder for chaining.
         */
        public Builder setDisplayTextBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          displayText_ = 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.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface SimpleResponsesOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. The list of simple responses.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse>
          getSimpleResponsesList();
      /**
       *
       *
       * <pre>
       * Required. The list of simple responses.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse getSimpleResponses(
          int index);
      /**
       *
       *
       * <pre>
       * Required. The list of simple responses.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
       * </code>
       */
      int getSimpleResponsesCount();
      /**
       *
       *
       * <pre>
       * Required. The list of simple responses.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
       * </code>
       */
      java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder>
          getSimpleResponsesOrBuilderList();
      /**
       *
       *
       * <pre>
       * Required. The list of simple responses.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder
          getSimpleResponsesOrBuilder(int index);
    }
    /**
     *
     *
     * <pre>
     * The collection of simple response candidates.
     * This message in `QueryResult.fulfillment_messages` and
     * `WebhookResponse.fulfillment_messages` should contain only one
     * `SimpleResponse`.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses}
     */
    public static final class SimpleResponses extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses)
        SimpleResponsesOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use SimpleResponses.newBuilder() to construct.
      private SimpleResponses(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private SimpleResponses() {
        simpleResponses_ = java.util.Collections.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SimpleResponses_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SimpleResponses_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder.class);
      }

      public static final int SIMPLE_RESPONSES_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse>
          simpleResponses_;
      /**
       *
       *
       * <pre>
       * Required. The list of simple responses.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse>
          getSimpleResponsesList() {
        return simpleResponses_;
      }
      /**
       *
       *
       * <pre>
       * Required. The list of simple responses.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder>
          getSimpleResponsesOrBuilderList() {
        return simpleResponses_;
      }
      /**
       *
       *
       * <pre>
       * Required. The list of simple responses.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
       * </code>
       */
      @java.lang.Override
      public int getSimpleResponsesCount() {
        return simpleResponses_.size();
      }
      /**
       *
       *
       * <pre>
       * Required. The list of simple responses.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse getSimpleResponses(
          int index) {
        return simpleResponses_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Required. The list of simple responses.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder
          getSimpleResponsesOrBuilder(int index) {
        return simpleResponses_.get(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 < simpleResponses_.size(); i++) {
          output.writeMessage(1, simpleResponses_.get(i));
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        for (int i = 0; i < simpleResponses_.size(); i++) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(1, simpleResponses_.get(i));
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) obj;

        if (!getSimpleResponsesList().equals(other.getSimpleResponsesList())) 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 (getSimpleResponsesCount() > 0) {
          hash = (37 * hash) + SIMPLE_RESPONSES_FIELD_NUMBER;
          hash = (53 * hash) + getSimpleResponsesList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses 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>
       * The collection of simple response candidates.
       * This message in `QueryResult.fulfillment_messages` and
       * `WebhookResponse.fulfillment_messages` should contain only one
       * `SimpleResponse`.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SimpleResponses_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SimpleResponses_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          if (simpleResponsesBuilder_ == null) {
            simpleResponses_ = java.util.Collections.emptyList();
          } else {
            simpleResponses_ = null;
            simpleResponsesBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SimpleResponses_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses result) {
          if (simpleResponsesBuilder_ == null) {
            if (((bitField0_ & 0x00000001) != 0)) {
              simpleResponses_ = java.util.Collections.unmodifiableList(simpleResponses_);
              bitField0_ = (bitField0_ & ~0x00000001);
            }
            result.simpleResponses_ = simpleResponses_;
          } else {
            result.simpleResponses_ = simpleResponsesBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses result) {
          int from_bitField0_ = bitField0_;
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
                  .getDefaultInstance()) return this;
          if (simpleResponsesBuilder_ == null) {
            if (!other.simpleResponses_.isEmpty()) {
              if (simpleResponses_.isEmpty()) {
                simpleResponses_ = other.simpleResponses_;
                bitField0_ = (bitField0_ & ~0x00000001);
              } else {
                ensureSimpleResponsesIsMutable();
                simpleResponses_.addAll(other.simpleResponses_);
              }
              onChanged();
            }
          } else {
            if (!other.simpleResponses_.isEmpty()) {
              if (simpleResponsesBuilder_.isEmpty()) {
                simpleResponsesBuilder_.dispose();
                simpleResponsesBuilder_ = null;
                simpleResponses_ = other.simpleResponses_;
                bitField0_ = (bitField0_ & ~0x00000001);
                simpleResponsesBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getSimpleResponsesFieldBuilder()
                        : null;
              } else {
                simpleResponsesBuilder_.addAllMessages(other.simpleResponses_);
              }
            }
          }
          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:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
                                .parser(),
                            extensionRegistry);
                    if (simpleResponsesBuilder_ == null) {
                      ensureSimpleResponsesIsMutable();
                      simpleResponses_.add(m);
                    } else {
                      simpleResponsesBuilder_.addMessage(m);
                    }
                    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 java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse>
            simpleResponses_ = java.util.Collections.emptyList();

        private void ensureSimpleResponsesIsMutable() {
          if (!((bitField0_ & 0x00000001) != 0)) {
            simpleResponses_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse>(
                    simpleResponses_);
            bitField0_ |= 0x00000001;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder>
            simpleResponsesBuilder_;

        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse>
            getSimpleResponsesList() {
          if (simpleResponsesBuilder_ == null) {
            return java.util.Collections.unmodifiableList(simpleResponses_);
          } else {
            return simpleResponsesBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public int getSimpleResponsesCount() {
          if (simpleResponsesBuilder_ == null) {
            return simpleResponses_.size();
          } else {
            return simpleResponsesBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse getSimpleResponses(
            int index) {
          if (simpleResponsesBuilder_ == null) {
            return simpleResponses_.get(index);
          } else {
            return simpleResponsesBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public Builder setSimpleResponses(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse value) {
          if (simpleResponsesBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureSimpleResponsesIsMutable();
            simpleResponses_.set(index, value);
            onChanged();
          } else {
            simpleResponsesBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public Builder setSimpleResponses(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder
                builderForValue) {
          if (simpleResponsesBuilder_ == null) {
            ensureSimpleResponsesIsMutable();
            simpleResponses_.set(index, builderForValue.build());
            onChanged();
          } else {
            simpleResponsesBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public Builder addSimpleResponses(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse value) {
          if (simpleResponsesBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureSimpleResponsesIsMutable();
            simpleResponses_.add(value);
            onChanged();
          } else {
            simpleResponsesBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public Builder addSimpleResponses(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse value) {
          if (simpleResponsesBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureSimpleResponsesIsMutable();
            simpleResponses_.add(index, value);
            onChanged();
          } else {
            simpleResponsesBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public Builder addSimpleResponses(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder
                builderForValue) {
          if (simpleResponsesBuilder_ == null) {
            ensureSimpleResponsesIsMutable();
            simpleResponses_.add(builderForValue.build());
            onChanged();
          } else {
            simpleResponsesBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public Builder addSimpleResponses(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder
                builderForValue) {
          if (simpleResponsesBuilder_ == null) {
            ensureSimpleResponsesIsMutable();
            simpleResponses_.add(index, builderForValue.build());
            onChanged();
          } else {
            simpleResponsesBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public Builder addAllSimpleResponses(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse>
                values) {
          if (simpleResponsesBuilder_ == null) {
            ensureSimpleResponsesIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, simpleResponses_);
            onChanged();
          } else {
            simpleResponsesBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public Builder clearSimpleResponses() {
          if (simpleResponsesBuilder_ == null) {
            simpleResponses_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
          } else {
            simpleResponsesBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public Builder removeSimpleResponses(int index) {
          if (simpleResponsesBuilder_ == null) {
            ensureSimpleResponsesIsMutable();
            simpleResponses_.remove(index);
            onChanged();
          } else {
            simpleResponsesBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder
            getSimpleResponsesBuilder(int index) {
          return getSimpleResponsesFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder
            getSimpleResponsesOrBuilder(int index) {
          if (simpleResponsesBuilder_ == null) {
            return simpleResponses_.get(index);
          } else {
            return simpleResponsesBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public java.util.List<
                ? extends
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder>
            getSimpleResponsesOrBuilderList() {
          if (simpleResponsesBuilder_ != null) {
            return simpleResponsesBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(simpleResponses_);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder
            addSimpleResponsesBuilder() {
          return getSimpleResponsesFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder
            addSimpleResponsesBuilder(int index) {
          return getSimpleResponsesFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. The list of simple responses.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder>
            getSimpleResponsesBuilderList() {
          return getSimpleResponsesFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder>
            getSimpleResponsesFieldBuilder() {
          if (simpleResponsesBuilder_ == null) {
            simpleResponsesBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder>(
                    simpleResponses_,
                    ((bitField0_ & 0x00000001) != 0),
                    getParentForChildren(),
                    isClean());
            simpleResponses_ = null;
          }
          return simpleResponsesBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface BasicCardOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Optional. The title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      java.lang.String getTitle();
      /**
       *
       *
       * <pre>
       * Optional. The title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      com.google.protobuf.ByteString getTitleBytes();

      /**
       *
       *
       * <pre>
       * Optional. The subtitle of the card.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The subtitle.
       */
      java.lang.String getSubtitle();
      /**
       *
       *
       * <pre>
       * Optional. The subtitle of the card.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The bytes for subtitle.
       */
      com.google.protobuf.ByteString getSubtitleBytes();

      /**
       *
       *
       * <pre>
       * Required, unless image is present. The body text of the card.
       * </pre>
       *
       * <code>string formatted_text = 3;</code>
       *
       * @return The formattedText.
       */
      java.lang.String getFormattedText();
      /**
       *
       *
       * <pre>
       * Required, unless image is present. The body text of the card.
       * </pre>
       *
       * <code>string formatted_text = 3;</code>
       *
       * @return The bytes for formattedText.
       */
      com.google.protobuf.ByteString getFormattedTextBytes();

      /**
       *
       *
       * <pre>
       * Optional. The image for the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
       *
       * @return Whether the image field is set.
       */
      boolean hasImage();
      /**
       *
       *
       * <pre>
       * Optional. The image for the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
       *
       * @return The image.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage();
      /**
       *
       *
       * <pre>
       * Optional. The image for the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder();

      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
          getButtonsList();
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button getButtons(int index);
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
       * </code>
       */
      int getButtonsCount();
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
       * </code>
       */
      java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>
          getButtonsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder
          getButtonsOrBuilder(int index);
    }
    /**
     *
     *
     * <pre>
     * The basic card message. Useful for displaying information.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard}
     */
    public static final class BasicCard extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard)
        BasicCardOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use BasicCard.newBuilder() to construct.
      private BasicCard(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private BasicCard() {
        title_ = "";
        subtitle_ = "";
        formattedText_ = "";
        buttons_ = java.util.Collections.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder.class);
      }

      public interface ButtonOrBuilder
          extends
          // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button)
          com.google.protobuf.MessageOrBuilder {

        /**
         *
         *
         * <pre>
         * Required. The title of the button.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The title.
         */
        java.lang.String getTitle();
        /**
         *
         *
         * <pre>
         * Required. The title of the button.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The bytes for title.
         */
        com.google.protobuf.ByteString getTitleBytes();

        /**
         *
         *
         * <pre>
         * Required. Action to take when a user taps on the button.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
         * </code>
         *
         * @return Whether the openUriAction field is set.
         */
        boolean hasOpenUriAction();
        /**
         *
         *
         * <pre>
         * Required. Action to take when a user taps on the button.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
         * </code>
         *
         * @return The openUriAction.
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
            getOpenUriAction();
        /**
         *
         *
         * <pre>
         * Required. Action to take when a user taps on the button.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
         * </code>
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriActionOrBuilder
            getOpenUriActionOrBuilder();
      }
      /**
       *
       *
       * <pre>
       * The button object that appears at the bottom of a card.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button}
       */
      public static final class Button extends com.google.protobuf.GeneratedMessageV3
          implements
          // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button)
          ButtonOrBuilder {
        private static final long serialVersionUID = 0L;
        // Use Button.newBuilder() to construct.
        private Button(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
          super(builder);
        }

        private Button() {
          title_ = "";
        }

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

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_Button_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_Button_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
                      .class);
        }

        public interface OpenUriActionOrBuilder
            extends
            // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction)
            com.google.protobuf.MessageOrBuilder {

          /**
           *
           *
           * <pre>
           * Required. The HTTP or HTTPS scheme URI.
           * </pre>
           *
           * <code>string uri = 1;</code>
           *
           * @return The uri.
           */
          java.lang.String getUri();
          /**
           *
           *
           * <pre>
           * Required. The HTTP or HTTPS scheme URI.
           * </pre>
           *
           * <code>string uri = 1;</code>
           *
           * @return The bytes for uri.
           */
          com.google.protobuf.ByteString getUriBytes();
        }
        /**
         *
         *
         * <pre>
         * Opens the given URI.
         * </pre>
         *
         * Protobuf type {@code
         * google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction}
         */
        public static final class OpenUriAction extends com.google.protobuf.GeneratedMessageV3
            implements
            // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction)
            OpenUriActionOrBuilder {
          private static final long serialVersionUID = 0L;
          // Use OpenUriAction.newBuilder() to construct.
          private OpenUriAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
          }

          private OpenUriAction() {
            uri_ = "";
          }

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

          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_Button_OpenUriAction_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_Button_OpenUriAction_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                        .OpenUriAction.class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                        .OpenUriAction.Builder.class);
          }

          public static final int URI_FIELD_NUMBER = 1;

          @SuppressWarnings("serial")
          private volatile java.lang.Object uri_ = "";
          /**
           *
           *
           * <pre>
           * Required. The HTTP or HTTPS scheme URI.
           * </pre>
           *
           * <code>string uri = 1;</code>
           *
           * @return The uri.
           */
          @java.lang.Override
          public java.lang.String getUri() {
            java.lang.Object ref = uri_;
            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();
              uri_ = s;
              return s;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. The HTTP or HTTPS scheme URI.
           * </pre>
           *
           * <code>string uri = 1;</code>
           *
           * @return The bytes for uri.
           */
          @java.lang.Override
          public com.google.protobuf.ByteString getUriBytes() {
            java.lang.Object ref = uri_;
            if (ref instanceof java.lang.String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              uri_ = 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(uri_)) {
              com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
            }
            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(uri_)) {
              size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
            }
            size += getUnknownFields().getSerializedSize();
            memoizedSize = size;
            return size;
          }

          @java.lang.Override
          public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
              return true;
            }
            if (!(obj
                instanceof
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                    .OpenUriAction)) {
              return super.equals(obj);
            }
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                other =
                    (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                            .OpenUriAction)
                        obj;

            if (!getUri().equals(other.getUri())) 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) + URI_FIELD_NUMBER;
            hash = (53 * hash) + getUri().hashCode();
            hash = (29 * hash) + getUnknownFields().hashCode();
            memoizedHashCode = hash;
            return hash;
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseFrom(java.nio.ByteBuffer data)
                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseFrom(
                  java.nio.ByteBuffer data,
                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseFrom(com.google.protobuf.ByteString data)
                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseFrom(
                  com.google.protobuf.ByteString data,
                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseFrom(
                  java.io.InputStream input,
                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                PARSER, input, extensionRegistry);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                PARSER, input);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseDelimitedFrom(
                  java.io.InputStream input,
                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                PARSER, input, extensionRegistry);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              parseFrom(
                  com.google.protobuf.CodedInputStream input,
                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                PARSER, input, extensionRegistry);
          }

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

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

          public static Builder newBuilder(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                  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>
           * Opens the given URI.
           * </pre>
           *
           * Protobuf type {@code
           * google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction}
           */
          public static final class Builder
              extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
              implements
              // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction)
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriActionOrBuilder {
            public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              return com.google.cloud.dialogflow.v2beta1.IntentProto
                  .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_Button_OpenUriAction_descriptor;
            }

            @java.lang.Override
            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                internalGetFieldAccessorTable() {
              return com.google.cloud.dialogflow.v2beta1.IntentProto
                  .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_Button_OpenUriAction_fieldAccessorTable
                  .ensureFieldAccessorsInitialized(
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                          .OpenUriAction.class,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                          .OpenUriAction.Builder.class);
            }

            // Construct using
            // com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction.newBuilder()
            private Builder() {}

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

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

            @java.lang.Override
            public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
              return com.google.cloud.dialogflow.v2beta1.IntentProto
                  .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_Button_OpenUriAction_descriptor;
            }

            @java.lang.Override
            public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                getDefaultInstanceForType() {
              return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction.getDefaultInstance();
            }

            @java.lang.Override
            public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                build() {
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                  result = buildPartial();
              if (!result.isInitialized()) {
                throw newUninitializedMessageException(result);
              }
              return result;
            }

            @java.lang.Override
            public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                buildPartial() {
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                  result =
                      new com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                          .OpenUriAction(this);
              if (bitField0_ != 0) {
                buildPartial0(result);
              }
              onBuilt();
              return result;
            }

            private void buildPartial0(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                    result) {
              int from_bitField0_ = bitField0_;
              if (((from_bitField0_ & 0x00000001) != 0)) {
                result.uri_ = uri_;
              }
            }

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

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

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

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

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

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

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.Message other) {
              if (other
                  instanceof
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                      .OpenUriAction) {
                return mergeFrom(
                    (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                            .OpenUriAction)
                        other);
              } else {
                super.mergeFrom(other);
                return this;
              }
            }

            public Builder mergeFrom(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                    other) {
              if (other
                  == com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                      .OpenUriAction.getDefaultInstance()) return this;
              if (!other.getUri().isEmpty()) {
                uri_ = other.uri_;
                bitField0_ |= 0x00000001;
                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:
                      {
                        uri_ = input.readStringRequireUtf8();
                        bitField0_ |= 0x00000001;
                        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 java.lang.Object uri_ = "";
            /**
             *
             *
             * <pre>
             * Required. The HTTP or HTTPS scheme URI.
             * </pre>
             *
             * <code>string uri = 1;</code>
             *
             * @return The uri.
             */
            public java.lang.String getUri() {
              java.lang.Object ref = uri_;
              if (!(ref instanceof java.lang.String)) {
                com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
                java.lang.String s = bs.toStringUtf8();
                uri_ = s;
                return s;
              } else {
                return (java.lang.String) ref;
              }
            }
            /**
             *
             *
             * <pre>
             * Required. The HTTP or HTTPS scheme URI.
             * </pre>
             *
             * <code>string uri = 1;</code>
             *
             * @return The bytes for uri.
             */
            public com.google.protobuf.ByteString getUriBytes() {
              java.lang.Object ref = uri_;
              if (ref instanceof String) {
                com.google.protobuf.ByteString b =
                    com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
                uri_ = b;
                return b;
              } else {
                return (com.google.protobuf.ByteString) ref;
              }
            }
            /**
             *
             *
             * <pre>
             * Required. The HTTP or HTTPS scheme URI.
             * </pre>
             *
             * <code>string uri = 1;</code>
             *
             * @param value The uri to set.
             * @return This builder for chaining.
             */
            public Builder setUri(java.lang.String value) {
              if (value == null) {
                throw new NullPointerException();
              }
              uri_ = value;
              bitField0_ |= 0x00000001;
              onChanged();
              return this;
            }
            /**
             *
             *
             * <pre>
             * Required. The HTTP or HTTPS scheme URI.
             * </pre>
             *
             * <code>string uri = 1;</code>
             *
             * @return This builder for chaining.
             */
            public Builder clearUri() {
              uri_ = getDefaultInstance().getUri();
              bitField0_ = (bitField0_ & ~0x00000001);
              onChanged();
              return this;
            }
            /**
             *
             *
             * <pre>
             * Required. The HTTP or HTTPS scheme URI.
             * </pre>
             *
             * <code>string uri = 1;</code>
             *
             * @param value The bytes for uri to set.
             * @return This builder for chaining.
             */
            public Builder setUriBytes(com.google.protobuf.ByteString value) {
              if (value == null) {
                throw new NullPointerException();
              }
              checkByteStringIsUtf8(value);
              uri_ = 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.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction)
          }

          // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction)
          private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              DEFAULT_INSTANCE;

          static {
            DEFAULT_INSTANCE =
                new com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                    .OpenUriAction();
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriAction
              getDefaultInstance() {
            return DEFAULT_INSTANCE;
          }

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

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

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
              getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
          }
        }

        public static final int TITLE_FIELD_NUMBER = 1;

        @SuppressWarnings("serial")
        private volatile java.lang.Object title_ = "";
        /**
         *
         *
         * <pre>
         * Required. The title of the button.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The title.
         */
        @java.lang.Override
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          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();
            title_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The title of the button.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The bytes for title.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int OPEN_URI_ACTION_FIELD_NUMBER = 2;
        private com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
            openUriAction_;
        /**
         *
         *
         * <pre>
         * Required. Action to take when a user taps on the button.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
         * </code>
         *
         * @return Whether the openUriAction field is set.
         */
        @java.lang.Override
        public boolean hasOpenUriAction() {
          return openUriAction_ != null;
        }
        /**
         *
         *
         * <pre>
         * Required. Action to take when a user taps on the button.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
         * </code>
         *
         * @return The openUriAction.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
            getOpenUriAction() {
          return openUriAction_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                  .getDefaultInstance()
              : openUriAction_;
        }
        /**
         *
         *
         * <pre>
         * Required. Action to take when a user taps on the button.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
         * </code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                .OpenUriActionOrBuilder
            getOpenUriActionOrBuilder() {
          return openUriAction_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                  .getDefaultInstance()
              : openUriAction_;
        }

        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(title_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
          }
          if (openUriAction_ != null) {
            output.writeMessage(2, getOpenUriAction());
          }
          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(title_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
          }
          if (openUriAction_ != null) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOpenUriAction());
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj
              instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button)) {
            return super.equals(obj);
          }
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button other =
              (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button) obj;

          if (!getTitle().equals(other.getTitle())) return false;
          if (hasOpenUriAction() != other.hasOpenUriAction()) return false;
          if (hasOpenUriAction()) {
            if (!getOpenUriAction().equals(other.getOpenUriAction())) 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) + TITLE_FIELD_NUMBER;
          hash = (53 * hash) + getTitle().hashCode();
          if (hasOpenUriAction()) {
            hash = (37 * hash) + OPEN_URI_ACTION_FIELD_NUMBER;
            hash = (53 * hash) + getOpenUriAction().hashCode();
          }
          hash = (29 * hash) + getUnknownFields().hashCode();
          memoizedHashCode = hash;
          return hash;
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button parseFrom(
            java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button parseFrom(
            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button parseFrom(
            com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button parseFrom(
            com.google.protobuf.ByteString data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button parseFrom(
            byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button parseFrom(
            byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button parseFrom(
            java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button parseFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
            parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
            parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button parseFrom(
            com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button parseFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

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

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

        public static Builder newBuilder(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button 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>
         * The button object that appears at the bottom of a card.
         * </pre>
         *
         * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button}
         */
        public static final class Builder
            extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
            implements
            // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button)
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_Button_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_Button_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
                        .class);
          }

          // Construct using
          // com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.newBuilder()
          private Builder() {}

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

          @java.lang.Override
          public Builder clear() {
            super.clear();
            bitField0_ = 0;
            title_ = "";
            openUriAction_ = null;
            if (openUriActionBuilder_ != null) {
              openUriActionBuilder_.dispose();
              openUriActionBuilder_ = null;
            }
            return this;
          }

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_Button_descriptor;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
              getDefaultInstanceForType() {
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                .getDefaultInstance();
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button build() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button result =
                buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
              buildPartial() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button result =
                new com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button(this);
            if (bitField0_ != 0) {
              buildPartial0(result);
            }
            onBuilt();
            return result;
          }

          private void buildPartial0(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.title_ = title_;
            }
            if (((from_bitField0_ & 0x00000002) != 0)) {
              result.openUriAction_ =
                  openUriActionBuilder_ == null ? openUriAction_ : openUriActionBuilder_.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.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button) {
              return mergeFrom(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button) other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }

          public Builder mergeFrom(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button other) {
            if (other
                == com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                    .getDefaultInstance()) return this;
            if (!other.getTitle().isEmpty()) {
              title_ = other.title_;
              bitField0_ |= 0x00000001;
              onChanged();
            }
            if (other.hasOpenUriAction()) {
              mergeOpenUriAction(other.getOpenUriAction());
            }
            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:
                    {
                      title_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000001;
                      break;
                    } // case 10
                  case 18:
                    {
                      input.readMessage(
                          getOpenUriActionFieldBuilder().getBuilder(), extensionRegistry);
                      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 java.lang.Object title_ = "";
          /**
           *
           *
           * <pre>
           * Required. The title of the button.
           * </pre>
           *
           * <code>string title = 1;</code>
           *
           * @return The title.
           */
          public java.lang.String getTitle() {
            java.lang.Object ref = title_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              title_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. The title of the button.
           * </pre>
           *
           * <code>string title = 1;</code>
           *
           * @return The bytes for title.
           */
          public com.google.protobuf.ByteString getTitleBytes() {
            java.lang.Object ref = title_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              title_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. The title of the button.
           * </pre>
           *
           * <code>string title = 1;</code>
           *
           * @param value The title to set.
           * @return This builder for chaining.
           */
          public Builder setTitle(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            title_ = value;
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. The title of the button.
           * </pre>
           *
           * <code>string title = 1;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearTitle() {
            title_ = getDefaultInstance().getTitle();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. The title of the button.
           * </pre>
           *
           * <code>string title = 1;</code>
           *
           * @param value The bytes for title to set.
           * @return This builder for chaining.
           */
          public Builder setTitleBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            title_ = value;
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }

          private com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
              openUriAction_;
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                      .Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                      .OpenUriActionOrBuilder>
              openUriActionBuilder_;
          /**
           *
           *
           * <pre>
           * Required. Action to take when a user taps on the button.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
           * </code>
           *
           * @return Whether the openUriAction field is set.
           */
          public boolean hasOpenUriAction() {
            return ((bitField0_ & 0x00000002) != 0);
          }
          /**
           *
           *
           * <pre>
           * Required. Action to take when a user taps on the button.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
           * </code>
           *
           * @return The openUriAction.
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
              getOpenUriAction() {
            if (openUriActionBuilder_ == null) {
              return openUriAction_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                      .OpenUriAction.getDefaultInstance()
                  : openUriAction_;
            } else {
              return openUriActionBuilder_.getMessage();
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Action to take when a user taps on the button.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
           * </code>
           */
          public Builder setOpenUriAction(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                  value) {
            if (openUriActionBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              openUriAction_ = value;
            } else {
              openUriActionBuilder_.setMessage(value);
            }
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Action to take when a user taps on the button.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
           * </code>
           */
          public Builder setOpenUriAction(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                      .Builder
                  builderForValue) {
            if (openUriActionBuilder_ == null) {
              openUriAction_ = builderForValue.build();
            } else {
              openUriActionBuilder_.setMessage(builderForValue.build());
            }
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Action to take when a user taps on the button.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
           * </code>
           */
          public Builder mergeOpenUriAction(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                  value) {
            if (openUriActionBuilder_ == null) {
              if (((bitField0_ & 0x00000002) != 0)
                  && openUriAction_ != null
                  && openUriAction_
                      != com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                          .OpenUriAction.getDefaultInstance()) {
                getOpenUriActionBuilder().mergeFrom(value);
              } else {
                openUriAction_ = value;
              }
            } else {
              openUriActionBuilder_.mergeFrom(value);
            }
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Action to take when a user taps on the button.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
           * </code>
           */
          public Builder clearOpenUriAction() {
            bitField0_ = (bitField0_ & ~0x00000002);
            openUriAction_ = null;
            if (openUriActionBuilder_ != null) {
              openUriActionBuilder_.dispose();
              openUriActionBuilder_ = null;
            }
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Action to take when a user taps on the button.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
           * </code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                  .Builder
              getOpenUriActionBuilder() {
            bitField0_ |= 0x00000002;
            onChanged();
            return getOpenUriActionFieldBuilder().getBuilder();
          }
          /**
           *
           *
           * <pre>
           * Required. Action to take when a user taps on the button.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
           * </code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                  .OpenUriActionOrBuilder
              getOpenUriActionOrBuilder() {
            if (openUriActionBuilder_ != null) {
              return openUriActionBuilder_.getMessageOrBuilder();
            } else {
              return openUriAction_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                      .OpenUriAction.getDefaultInstance()
                  : openUriAction_;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Action to take when a user taps on the button.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;
           * </code>
           */
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction
                      .Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                      .OpenUriActionOrBuilder>
              getOpenUriActionFieldBuilder() {
            if (openUriActionBuilder_ == null) {
              openUriActionBuilder_ =
                  new com.google.protobuf.SingleFieldBuilderV3<
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                          .OpenUriAction,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                          .OpenUriAction.Builder,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                          .OpenUriActionOrBuilder>(
                      getOpenUriAction(), getParentForChildren(), isClean());
              openUriAction_ = null;
            }
            return openUriActionBuilder_;
          }

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

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

          // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button)
        }

        // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button)
        private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
            DEFAULT_INSTANCE;

        static {
          DEFAULT_INSTANCE =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button();
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
            getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

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

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
            getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }
      }

      public static final int TITLE_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object title_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      @java.lang.Override
      public java.lang.String getTitle() {
        java.lang.Object ref = title_;
        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();
          title_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTitleBytes() {
        java.lang.Object ref = title_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          title_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int SUBTITLE_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private volatile java.lang.Object subtitle_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The subtitle of the card.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The subtitle.
       */
      @java.lang.Override
      public java.lang.String getSubtitle() {
        java.lang.Object ref = subtitle_;
        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();
          subtitle_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The subtitle of the card.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The bytes for subtitle.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getSubtitleBytes() {
        java.lang.Object ref = subtitle_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          subtitle_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int FORMATTED_TEXT_FIELD_NUMBER = 3;

      @SuppressWarnings("serial")
      private volatile java.lang.Object formattedText_ = "";
      /**
       *
       *
       * <pre>
       * Required, unless image is present. The body text of the card.
       * </pre>
       *
       * <code>string formatted_text = 3;</code>
       *
       * @return The formattedText.
       */
      @java.lang.Override
      public java.lang.String getFormattedText() {
        java.lang.Object ref = formattedText_;
        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();
          formattedText_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required, unless image is present. The body text of the card.
       * </pre>
       *
       * <code>string formatted_text = 3;</code>
       *
       * @return The bytes for formattedText.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getFormattedTextBytes() {
        java.lang.Object ref = formattedText_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          formattedText_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int IMAGE_FIELD_NUMBER = 4;
      private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_;
      /**
       *
       *
       * <pre>
       * Optional. The image for the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
       *
       * @return Whether the image field is set.
       */
      @java.lang.Override
      public boolean hasImage() {
        return image_ != null;
      }
      /**
       *
       *
       * <pre>
       * Optional. The image for the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
       *
       * @return The image.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
        return image_ == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
            : image_;
      }
      /**
       *
       *
       * <pre>
       * Optional. The image for the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() {
        return image_ == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
            : image_;
      }

      public static final int BUTTONS_FIELD_NUMBER = 5;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
          buttons_;
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
          getButtonsList() {
        return buttons_;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>
          getButtonsOrBuilderList() {
        return buttons_;
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
       * </code>
       */
      @java.lang.Override
      public int getButtonsCount() {
        return buttons_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button getButtons(
          int index) {
        return buttons_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. The collection of card buttons.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder
          getButtonsOrBuilder(int index) {
        return buttons_.get(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 {
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subtitle_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedText_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 3, formattedText_);
        }
        if (image_ != null) {
          output.writeMessage(4, getImage());
        }
        for (int i = 0; i < buttons_.size(); i++) {
          output.writeMessage(5, buttons_.get(i));
        }
        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(title_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subtitle_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedText_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, formattedText_);
        }
        if (image_ != null) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getImage());
        }
        for (int i = 0; i < buttons_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, buttons_.get(i));
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) obj;

        if (!getTitle().equals(other.getTitle())) return false;
        if (!getSubtitle().equals(other.getSubtitle())) return false;
        if (!getFormattedText().equals(other.getFormattedText())) return false;
        if (hasImage() != other.hasImage()) return false;
        if (hasImage()) {
          if (!getImage().equals(other.getImage())) return false;
        }
        if (!getButtonsList().equals(other.getButtonsList())) 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) + TITLE_FIELD_NUMBER;
        hash = (53 * hash) + getTitle().hashCode();
        hash = (37 * hash) + SUBTITLE_FIELD_NUMBER;
        hash = (53 * hash) + getSubtitle().hashCode();
        hash = (37 * hash) + FORMATTED_TEXT_FIELD_NUMBER;
        hash = (53 * hash) + getFormattedText().hashCode();
        if (hasImage()) {
          hash = (37 * hash) + IMAGE_FIELD_NUMBER;
          hash = (53 * hash) + getImage().hashCode();
        }
        if (getButtonsCount() > 0) {
          hash = (37 * hash) + BUTTONS_FIELD_NUMBER;
          hash = (53 * hash) + getButtonsList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseDelimitedFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseDelimitedFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard 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>
       * The basic card message. Useful for displaying information.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder.class);
        }

        // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          title_ = "";
          subtitle_ = "";
          formattedText_ = "";
          image_ = null;
          if (imageBuilder_ != null) {
            imageBuilder_.dispose();
            imageBuilder_ = null;
          }
          if (buttonsBuilder_ == null) {
            buttons_ = java.util.Collections.emptyList();
          } else {
            buttons_ = null;
            buttonsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000010);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BasicCard_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard result) {
          if (buttonsBuilder_ == null) {
            if (((bitField0_ & 0x00000010) != 0)) {
              buttons_ = java.util.Collections.unmodifiableList(buttons_);
              bitField0_ = (bitField0_ & ~0x00000010);
            }
            result.buttons_ = buttons_;
          } else {
            result.buttons_ = buttonsBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.title_ = title_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.subtitle_ = subtitle_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.formattedText_ = formattedText_;
          }
          if (((from_bitField0_ & 0x00000008) != 0)) {
            result.image_ = imageBuilder_ == null ? image_ : imageBuilder_.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.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) {
            return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance())
            return this;
          if (!other.getTitle().isEmpty()) {
            title_ = other.title_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.getSubtitle().isEmpty()) {
            subtitle_ = other.subtitle_;
            bitField0_ |= 0x00000002;
            onChanged();
          }
          if (!other.getFormattedText().isEmpty()) {
            formattedText_ = other.formattedText_;
            bitField0_ |= 0x00000004;
            onChanged();
          }
          if (other.hasImage()) {
            mergeImage(other.getImage());
          }
          if (buttonsBuilder_ == null) {
            if (!other.buttons_.isEmpty()) {
              if (buttons_.isEmpty()) {
                buttons_ = other.buttons_;
                bitField0_ = (bitField0_ & ~0x00000010);
              } else {
                ensureButtonsIsMutable();
                buttons_.addAll(other.buttons_);
              }
              onChanged();
            }
          } else {
            if (!other.buttons_.isEmpty()) {
              if (buttonsBuilder_.isEmpty()) {
                buttonsBuilder_.dispose();
                buttonsBuilder_ = null;
                buttons_ = other.buttons_;
                bitField0_ = (bitField0_ & ~0x00000010);
                buttonsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getButtonsFieldBuilder()
                        : null;
              } else {
                buttonsBuilder_.addAllMessages(other.buttons_);
              }
            }
          }
          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:
                  {
                    title_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    subtitle_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 18
                case 26:
                  {
                    formattedText_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000004;
                    break;
                  } // case 26
                case 34:
                  {
                    input.readMessage(getImageFieldBuilder().getBuilder(), extensionRegistry);
                    bitField0_ |= 0x00000008;
                    break;
                  } // case 34
                case 42:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                                .parser(),
                            extensionRegistry);
                    if (buttonsBuilder_ == null) {
                      ensureButtonsIsMutable();
                      buttons_.add(m);
                    } else {
                      buttonsBuilder_.addMessage(m);
                    }
                    break;
                  } // case 42
                default:
                  {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }

        private int bitField0_;

        private java.lang.Object title_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The title.
         */
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            title_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The bytes for title.
         */
        public com.google.protobuf.ByteString getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The title to set.
         * @return This builder for chaining.
         */
        public Builder setTitle(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearTitle() {
          title_ = getDefaultInstance().getTitle();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The bytes for title to set.
         * @return This builder for chaining.
         */
        public Builder setTitleBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.lang.Object subtitle_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The subtitle of the card.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @return The subtitle.
         */
        public java.lang.String getSubtitle() {
          java.lang.Object ref = subtitle_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            subtitle_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The subtitle of the card.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @return The bytes for subtitle.
         */
        public com.google.protobuf.ByteString getSubtitleBytes() {
          java.lang.Object ref = subtitle_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            subtitle_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The subtitle of the card.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @param value The subtitle to set.
         * @return This builder for chaining.
         */
        public Builder setSubtitle(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          subtitle_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The subtitle of the card.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearSubtitle() {
          subtitle_ = getDefaultInstance().getSubtitle();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The subtitle of the card.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @param value The bytes for subtitle to set.
         * @return This builder for chaining.
         */
        public Builder setSubtitleBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          subtitle_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }

        private java.lang.Object formattedText_ = "";
        /**
         *
         *
         * <pre>
         * Required, unless image is present. The body text of the card.
         * </pre>
         *
         * <code>string formatted_text = 3;</code>
         *
         * @return The formattedText.
         */
        public java.lang.String getFormattedText() {
          java.lang.Object ref = formattedText_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            formattedText_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required, unless image is present. The body text of the card.
         * </pre>
         *
         * <code>string formatted_text = 3;</code>
         *
         * @return The bytes for formattedText.
         */
        public com.google.protobuf.ByteString getFormattedTextBytes() {
          java.lang.Object ref = formattedText_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            formattedText_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required, unless image is present. The body text of the card.
         * </pre>
         *
         * <code>string formatted_text = 3;</code>
         *
         * @param value The formattedText to set.
         * @return This builder for chaining.
         */
        public Builder setFormattedText(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          formattedText_ = value;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required, unless image is present. The body text of the card.
         * </pre>
         *
         * <code>string formatted_text = 3;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearFormattedText() {
          formattedText_ = getDefaultInstance().getFormattedText();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required, unless image is present. The body text of the card.
         * </pre>
         *
         * <code>string formatted_text = 3;</code>
         *
         * @param value The bytes for formattedText to set.
         * @return This builder for chaining.
         */
        public Builder setFormattedTextBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          formattedText_ = value;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }

        private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_;
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
            imageBuilder_;
        /**
         *
         *
         * <pre>
         * Optional. The image for the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return Whether the image field is set.
         */
        public boolean hasImage() {
          return ((bitField0_ & 0x00000008) != 0);
        }
        /**
         *
         *
         * <pre>
         * Optional. The image for the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return The image.
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
          if (imageBuilder_ == null) {
            return image_ == null
                ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
                : image_;
          } else {
            return imageBuilder_.getMessage();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The image for the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
          if (imageBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            image_ = value;
          } else {
            imageBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000008;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The image for the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        public Builder setImage(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) {
          if (imageBuilder_ == null) {
            image_ = builderForValue.build();
          } else {
            imageBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000008;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The image for the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        public Builder mergeImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
          if (imageBuilder_ == null) {
            if (((bitField0_ & 0x00000008) != 0)
                && image_ != null
                && image_
                    != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
                        .getDefaultInstance()) {
              getImageBuilder().mergeFrom(value);
            } else {
              image_ = value;
            }
          } else {
            imageBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000008;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The image for the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        public Builder clearImage() {
          bitField0_ = (bitField0_ & ~0x00000008);
          image_ = null;
          if (imageBuilder_ != null) {
            imageBuilder_.dispose();
            imageBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The image for the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder getImageBuilder() {
          bitField0_ |= 0x00000008;
          onChanged();
          return getImageFieldBuilder().getBuilder();
        }
        /**
         *
         *
         * <pre>
         * Optional. The image for the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
            getImageOrBuilder() {
          if (imageBuilder_ != null) {
            return imageBuilder_.getMessageOrBuilder();
          } else {
            return image_ == null
                ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
                : image_;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The image for the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
            getImageFieldBuilder() {
          if (imageBuilder_ == null) {
            imageBuilder_ =
                new com.google.protobuf.SingleFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>(
                    getImage(), getParentForChildren(), isClean());
            image_ = null;
          }
          return imageBuilder_;
        }

        private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
            buttons_ = java.util.Collections.emptyList();

        private void ensureButtonsIsMutable() {
          if (!((bitField0_ & 0x00000010) != 0)) {
            buttons_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>(buttons_);
            bitField0_ |= 0x00000010;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>
            buttonsBuilder_;

        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
            getButtonsList() {
          if (buttonsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(buttons_);
          } else {
            return buttonsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public int getButtonsCount() {
          if (buttonsBuilder_ == null) {
            return buttons_.size();
          } else {
            return buttonsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button getButtons(
            int index) {
          if (buttonsBuilder_ == null) {
            return buttons_.get(index);
          } else {
            return buttonsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public Builder setButtons(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button value) {
          if (buttonsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureButtonsIsMutable();
            buttons_.set(index, value);
            onChanged();
          } else {
            buttonsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public Builder setButtons(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
                builderForValue) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.set(index, builderForValue.build());
            onChanged();
          } else {
            buttonsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public Builder addButtons(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button value) {
          if (buttonsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureButtonsIsMutable();
            buttons_.add(value);
            onChanged();
          } else {
            buttonsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public Builder addButtons(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button value) {
          if (buttonsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureButtonsIsMutable();
            buttons_.add(index, value);
            onChanged();
          } else {
            buttonsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public Builder addButtons(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
                builderForValue) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.add(builderForValue.build());
            onChanged();
          } else {
            buttonsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public Builder addButtons(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
                builderForValue) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.add(index, builderForValue.build());
            onChanged();
          } else {
            buttonsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public Builder addAllButtons(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
                values) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buttons_);
            onChanged();
          } else {
            buttonsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public Builder clearButtons() {
          if (buttonsBuilder_ == null) {
            buttons_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000010);
            onChanged();
          } else {
            buttonsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public Builder removeButtons(int index) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.remove(index);
            onChanged();
          } else {
            buttonsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
            getButtonsBuilder(int index) {
          return getButtonsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder
            getButtonsOrBuilder(int index) {
          if (buttonsBuilder_ == null) {
            return buttons_.get(index);
          } else {
            return buttonsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public java.util.List<
                ? extends
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>
            getButtonsOrBuilderList() {
          if (buttonsBuilder_ != null) {
            return buttonsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(buttons_);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
            addButtonsBuilder() {
          return getButtonsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
            addButtonsBuilder(int index) {
          return getButtonsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. The collection of card buttons.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder>
            getButtonsBuilderList() {
          return getButtonsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>
            getButtonsFieldBuilder() {
          if (buttonsBuilder_ == null) {
            buttonsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>(
                    buttons_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
            buttons_ = null;
          }
          return buttonsBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface SuggestionOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. The text shown the in the suggestion chip.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      java.lang.String getTitle();
      /**
       *
       *
       * <pre>
       * Required. The text shown the in the suggestion chip.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      com.google.protobuf.ByteString getTitleBytes();
    }
    /**
     *
     *
     * <pre>
     * The suggestion chip message that the user can tap to quickly post a reply
     * to the conversation.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion}
     */
    public static final class Suggestion extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion)
        SuggestionOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use Suggestion.newBuilder() to construct.
      private Suggestion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private Suggestion() {
        title_ = "";
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Suggestion_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Suggestion_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder.class);
      }

      public static final int TITLE_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object title_ = "";
      /**
       *
       *
       * <pre>
       * Required. The text shown the in the suggestion chip.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      @java.lang.Override
      public java.lang.String getTitle() {
        java.lang.Object ref = title_;
        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();
          title_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The text shown the in the suggestion chip.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTitleBytes() {
        java.lang.Object ref = title_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          title_ = 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(title_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
        }
        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(title_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion) obj;

        if (!getTitle().equals(other.getTitle())) 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) + TITLE_FIELD_NUMBER;
        hash = (53 * hash) + getTitle().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion 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>
       * The suggestion chip message that the user can tap to quickly post a reply
       * to the conversation.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Suggestion_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Suggestion_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Suggestion_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.title_ = title_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion) {
            return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.getDefaultInstance())
            return this;
          if (!other.getTitle().isEmpty()) {
            title_ = other.title_;
            bitField0_ |= 0x00000001;
            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:
                  {
                    title_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    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 java.lang.Object title_ = "";
        /**
         *
         *
         * <pre>
         * Required. The text shown the in the suggestion chip.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The title.
         */
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            title_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The text shown the in the suggestion chip.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The bytes for title.
         */
        public com.google.protobuf.ByteString getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The text shown the in the suggestion chip.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The title to set.
         * @return This builder for chaining.
         */
        public Builder setTitle(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The text shown the in the suggestion chip.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearTitle() {
          title_ = getDefaultInstance().getTitle();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The text shown the in the suggestion chip.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The bytes for title to set.
         * @return This builder for chaining.
         */
        public Builder setTitleBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          title_ = 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.cloud.dialogflow.v2beta1.Intent.Message.Suggestion)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface SuggestionsOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. The list of suggested replies.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion>
          getSuggestionsList();
      /**
       *
       *
       * <pre>
       * Required. The list of suggested replies.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion getSuggestions(int index);
      /**
       *
       *
       * <pre>
       * Required. The list of suggested replies.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
       * </code>
       */
      int getSuggestionsCount();
      /**
       *
       *
       * <pre>
       * Required. The list of suggested replies.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
       * </code>
       */
      java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionOrBuilder>
          getSuggestionsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Required. The list of suggested replies.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionOrBuilder
          getSuggestionsOrBuilder(int index);
    }
    /**
     *
     *
     * <pre>
     * The collection of suggestions.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions}
     */
    public static final class Suggestions extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions)
        SuggestionsOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use Suggestions.newBuilder() to construct.
      private Suggestions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private Suggestions() {
        suggestions_ = java.util.Collections.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Suggestions_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Suggestions_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder.class);
      }

      public static final int SUGGESTIONS_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion>
          suggestions_;
      /**
       *
       *
       * <pre>
       * Required. The list of suggested replies.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion>
          getSuggestionsList() {
        return suggestions_;
      }
      /**
       *
       *
       * <pre>
       * Required. The list of suggested replies.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionOrBuilder>
          getSuggestionsOrBuilderList() {
        return suggestions_;
      }
      /**
       *
       *
       * <pre>
       * Required. The list of suggested replies.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
       * </code>
       */
      @java.lang.Override
      public int getSuggestionsCount() {
        return suggestions_.size();
      }
      /**
       *
       *
       * <pre>
       * Required. The list of suggested replies.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion getSuggestions(
          int index) {
        return suggestions_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Required. The list of suggested replies.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionOrBuilder
          getSuggestionsOrBuilder(int index) {
        return suggestions_.get(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 < suggestions_.size(); i++) {
          output.writeMessage(1, suggestions_.get(i));
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        for (int i = 0; i < suggestions_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, suggestions_.get(i));
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) obj;

        if (!getSuggestionsList().equals(other.getSuggestionsList())) 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 (getSuggestionsCount() > 0) {
          hash = (37 * hash) + SUGGESTIONS_FIELD_NUMBER;
          hash = (53 * hash) + getSuggestionsList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions 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>
       * The collection of suggestions.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Suggestions_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Suggestions_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          if (suggestionsBuilder_ == null) {
            suggestions_ = java.util.Collections.emptyList();
          } else {
            suggestions_ = null;
            suggestionsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Suggestions_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions result) {
          if (suggestionsBuilder_ == null) {
            if (((bitField0_ & 0x00000001) != 0)) {
              suggestions_ = java.util.Collections.unmodifiableList(suggestions_);
              bitField0_ = (bitField0_ & ~0x00000001);
            }
            result.suggestions_ = suggestions_;
          } else {
            result.suggestions_ = suggestionsBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions result) {
          int from_bitField0_ = bitField0_;
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
                  .getDefaultInstance()) return this;
          if (suggestionsBuilder_ == null) {
            if (!other.suggestions_.isEmpty()) {
              if (suggestions_.isEmpty()) {
                suggestions_ = other.suggestions_;
                bitField0_ = (bitField0_ & ~0x00000001);
              } else {
                ensureSuggestionsIsMutable();
                suggestions_.addAll(other.suggestions_);
              }
              onChanged();
            }
          } else {
            if (!other.suggestions_.isEmpty()) {
              if (suggestionsBuilder_.isEmpty()) {
                suggestionsBuilder_.dispose();
                suggestionsBuilder_ = null;
                suggestions_ = other.suggestions_;
                bitField0_ = (bitField0_ & ~0x00000001);
                suggestionsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getSuggestionsFieldBuilder()
                        : null;
              } else {
                suggestionsBuilder_.addAllMessages(other.suggestions_);
              }
            }
          }
          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:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.parser(),
                            extensionRegistry);
                    if (suggestionsBuilder_ == null) {
                      ensureSuggestionsIsMutable();
                      suggestions_.add(m);
                    } else {
                      suggestionsBuilder_.addMessage(m);
                    }
                    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 java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion>
            suggestions_ = java.util.Collections.emptyList();

        private void ensureSuggestionsIsMutable() {
          if (!((bitField0_ & 0x00000001) != 0)) {
            suggestions_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion>(suggestions_);
            bitField0_ |= 0x00000001;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionOrBuilder>
            suggestionsBuilder_;

        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion>
            getSuggestionsList() {
          if (suggestionsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(suggestions_);
          } else {
            return suggestionsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public int getSuggestionsCount() {
          if (suggestionsBuilder_ == null) {
            return suggestions_.size();
          } else {
            return suggestionsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion getSuggestions(
            int index) {
          if (suggestionsBuilder_ == null) {
            return suggestions_.get(index);
          } else {
            return suggestionsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public Builder setSuggestions(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion value) {
          if (suggestionsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureSuggestionsIsMutable();
            suggestions_.set(index, value);
            onChanged();
          } else {
            suggestionsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public Builder setSuggestions(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder builderForValue) {
          if (suggestionsBuilder_ == null) {
            ensureSuggestionsIsMutable();
            suggestions_.set(index, builderForValue.build());
            onChanged();
          } else {
            suggestionsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public Builder addSuggestions(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion value) {
          if (suggestionsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureSuggestionsIsMutable();
            suggestions_.add(value);
            onChanged();
          } else {
            suggestionsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public Builder addSuggestions(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion value) {
          if (suggestionsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureSuggestionsIsMutable();
            suggestions_.add(index, value);
            onChanged();
          } else {
            suggestionsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public Builder addSuggestions(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder builderForValue) {
          if (suggestionsBuilder_ == null) {
            ensureSuggestionsIsMutable();
            suggestions_.add(builderForValue.build());
            onChanged();
          } else {
            suggestionsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public Builder addSuggestions(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder builderForValue) {
          if (suggestionsBuilder_ == null) {
            ensureSuggestionsIsMutable();
            suggestions_.add(index, builderForValue.build());
            onChanged();
          } else {
            suggestionsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public Builder addAllSuggestions(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion>
                values) {
          if (suggestionsBuilder_ == null) {
            ensureSuggestionsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suggestions_);
            onChanged();
          } else {
            suggestionsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public Builder clearSuggestions() {
          if (suggestionsBuilder_ == null) {
            suggestions_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
          } else {
            suggestionsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public Builder removeSuggestions(int index) {
          if (suggestionsBuilder_ == null) {
            ensureSuggestionsIsMutable();
            suggestions_.remove(index);
            onChanged();
          } else {
            suggestionsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder
            getSuggestionsBuilder(int index) {
          return getSuggestionsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionOrBuilder
            getSuggestionsOrBuilder(int index) {
          if (suggestionsBuilder_ == null) {
            return suggestions_.get(index);
          } else {
            return suggestionsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public java.util.List<
                ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionOrBuilder>
            getSuggestionsOrBuilderList() {
          if (suggestionsBuilder_ != null) {
            return suggestionsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(suggestions_);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder
            addSuggestionsBuilder() {
          return getSuggestionsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder
            addSuggestionsBuilder(int index) {
          return getSuggestionsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. The list of suggested replies.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion suggestions = 1;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder>
            getSuggestionsBuilderList() {
          return getSuggestionsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionOrBuilder>
            getSuggestionsFieldBuilder() {
          if (suggestionsBuilder_ == null) {
            suggestionsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestion.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionOrBuilder>(
                    suggestions_,
                    ((bitField0_ & 0x00000001) != 0),
                    getParentForChildren(),
                    isClean());
            suggestions_ = null;
          }
          return suggestionsBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface LinkOutSuggestionOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. The name of the app or site this chip is linking to.
       * </pre>
       *
       * <code>string destination_name = 1;</code>
       *
       * @return The destinationName.
       */
      java.lang.String getDestinationName();
      /**
       *
       *
       * <pre>
       * Required. The name of the app or site this chip is linking to.
       * </pre>
       *
       * <code>string destination_name = 1;</code>
       *
       * @return The bytes for destinationName.
       */
      com.google.protobuf.ByteString getDestinationNameBytes();

      /**
       *
       *
       * <pre>
       * Required. The URI of the app or site to open when the user taps the
       * suggestion chip.
       * </pre>
       *
       * <code>string uri = 2;</code>
       *
       * @return The uri.
       */
      java.lang.String getUri();
      /**
       *
       *
       * <pre>
       * Required. The URI of the app or site to open when the user taps the
       * suggestion chip.
       * </pre>
       *
       * <code>string uri = 2;</code>
       *
       * @return The bytes for uri.
       */
      com.google.protobuf.ByteString getUriBytes();
    }
    /**
     *
     *
     * <pre>
     * The suggestion chip message that allows the user to jump out to the app
     * or website associated with this agent.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion}
     */
    public static final class LinkOutSuggestion extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion)
        LinkOutSuggestionOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use LinkOutSuggestion.newBuilder() to construct.
      private LinkOutSuggestion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private LinkOutSuggestion() {
        destinationName_ = "";
        uri_ = "";
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_LinkOutSuggestion_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_LinkOutSuggestion_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder.class);
      }

      public static final int DESTINATION_NAME_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object destinationName_ = "";
      /**
       *
       *
       * <pre>
       * Required. The name of the app or site this chip is linking to.
       * </pre>
       *
       * <code>string destination_name = 1;</code>
       *
       * @return The destinationName.
       */
      @java.lang.Override
      public java.lang.String getDestinationName() {
        java.lang.Object ref = destinationName_;
        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();
          destinationName_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The name of the app or site this chip is linking to.
       * </pre>
       *
       * <code>string destination_name = 1;</code>
       *
       * @return The bytes for destinationName.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getDestinationNameBytes() {
        java.lang.Object ref = destinationName_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          destinationName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int URI_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private volatile java.lang.Object uri_ = "";
      /**
       *
       *
       * <pre>
       * Required. The URI of the app or site to open when the user taps the
       * suggestion chip.
       * </pre>
       *
       * <code>string uri = 2;</code>
       *
       * @return The uri.
       */
      @java.lang.Override
      public java.lang.String getUri() {
        java.lang.Object ref = uri_;
        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();
          uri_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The URI of the app or site to open when the user taps the
       * suggestion chip.
       * </pre>
       *
       * <code>string uri = 2;</code>
       *
       * @return The bytes for uri.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getUriBytes() {
        java.lang.Object ref = uri_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          uri_ = 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(destinationName_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destinationName_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
        }
        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(destinationName_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destinationName_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) obj;

        if (!getDestinationName().equals(other.getDestinationName())) return false;
        if (!getUri().equals(other.getUri())) 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) + DESTINATION_NAME_FIELD_NUMBER;
        hash = (53 * hash) + getDestinationName().hashCode();
        hash = (37 * hash) + URI_FIELD_NUMBER;
        hash = (53 * hash) + getUri().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion 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>
       * The suggestion chip message that allows the user to jump out to the app
       * or website associated with this agent.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_LinkOutSuggestion_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_LinkOutSuggestion_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder
                      .class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_LinkOutSuggestion_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.destinationName_ = destinationName_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.uri_ = uri_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other
              instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
                  .getDefaultInstance()) return this;
          if (!other.getDestinationName().isEmpty()) {
            destinationName_ = other.destinationName_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.getUri().isEmpty()) {
            uri_ = other.uri_;
            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 10:
                  {
                    destinationName_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    uri_ = 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 java.lang.Object destinationName_ = "";
        /**
         *
         *
         * <pre>
         * Required. The name of the app or site this chip is linking to.
         * </pre>
         *
         * <code>string destination_name = 1;</code>
         *
         * @return The destinationName.
         */
        public java.lang.String getDestinationName() {
          java.lang.Object ref = destinationName_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            destinationName_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The name of the app or site this chip is linking to.
         * </pre>
         *
         * <code>string destination_name = 1;</code>
         *
         * @return The bytes for destinationName.
         */
        public com.google.protobuf.ByteString getDestinationNameBytes() {
          java.lang.Object ref = destinationName_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            destinationName_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The name of the app or site this chip is linking to.
         * </pre>
         *
         * <code>string destination_name = 1;</code>
         *
         * @param value The destinationName to set.
         * @return This builder for chaining.
         */
        public Builder setDestinationName(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          destinationName_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The name of the app or site this chip is linking to.
         * </pre>
         *
         * <code>string destination_name = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearDestinationName() {
          destinationName_ = getDefaultInstance().getDestinationName();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The name of the app or site this chip is linking to.
         * </pre>
         *
         * <code>string destination_name = 1;</code>
         *
         * @param value The bytes for destinationName to set.
         * @return This builder for chaining.
         */
        public Builder setDestinationNameBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          destinationName_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.lang.Object uri_ = "";
        /**
         *
         *
         * <pre>
         * Required. The URI of the app or site to open when the user taps the
         * suggestion chip.
         * </pre>
         *
         * <code>string uri = 2;</code>
         *
         * @return The uri.
         */
        public java.lang.String getUri() {
          java.lang.Object ref = uri_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            uri_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The URI of the app or site to open when the user taps the
         * suggestion chip.
         * </pre>
         *
         * <code>string uri = 2;</code>
         *
         * @return The bytes for uri.
         */
        public com.google.protobuf.ByteString getUriBytes() {
          java.lang.Object ref = uri_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            uri_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The URI of the app or site to open when the user taps the
         * suggestion chip.
         * </pre>
         *
         * <code>string uri = 2;</code>
         *
         * @param value The uri to set.
         * @return This builder for chaining.
         */
        public Builder setUri(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          uri_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The URI of the app or site to open when the user taps the
         * suggestion chip.
         * </pre>
         *
         * <code>string uri = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearUri() {
          uri_ = getDefaultInstance().getUri();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The URI of the app or site to open when the user taps the
         * suggestion chip.
         * </pre>
         *
         * <code>string uri = 2;</code>
         *
         * @param value The bytes for uri to set.
         * @return This builder for chaining.
         */
        public Builder setUriBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          uri_ = 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.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface ListSelectOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Optional. The overall title of the list.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      java.lang.String getTitle();
      /**
       *
       *
       * <pre>
       * Optional. The overall title of the list.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      com.google.protobuf.ByteString getTitleBytes();

      /**
       *
       *
       * <pre>
       * Required. List items.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item>
          getItemsList();
      /**
       *
       *
       * <pre>
       * Required. List items.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item getItems(int index);
      /**
       *
       *
       * <pre>
       * Required. List items.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
       * </code>
       */
      int getItemsCount();
      /**
       *
       *
       * <pre>
       * Required. List items.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
       * </code>
       */
      java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.ItemOrBuilder>
          getItemsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Required. List items.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.ItemOrBuilder getItemsOrBuilder(
          int index);

      /**
       *
       *
       * <pre>
       * Optional. Subtitle of the list.
       * </pre>
       *
       * <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The subtitle.
       */
      java.lang.String getSubtitle();
      /**
       *
       *
       * <pre>
       * Optional. Subtitle of the list.
       * </pre>
       *
       * <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The bytes for subtitle.
       */
      com.google.protobuf.ByteString getSubtitleBytes();
    }
    /**
     *
     *
     * <pre>
     * The card for presenting a list of options to select from.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect}
     */
    public static final class ListSelect extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect)
        ListSelectOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use ListSelect.newBuilder() to construct.
      private ListSelect(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private ListSelect() {
        title_ = "";
        items_ = java.util.Collections.emptyList();
        subtitle_ = "";
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ListSelect_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ListSelect_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder.class);
      }

      public interface ItemOrBuilder
          extends
          // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item)
          com.google.protobuf.MessageOrBuilder {

        /**
         *
         *
         * <pre>
         * Required. Additional information about this option.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         *
         * @return Whether the info field is set.
         */
        boolean hasInfo();
        /**
         *
         *
         * <pre>
         * Required. Additional information about this option.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         *
         * @return The info.
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo getInfo();
        /**
         *
         *
         * <pre>
         * Required. Additional information about this option.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder
            getInfoOrBuilder();

        /**
         *
         *
         * <pre>
         * Required. The title of the list item.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The title.
         */
        java.lang.String getTitle();
        /**
         *
         *
         * <pre>
         * Required. The title of the list item.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The bytes for title.
         */
        com.google.protobuf.ByteString getTitleBytes();

        /**
         *
         *
         * <pre>
         * Optional. The main text describing the item.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The description.
         */
        java.lang.String getDescription();
        /**
         *
         *
         * <pre>
         * Optional. The main text describing the item.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The bytes for description.
         */
        com.google.protobuf.ByteString getDescriptionBytes();

        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return Whether the image field is set.
         */
        boolean hasImage();
        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return The image.
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage();
        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder();
      }
      /**
       *
       *
       * <pre>
       * An item in the list.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item}
       */
      public static final class Item extends com.google.protobuf.GeneratedMessageV3
          implements
          // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item)
          ItemOrBuilder {
        private static final long serialVersionUID = 0L;
        // Use Item.newBuilder() to construct.
        private Item(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
          super(builder);
        }

        private Item() {
          title_ = "";
          description_ = "";
        }

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

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ListSelect_Item_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ListSelect_Item_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder.class);
        }

        public static final int INFO_FIELD_NUMBER = 1;
        private com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info_;
        /**
         *
         *
         * <pre>
         * Required. Additional information about this option.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         *
         * @return Whether the info field is set.
         */
        @java.lang.Override
        public boolean hasInfo() {
          return info_ != null;
        }
        /**
         *
         *
         * <pre>
         * Required. Additional information about this option.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         *
         * @return The info.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo getInfo() {
          return info_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
                  .getDefaultInstance()
              : info_;
        }
        /**
         *
         *
         * <pre>
         * Required. Additional information about this option.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder
            getInfoOrBuilder() {
          return info_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
                  .getDefaultInstance()
              : info_;
        }

        public static final int TITLE_FIELD_NUMBER = 2;

        @SuppressWarnings("serial")
        private volatile java.lang.Object title_ = "";
        /**
         *
         *
         * <pre>
         * Required. The title of the list item.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The title.
         */
        @java.lang.Override
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          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();
            title_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The title of the list item.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The bytes for title.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int DESCRIPTION_FIELD_NUMBER = 3;

        @SuppressWarnings("serial")
        private volatile java.lang.Object description_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The main text describing the item.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The description.
         */
        @java.lang.Override
        public java.lang.String getDescription() {
          java.lang.Object ref = description_;
          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();
            description_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The main text describing the item.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The bytes for description.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getDescriptionBytes() {
          java.lang.Object ref = description_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            description_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int IMAGE_FIELD_NUMBER = 4;
        private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_;
        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return Whether the image field is set.
         */
        @java.lang.Override
        public boolean hasImage() {
          return image_ != null;
        }
        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return The image.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
          return image_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
              : image_;
        }
        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
            getImageOrBuilder() {
          return image_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
              : image_;
        }

        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 (info_ != null) {
            output.writeMessage(1, getInfo());
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
          }
          if (image_ != null) {
            output.writeMessage(4, getImage());
          }
          getUnknownFields().writeTo(output);
        }

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

          size = 0;
          if (info_ != null) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfo());
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
          }
          if (image_ != null) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getImage());
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj
              instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item)) {
            return super.equals(obj);
          }
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item other =
              (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item) obj;

          if (hasInfo() != other.hasInfo()) return false;
          if (hasInfo()) {
            if (!getInfo().equals(other.getInfo())) return false;
          }
          if (!getTitle().equals(other.getTitle())) return false;
          if (!getDescription().equals(other.getDescription())) return false;
          if (hasImage() != other.hasImage()) return false;
          if (hasImage()) {
            if (!getImage().equals(other.getImage())) 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 (hasInfo()) {
            hash = (37 * hash) + INFO_FIELD_NUMBER;
            hash = (53 * hash) + getInfo().hashCode();
          }
          hash = (37 * hash) + TITLE_FIELD_NUMBER;
          hash = (53 * hash) + getTitle().hashCode();
          hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
          hash = (53 * hash) + getDescription().hashCode();
          if (hasImage()) {
            hash = (37 * hash) + IMAGE_FIELD_NUMBER;
            hash = (53 * hash) + getImage().hashCode();
          }
          hash = (29 * hash) + getUnknownFields().hashCode();
          memoizedHashCode = hash;
          return hash;
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item parseFrom(
            java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item parseFrom(
            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item parseFrom(
            com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item parseFrom(
            com.google.protobuf.ByteString data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item parseFrom(
            byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item parseFrom(
            byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item parseFrom(
            java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item parseFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item
            parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item
            parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item parseFrom(
            com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item parseFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

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

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

        public static Builder newBuilder(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item 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>
         * An item in the list.
         * </pre>
         *
         * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item}
         */
        public static final class Builder
            extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
            implements
            // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item)
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.ItemOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ListSelect_Item_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ListSelect_Item_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder
                        .class);
          }

          // Construct using
          // com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.newBuilder()
          private Builder() {}

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

          @java.lang.Override
          public Builder clear() {
            super.clear();
            bitField0_ = 0;
            info_ = null;
            if (infoBuilder_ != null) {
              infoBuilder_.dispose();
              infoBuilder_ = null;
            }
            title_ = "";
            description_ = "";
            image_ = null;
            if (imageBuilder_ != null) {
              imageBuilder_.dispose();
              imageBuilder_ = null;
            }
            return this;
          }

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ListSelect_Item_descriptor;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item
              getDefaultInstanceForType() {
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item
                .getDefaultInstance();
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item build() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item result =
                buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item buildPartial() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item result =
                new com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item(this);
            if (bitField0_ != 0) {
              buildPartial0(result);
            }
            onBuilt();
            return result;
          }

          private void buildPartial0(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.info_ = infoBuilder_ == null ? info_ : infoBuilder_.build();
            }
            if (((from_bitField0_ & 0x00000002) != 0)) {
              result.title_ = title_;
            }
            if (((from_bitField0_ & 0x00000004) != 0)) {
              result.description_ = description_;
            }
            if (((from_bitField0_ & 0x00000008) != 0)) {
              result.image_ = imageBuilder_ == null ? image_ : imageBuilder_.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.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item) {
              return mergeFrom(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item) other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }

          public Builder mergeFrom(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item other) {
            if (other
                == com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item
                    .getDefaultInstance()) return this;
            if (other.hasInfo()) {
              mergeInfo(other.getInfo());
            }
            if (!other.getTitle().isEmpty()) {
              title_ = other.title_;
              bitField0_ |= 0x00000002;
              onChanged();
            }
            if (!other.getDescription().isEmpty()) {
              description_ = other.description_;
              bitField0_ |= 0x00000004;
              onChanged();
            }
            if (other.hasImage()) {
              mergeImage(other.getImage());
            }
            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:
                    {
                      input.readMessage(getInfoFieldBuilder().getBuilder(), extensionRegistry);
                      bitField0_ |= 0x00000001;
                      break;
                    } // case 10
                  case 18:
                    {
                      title_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000002;
                      break;
                    } // case 18
                  case 26:
                    {
                      description_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000004;
                      break;
                    } // case 26
                  case 34:
                    {
                      input.readMessage(getImageFieldBuilder().getBuilder(), extensionRegistry);
                      bitField0_ |= 0x00000008;
                      break;
                    } // case 34
                  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.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info_;
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder>
              infoBuilder_;
          /**
           *
           *
           * <pre>
           * Required. Additional information about this option.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           *
           * @return Whether the info field is set.
           */
          public boolean hasInfo() {
            return ((bitField0_ & 0x00000001) != 0);
          }
          /**
           *
           *
           * <pre>
           * Required. Additional information about this option.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           *
           * @return The info.
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo getInfo() {
            if (infoBuilder_ == null) {
              return info_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
                      .getDefaultInstance()
                  : info_;
            } else {
              return infoBuilder_.getMessage();
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Additional information about this option.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public Builder setInfo(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo value) {
            if (infoBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              info_ = value;
            } else {
              infoBuilder_.setMessage(value);
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Additional information about this option.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public Builder setInfo(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder
                  builderForValue) {
            if (infoBuilder_ == null) {
              info_ = builderForValue.build();
            } else {
              infoBuilder_.setMessage(builderForValue.build());
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Additional information about this option.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public Builder mergeInfo(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo value) {
            if (infoBuilder_ == null) {
              if (((bitField0_ & 0x00000001) != 0)
                  && info_ != null
                  && info_
                      != com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
                          .getDefaultInstance()) {
                getInfoBuilder().mergeFrom(value);
              } else {
                info_ = value;
              }
            } else {
              infoBuilder_.mergeFrom(value);
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Additional information about this option.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public Builder clearInfo() {
            bitField0_ = (bitField0_ & ~0x00000001);
            info_ = null;
            if (infoBuilder_ != null) {
              infoBuilder_.dispose();
              infoBuilder_ = null;
            }
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Additional information about this option.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder
              getInfoBuilder() {
            bitField0_ |= 0x00000001;
            onChanged();
            return getInfoFieldBuilder().getBuilder();
          }
          /**
           *
           *
           * <pre>
           * Required. Additional information about this option.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder
              getInfoOrBuilder() {
            if (infoBuilder_ != null) {
              return infoBuilder_.getMessageOrBuilder();
            } else {
              return info_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
                      .getDefaultInstance()
                  : info_;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Additional information about this option.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder>
              getInfoFieldBuilder() {
            if (infoBuilder_ == null) {
              infoBuilder_ =
                  new com.google.protobuf.SingleFieldBuilderV3<
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder>(
                      getInfo(), getParentForChildren(), isClean());
              info_ = null;
            }
            return infoBuilder_;
          }

          private java.lang.Object title_ = "";
          /**
           *
           *
           * <pre>
           * Required. The title of the list item.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @return The title.
           */
          public java.lang.String getTitle() {
            java.lang.Object ref = title_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              title_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. The title of the list item.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @return The bytes for title.
           */
          public com.google.protobuf.ByteString getTitleBytes() {
            java.lang.Object ref = title_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              title_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. The title of the list item.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @param value The title to set.
           * @return This builder for chaining.
           */
          public Builder setTitle(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            title_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. The title of the list item.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearTitle() {
            title_ = getDefaultInstance().getTitle();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. The title of the list item.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @param value The bytes for title to set.
           * @return This builder for chaining.
           */
          public Builder setTitleBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            title_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }

          private java.lang.Object description_ = "";
          /**
           *
           *
           * <pre>
           * Optional. The main text describing the item.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @return The description.
           */
          public java.lang.String getDescription() {
            java.lang.Object ref = description_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              description_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The main text describing the item.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @return The bytes for description.
           */
          public com.google.protobuf.ByteString getDescriptionBytes() {
            java.lang.Object ref = description_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              description_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The main text describing the item.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @param value The description to set.
           * @return This builder for chaining.
           */
          public Builder setDescription(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            description_ = value;
            bitField0_ |= 0x00000004;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The main text describing the item.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearDescription() {
            description_ = getDefaultInstance().getDescription();
            bitField0_ = (bitField0_ & ~0x00000004);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The main text describing the item.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @param value The bytes for description to set.
           * @return This builder for chaining.
           */
          public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            description_ = value;
            bitField0_ |= 0x00000004;
            onChanged();
            return this;
          }

          private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_;
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
              imageBuilder_;
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           *
           * @return Whether the image field is set.
           */
          public boolean hasImage() {
            return ((bitField0_ & 0x00000008) != 0);
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           *
           * @return The image.
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
            if (imageBuilder_ == null) {
              return image_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
                  : image_;
            } else {
              return imageBuilder_.getMessage();
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
            if (imageBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              image_ = value;
            } else {
              imageBuilder_.setMessage(value);
            }
            bitField0_ |= 0x00000008;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder setImage(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) {
            if (imageBuilder_ == null) {
              image_ = builderForValue.build();
            } else {
              imageBuilder_.setMessage(builderForValue.build());
            }
            bitField0_ |= 0x00000008;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder mergeImage(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
            if (imageBuilder_ == null) {
              if (((bitField0_ & 0x00000008) != 0)
                  && image_ != null
                  && image_
                      != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
                          .getDefaultInstance()) {
                getImageBuilder().mergeFrom(value);
              } else {
                image_ = value;
              }
            } else {
              imageBuilder_.mergeFrom(value);
            }
            bitField0_ |= 0x00000008;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder clearImage() {
            bitField0_ = (bitField0_ & ~0x00000008);
            image_ = null;
            if (imageBuilder_ != null) {
              imageBuilder_.dispose();
              imageBuilder_ = null;
            }
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder
              getImageBuilder() {
            bitField0_ |= 0x00000008;
            onChanged();
            return getImageFieldBuilder().getBuilder();
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
              getImageOrBuilder() {
            if (imageBuilder_ != null) {
              return imageBuilder_.getMessageOrBuilder();
            } else {
              return image_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
                  : image_;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
              getImageFieldBuilder() {
            if (imageBuilder_ == null) {
              imageBuilder_ =
                  new com.google.protobuf.SingleFieldBuilderV3<
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>(
                      getImage(), getParentForChildren(), isClean());
              image_ = null;
            }
            return imageBuilder_;
          }

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

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

          // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item)
        }

        // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item)
        private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item
            DEFAULT_INSTANCE;

        static {
          DEFAULT_INSTANCE =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item();
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item
            getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

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

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item
            getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }
      }

      public static final int TITLE_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object title_ = "";
      /**
       *
       *
       * <pre>
       * Optional. The overall title of the list.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      @java.lang.Override
      public java.lang.String getTitle() {
        java.lang.Object ref = title_;
        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();
          title_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. The overall title of the list.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTitleBytes() {
        java.lang.Object ref = title_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          title_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int ITEMS_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item>
          items_;
      /**
       *
       *
       * <pre>
       * Required. List items.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item>
          getItemsList() {
        return items_;
      }
      /**
       *
       *
       * <pre>
       * Required. List items.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.ItemOrBuilder>
          getItemsOrBuilderList() {
        return items_;
      }
      /**
       *
       *
       * <pre>
       * Required. List items.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
       * </code>
       */
      @java.lang.Override
      public int getItemsCount() {
        return items_.size();
      }
      /**
       *
       *
       * <pre>
       * Required. List items.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item getItems(
          int index) {
        return items_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Required. List items.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.ItemOrBuilder
          getItemsOrBuilder(int index) {
        return items_.get(index);
      }

      public static final int SUBTITLE_FIELD_NUMBER = 3;

      @SuppressWarnings("serial")
      private volatile java.lang.Object subtitle_ = "";
      /**
       *
       *
       * <pre>
       * Optional. Subtitle of the list.
       * </pre>
       *
       * <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The subtitle.
       */
      @java.lang.Override
      public java.lang.String getSubtitle() {
        java.lang.Object ref = subtitle_;
        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();
          subtitle_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Subtitle of the list.
       * </pre>
       *
       * <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The bytes for subtitle.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getSubtitleBytes() {
        java.lang.Object ref = subtitle_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          subtitle_ = 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(title_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
        }
        for (int i = 0; i < items_.size(); i++) {
          output.writeMessage(2, items_.get(i));
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subtitle_);
        }
        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(title_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
        }
        for (int i = 0; i < items_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.get(i));
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subtitle_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) obj;

        if (!getTitle().equals(other.getTitle())) return false;
        if (!getItemsList().equals(other.getItemsList())) return false;
        if (!getSubtitle().equals(other.getSubtitle())) 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) + TITLE_FIELD_NUMBER;
        hash = (53 * hash) + getTitle().hashCode();
        if (getItemsCount() > 0) {
          hash = (37 * hash) + ITEMS_FIELD_NUMBER;
          hash = (53 * hash) + getItemsList().hashCode();
        }
        hash = (37 * hash) + SUBTITLE_FIELD_NUMBER;
        hash = (53 * hash) + getSubtitle().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect 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>
       * The card for presenting a list of options to select from.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ListSelect_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ListSelect_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          title_ = "";
          if (itemsBuilder_ == null) {
            items_ = java.util.Collections.emptyList();
          } else {
            items_ = null;
            itemsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000002);
          subtitle_ = "";
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ListSelect_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect result) {
          if (itemsBuilder_ == null) {
            if (((bitField0_ & 0x00000002) != 0)) {
              items_ = java.util.Collections.unmodifiableList(items_);
              bitField0_ = (bitField0_ & ~0x00000002);
            }
            result.items_ = items_;
          } else {
            result.items_ = itemsBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.title_ = title_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.subtitle_ = subtitle_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) {
            return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance())
            return this;
          if (!other.getTitle().isEmpty()) {
            title_ = other.title_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (itemsBuilder_ == null) {
            if (!other.items_.isEmpty()) {
              if (items_.isEmpty()) {
                items_ = other.items_;
                bitField0_ = (bitField0_ & ~0x00000002);
              } else {
                ensureItemsIsMutable();
                items_.addAll(other.items_);
              }
              onChanged();
            }
          } else {
            if (!other.items_.isEmpty()) {
              if (itemsBuilder_.isEmpty()) {
                itemsBuilder_.dispose();
                itemsBuilder_ = null;
                items_ = other.items_;
                bitField0_ = (bitField0_ & ~0x00000002);
                itemsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getItemsFieldBuilder()
                        : null;
              } else {
                itemsBuilder_.addAllMessages(other.items_);
              }
            }
          }
          if (!other.getSubtitle().isEmpty()) {
            subtitle_ = other.subtitle_;
            bitField0_ |= 0x00000004;
            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:
                  {
                    title_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item
                                .parser(),
                            extensionRegistry);
                    if (itemsBuilder_ == null) {
                      ensureItemsIsMutable();
                      items_.add(m);
                    } else {
                      itemsBuilder_.addMessage(m);
                    }
                    break;
                  } // case 18
                case 26:
                  {
                    subtitle_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000004;
                    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 bitField0_;

        private java.lang.Object title_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The overall title of the list.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The title.
         */
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            title_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The overall title of the list.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The bytes for title.
         */
        public com.google.protobuf.ByteString getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The overall title of the list.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The title to set.
         * @return This builder for chaining.
         */
        public Builder setTitle(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The overall title of the list.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearTitle() {
          title_ = getDefaultInstance().getTitle();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. The overall title of the list.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The bytes for title to set.
         * @return This builder for chaining.
         */
        public Builder setTitleBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item>
            items_ = java.util.Collections.emptyList();

        private void ensureItemsIsMutable() {
          if (!((bitField0_ & 0x00000002) != 0)) {
            items_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item>(items_);
            bitField0_ |= 0x00000002;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.ItemOrBuilder>
            itemsBuilder_;

        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item>
            getItemsList() {
          if (itemsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(items_);
          } else {
            return itemsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public int getItemsCount() {
          if (itemsBuilder_ == null) {
            return items_.size();
          } else {
            return itemsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item getItems(
            int index) {
          if (itemsBuilder_ == null) {
            return items_.get(index);
          } else {
            return itemsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public Builder setItems(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.set(index, value);
            onChanged();
          } else {
            itemsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public Builder setItems(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder
                builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.set(index, builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public Builder addItems(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.add(value);
            onChanged();
          } else {
            itemsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public Builder addItems(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.add(index, value);
            onChanged();
          } else {
            itemsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public Builder addItems(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder
                builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.add(builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public Builder addItems(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder
                builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.add(index, builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public Builder addAllItems(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item>
                values) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
            onChanged();
          } else {
            itemsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public Builder clearItems() {
          if (itemsBuilder_ == null) {
            items_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
          } else {
            itemsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public Builder removeItems(int index) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.remove(index);
            onChanged();
          } else {
            itemsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder
            getItemsBuilder(int index) {
          return getItemsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.ItemOrBuilder
            getItemsOrBuilder(int index) {
          if (itemsBuilder_ == null) {
            return items_.get(index);
          } else {
            return itemsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public java.util.List<
                ? extends
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.ItemOrBuilder>
            getItemsOrBuilderList() {
          if (itemsBuilder_ != null) {
            return itemsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(items_);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder
            addItemsBuilder() {
          return getItemsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder
            addItemsBuilder(int index) {
          return getItemsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. List items.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item items = 2;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder>
            getItemsBuilderList() {
          return getItemsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.ItemOrBuilder>
            getItemsFieldBuilder() {
          if (itemsBuilder_ == null) {
            itemsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.ItemOrBuilder>(
                    items_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
            items_ = null;
          }
          return itemsBuilder_;
        }

        private java.lang.Object subtitle_ = "";
        /**
         *
         *
         * <pre>
         * Optional. Subtitle of the list.
         * </pre>
         *
         * <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @return The subtitle.
         */
        public java.lang.String getSubtitle() {
          java.lang.Object ref = subtitle_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            subtitle_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Subtitle of the list.
         * </pre>
         *
         * <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @return The bytes for subtitle.
         */
        public com.google.protobuf.ByteString getSubtitleBytes() {
          java.lang.Object ref = subtitle_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            subtitle_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Subtitle of the list.
         * </pre>
         *
         * <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @param value The subtitle to set.
         * @return This builder for chaining.
         */
        public Builder setSubtitle(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          subtitle_ = value;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Subtitle of the list.
         * </pre>
         *
         * <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearSubtitle() {
          subtitle_ = getDefaultInstance().getSubtitle();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Subtitle of the list.
         * </pre>
         *
         * <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
         *
         * @param value The bytes for subtitle to set.
         * @return This builder for chaining.
         */
        public Builder setSubtitleBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          subtitle_ = 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.cloud.dialogflow.v2beta1.Intent.Message.ListSelect)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface CarouselSelectOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. Carousel items.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item>
          getItemsList();
      /**
       *
       *
       * <pre>
       * Required. Carousel items.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item getItems(int index);
      /**
       *
       *
       * <pre>
       * Required. Carousel items.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
       * </code>
       */
      int getItemsCount();
      /**
       *
       *
       * <pre>
       * Required. Carousel items.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
       * </code>
       */
      java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.ItemOrBuilder>
          getItemsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Required. Carousel items.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.ItemOrBuilder
          getItemsOrBuilder(int index);
    }
    /**
     *
     *
     * <pre>
     * The card for presenting a carousel of options to select from.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect}
     */
    public static final class CarouselSelect extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect)
        CarouselSelectOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use CarouselSelect.newBuilder() to construct.
      private CarouselSelect(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private CarouselSelect() {
        items_ = java.util.Collections.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_CarouselSelect_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_CarouselSelect_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder.class);
      }

      public interface ItemOrBuilder
          extends
          // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item)
          com.google.protobuf.MessageOrBuilder {

        /**
         *
         *
         * <pre>
         * Required. Additional info about the option item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         *
         * @return Whether the info field is set.
         */
        boolean hasInfo();
        /**
         *
         *
         * <pre>
         * Required. Additional info about the option item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         *
         * @return The info.
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo getInfo();
        /**
         *
         *
         * <pre>
         * Required. Additional info about the option item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder
            getInfoOrBuilder();

        /**
         *
         *
         * <pre>
         * Required. Title of the carousel item.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The title.
         */
        java.lang.String getTitle();
        /**
         *
         *
         * <pre>
         * Required. Title of the carousel item.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The bytes for title.
         */
        com.google.protobuf.ByteString getTitleBytes();

        /**
         *
         *
         * <pre>
         * Optional. The body text of the card.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The description.
         */
        java.lang.String getDescription();
        /**
         *
         *
         * <pre>
         * Optional. The body text of the card.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The bytes for description.
         */
        com.google.protobuf.ByteString getDescriptionBytes();

        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return Whether the image field is set.
         */
        boolean hasImage();
        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return The image.
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage();
        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder();
      }
      /**
       *
       *
       * <pre>
       * An item in the carousel.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item}
       */
      public static final class Item extends com.google.protobuf.GeneratedMessageV3
          implements
          // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item)
          ItemOrBuilder {
        private static final long serialVersionUID = 0L;
        // Use Item.newBuilder() to construct.
        private Item(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
          super(builder);
        }

        private Item() {
          title_ = "";
          description_ = "";
        }

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

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_CarouselSelect_Item_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_CarouselSelect_Item_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder
                      .class);
        }

        public static final int INFO_FIELD_NUMBER = 1;
        private com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info_;
        /**
         *
         *
         * <pre>
         * Required. Additional info about the option item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         *
         * @return Whether the info field is set.
         */
        @java.lang.Override
        public boolean hasInfo() {
          return info_ != null;
        }
        /**
         *
         *
         * <pre>
         * Required. Additional info about the option item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         *
         * @return The info.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo getInfo() {
          return info_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
                  .getDefaultInstance()
              : info_;
        }
        /**
         *
         *
         * <pre>
         * Required. Additional info about the option item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder
            getInfoOrBuilder() {
          return info_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
                  .getDefaultInstance()
              : info_;
        }

        public static final int TITLE_FIELD_NUMBER = 2;

        @SuppressWarnings("serial")
        private volatile java.lang.Object title_ = "";
        /**
         *
         *
         * <pre>
         * Required. Title of the carousel item.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The title.
         */
        @java.lang.Override
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          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();
            title_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Title of the carousel item.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The bytes for title.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int DESCRIPTION_FIELD_NUMBER = 3;

        @SuppressWarnings("serial")
        private volatile java.lang.Object description_ = "";
        /**
         *
         *
         * <pre>
         * Optional. The body text of the card.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The description.
         */
        @java.lang.Override
        public java.lang.String getDescription() {
          java.lang.Object ref = description_;
          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();
            description_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. The body text of the card.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The bytes for description.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getDescriptionBytes() {
          java.lang.Object ref = description_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            description_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int IMAGE_FIELD_NUMBER = 4;
        private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_;
        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return Whether the image field is set.
         */
        @java.lang.Override
        public boolean hasImage() {
          return image_ != null;
        }
        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return The image.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
          return image_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
              : image_;
        }
        /**
         *
         *
         * <pre>
         * Optional. The image to display.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
            getImageOrBuilder() {
          return image_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
              : image_;
        }

        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 (info_ != null) {
            output.writeMessage(1, getInfo());
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
          }
          if (image_ != null) {
            output.writeMessage(4, getImage());
          }
          getUnknownFields().writeTo(output);
        }

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

          size = 0;
          if (info_ != null) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfo());
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
          }
          if (image_ != null) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getImage());
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj
              instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item)) {
            return super.equals(obj);
          }
          com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item other =
              (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item) obj;

          if (hasInfo() != other.hasInfo()) return false;
          if (hasInfo()) {
            if (!getInfo().equals(other.getInfo())) return false;
          }
          if (!getTitle().equals(other.getTitle())) return false;
          if (!getDescription().equals(other.getDescription())) return false;
          if (hasImage() != other.hasImage()) return false;
          if (hasImage()) {
            if (!getImage().equals(other.getImage())) 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 (hasInfo()) {
            hash = (37 * hash) + INFO_FIELD_NUMBER;
            hash = (53 * hash) + getInfo().hashCode();
          }
          hash = (37 * hash) + TITLE_FIELD_NUMBER;
          hash = (53 * hash) + getTitle().hashCode();
          hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
          hash = (53 * hash) + getDescription().hashCode();
          if (hasImage()) {
            hash = (37 * hash) + IMAGE_FIELD_NUMBER;
            hash = (53 * hash) + getImage().hashCode();
          }
          hash = (29 * hash) + getUnknownFields().hashCode();
          memoizedHashCode = hash;
          return hash;
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseFrom(java.nio.ByteBuffer data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseFrom(
                java.nio.ByteBuffer data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseFrom(com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            parseFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

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

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

        public static Builder newBuilder(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item 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>
         * An item in the carousel.
         * </pre>
         *
         * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item}
         */
        public static final class Builder
            extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
            implements
            // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item)
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.ItemOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_CarouselSelect_Item_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_CarouselSelect_Item_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder
                        .class);
          }

          // Construct using
          // com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.newBuilder()
          private Builder() {}

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

          @java.lang.Override
          public Builder clear() {
            super.clear();
            bitField0_ = 0;
            info_ = null;
            if (infoBuilder_ != null) {
              infoBuilder_.dispose();
              infoBuilder_ = null;
            }
            title_ = "";
            description_ = "";
            image_ = null;
            if (imageBuilder_ != null) {
              imageBuilder_.dispose();
              imageBuilder_ = null;
            }
            return this;
          }

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_CarouselSelect_Item_descriptor;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
              getDefaultInstanceForType() {
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
                .getDefaultInstance();
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item build() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item result =
                buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
              buildPartial() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item result =
                new com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item(this);
            if (bitField0_ != 0) {
              buildPartial0(result);
            }
            onBuilt();
            return result;
          }

          private void buildPartial0(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.info_ = infoBuilder_ == null ? info_ : infoBuilder_.build();
            }
            if (((from_bitField0_ & 0x00000002) != 0)) {
              result.title_ = title_;
            }
            if (((from_bitField0_ & 0x00000004) != 0)) {
              result.description_ = description_;
            }
            if (((from_bitField0_ & 0x00000008) != 0)) {
              result.image_ = imageBuilder_ == null ? image_ : imageBuilder_.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.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item) {
              return mergeFrom(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item) other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }

          public Builder mergeFrom(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item other) {
            if (other
                == com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
                    .getDefaultInstance()) return this;
            if (other.hasInfo()) {
              mergeInfo(other.getInfo());
            }
            if (!other.getTitle().isEmpty()) {
              title_ = other.title_;
              bitField0_ |= 0x00000002;
              onChanged();
            }
            if (!other.getDescription().isEmpty()) {
              description_ = other.description_;
              bitField0_ |= 0x00000004;
              onChanged();
            }
            if (other.hasImage()) {
              mergeImage(other.getImage());
            }
            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:
                    {
                      input.readMessage(getInfoFieldBuilder().getBuilder(), extensionRegistry);
                      bitField0_ |= 0x00000001;
                      break;
                    } // case 10
                  case 18:
                    {
                      title_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000002;
                      break;
                    } // case 18
                  case 26:
                    {
                      description_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000004;
                      break;
                    } // case 26
                  case 34:
                    {
                      input.readMessage(getImageFieldBuilder().getBuilder(), extensionRegistry);
                      bitField0_ |= 0x00000008;
                      break;
                    } // case 34
                  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.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info_;
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder>
              infoBuilder_;
          /**
           *
           *
           * <pre>
           * Required. Additional info about the option item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           *
           * @return Whether the info field is set.
           */
          public boolean hasInfo() {
            return ((bitField0_ & 0x00000001) != 0);
          }
          /**
           *
           *
           * <pre>
           * Required. Additional info about the option item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           *
           * @return The info.
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo getInfo() {
            if (infoBuilder_ == null) {
              return info_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
                      .getDefaultInstance()
                  : info_;
            } else {
              return infoBuilder_.getMessage();
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Additional info about the option item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public Builder setInfo(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo value) {
            if (infoBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              info_ = value;
            } else {
              infoBuilder_.setMessage(value);
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Additional info about the option item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public Builder setInfo(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder
                  builderForValue) {
            if (infoBuilder_ == null) {
              info_ = builderForValue.build();
            } else {
              infoBuilder_.setMessage(builderForValue.build());
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Additional info about the option item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public Builder mergeInfo(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo value) {
            if (infoBuilder_ == null) {
              if (((bitField0_ & 0x00000001) != 0)
                  && info_ != null
                  && info_
                      != com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
                          .getDefaultInstance()) {
                getInfoBuilder().mergeFrom(value);
              } else {
                info_ = value;
              }
            } else {
              infoBuilder_.mergeFrom(value);
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Additional info about the option item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public Builder clearInfo() {
            bitField0_ = (bitField0_ & ~0x00000001);
            info_ = null;
            if (infoBuilder_ != null) {
              infoBuilder_.dispose();
              infoBuilder_ = null;
            }
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Additional info about the option item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder
              getInfoBuilder() {
            bitField0_ |= 0x00000001;
            onChanged();
            return getInfoFieldBuilder().getBuilder();
          }
          /**
           *
           *
           * <pre>
           * Required. Additional info about the option item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder
              getInfoOrBuilder() {
            if (infoBuilder_ != null) {
              return infoBuilder_.getMessageOrBuilder();
            } else {
              return info_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
                      .getDefaultInstance()
                  : info_;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Additional info about the option item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;</code>
           */
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder>
              getInfoFieldBuilder() {
            if (infoBuilder_ == null) {
              infoBuilder_ =
                  new com.google.protobuf.SingleFieldBuilderV3<
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder>(
                      getInfo(), getParentForChildren(), isClean());
              info_ = null;
            }
            return infoBuilder_;
          }

          private java.lang.Object title_ = "";
          /**
           *
           *
           * <pre>
           * Required. Title of the carousel item.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @return The title.
           */
          public java.lang.String getTitle() {
            java.lang.Object ref = title_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              title_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Title of the carousel item.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @return The bytes for title.
           */
          public com.google.protobuf.ByteString getTitleBytes() {
            java.lang.Object ref = title_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              title_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Title of the carousel item.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @param value The title to set.
           * @return This builder for chaining.
           */
          public Builder setTitle(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            title_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Title of the carousel item.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearTitle() {
            title_ = getDefaultInstance().getTitle();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Title of the carousel item.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @param value The bytes for title to set.
           * @return This builder for chaining.
           */
          public Builder setTitleBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            title_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }

          private java.lang.Object description_ = "";
          /**
           *
           *
           * <pre>
           * Optional. The body text of the card.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @return The description.
           */
          public java.lang.String getDescription() {
            java.lang.Object ref = description_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              description_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The body text of the card.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @return The bytes for description.
           */
          public com.google.protobuf.ByteString getDescriptionBytes() {
            java.lang.Object ref = description_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              description_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The body text of the card.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @param value The description to set.
           * @return This builder for chaining.
           */
          public Builder setDescription(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            description_ = value;
            bitField0_ |= 0x00000004;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The body text of the card.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearDescription() {
            description_ = getDefaultInstance().getDescription();
            bitField0_ = (bitField0_ & ~0x00000004);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The body text of the card.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @param value The bytes for description to set.
           * @return This builder for chaining.
           */
          public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            description_ = value;
            bitField0_ |= 0x00000004;
            onChanged();
            return this;
          }

          private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_;
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
              imageBuilder_;
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           *
           * @return Whether the image field is set.
           */
          public boolean hasImage() {
            return ((bitField0_ & 0x00000008) != 0);
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           *
           * @return The image.
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
            if (imageBuilder_ == null) {
              return image_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
                  : image_;
            } else {
              return imageBuilder_.getMessage();
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
            if (imageBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              image_ = value;
            } else {
              imageBuilder_.setMessage(value);
            }
            bitField0_ |= 0x00000008;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder setImage(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) {
            if (imageBuilder_ == null) {
              image_ = builderForValue.build();
            } else {
              imageBuilder_.setMessage(builderForValue.build());
            }
            bitField0_ |= 0x00000008;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder mergeImage(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
            if (imageBuilder_ == null) {
              if (((bitField0_ & 0x00000008) != 0)
                  && image_ != null
                  && image_
                      != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
                          .getDefaultInstance()) {
                getImageBuilder().mergeFrom(value);
              } else {
                image_ = value;
              }
            } else {
              imageBuilder_.mergeFrom(value);
            }
            bitField0_ |= 0x00000008;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder clearImage() {
            bitField0_ = (bitField0_ & ~0x00000008);
            image_ = null;
            if (imageBuilder_ != null) {
              imageBuilder_.dispose();
              imageBuilder_ = null;
            }
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder
              getImageBuilder() {
            bitField0_ |= 0x00000008;
            onChanged();
            return getImageFieldBuilder().getBuilder();
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
              getImageOrBuilder() {
            if (imageBuilder_ != null) {
              return imageBuilder_.getMessageOrBuilder();
            } else {
              return image_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
                  : image_;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. The image to display.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
              getImageFieldBuilder() {
            if (imageBuilder_ == null) {
              imageBuilder_ =
                  new com.google.protobuf.SingleFieldBuilderV3<
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>(
                      getImage(), getParentForChildren(), isClean());
              image_ = null;
            }
            return imageBuilder_;
          }

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

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

          // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item)
        }

        // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item)
        private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            DEFAULT_INSTANCE;

        static {
          DEFAULT_INSTANCE =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item();
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

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

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
            getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }
      }

      public static final int ITEMS_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item>
          items_;
      /**
       *
       *
       * <pre>
       * Required. Carousel items.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item>
          getItemsList() {
        return items_;
      }
      /**
       *
       *
       * <pre>
       * Required. Carousel items.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.ItemOrBuilder>
          getItemsOrBuilderList() {
        return items_;
      }
      /**
       *
       *
       * <pre>
       * Required. Carousel items.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
       * </code>
       */
      @java.lang.Override
      public int getItemsCount() {
        return items_.size();
      }
      /**
       *
       *
       * <pre>
       * Required. Carousel items.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item getItems(
          int index) {
        return items_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Required. Carousel items.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.ItemOrBuilder
          getItemsOrBuilder(int index) {
        return items_.get(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 < items_.size(); i++) {
          output.writeMessage(1, items_.get(i));
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        for (int i = 0; i < items_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i));
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) obj;

        if (!getItemsList().equals(other.getItemsList())) 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 (getItemsCount() > 0) {
          hash = (37 * hash) + ITEMS_FIELD_NUMBER;
          hash = (53 * hash) + getItemsList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect 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>
       * The card for presenting a carousel of options to select from.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_CarouselSelect_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_CarouselSelect_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          if (itemsBuilder_ == null) {
            items_ = java.util.Collections.emptyList();
          } else {
            items_ = null;
            itemsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_CarouselSelect_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect result) {
          if (itemsBuilder_ == null) {
            if (((bitField0_ & 0x00000001) != 0)) {
              items_ = java.util.Collections.unmodifiableList(items_);
              bitField0_ = (bitField0_ & ~0x00000001);
            }
            result.items_ = items_;
          } else {
            result.items_ = itemsBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect result) {
          int from_bitField0_ = bitField0_;
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
                  .getDefaultInstance()) return this;
          if (itemsBuilder_ == null) {
            if (!other.items_.isEmpty()) {
              if (items_.isEmpty()) {
                items_ = other.items_;
                bitField0_ = (bitField0_ & ~0x00000001);
              } else {
                ensureItemsIsMutable();
                items_.addAll(other.items_);
              }
              onChanged();
            }
          } else {
            if (!other.items_.isEmpty()) {
              if (itemsBuilder_.isEmpty()) {
                itemsBuilder_.dispose();
                itemsBuilder_ = null;
                items_ = other.items_;
                bitField0_ = (bitField0_ & ~0x00000001);
                itemsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getItemsFieldBuilder()
                        : null;
              } else {
                itemsBuilder_.addAllMessages(other.items_);
              }
            }
          }
          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:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
                                .parser(),
                            extensionRegistry);
                    if (itemsBuilder_ == null) {
                      ensureItemsIsMutable();
                      items_.add(m);
                    } else {
                      itemsBuilder_.addMessage(m);
                    }
                    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 java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item>
            items_ = java.util.Collections.emptyList();

        private void ensureItemsIsMutable() {
          if (!((bitField0_ & 0x00000001) != 0)) {
            items_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item>(items_);
            bitField0_ |= 0x00000001;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.ItemOrBuilder>
            itemsBuilder_;

        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item>
            getItemsList() {
          if (itemsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(items_);
          } else {
            return itemsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public int getItemsCount() {
          if (itemsBuilder_ == null) {
            return items_.size();
          } else {
            return itemsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item getItems(
            int index) {
          if (itemsBuilder_ == null) {
            return items_.get(index);
          } else {
            return itemsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public Builder setItems(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.set(index, value);
            onChanged();
          } else {
            itemsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public Builder setItems(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder
                builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.set(index, builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public Builder addItems(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.add(value);
            onChanged();
          } else {
            itemsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public Builder addItems(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.add(index, value);
            onChanged();
          } else {
            itemsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public Builder addItems(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder
                builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.add(builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public Builder addItems(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder
                builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.add(index, builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public Builder addAllItems(
            java.lang.Iterable<
                    ? extends
                        com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item>
                values) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
            onChanged();
          } else {
            itemsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public Builder clearItems() {
          if (itemsBuilder_ == null) {
            items_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
          } else {
            itemsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public Builder removeItems(int index) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.remove(index);
            onChanged();
          } else {
            itemsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder
            getItemsBuilder(int index) {
          return getItemsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.ItemOrBuilder
            getItemsOrBuilder(int index) {
          if (itemsBuilder_ == null) {
            return items_.get(index);
          } else {
            return itemsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public java.util.List<
                ? extends
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.ItemOrBuilder>
            getItemsOrBuilderList() {
          if (itemsBuilder_ != null) {
            return itemsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(items_);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder
            addItemsBuilder() {
          return getItemsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder
            addItemsBuilder(int index) {
          return getItemsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. Carousel items.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder>
            getItemsBuilderList() {
          return getItemsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.ItemOrBuilder>
            getItemsFieldBuilder() {
          if (itemsBuilder_ == null) {
            itemsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
                        .ItemOrBuilder>(
                    items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
            items_ = null;
          }
          return itemsBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface SelectItemInfoOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. A unique key that will be sent back to the agent if this
       * response is given.
       * </pre>
       *
       * <code>string key = 1;</code>
       *
       * @return The key.
       */
      java.lang.String getKey();
      /**
       *
       *
       * <pre>
       * Required. A unique key that will be sent back to the agent if this
       * response is given.
       * </pre>
       *
       * <code>string key = 1;</code>
       *
       * @return The bytes for key.
       */
      com.google.protobuf.ByteString getKeyBytes();

      /**
       *
       *
       * <pre>
       * Optional. A list of synonyms that can also be used to trigger this
       * item in dialog.
       * </pre>
       *
       * <code>repeated string synonyms = 2;</code>
       *
       * @return A list containing the synonyms.
       */
      java.util.List<java.lang.String> getSynonymsList();
      /**
       *
       *
       * <pre>
       * Optional. A list of synonyms that can also be used to trigger this
       * item in dialog.
       * </pre>
       *
       * <code>repeated string synonyms = 2;</code>
       *
       * @return The count of synonyms.
       */
      int getSynonymsCount();
      /**
       *
       *
       * <pre>
       * Optional. A list of synonyms that can also be used to trigger this
       * item in dialog.
       * </pre>
       *
       * <code>repeated string synonyms = 2;</code>
       *
       * @param index The index of the element to return.
       * @return The synonyms at the given index.
       */
      java.lang.String getSynonyms(int index);
      /**
       *
       *
       * <pre>
       * Optional. A list of synonyms that can also be used to trigger this
       * item in dialog.
       * </pre>
       *
       * <code>repeated string synonyms = 2;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the synonyms at the given index.
       */
      com.google.protobuf.ByteString getSynonymsBytes(int index);
    }
    /**
     *
     *
     * <pre>
     * Additional info about the select item for when it is triggered in a
     * dialog.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo}
     */
    public static final class SelectItemInfo extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo)
        SelectItemInfoOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use SelectItemInfo.newBuilder() to construct.
      private SelectItemInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private SelectItemInfo() {
        key_ = "";
        synonyms_ = com.google.protobuf.LazyStringArrayList.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SelectItemInfo_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SelectItemInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder.class);
      }

      public static final int KEY_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object key_ = "";
      /**
       *
       *
       * <pre>
       * Required. A unique key that will be sent back to the agent if this
       * response is given.
       * </pre>
       *
       * <code>string key = 1;</code>
       *
       * @return The key.
       */
      @java.lang.Override
      public java.lang.String getKey() {
        java.lang.Object ref = key_;
        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();
          key_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. A unique key that will be sent back to the agent if this
       * response is given.
       * </pre>
       *
       * <code>string key = 1;</code>
       *
       * @return The bytes for key.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getKeyBytes() {
        java.lang.Object ref = key_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          key_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int SYNONYMS_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private com.google.protobuf.LazyStringArrayList synonyms_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      /**
       *
       *
       * <pre>
       * Optional. A list of synonyms that can also be used to trigger this
       * item in dialog.
       * </pre>
       *
       * <code>repeated string synonyms = 2;</code>
       *
       * @return A list containing the synonyms.
       */
      public com.google.protobuf.ProtocolStringList getSynonymsList() {
        return synonyms_;
      }
      /**
       *
       *
       * <pre>
       * Optional. A list of synonyms that can also be used to trigger this
       * item in dialog.
       * </pre>
       *
       * <code>repeated string synonyms = 2;</code>
       *
       * @return The count of synonyms.
       */
      public int getSynonymsCount() {
        return synonyms_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. A list of synonyms that can also be used to trigger this
       * item in dialog.
       * </pre>
       *
       * <code>repeated string synonyms = 2;</code>
       *
       * @param index The index of the element to return.
       * @return The synonyms at the given index.
       */
      public java.lang.String getSynonyms(int index) {
        return synonyms_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. A list of synonyms that can also be used to trigger this
       * item in dialog.
       * </pre>
       *
       * <code>repeated string synonyms = 2;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the synonyms at the given index.
       */
      public com.google.protobuf.ByteString getSynonymsBytes(int index) {
        return synonyms_.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 {
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
        }
        for (int i = 0; i < synonyms_.size(); i++) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, synonyms_.getRaw(i));
        }
        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(key_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
        }
        {
          int dataSize = 0;
          for (int i = 0; i < synonyms_.size(); i++) {
            dataSize += computeStringSizeNoTag(synonyms_.getRaw(i));
          }
          size += dataSize;
          size += 1 * getSynonymsList().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.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo) obj;

        if (!getKey().equals(other.getKey())) return false;
        if (!getSynonymsList().equals(other.getSynonymsList())) 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) + KEY_FIELD_NUMBER;
        hash = (53 * hash) + getKey().hashCode();
        if (getSynonymsCount() > 0) {
          hash = (37 * hash) + SYNONYMS_FIELD_NUMBER;
          hash = (53 * hash) + getSynonymsList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo 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>
       * Additional info about the select item for when it is triggered in a
       * dialog.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfoOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SelectItemInfo_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SelectItemInfo_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SelectItemInfo_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.key_ = key_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            synonyms_.makeImmutable();
            result.synonyms_ = synonyms_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
                  .getDefaultInstance()) return this;
          if (!other.getKey().isEmpty()) {
            key_ = other.key_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.synonyms_.isEmpty()) {
            if (synonyms_.isEmpty()) {
              synonyms_ = other.synonyms_;
              bitField0_ |= 0x00000002;
            } else {
              ensureSynonymsIsMutable();
              synonyms_.addAll(other.synonyms_);
            }
            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:
                  {
                    key_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    java.lang.String s = input.readStringRequireUtf8();
                    ensureSynonymsIsMutable();
                    synonyms_.add(s);
                    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 java.lang.Object key_ = "";
        /**
         *
         *
         * <pre>
         * Required. A unique key that will be sent back to the agent if this
         * response is given.
         * </pre>
         *
         * <code>string key = 1;</code>
         *
         * @return The key.
         */
        public java.lang.String getKey() {
          java.lang.Object ref = key_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            key_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. A unique key that will be sent back to the agent if this
         * response is given.
         * </pre>
         *
         * <code>string key = 1;</code>
         *
         * @return The bytes for key.
         */
        public com.google.protobuf.ByteString getKeyBytes() {
          java.lang.Object ref = key_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            key_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. A unique key that will be sent back to the agent if this
         * response is given.
         * </pre>
         *
         * <code>string key = 1;</code>
         *
         * @param value The key to set.
         * @return This builder for chaining.
         */
        public Builder setKey(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          key_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. A unique key that will be sent back to the agent if this
         * response is given.
         * </pre>
         *
         * <code>string key = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearKey() {
          key_ = getDefaultInstance().getKey();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. A unique key that will be sent back to the agent if this
         * response is given.
         * </pre>
         *
         * <code>string key = 1;</code>
         *
         * @param value The bytes for key to set.
         * @return This builder for chaining.
         */
        public Builder setKeyBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          key_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

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

        private void ensureSynonymsIsMutable() {
          if (!synonyms_.isModifiable()) {
            synonyms_ = new com.google.protobuf.LazyStringArrayList(synonyms_);
          }
          bitField0_ |= 0x00000002;
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of synonyms that can also be used to trigger this
         * item in dialog.
         * </pre>
         *
         * <code>repeated string synonyms = 2;</code>
         *
         * @return A list containing the synonyms.
         */
        public com.google.protobuf.ProtocolStringList getSynonymsList() {
          synonyms_.makeImmutable();
          return synonyms_;
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of synonyms that can also be used to trigger this
         * item in dialog.
         * </pre>
         *
         * <code>repeated string synonyms = 2;</code>
         *
         * @return The count of synonyms.
         */
        public int getSynonymsCount() {
          return synonyms_.size();
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of synonyms that can also be used to trigger this
         * item in dialog.
         * </pre>
         *
         * <code>repeated string synonyms = 2;</code>
         *
         * @param index The index of the element to return.
         * @return The synonyms at the given index.
         */
        public java.lang.String getSynonyms(int index) {
          return synonyms_.get(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of synonyms that can also be used to trigger this
         * item in dialog.
         * </pre>
         *
         * <code>repeated string synonyms = 2;</code>
         *
         * @param index The index of the value to return.
         * @return The bytes of the synonyms at the given index.
         */
        public com.google.protobuf.ByteString getSynonymsBytes(int index) {
          return synonyms_.getByteString(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of synonyms that can also be used to trigger this
         * item in dialog.
         * </pre>
         *
         * <code>repeated string synonyms = 2;</code>
         *
         * @param index The index to set the value at.
         * @param value The synonyms to set.
         * @return This builder for chaining.
         */
        public Builder setSynonyms(int index, java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSynonymsIsMutable();
          synonyms_.set(index, value);
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of synonyms that can also be used to trigger this
         * item in dialog.
         * </pre>
         *
         * <code>repeated string synonyms = 2;</code>
         *
         * @param value The synonyms to add.
         * @return This builder for chaining.
         */
        public Builder addSynonyms(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSynonymsIsMutable();
          synonyms_.add(value);
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of synonyms that can also be used to trigger this
         * item in dialog.
         * </pre>
         *
         * <code>repeated string synonyms = 2;</code>
         *
         * @param values The synonyms to add.
         * @return This builder for chaining.
         */
        public Builder addAllSynonyms(java.lang.Iterable<java.lang.String> values) {
          ensureSynonymsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, synonyms_);
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of synonyms that can also be used to trigger this
         * item in dialog.
         * </pre>
         *
         * <code>repeated string synonyms = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearSynonyms() {
          synonyms_ = com.google.protobuf.LazyStringArrayList.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          ;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. A list of synonyms that can also be used to trigger this
         * item in dialog.
         * </pre>
         *
         * <code>repeated string synonyms = 2;</code>
         *
         * @param value The bytes of the synonyms to add.
         * @return This builder for chaining.
         */
        public Builder addSynonymsBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          ensureSynonymsIsMutable();
          synonyms_.add(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.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface TelephonyPlayAudioOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. URI to a Google Cloud Storage object containing the audio to
       * play, e.g., "gs://bucket/object". The object must contain a single
       * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
       *
       * This object must be readable by the `service-&lt;Project
       * Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` service account
       * where &lt;Project Number&gt; is the number of the Telephony Gateway project
       * (usually the same as the Dialogflow agent project). If the Google Cloud
       * Storage bucket is in the Telephony Gateway project, this permission is
       * added by default when enabling the Dialogflow V2 API.
       *
       * For audio from other sources, consider using the
       * `TelephonySynthesizeSpeech` message with SSML.
       * </pre>
       *
       * <code>string audio_uri = 1;</code>
       *
       * @return The audioUri.
       */
      java.lang.String getAudioUri();
      /**
       *
       *
       * <pre>
       * Required. URI to a Google Cloud Storage object containing the audio to
       * play, e.g., "gs://bucket/object". The object must contain a single
       * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
       *
       * This object must be readable by the `service-&lt;Project
       * Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` service account
       * where &lt;Project Number&gt; is the number of the Telephony Gateway project
       * (usually the same as the Dialogflow agent project). If the Google Cloud
       * Storage bucket is in the Telephony Gateway project, this permission is
       * added by default when enabling the Dialogflow V2 API.
       *
       * For audio from other sources, consider using the
       * `TelephonySynthesizeSpeech` message with SSML.
       * </pre>
       *
       * <code>string audio_uri = 1;</code>
       *
       * @return The bytes for audioUri.
       */
      com.google.protobuf.ByteString getAudioUriBytes();
    }
    /**
     *
     *
     * <pre>
     * Plays audio from a file in Telephony Gateway.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio}
     */
    public static final class TelephonyPlayAudio extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio)
        TelephonyPlayAudioOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use TelephonyPlayAudio.newBuilder() to construct.
      private TelephonyPlayAudio(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private TelephonyPlayAudio() {
        audioUri_ = "";
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder
                    .class);
      }

      public static final int AUDIO_URI_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object audioUri_ = "";
      /**
       *
       *
       * <pre>
       * Required. URI to a Google Cloud Storage object containing the audio to
       * play, e.g., "gs://bucket/object". The object must contain a single
       * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
       *
       * This object must be readable by the `service-&lt;Project
       * Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` service account
       * where &lt;Project Number&gt; is the number of the Telephony Gateway project
       * (usually the same as the Dialogflow agent project). If the Google Cloud
       * Storage bucket is in the Telephony Gateway project, this permission is
       * added by default when enabling the Dialogflow V2 API.
       *
       * For audio from other sources, consider using the
       * `TelephonySynthesizeSpeech` message with SSML.
       * </pre>
       *
       * <code>string audio_uri = 1;</code>
       *
       * @return The audioUri.
       */
      @java.lang.Override
      public java.lang.String getAudioUri() {
        java.lang.Object ref = audioUri_;
        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();
          audioUri_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. URI to a Google Cloud Storage object containing the audio to
       * play, e.g., "gs://bucket/object". The object must contain a single
       * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
       *
       * This object must be readable by the `service-&lt;Project
       * Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` service account
       * where &lt;Project Number&gt; is the number of the Telephony Gateway project
       * (usually the same as the Dialogflow agent project). If the Google Cloud
       * Storage bucket is in the Telephony Gateway project, this permission is
       * added by default when enabling the Dialogflow V2 API.
       *
       * For audio from other sources, consider using the
       * `TelephonySynthesizeSpeech` message with SSML.
       * </pre>
       *
       * <code>string audio_uri = 1;</code>
       *
       * @return The bytes for audioUri.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getAudioUriBytes() {
        java.lang.Object ref = audioUri_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          audioUri_ = 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(audioUri_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audioUri_);
        }
        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(audioUri_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audioUri_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) obj;

        if (!getAudioUri().equals(other.getAudioUri())) 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) + AUDIO_URI_FIELD_NUMBER;
        hash = (53 * hash) + getAudioUri().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio 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>
       * Plays audio from a file in Telephony Gateway.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder
                      .class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
            buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.audioUri_ = audioUri_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other
              instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
                  .getDefaultInstance()) return this;
          if (!other.getAudioUri().isEmpty()) {
            audioUri_ = other.audioUri_;
            bitField0_ |= 0x00000001;
            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:
                  {
                    audioUri_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    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 java.lang.Object audioUri_ = "";
        /**
         *
         *
         * <pre>
         * Required. URI to a Google Cloud Storage object containing the audio to
         * play, e.g., "gs://bucket/object". The object must contain a single
         * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
         *
         * This object must be readable by the `service-&lt;Project
         * Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` service account
         * where &lt;Project Number&gt; is the number of the Telephony Gateway project
         * (usually the same as the Dialogflow agent project). If the Google Cloud
         * Storage bucket is in the Telephony Gateway project, this permission is
         * added by default when enabling the Dialogflow V2 API.
         *
         * For audio from other sources, consider using the
         * `TelephonySynthesizeSpeech` message with SSML.
         * </pre>
         *
         * <code>string audio_uri = 1;</code>
         *
         * @return The audioUri.
         */
        public java.lang.String getAudioUri() {
          java.lang.Object ref = audioUri_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            audioUri_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. URI to a Google Cloud Storage object containing the audio to
         * play, e.g., "gs://bucket/object". The object must contain a single
         * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
         *
         * This object must be readable by the `service-&lt;Project
         * Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` service account
         * where &lt;Project Number&gt; is the number of the Telephony Gateway project
         * (usually the same as the Dialogflow agent project). If the Google Cloud
         * Storage bucket is in the Telephony Gateway project, this permission is
         * added by default when enabling the Dialogflow V2 API.
         *
         * For audio from other sources, consider using the
         * `TelephonySynthesizeSpeech` message with SSML.
         * </pre>
         *
         * <code>string audio_uri = 1;</code>
         *
         * @return The bytes for audioUri.
         */
        public com.google.protobuf.ByteString getAudioUriBytes() {
          java.lang.Object ref = audioUri_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            audioUri_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. URI to a Google Cloud Storage object containing the audio to
         * play, e.g., "gs://bucket/object". The object must contain a single
         * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
         *
         * This object must be readable by the `service-&lt;Project
         * Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` service account
         * where &lt;Project Number&gt; is the number of the Telephony Gateway project
         * (usually the same as the Dialogflow agent project). If the Google Cloud
         * Storage bucket is in the Telephony Gateway project, this permission is
         * added by default when enabling the Dialogflow V2 API.
         *
         * For audio from other sources, consider using the
         * `TelephonySynthesizeSpeech` message with SSML.
         * </pre>
         *
         * <code>string audio_uri = 1;</code>
         *
         * @param value The audioUri to set.
         * @return This builder for chaining.
         */
        public Builder setAudioUri(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          audioUri_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. URI to a Google Cloud Storage object containing the audio to
         * play, e.g., "gs://bucket/object". The object must contain a single
         * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
         *
         * This object must be readable by the `service-&lt;Project
         * Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` service account
         * where &lt;Project Number&gt; is the number of the Telephony Gateway project
         * (usually the same as the Dialogflow agent project). If the Google Cloud
         * Storage bucket is in the Telephony Gateway project, this permission is
         * added by default when enabling the Dialogflow V2 API.
         *
         * For audio from other sources, consider using the
         * `TelephonySynthesizeSpeech` message with SSML.
         * </pre>
         *
         * <code>string audio_uri = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearAudioUri() {
          audioUri_ = getDefaultInstance().getAudioUri();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. URI to a Google Cloud Storage object containing the audio to
         * play, e.g., "gs://bucket/object". The object must contain a single
         * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
         *
         * This object must be readable by the `service-&lt;Project
         * Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` service account
         * where &lt;Project Number&gt; is the number of the Telephony Gateway project
         * (usually the same as the Dialogflow agent project). If the Google Cloud
         * Storage bucket is in the Telephony Gateway project, this permission is
         * added by default when enabling the Dialogflow V2 API.
         *
         * For audio from other sources, consider using the
         * `TelephonySynthesizeSpeech` message with SSML.
         * </pre>
         *
         * <code>string audio_uri = 1;</code>
         *
         * @param value The bytes for audioUri to set.
         * @return This builder for chaining.
         */
        public Builder setAudioUriBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          audioUri_ = 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.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface TelephonySynthesizeSpeechOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * The raw text to be synthesized.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return Whether the text field is set.
       */
      boolean hasText();
      /**
       *
       *
       * <pre>
       * The raw text to be synthesized.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      java.lang.String getText();
      /**
       *
       *
       * <pre>
       * The raw text to be synthesized.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      com.google.protobuf.ByteString getTextBytes();

      /**
       *
       *
       * <pre>
       * The SSML to be synthesized. For more information, see
       * [SSML](https://developers.google.com/actions/reference/ssml).
       * </pre>
       *
       * <code>string ssml = 2;</code>
       *
       * @return Whether the ssml field is set.
       */
      boolean hasSsml();
      /**
       *
       *
       * <pre>
       * The SSML to be synthesized. For more information, see
       * [SSML](https://developers.google.com/actions/reference/ssml).
       * </pre>
       *
       * <code>string ssml = 2;</code>
       *
       * @return The ssml.
       */
      java.lang.String getSsml();
      /**
       *
       *
       * <pre>
       * The SSML to be synthesized. For more information, see
       * [SSML](https://developers.google.com/actions/reference/ssml).
       * </pre>
       *
       * <code>string ssml = 2;</code>
       *
       * @return The bytes for ssml.
       */
      com.google.protobuf.ByteString getSsmlBytes();

      com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.SourceCase
          getSourceCase();
    }
    /**
     *
     *
     * <pre>
     * Synthesizes speech and plays back the synthesized audio to the caller in
     * Telephony Gateway.
     *
     * Telephony Gateway takes the synthesizer settings from
     * `DetectIntentResponse.output_audio_config` which can either be set
     * at request-level or can come from the agent-level synthesizer config.
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech}
     */
    public static final class TelephonySynthesizeSpeech
        extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
        TelephonySynthesizeSpeechOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use TelephonySynthesizeSpeech.newBuilder() to construct.
      private TelephonySynthesizeSpeech(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private TelephonySynthesizeSpeech() {}

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder
                    .class);
      }

      private int sourceCase_ = 0;

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

      public enum SourceCase
          implements
              com.google.protobuf.Internal.EnumLite,
              com.google.protobuf.AbstractMessage.InternalOneOfEnum {
        TEXT(1),
        SSML(2),
        SOURCE_NOT_SET(0);
        private final int value;

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

        public static SourceCase forNumber(int value) {
          switch (value) {
            case 1:
              return TEXT;
            case 2:
              return SSML;
            case 0:
              return SOURCE_NOT_SET;
            default:
              return null;
          }
        }

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

      public SourceCase getSourceCase() {
        return SourceCase.forNumber(sourceCase_);
      }

      public static final int TEXT_FIELD_NUMBER = 1;
      /**
       *
       *
       * <pre>
       * The raw text to be synthesized.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return Whether the text field is set.
       */
      public boolean hasText() {
        return sourceCase_ == 1;
      }
      /**
       *
       *
       * <pre>
       * The raw text to be synthesized.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      public java.lang.String getText() {
        java.lang.Object ref = "";
        if (sourceCase_ == 1) {
          ref = source_;
        }
        if (ref instanceof java.lang.String) {
          return (java.lang.String) ref;
        } else {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (sourceCase_ == 1) {
            source_ = s;
          }
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * The raw text to be synthesized.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      public com.google.protobuf.ByteString getTextBytes() {
        java.lang.Object ref = "";
        if (sourceCase_ == 1) {
          ref = source_;
        }
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          if (sourceCase_ == 1) {
            source_ = b;
          }
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int SSML_FIELD_NUMBER = 2;
      /**
       *
       *
       * <pre>
       * The SSML to be synthesized. For more information, see
       * [SSML](https://developers.google.com/actions/reference/ssml).
       * </pre>
       *
       * <code>string ssml = 2;</code>
       *
       * @return Whether the ssml field is set.
       */
      public boolean hasSsml() {
        return sourceCase_ == 2;
      }
      /**
       *
       *
       * <pre>
       * The SSML to be synthesized. For more information, see
       * [SSML](https://developers.google.com/actions/reference/ssml).
       * </pre>
       *
       * <code>string ssml = 2;</code>
       *
       * @return The ssml.
       */
      public java.lang.String getSsml() {
        java.lang.Object ref = "";
        if (sourceCase_ == 2) {
          ref = source_;
        }
        if (ref instanceof java.lang.String) {
          return (java.lang.String) ref;
        } else {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (sourceCase_ == 2) {
            source_ = s;
          }
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * The SSML to be synthesized. For more information, see
       * [SSML](https://developers.google.com/actions/reference/ssml).
       * </pre>
       *
       * <code>string ssml = 2;</code>
       *
       * @return The bytes for ssml.
       */
      public com.google.protobuf.ByteString getSsmlBytes() {
        java.lang.Object ref = "";
        if (sourceCase_ == 2) {
          ref = source_;
        }
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          if (sourceCase_ == 2) {
            source_ = 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 (sourceCase_ == 1) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
        }
        if (sourceCase_ == 2) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_);
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        if (sourceCase_ == 1) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_);
        }
        if (sourceCase_ == 2) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) obj;

        if (!getSourceCase().equals(other.getSourceCase())) return false;
        switch (sourceCase_) {
          case 1:
            if (!getText().equals(other.getText())) return false;
            break;
          case 2:
            if (!getSsml().equals(other.getSsml())) 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();
        switch (sourceCase_) {
          case 1:
            hash = (37 * hash) + TEXT_FIELD_NUMBER;
            hash = (53 * hash) + getText().hashCode();
            break;
          case 2:
            hash = (37 * hash) + SSML_FIELD_NUMBER;
            hash = (53 * hash) + getSsml().hashCode();
            break;
          case 0:
          default:
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseFrom(java.nio.ByteBuffer data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseFrom(
              java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseFrom(com.google.protobuf.ByteString data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseFrom(
              com.google.protobuf.ByteString data,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          parseFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech 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>
       * Synthesizes speech and plays back the synthesized audio to the caller in
       * Telephony Gateway.
       *
       * Telephony Gateway takes the synthesizer settings from
       * `DetectIntentResponse.output_audio_config` which can either be set
       * at request-level or can come from the agent-level synthesizer config.
       * </pre>
       *
       * Protobuf type {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
                      .class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
                      .Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          sourceCase_ = 0;
          source_ = null;
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
            build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
            buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech(
                  this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          buildPartialOneofs(result);
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech result) {
          int from_bitField0_ = bitField0_;
        }

        private void buildPartialOneofs(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech result) {
          result.sourceCase_ = sourceCase_;
          result.source_ = this.source_;
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other
              instanceof
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
                    other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
                  .getDefaultInstance()) return this;
          switch (other.getSourceCase()) {
            case TEXT:
              {
                sourceCase_ = 1;
                source_ = other.source_;
                onChanged();
                break;
              }
            case SSML:
              {
                sourceCase_ = 2;
                source_ = other.source_;
                onChanged();
                break;
              }
            case SOURCE_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:
                  {
                    java.lang.String s = input.readStringRequireUtf8();
                    sourceCase_ = 1;
                    source_ = s;
                    break;
                  } // case 10
                case 18:
                  {
                    java.lang.String s = input.readStringRequireUtf8();
                    sourceCase_ = 2;
                    source_ = s;
                    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 sourceCase_ = 0;
        private java.lang.Object source_;

        public SourceCase getSourceCase() {
          return SourceCase.forNumber(sourceCase_);
        }

        public Builder clearSource() {
          sourceCase_ = 0;
          source_ = null;
          onChanged();
          return this;
        }

        private int bitField0_;

        /**
         *
         *
         * <pre>
         * The raw text to be synthesized.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return Whether the text field is set.
         */
        @java.lang.Override
        public boolean hasText() {
          return sourceCase_ == 1;
        }
        /**
         *
         *
         * <pre>
         * The raw text to be synthesized.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The text.
         */
        @java.lang.Override
        public java.lang.String getText() {
          java.lang.Object ref = "";
          if (sourceCase_ == 1) {
            ref = source_;
          }
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            if (sourceCase_ == 1) {
              source_ = s;
            }
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * The raw text to be synthesized.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The bytes for text.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getTextBytes() {
          java.lang.Object ref = "";
          if (sourceCase_ == 1) {
            ref = source_;
          }
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            if (sourceCase_ == 1) {
              source_ = b;
            }
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * The raw text to be synthesized.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The text to set.
         * @return This builder for chaining.
         */
        public Builder setText(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          sourceCase_ = 1;
          source_ = value;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * The raw text to be synthesized.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearText() {
          if (sourceCase_ == 1) {
            sourceCase_ = 0;
            source_ = null;
            onChanged();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * The raw text to be synthesized.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The bytes for text to set.
         * @return This builder for chaining.
         */
        public Builder setTextBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          sourceCase_ = 1;
          source_ = value;
          onChanged();
          return this;
        }

        /**
         *
         *
         * <pre>
         * The SSML to be synthesized. For more information, see
         * [SSML](https://developers.google.com/actions/reference/ssml).
         * </pre>
         *
         * <code>string ssml = 2;</code>
         *
         * @return Whether the ssml field is set.
         */
        @java.lang.Override
        public boolean hasSsml() {
          return sourceCase_ == 2;
        }
        /**
         *
         *
         * <pre>
         * The SSML to be synthesized. For more information, see
         * [SSML](https://developers.google.com/actions/reference/ssml).
         * </pre>
         *
         * <code>string ssml = 2;</code>
         *
         * @return The ssml.
         */
        @java.lang.Override
        public java.lang.String getSsml() {
          java.lang.Object ref = "";
          if (sourceCase_ == 2) {
            ref = source_;
          }
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            if (sourceCase_ == 2) {
              source_ = s;
            }
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * The SSML to be synthesized. For more information, see
         * [SSML](https://developers.google.com/actions/reference/ssml).
         * </pre>
         *
         * <code>string ssml = 2;</code>
         *
         * @return The bytes for ssml.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getSsmlBytes() {
          java.lang.Object ref = "";
          if (sourceCase_ == 2) {
            ref = source_;
          }
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            if (sourceCase_ == 2) {
              source_ = b;
            }
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * The SSML to be synthesized. For more information, see
         * [SSML](https://developers.google.com/actions/reference/ssml).
         * </pre>
         *
         * <code>string ssml = 2;</code>
         *
         * @param value The ssml to set.
         * @return This builder for chaining.
         */
        public Builder setSsml(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          sourceCase_ = 2;
          source_ = value;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * The SSML to be synthesized. For more information, see
         * [SSML](https://developers.google.com/actions/reference/ssml).
         * </pre>
         *
         * <code>string ssml = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearSsml() {
          if (sourceCase_ == 2) {
            sourceCase_ = 0;
            source_ = null;
            onChanged();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * The SSML to be synthesized. For more information, see
         * [SSML](https://developers.google.com/actions/reference/ssml).
         * </pre>
         *
         * <code>string ssml = 2;</code>
         *
         * @param value The bytes for ssml to set.
         * @return This builder for chaining.
         */
        public Builder setSsmlBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          sourceCase_ = 2;
          source_ = value;
          onChanged();
          return this;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message
              .TelephonySynthesizeSpeech
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface TelephonyTransferCallOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. The phone number to transfer the call to
       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
       *
       * We currently only allow transferring to US numbers (+1xxxyyyzzzz).
       * </pre>
       *
       * <code>string phone_number = 1;</code>
       *
       * @return The phoneNumber.
       */
      java.lang.String getPhoneNumber();
      /**
       *
       *
       * <pre>
       * Required. The phone number to transfer the call to
       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
       *
       * We currently only allow transferring to US numbers (+1xxxyyyzzzz).
       * </pre>
       *
       * <code>string phone_number = 1;</code>
       *
       * @return The bytes for phoneNumber.
       */
      com.google.protobuf.ByteString getPhoneNumberBytes();
    }
    /**
     *
     *
     * <pre>
     * Transfers the call in Telephony Gateway.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall}
     */
    public static final class TelephonyTransferCall extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
        TelephonyTransferCallOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use TelephonyTransferCall.newBuilder() to construct.
      private TelephonyTransferCall(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private TelephonyTransferCall() {
        phoneNumber_ = "";
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder
                    .class);
      }

      public static final int PHONE_NUMBER_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object phoneNumber_ = "";
      /**
       *
       *
       * <pre>
       * Required. The phone number to transfer the call to
       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
       *
       * We currently only allow transferring to US numbers (+1xxxyyyzzzz).
       * </pre>
       *
       * <code>string phone_number = 1;</code>
       *
       * @return The phoneNumber.
       */
      @java.lang.Override
      public java.lang.String getPhoneNumber() {
        java.lang.Object ref = phoneNumber_;
        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();
          phoneNumber_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The phone number to transfer the call to
       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
       *
       * We currently only allow transferring to US numbers (+1xxxyyyzzzz).
       * </pre>
       *
       * <code>string phone_number = 1;</code>
       *
       * @return The bytes for phoneNumber.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getPhoneNumberBytes() {
        java.lang.Object ref = phoneNumber_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          phoneNumber_ = 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(phoneNumber_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phoneNumber_);
        }
        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(phoneNumber_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phoneNumber_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) obj;

        if (!getPhoneNumber().equals(other.getPhoneNumber())) 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) + PHONE_NUMBER_FIELD_NUMBER;
        hash = (53 * hash) + getPhoneNumber().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseFrom(java.nio.ByteBuffer data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseFrom(
              java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseFrom(com.google.protobuf.ByteString data)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseFrom(
              com.google.protobuf.ByteString data,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          parseFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall 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>
       * Transfers the call in Telephony Gateway.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder
                      .class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
            buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.phoneNumber_ = phoneNumber_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other
              instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
                  .getDefaultInstance()) return this;
          if (!other.getPhoneNumber().isEmpty()) {
            phoneNumber_ = other.phoneNumber_;
            bitField0_ |= 0x00000001;
            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:
                  {
                    phoneNumber_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    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 java.lang.Object phoneNumber_ = "";
        /**
         *
         *
         * <pre>
         * Required. The phone number to transfer the call to
         * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
         *
         * We currently only allow transferring to US numbers (+1xxxyyyzzzz).
         * </pre>
         *
         * <code>string phone_number = 1;</code>
         *
         * @return The phoneNumber.
         */
        public java.lang.String getPhoneNumber() {
          java.lang.Object ref = phoneNumber_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            phoneNumber_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The phone number to transfer the call to
         * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
         *
         * We currently only allow transferring to US numbers (+1xxxyyyzzzz).
         * </pre>
         *
         * <code>string phone_number = 1;</code>
         *
         * @return The bytes for phoneNumber.
         */
        public com.google.protobuf.ByteString getPhoneNumberBytes() {
          java.lang.Object ref = phoneNumber_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            phoneNumber_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The phone number to transfer the call to
         * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
         *
         * We currently only allow transferring to US numbers (+1xxxyyyzzzz).
         * </pre>
         *
         * <code>string phone_number = 1;</code>
         *
         * @param value The phoneNumber to set.
         * @return This builder for chaining.
         */
        public Builder setPhoneNumber(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          phoneNumber_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The phone number to transfer the call to
         * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
         *
         * We currently only allow transferring to US numbers (+1xxxyyyzzzz).
         * </pre>
         *
         * <code>string phone_number = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearPhoneNumber() {
          phoneNumber_ = getDefaultInstance().getPhoneNumber();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The phone number to transfer the call to
         * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
         *
         * We currently only allow transferring to US numbers (+1xxxyyyzzzz).
         * </pre>
         *
         * <code>string phone_number = 1;</code>
         *
         * @param value The bytes for phoneNumber to set.
         * @return This builder for chaining.
         */
        public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          phoneNumber_ = 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.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface RbmTextOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmText)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. Text sent and displayed to the user.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      java.lang.String getText();
      /**
       *
       *
       * <pre>
       * Required. Text sent and displayed to the user.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      com.google.protobuf.ByteString getTextBytes();

      /**
       *
       *
       * <pre>
       * Optional. One or more suggestions to show to the user.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
          getRbmSuggestionList();
      /**
       *
       *
       * <pre>
       * Optional. One or more suggestions to show to the user.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getRbmSuggestion(int index);
      /**
       *
       *
       * <pre>
       * Optional. One or more suggestions to show to the user.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
       * </code>
       */
      int getRbmSuggestionCount();
      /**
       *
       *
       * <pre>
       * Optional. One or more suggestions to show to the user.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
       * </code>
       */
      java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
          getRbmSuggestionOrBuilderList();
      /**
       *
       *
       * <pre>
       * Optional. One or more suggestions to show to the user.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
          getRbmSuggestionOrBuilder(int index);
    }
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) text response with suggestions.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmText}
     */
    public static final class RbmText extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmText)
        RbmTextOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use RbmText.newBuilder() to construct.
      private RbmText(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private RbmText() {
        text_ = "";
        rbmSuggestion_ = java.util.Collections.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder.class);
      }

      public static final int TEXT_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object text_ = "";
      /**
       *
       *
       * <pre>
       * Required. Text sent and displayed to the user.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      @java.lang.Override
      public java.lang.String getText() {
        java.lang.Object ref = text_;
        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();
          text_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. Text sent and displayed to the user.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTextBytes() {
        java.lang.Object ref = text_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          text_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int RBM_SUGGESTION_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
          rbmSuggestion_;
      /**
       *
       *
       * <pre>
       * Optional. One or more suggestions to show to the user.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
          getRbmSuggestionList() {
        return rbmSuggestion_;
      }
      /**
       *
       *
       * <pre>
       * Optional. One or more suggestions to show to the user.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
          getRbmSuggestionOrBuilderList() {
        return rbmSuggestion_;
      }
      /**
       *
       *
       * <pre>
       * Optional. One or more suggestions to show to the user.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
       * </code>
       */
      @java.lang.Override
      public int getRbmSuggestionCount() {
        return rbmSuggestion_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. One or more suggestions to show to the user.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getRbmSuggestion(
          int index) {
        return rbmSuggestion_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. One or more suggestions to show to the user.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
          getRbmSuggestionOrBuilder(int index) {
        return rbmSuggestion_.get(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 {
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
        }
        for (int i = 0; i < rbmSuggestion_.size(); i++) {
          output.writeMessage(2, rbmSuggestion_.get(i));
        }
        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(text_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
        }
        for (int i = 0; i < rbmSuggestion_.size(); i++) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(2, rbmSuggestion_.get(i));
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) obj;

        if (!getText().equals(other.getText())) return false;
        if (!getRbmSuggestionList().equals(other.getRbmSuggestionList())) 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) + TEXT_FIELD_NUMBER;
        hash = (53 * hash) + getText().hashCode();
        if (getRbmSuggestionCount() > 0) {
          hash = (37 * hash) + RBM_SUGGESTION_FIELD_NUMBER;
          hash = (53 * hash) + getRbmSuggestionList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseDelimitedFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseDelimitedFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText 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>
       * Rich Business Messaging (RBM) text response with suggestions.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmText}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmText)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder.class);
        }

        // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          text_ = "";
          if (rbmSuggestionBuilder_ == null) {
            rbmSuggestion_ = java.util.Collections.emptyList();
          } else {
            rbmSuggestion_ = null;
            rbmSuggestionBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000002);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmText_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText result) {
          if (rbmSuggestionBuilder_ == null) {
            if (((bitField0_ & 0x00000002) != 0)) {
              rbmSuggestion_ = java.util.Collections.unmodifiableList(rbmSuggestion_);
              bitField0_ = (bitField0_ & ~0x00000002);
            }
            result.rbmSuggestion_ = rbmSuggestion_;
          } else {
            result.rbmSuggestion_ = rbmSuggestionBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.text_ = text_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) {
            return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance())
            return this;
          if (!other.getText().isEmpty()) {
            text_ = other.text_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (rbmSuggestionBuilder_ == null) {
            if (!other.rbmSuggestion_.isEmpty()) {
              if (rbmSuggestion_.isEmpty()) {
                rbmSuggestion_ = other.rbmSuggestion_;
                bitField0_ = (bitField0_ & ~0x00000002);
              } else {
                ensureRbmSuggestionIsMutable();
                rbmSuggestion_.addAll(other.rbmSuggestion_);
              }
              onChanged();
            }
          } else {
            if (!other.rbmSuggestion_.isEmpty()) {
              if (rbmSuggestionBuilder_.isEmpty()) {
                rbmSuggestionBuilder_.dispose();
                rbmSuggestionBuilder_ = null;
                rbmSuggestion_ = other.rbmSuggestion_;
                bitField0_ = (bitField0_ & ~0x00000002);
                rbmSuggestionBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getRbmSuggestionFieldBuilder()
                        : null;
              } else {
                rbmSuggestionBuilder_.addAllMessages(other.rbmSuggestion_);
              }
            }
          }
          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:
                  {
                    text_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
                                .parser(),
                            extensionRegistry);
                    if (rbmSuggestionBuilder_ == null) {
                      ensureRbmSuggestionIsMutable();
                      rbmSuggestion_.add(m);
                    } else {
                      rbmSuggestionBuilder_.addMessage(m);
                    }
                    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 java.lang.Object text_ = "";
        /**
         *
         *
         * <pre>
         * Required. Text sent and displayed to the user.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The text.
         */
        public java.lang.String getText() {
          java.lang.Object ref = text_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            text_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Text sent and displayed to the user.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The bytes for text.
         */
        public com.google.protobuf.ByteString getTextBytes() {
          java.lang.Object ref = text_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            text_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Text sent and displayed to the user.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The text to set.
         * @return This builder for chaining.
         */
        public Builder setText(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          text_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Text sent and displayed to the user.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearText() {
          text_ = getDefaultInstance().getText();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Text sent and displayed to the user.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The bytes for text to set.
         * @return This builder for chaining.
         */
        public Builder setTextBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          text_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
            rbmSuggestion_ = java.util.Collections.emptyList();

        private void ensureRbmSuggestionIsMutable() {
          if (!((bitField0_ & 0x00000002) != 0)) {
            rbmSuggestion_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>(
                    rbmSuggestion_);
            bitField0_ |= 0x00000002;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
            rbmSuggestionBuilder_;

        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
            getRbmSuggestionList() {
          if (rbmSuggestionBuilder_ == null) {
            return java.util.Collections.unmodifiableList(rbmSuggestion_);
          } else {
            return rbmSuggestionBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public int getRbmSuggestionCount() {
          if (rbmSuggestionBuilder_ == null) {
            return rbmSuggestion_.size();
          } else {
            return rbmSuggestionBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getRbmSuggestion(
            int index) {
          if (rbmSuggestionBuilder_ == null) {
            return rbmSuggestion_.get(index);
          } else {
            return rbmSuggestionBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public Builder setRbmSuggestion(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
          if (rbmSuggestionBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureRbmSuggestionIsMutable();
            rbmSuggestion_.set(index, value);
            onChanged();
          } else {
            rbmSuggestionBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public Builder setRbmSuggestion(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
                builderForValue) {
          if (rbmSuggestionBuilder_ == null) {
            ensureRbmSuggestionIsMutable();
            rbmSuggestion_.set(index, builderForValue.build());
            onChanged();
          } else {
            rbmSuggestionBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public Builder addRbmSuggestion(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
          if (rbmSuggestionBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureRbmSuggestionIsMutable();
            rbmSuggestion_.add(value);
            onChanged();
          } else {
            rbmSuggestionBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public Builder addRbmSuggestion(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
          if (rbmSuggestionBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureRbmSuggestionIsMutable();
            rbmSuggestion_.add(index, value);
            onChanged();
          } else {
            rbmSuggestionBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public Builder addRbmSuggestion(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
                builderForValue) {
          if (rbmSuggestionBuilder_ == null) {
            ensureRbmSuggestionIsMutable();
            rbmSuggestion_.add(builderForValue.build());
            onChanged();
          } else {
            rbmSuggestionBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public Builder addRbmSuggestion(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
                builderForValue) {
          if (rbmSuggestionBuilder_ == null) {
            ensureRbmSuggestionIsMutable();
            rbmSuggestion_.add(index, builderForValue.build());
            onChanged();
          } else {
            rbmSuggestionBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public Builder addAllRbmSuggestion(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
                values) {
          if (rbmSuggestionBuilder_ == null) {
            ensureRbmSuggestionIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rbmSuggestion_);
            onChanged();
          } else {
            rbmSuggestionBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public Builder clearRbmSuggestion() {
          if (rbmSuggestionBuilder_ == null) {
            rbmSuggestion_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
          } else {
            rbmSuggestionBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public Builder removeRbmSuggestion(int index) {
          if (rbmSuggestionBuilder_ == null) {
            ensureRbmSuggestionIsMutable();
            rbmSuggestion_.remove(index);
            onChanged();
          } else {
            rbmSuggestionBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
            getRbmSuggestionBuilder(int index) {
          return getRbmSuggestionFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
            getRbmSuggestionOrBuilder(int index) {
          if (rbmSuggestionBuilder_ == null) {
            return rbmSuggestion_.get(index);
          } else {
            return rbmSuggestionBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public java.util.List<
                ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
            getRbmSuggestionOrBuilderList() {
          if (rbmSuggestionBuilder_ != null) {
            return rbmSuggestionBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(rbmSuggestion_);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
            addRbmSuggestionBuilder() {
          return getRbmSuggestionFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
            addRbmSuggestionBuilder(int index) {
          return getRbmSuggestionFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. One or more suggestions to show to the user.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder>
            getRbmSuggestionBuilderList() {
          return getRbmSuggestionFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
            getRbmSuggestionFieldBuilder() {
          if (rbmSuggestionBuilder_ == null) {
            rbmSuggestionBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>(
                    rbmSuggestion_,
                    ((bitField0_ & 0x00000002) != 0),
                    getParentForChildren(),
                    isClean());
            rbmSuggestion_ = null;
          }
          return rbmSuggestionBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmText)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmText)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface RbmCarouselCardOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. The width of the cards in the carousel.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
       * </code>
       *
       * @return The enum numeric value on the wire for cardWidth.
       */
      int getCardWidthValue();
      /**
       *
       *
       * <pre>
       * Required. The width of the cards in the carousel.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
       * </code>
       *
       * @return The cardWidth.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth getCardWidth();

      /**
       *
       *
       * <pre>
       * Required. The cards in the carousel. A carousel must have at least
       * 2 cards and at most 10.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent>
          getCardContentsList();
      /**
       *
       *
       * <pre>
       * Required. The cards in the carousel. A carousel must have at least
       * 2 cards and at most 10.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContents(int index);
      /**
       *
       *
       * <pre>
       * Required. The cards in the carousel. A carousel must have at least
       * 2 cards and at most 10.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
       * </code>
       */
      int getCardContentsCount();
      /**
       *
       *
       * <pre>
       * Required. The cards in the carousel. A carousel must have at least
       * 2 cards and at most 10.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
       * </code>
       */
      java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
          getCardContentsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Required. The cards in the carousel. A carousel must have at least
       * 2 cards and at most 10.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
          getCardContentsOrBuilder(int index);
    }
    /**
     *
     *
     * <pre>
     * Carousel Rich Business Messaging (RBM) rich card.
     *
     * Rich cards allow you to respond to users with more vivid content, e.g.
     * with media and suggestions.
     *
     * If you want to show a single card with more control over the layout,
     * please use
     * [RbmStandaloneCard][google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard]
     * instead.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard}
     */
    public static final class RbmCarouselCard extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard)
        RbmCarouselCardOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use RbmCarouselCard.newBuilder() to construct.
      private RbmCarouselCard(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private RbmCarouselCard() {
        cardWidth_ = 0;
        cardContents_ = java.util.Collections.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder.class);
      }

      /**
       *
       *
       * <pre>
       * The width of the cards in the carousel.
       * </pre>
       *
       * Protobuf enum {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth}
       */
      public enum CardWidth implements com.google.protobuf.ProtocolMessageEnum {
        /**
         *
         *
         * <pre>
         * Not specified.
         * </pre>
         *
         * <code>CARD_WIDTH_UNSPECIFIED = 0;</code>
         */
        CARD_WIDTH_UNSPECIFIED(0),
        /**
         *
         *
         * <pre>
         * 120 DP. Note that tall media cannot be used.
         * </pre>
         *
         * <code>SMALL = 1;</code>
         */
        SMALL(1),
        /**
         *
         *
         * <pre>
         * 232 DP.
         * </pre>
         *
         * <code>MEDIUM = 2;</code>
         */
        MEDIUM(2),
        UNRECOGNIZED(-1),
        ;

        /**
         *
         *
         * <pre>
         * Not specified.
         * </pre>
         *
         * <code>CARD_WIDTH_UNSPECIFIED = 0;</code>
         */
        public static final int CARD_WIDTH_UNSPECIFIED_VALUE = 0;
        /**
         *
         *
         * <pre>
         * 120 DP. Note that tall media cannot be used.
         * </pre>
         *
         * <code>SMALL = 1;</code>
         */
        public static final int SMALL_VALUE = 1;
        /**
         *
         *
         * <pre>
         * 232 DP.
         * </pre>
         *
         * <code>MEDIUM = 2;</code>
         */
        public static final int MEDIUM_VALUE = 2;

        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 CardWidth 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 CardWidth forNumber(int value) {
          switch (value) {
            case 0:
              return CARD_WIDTH_UNSPECIFIED;
            case 1:
              return SMALL;
            case 2:
              return MEDIUM;
            default:
              return null;
          }
        }

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

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

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

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

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.getDescriptor()
              .getEnumTypes()
              .get(0);
        }

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

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

        // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth)
      }

      public static final int CARD_WIDTH_FIELD_NUMBER = 1;
      private int cardWidth_ = 0;
      /**
       *
       *
       * <pre>
       * Required. The width of the cards in the carousel.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
       * </code>
       *
       * @return The enum numeric value on the wire for cardWidth.
       */
      @java.lang.Override
      public int getCardWidthValue() {
        return cardWidth_;
      }
      /**
       *
       *
       * <pre>
       * Required. The width of the cards in the carousel.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
       * </code>
       *
       * @return The cardWidth.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
          getCardWidth() {
        com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth result =
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth.forNumber(
                cardWidth_);
        return result == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
                .UNRECOGNIZED
            : result;
      }

      public static final int CARD_CONTENTS_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent>
          cardContents_;
      /**
       *
       *
       * <pre>
       * Required. The cards in the carousel. A carousel must have at least
       * 2 cards and at most 10.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent>
          getCardContentsList() {
        return cardContents_;
      }
      /**
       *
       *
       * <pre>
       * Required. The cards in the carousel. A carousel must have at least
       * 2 cards and at most 10.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
          getCardContentsOrBuilderList() {
        return cardContents_;
      }
      /**
       *
       *
       * <pre>
       * Required. The cards in the carousel. A carousel must have at least
       * 2 cards and at most 10.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
       * </code>
       */
      @java.lang.Override
      public int getCardContentsCount() {
        return cardContents_.size();
      }
      /**
       *
       *
       * <pre>
       * Required. The cards in the carousel. A carousel must have at least
       * 2 cards and at most 10.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContents(
          int index) {
        return cardContents_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Required. The cards in the carousel. A carousel must have at least
       * 2 cards and at most 10.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
          getCardContentsOrBuilder(int index) {
        return cardContents_.get(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 {
        if (cardWidth_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
                .CARD_WIDTH_UNSPECIFIED
                .getNumber()) {
          output.writeEnum(1, cardWidth_);
        }
        for (int i = 0; i < cardContents_.size(); i++) {
          output.writeMessage(2, cardContents_.get(i));
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        if (cardWidth_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
                .CARD_WIDTH_UNSPECIFIED
                .getNumber()) {
          size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, cardWidth_);
        }
        for (int i = 0; i < cardContents_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, cardContents_.get(i));
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) obj;

        if (cardWidth_ != other.cardWidth_) return false;
        if (!getCardContentsList().equals(other.getCardContentsList())) 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) + CARD_WIDTH_FIELD_NUMBER;
        hash = (53 * hash) + cardWidth_;
        if (getCardContentsCount() > 0) {
          hash = (37 * hash) + CARD_CONTENTS_FIELD_NUMBER;
          hash = (53 * hash) + getCardContentsList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard 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>
       * Carousel Rich Business Messaging (RBM) rich card.
       *
       * Rich cards allow you to respond to users with more vivid content, e.g.
       * with media and suggestions.
       *
       * If you want to show a single card with more control over the layout,
       * please use
       * [RbmStandaloneCard][google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard]
       * instead.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          cardWidth_ = 0;
          if (cardContentsBuilder_ == null) {
            cardContents_ = java.util.Collections.emptyList();
          } else {
            cardContents_ = null;
            cardContentsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000002);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCarouselCard_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard result) {
          if (cardContentsBuilder_ == null) {
            if (((bitField0_ & 0x00000002) != 0)) {
              cardContents_ = java.util.Collections.unmodifiableList(cardContents_);
              bitField0_ = (bitField0_ & ~0x00000002);
            }
            result.cardContents_ = cardContents_;
          } else {
            result.cardContents_ = cardContentsBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.cardWidth_ = cardWidth_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
                  .getDefaultInstance()) return this;
          if (other.cardWidth_ != 0) {
            setCardWidthValue(other.getCardWidthValue());
          }
          if (cardContentsBuilder_ == null) {
            if (!other.cardContents_.isEmpty()) {
              if (cardContents_.isEmpty()) {
                cardContents_ = other.cardContents_;
                bitField0_ = (bitField0_ & ~0x00000002);
              } else {
                ensureCardContentsIsMutable();
                cardContents_.addAll(other.cardContents_);
              }
              onChanged();
            }
          } else {
            if (!other.cardContents_.isEmpty()) {
              if (cardContentsBuilder_.isEmpty()) {
                cardContentsBuilder_.dispose();
                cardContentsBuilder_ = null;
                cardContents_ = other.cardContents_;
                bitField0_ = (bitField0_ & ~0x00000002);
                cardContentsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getCardContentsFieldBuilder()
                        : null;
              } else {
                cardContentsBuilder_.addAllMessages(other.cardContents_);
              }
            }
          }
          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:
                  {
                    cardWidth_ = input.readEnum();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 8
                case 18:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
                                .parser(),
                            extensionRegistry);
                    if (cardContentsBuilder_ == null) {
                      ensureCardContentsIsMutable();
                      cardContents_.add(m);
                    } else {
                      cardContentsBuilder_.addMessage(m);
                    }
                    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 cardWidth_ = 0;
        /**
         *
         *
         * <pre>
         * Required. The width of the cards in the carousel.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
         * </code>
         *
         * @return The enum numeric value on the wire for cardWidth.
         */
        @java.lang.Override
        public int getCardWidthValue() {
          return cardWidth_;
        }
        /**
         *
         *
         * <pre>
         * Required. The width of the cards in the carousel.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
         * </code>
         *
         * @param value The enum numeric value on the wire for cardWidth to set.
         * @return This builder for chaining.
         */
        public Builder setCardWidthValue(int value) {
          cardWidth_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The width of the cards in the carousel.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
         * </code>
         *
         * @return The cardWidth.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
            getCardWidth() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth result =
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
                  .forNumber(cardWidth_);
          return result == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth
                  .UNRECOGNIZED
              : result;
        }
        /**
         *
         *
         * <pre>
         * Required. The width of the cards in the carousel.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
         * </code>
         *
         * @param value The cardWidth to set.
         * @return This builder for chaining.
         */
        public Builder setCardWidth(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth value) {
          if (value == null) {
            throw new NullPointerException();
          }
          bitField0_ |= 0x00000001;
          cardWidth_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The width of the cards in the carousel.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
         * </code>
         *
         * @return This builder for chaining.
         */
        public Builder clearCardWidth() {
          bitField0_ = (bitField0_ & ~0x00000001);
          cardWidth_ = 0;
          onChanged();
          return this;
        }

        private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent>
            cardContents_ = java.util.Collections.emptyList();

        private void ensureCardContentsIsMutable() {
          if (!((bitField0_ & 0x00000002) != 0)) {
            cardContents_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent>(
                    cardContents_);
            bitField0_ |= 0x00000002;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
            cardContentsBuilder_;

        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent>
            getCardContentsList() {
          if (cardContentsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(cardContents_);
          } else {
            return cardContentsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public int getCardContentsCount() {
          if (cardContentsBuilder_ == null) {
            return cardContents_.size();
          } else {
            return cardContentsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContents(
            int index) {
          if (cardContentsBuilder_ == null) {
            return cardContents_.get(index);
          } else {
            return cardContentsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public Builder setCardContents(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent value) {
          if (cardContentsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureCardContentsIsMutable();
            cardContents_.set(index, value);
            onChanged();
          } else {
            cardContentsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public Builder setCardContents(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
                builderForValue) {
          if (cardContentsBuilder_ == null) {
            ensureCardContentsIsMutable();
            cardContents_.set(index, builderForValue.build());
            onChanged();
          } else {
            cardContentsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public Builder addCardContents(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent value) {
          if (cardContentsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureCardContentsIsMutable();
            cardContents_.add(value);
            onChanged();
          } else {
            cardContentsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public Builder addCardContents(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent value) {
          if (cardContentsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureCardContentsIsMutable();
            cardContents_.add(index, value);
            onChanged();
          } else {
            cardContentsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public Builder addCardContents(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
                builderForValue) {
          if (cardContentsBuilder_ == null) {
            ensureCardContentsIsMutable();
            cardContents_.add(builderForValue.build());
            onChanged();
          } else {
            cardContentsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public Builder addCardContents(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
                builderForValue) {
          if (cardContentsBuilder_ == null) {
            ensureCardContentsIsMutable();
            cardContents_.add(index, builderForValue.build());
            onChanged();
          } else {
            cardContentsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public Builder addAllCardContents(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent>
                values) {
          if (cardContentsBuilder_ == null) {
            ensureCardContentsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cardContents_);
            onChanged();
          } else {
            cardContentsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public Builder clearCardContents() {
          if (cardContentsBuilder_ == null) {
            cardContents_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
          } else {
            cardContentsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public Builder removeCardContents(int index) {
          if (cardContentsBuilder_ == null) {
            ensureCardContentsIsMutable();
            cardContents_.remove(index);
            onChanged();
          } else {
            cardContentsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
            getCardContentsBuilder(int index) {
          return getCardContentsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
            getCardContentsOrBuilder(int index) {
          if (cardContentsBuilder_ == null) {
            return cardContents_.get(index);
          } else {
            return cardContentsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public java.util.List<
                ? extends
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
            getCardContentsOrBuilderList() {
          if (cardContentsBuilder_ != null) {
            return cardContentsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(cardContents_);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
            addCardContentsBuilder() {
          return getCardContentsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
            addCardContentsBuilder(int index) {
          return getCardContentsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. The cards in the carousel. A carousel must have at least
         * 2 cards and at most 10.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder>
            getCardContentsBuilderList() {
          return getCardContentsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
            getCardContentsFieldBuilder() {
          if (cardContentsBuilder_ == null) {
            cardContentsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>(
                    cardContents_,
                    ((bitField0_ & 0x00000002) != 0),
                    getParentForChildren(),
                    isClean());
            cardContents_ = null;
          }
          return cardContentsBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface RbmStandaloneCardOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. Orientation of the card.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
       * </code>
       *
       * @return The enum numeric value on the wire for cardOrientation.
       */
      int getCardOrientationValue();
      /**
       *
       *
       * <pre>
       * Required. Orientation of the card.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
       * </code>
       *
       * @return The cardOrientation.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
          getCardOrientation();

      /**
       *
       *
       * <pre>
       * Required if orientation is horizontal.
       * Image preview alignment for standalone cards with horizontal layout.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
       * </code>
       *
       * @return The enum numeric value on the wire for thumbnailImageAlignment.
       */
      int getThumbnailImageAlignmentValue();
      /**
       *
       *
       * <pre>
       * Required if orientation is horizontal.
       * Image preview alignment for standalone cards with horizontal layout.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
       * </code>
       *
       * @return The thumbnailImageAlignment.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment
          getThumbnailImageAlignment();

      /**
       *
       *
       * <pre>
       * Required. Card content.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
       * </code>
       *
       * @return Whether the cardContent field is set.
       */
      boolean hasCardContent();
      /**
       *
       *
       * <pre>
       * Required. Card content.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
       * </code>
       *
       * @return The cardContent.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContent();
      /**
       *
       *
       * <pre>
       * Required. Card content.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
          getCardContentOrBuilder();
    }
    /**
     *
     *
     * <pre>
     * Standalone Rich Business Messaging (RBM) rich card.
     *
     * Rich cards allow you to respond to users with more vivid content, e.g.
     * with media and suggestions.
     *
     * You can group multiple rich cards into one using
     * [RbmCarouselCard][google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard]
     * but carousel cards will give you less control over the card layout.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard}
     */
    public static final class RbmStandaloneCard extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard)
        RbmStandaloneCardOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use RbmStandaloneCard.newBuilder() to construct.
      private RbmStandaloneCard(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private RbmStandaloneCard() {
        cardOrientation_ = 0;
        thumbnailImageAlignment_ = 0;
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder.class);
      }

      /**
       *
       *
       * <pre>
       * Orientation of the card.
       * </pre>
       *
       * Protobuf enum {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation}
       */
      public enum CardOrientation implements com.google.protobuf.ProtocolMessageEnum {
        /**
         *
         *
         * <pre>
         * Not specified.
         * </pre>
         *
         * <code>CARD_ORIENTATION_UNSPECIFIED = 0;</code>
         */
        CARD_ORIENTATION_UNSPECIFIED(0),
        /**
         *
         *
         * <pre>
         * Horizontal layout.
         * </pre>
         *
         * <code>HORIZONTAL = 1;</code>
         */
        HORIZONTAL(1),
        /**
         *
         *
         * <pre>
         * Vertical layout.
         * </pre>
         *
         * <code>VERTICAL = 2;</code>
         */
        VERTICAL(2),
        UNRECOGNIZED(-1),
        ;

        /**
         *
         *
         * <pre>
         * Not specified.
         * </pre>
         *
         * <code>CARD_ORIENTATION_UNSPECIFIED = 0;</code>
         */
        public static final int CARD_ORIENTATION_UNSPECIFIED_VALUE = 0;
        /**
         *
         *
         * <pre>
         * Horizontal layout.
         * </pre>
         *
         * <code>HORIZONTAL = 1;</code>
         */
        public static final int HORIZONTAL_VALUE = 1;
        /**
         *
         *
         * <pre>
         * Vertical layout.
         * </pre>
         *
         * <code>VERTICAL = 2;</code>
         */
        public static final int VERTICAL_VALUE = 2;

        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 CardOrientation 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 CardOrientation forNumber(int value) {
          switch (value) {
            case 0:
              return CARD_ORIENTATION_UNSPECIFIED;
            case 1:
              return HORIZONTAL;
            case 2:
              return VERTICAL;
            default:
              return null;
          }
        }

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

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

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

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

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
              .getDescriptor()
              .getEnumTypes()
              .get(0);
        }

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

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

        // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation)
      }

      /**
       *
       *
       * <pre>
       * Thumbnail preview alignment for standalone cards with horizontal
       * layout.
       * </pre>
       *
       * Protobuf enum {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment}
       */
      public enum ThumbnailImageAlignment implements com.google.protobuf.ProtocolMessageEnum {
        /**
         *
         *
         * <pre>
         * Not specified.
         * </pre>
         *
         * <code>THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED = 0;</code>
         */
        THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED(0),
        /**
         *
         *
         * <pre>
         * Thumbnail preview is left-aligned.
         * </pre>
         *
         * <code>LEFT = 1;</code>
         */
        LEFT(1),
        /**
         *
         *
         * <pre>
         * Thumbnail preview is right-aligned.
         * </pre>
         *
         * <code>RIGHT = 2;</code>
         */
        RIGHT(2),
        UNRECOGNIZED(-1),
        ;

        /**
         *
         *
         * <pre>
         * Not specified.
         * </pre>
         *
         * <code>THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED = 0;</code>
         */
        public static final int THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED_VALUE = 0;
        /**
         *
         *
         * <pre>
         * Thumbnail preview is left-aligned.
         * </pre>
         *
         * <code>LEFT = 1;</code>
         */
        public static final int LEFT_VALUE = 1;
        /**
         *
         *
         * <pre>
         * Thumbnail preview is right-aligned.
         * </pre>
         *
         * <code>RIGHT = 2;</code>
         */
        public static final int RIGHT_VALUE = 2;

        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 ThumbnailImageAlignment 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 ThumbnailImageAlignment forNumber(int value) {
          switch (value) {
            case 0:
              return THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED;
            case 1:
              return LEFT;
            case 2:
              return RIGHT;
            default:
              return null;
          }
        }

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

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

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

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

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
              .getDescriptor()
              .getEnumTypes()
              .get(1);
        }

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

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

        // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment)
      }

      public static final int CARD_ORIENTATION_FIELD_NUMBER = 1;
      private int cardOrientation_ = 0;
      /**
       *
       *
       * <pre>
       * Required. Orientation of the card.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
       * </code>
       *
       * @return The enum numeric value on the wire for cardOrientation.
       */
      @java.lang.Override
      public int getCardOrientationValue() {
        return cardOrientation_;
      }
      /**
       *
       *
       * <pre>
       * Required. Orientation of the card.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
       * </code>
       *
       * @return The cardOrientation.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
          getCardOrientation() {
        com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
            result =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
                    .forNumber(cardOrientation_);
        return result == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
                .UNRECOGNIZED
            : result;
      }

      public static final int THUMBNAIL_IMAGE_ALIGNMENT_FIELD_NUMBER = 2;
      private int thumbnailImageAlignment_ = 0;
      /**
       *
       *
       * <pre>
       * Required if orientation is horizontal.
       * Image preview alignment for standalone cards with horizontal layout.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
       * </code>
       *
       * @return The enum numeric value on the wire for thumbnailImageAlignment.
       */
      @java.lang.Override
      public int getThumbnailImageAlignmentValue() {
        return thumbnailImageAlignment_;
      }
      /**
       *
       *
       * <pre>
       * Required if orientation is horizontal.
       * Image preview alignment for standalone cards with horizontal layout.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
       * </code>
       *
       * @return The thumbnailImageAlignment.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
              .ThumbnailImageAlignment
          getThumbnailImageAlignment() {
        com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment
            result =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                    .ThumbnailImageAlignment.forNumber(thumbnailImageAlignment_);
        return result == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                .ThumbnailImageAlignment.UNRECOGNIZED
            : result;
      }

      public static final int CARD_CONTENT_FIELD_NUMBER = 3;
      private com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent cardContent_;
      /**
       *
       *
       * <pre>
       * Required. Card content.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
       * </code>
       *
       * @return Whether the cardContent field is set.
       */
      @java.lang.Override
      public boolean hasCardContent() {
        return cardContent_ != null;
      }
      /**
       *
       *
       * <pre>
       * Required. Card content.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
       * </code>
       *
       * @return The cardContent.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContent() {
        return cardContent_ == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.getDefaultInstance()
            : cardContent_;
      }
      /**
       *
       *
       * <pre>
       * Required. Card content.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
          getCardContentOrBuilder() {
        return cardContent_ == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.getDefaultInstance()
            : cardContent_;
      }

      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 (cardOrientation_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
                .CARD_ORIENTATION_UNSPECIFIED
                .getNumber()) {
          output.writeEnum(1, cardOrientation_);
        }
        if (thumbnailImageAlignment_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                .ThumbnailImageAlignment.THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED
                .getNumber()) {
          output.writeEnum(2, thumbnailImageAlignment_);
        }
        if (cardContent_ != null) {
          output.writeMessage(3, getCardContent());
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        if (cardOrientation_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
                .CARD_ORIENTATION_UNSPECIFIED
                .getNumber()) {
          size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, cardOrientation_);
        }
        if (thumbnailImageAlignment_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                .ThumbnailImageAlignment.THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED
                .getNumber()) {
          size +=
              com.google.protobuf.CodedOutputStream.computeEnumSize(2, thumbnailImageAlignment_);
        }
        if (cardContent_ != null) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCardContent());
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) obj;

        if (cardOrientation_ != other.cardOrientation_) return false;
        if (thumbnailImageAlignment_ != other.thumbnailImageAlignment_) return false;
        if (hasCardContent() != other.hasCardContent()) return false;
        if (hasCardContent()) {
          if (!getCardContent().equals(other.getCardContent())) 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) + CARD_ORIENTATION_FIELD_NUMBER;
        hash = (53 * hash) + cardOrientation_;
        hash = (37 * hash) + THUMBNAIL_IMAGE_ALIGNMENT_FIELD_NUMBER;
        hash = (53 * hash) + thumbnailImageAlignment_;
        if (hasCardContent()) {
          hash = (37 * hash) + CARD_CONTENT_FIELD_NUMBER;
          hash = (53 * hash) + getCardContent().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard 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>
       * Standalone Rich Business Messaging (RBM) rich card.
       *
       * Rich cards allow you to respond to users with more vivid content, e.g.
       * with media and suggestions.
       *
       * You can group multiple rich cards into one using
       * [RbmCarouselCard][google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard]
       * but carousel cards will give you less control over the card layout.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder
                      .class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          cardOrientation_ = 0;
          thumbnailImageAlignment_ = 0;
          cardContent_ = null;
          if (cardContentBuilder_ != null) {
            cardContentBuilder_.dispose();
            cardContentBuilder_ = null;
          }
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmStandaloneCard_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.cardOrientation_ = cardOrientation_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.thumbnailImageAlignment_ = thumbnailImageAlignment_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.cardContent_ =
                cardContentBuilder_ == null ? cardContent_ : cardContentBuilder_.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.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                  .getDefaultInstance()) return this;
          if (other.cardOrientation_ != 0) {
            setCardOrientationValue(other.getCardOrientationValue());
          }
          if (other.thumbnailImageAlignment_ != 0) {
            setThumbnailImageAlignmentValue(other.getThumbnailImageAlignmentValue());
          }
          if (other.hasCardContent()) {
            mergeCardContent(other.getCardContent());
          }
          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:
                  {
                    cardOrientation_ = input.readEnum();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 8
                case 16:
                  {
                    thumbnailImageAlignment_ = input.readEnum();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 16
                case 26:
                  {
                    input.readMessage(getCardContentFieldBuilder().getBuilder(), extensionRegistry);
                    bitField0_ |= 0x00000004;
                    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 bitField0_;

        private int cardOrientation_ = 0;
        /**
         *
         *
         * <pre>
         * Required. Orientation of the card.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
         * </code>
         *
         * @return The enum numeric value on the wire for cardOrientation.
         */
        @java.lang.Override
        public int getCardOrientationValue() {
          return cardOrientation_;
        }
        /**
         *
         *
         * <pre>
         * Required. Orientation of the card.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
         * </code>
         *
         * @param value The enum numeric value on the wire for cardOrientation to set.
         * @return This builder for chaining.
         */
        public Builder setCardOrientationValue(int value) {
          cardOrientation_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Orientation of the card.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
         * </code>
         *
         * @return The cardOrientation.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
            getCardOrientation() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
              result =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                      .CardOrientation.forNumber(cardOrientation_);
          return result == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
                  .UNRECOGNIZED
              : result;
        }
        /**
         *
         *
         * <pre>
         * Required. Orientation of the card.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
         * </code>
         *
         * @param value The cardOrientation to set.
         * @return This builder for chaining.
         */
        public Builder setCardOrientation(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation
                value) {
          if (value == null) {
            throw new NullPointerException();
          }
          bitField0_ |= 0x00000001;
          cardOrientation_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Orientation of the card.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;
         * </code>
         *
         * @return This builder for chaining.
         */
        public Builder clearCardOrientation() {
          bitField0_ = (bitField0_ & ~0x00000001);
          cardOrientation_ = 0;
          onChanged();
          return this;
        }

        private int thumbnailImageAlignment_ = 0;
        /**
         *
         *
         * <pre>
         * Required if orientation is horizontal.
         * Image preview alignment for standalone cards with horizontal layout.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
         * </code>
         *
         * @return The enum numeric value on the wire for thumbnailImageAlignment.
         */
        @java.lang.Override
        public int getThumbnailImageAlignmentValue() {
          return thumbnailImageAlignment_;
        }
        /**
         *
         *
         * <pre>
         * Required if orientation is horizontal.
         * Image preview alignment for standalone cards with horizontal layout.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
         * </code>
         *
         * @param value The enum numeric value on the wire for thumbnailImageAlignment to set.
         * @return This builder for chaining.
         */
        public Builder setThumbnailImageAlignmentValue(int value) {
          thumbnailImageAlignment_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required if orientation is horizontal.
         * Image preview alignment for standalone cards with horizontal layout.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
         * </code>
         *
         * @return The thumbnailImageAlignment.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                .ThumbnailImageAlignment
            getThumbnailImageAlignment() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                  .ThumbnailImageAlignment
              result =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                      .ThumbnailImageAlignment.forNumber(thumbnailImageAlignment_);
          return result == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                  .ThumbnailImageAlignment.UNRECOGNIZED
              : result;
        }
        /**
         *
         *
         * <pre>
         * Required if orientation is horizontal.
         * Image preview alignment for standalone cards with horizontal layout.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
         * </code>
         *
         * @param value The thumbnailImageAlignment to set.
         * @return This builder for chaining.
         */
        public Builder setThumbnailImageAlignment(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                    .ThumbnailImageAlignment
                value) {
          if (value == null) {
            throw new NullPointerException();
          }
          bitField0_ |= 0x00000002;
          thumbnailImageAlignment_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required if orientation is horizontal.
         * Image preview alignment for standalone cards with horizontal layout.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;
         * </code>
         *
         * @return This builder for chaining.
         */
        public Builder clearThumbnailImageAlignment() {
          bitField0_ = (bitField0_ & ~0x00000002);
          thumbnailImageAlignment_ = 0;
          onChanged();
          return this;
        }

        private com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent cardContent_;
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
            cardContentBuilder_;
        /**
         *
         *
         * <pre>
         * Required. Card content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
         * </code>
         *
         * @return Whether the cardContent field is set.
         */
        public boolean hasCardContent() {
          return ((bitField0_ & 0x00000004) != 0);
        }
        /**
         *
         *
         * <pre>
         * Required. Card content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
         * </code>
         *
         * @return The cardContent.
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent getCardContent() {
          if (cardContentBuilder_ == null) {
            return cardContent_ == null
                ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
                    .getDefaultInstance()
                : cardContent_;
          } else {
            return cardContentBuilder_.getMessage();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Card content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
         * </code>
         */
        public Builder setCardContent(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent value) {
          if (cardContentBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            cardContent_ = value;
          } else {
            cardContentBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Card content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
         * </code>
         */
        public Builder setCardContent(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
                builderForValue) {
          if (cardContentBuilder_ == null) {
            cardContent_ = builderForValue.build();
          } else {
            cardContentBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Card content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
         * </code>
         */
        public Builder mergeCardContent(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent value) {
          if (cardContentBuilder_ == null) {
            if (((bitField0_ & 0x00000004) != 0)
                && cardContent_ != null
                && cardContent_
                    != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
                        .getDefaultInstance()) {
              getCardContentBuilder().mergeFrom(value);
            } else {
              cardContent_ = value;
            }
          } else {
            cardContentBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Card content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
         * </code>
         */
        public Builder clearCardContent() {
          bitField0_ = (bitField0_ & ~0x00000004);
          cardContent_ = null;
          if (cardContentBuilder_ != null) {
            cardContentBuilder_.dispose();
            cardContentBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Card content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
            getCardContentBuilder() {
          bitField0_ |= 0x00000004;
          onChanged();
          return getCardContentFieldBuilder().getBuilder();
        }
        /**
         *
         *
         * <pre>
         * Required. Card content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder
            getCardContentOrBuilder() {
          if (cardContentBuilder_ != null) {
            return cardContentBuilder_.getMessageOrBuilder();
          } else {
            return cardContent_ == null
                ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
                    .getDefaultInstance()
                : cardContent_;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Card content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;
         * </code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>
            getCardContentFieldBuilder() {
          if (cardContentBuilder_ == null) {
            cardContentBuilder_ =
                new com.google.protobuf.SingleFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder>(
                    getCardContent(), getParentForChildren(), isClean());
            cardContent_ = null;
          }
          return cardContentBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface RbmCardContentOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Optional. Title of the card (at most 200 bytes).
       *
       * At least one of the title, description or media must be set.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      java.lang.String getTitle();
      /**
       *
       *
       * <pre>
       * Optional. Title of the card (at most 200 bytes).
       *
       * At least one of the title, description or media must be set.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      com.google.protobuf.ByteString getTitleBytes();

      /**
       *
       *
       * <pre>
       * Optional. Description of the card (at most 2000 bytes).
       *
       * At least one of the title, description or media must be set.
       * </pre>
       *
       * <code>string description = 2;</code>
       *
       * @return The description.
       */
      java.lang.String getDescription();
      /**
       *
       *
       * <pre>
       * Optional. Description of the card (at most 2000 bytes).
       *
       * At least one of the title, description or media must be set.
       * </pre>
       *
       * <code>string description = 2;</code>
       *
       * @return The bytes for description.
       */
      com.google.protobuf.ByteString getDescriptionBytes();

      /**
       *
       *
       * <pre>
       * Optional. However at least one of the title, description or media must
       * be set. Media (image, GIF or a video) to include in the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
       * </code>
       *
       * @return Whether the media field is set.
       */
      boolean hasMedia();
      /**
       *
       *
       * <pre>
       * Optional. However at least one of the title, description or media must
       * be set. Media (image, GIF or a video) to include in the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
       * </code>
       *
       * @return The media.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia getMedia();
      /**
       *
       *
       * <pre>
       * Optional. However at least one of the title, description or media must
       * be set. Media (image, GIF or a video) to include in the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMediaOrBuilder
          getMediaOrBuilder();

      /**
       *
       *
       * <pre>
       * Optional. List of suggestions to include in the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
          getSuggestionsList();
      /**
       *
       *
       * <pre>
       * Optional. List of suggestions to include in the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getSuggestions(int index);
      /**
       *
       *
       * <pre>
       * Optional. List of suggestions to include in the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
       * </code>
       */
      int getSuggestionsCount();
      /**
       *
       *
       * <pre>
       * Optional. List of suggestions to include in the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
       * </code>
       */
      java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
          getSuggestionsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Optional. List of suggestions to include in the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
          getSuggestionsOrBuilder(int index);
    }
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) Card content
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent}
     */
    public static final class RbmCardContent extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent)
        RbmCardContentOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use RbmCardContent.newBuilder() to construct.
      private RbmCardContent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private RbmCardContent() {
        title_ = "";
        description_ = "";
        suggestions_ = java.util.Collections.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder.class);
      }

      public interface RbmMediaOrBuilder
          extends
          // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia)
          com.google.protobuf.MessageOrBuilder {

        /**
         *
         *
         * <pre>
         * Required. Publicly reachable URI of the file. The RBM platform
         * determines the MIME type of the file from the content-type field in
         * the HTTP headers when the platform fetches the file. The content-type
         * field must be present and accurate in the HTTP response from the URL.
         * </pre>
         *
         * <code>string file_uri = 1;</code>
         *
         * @return The fileUri.
         */
        java.lang.String getFileUri();
        /**
         *
         *
         * <pre>
         * Required. Publicly reachable URI of the file. The RBM platform
         * determines the MIME type of the file from the content-type field in
         * the HTTP headers when the platform fetches the file. The content-type
         * field must be present and accurate in the HTTP response from the URL.
         * </pre>
         *
         * <code>string file_uri = 1;</code>
         *
         * @return The bytes for fileUri.
         */
        com.google.protobuf.ByteString getFileUriBytes();

        /**
         *
         *
         * <pre>
         * Optional. Publicly reachable URI of the thumbnail.If you don't
         * provide a thumbnail URI, the RBM platform displays a blank
         * placeholder thumbnail until the user's device downloads the file.
         * Depending on the user's setting, the file may not download
         * automatically and may require the user to tap a download button.
         * </pre>
         *
         * <code>string thumbnail_uri = 2;</code>
         *
         * @return The thumbnailUri.
         */
        java.lang.String getThumbnailUri();
        /**
         *
         *
         * <pre>
         * Optional. Publicly reachable URI of the thumbnail.If you don't
         * provide a thumbnail URI, the RBM platform displays a blank
         * placeholder thumbnail until the user's device downloads the file.
         * Depending on the user's setting, the file may not download
         * automatically and may require the user to tap a download button.
         * </pre>
         *
         * <code>string thumbnail_uri = 2;</code>
         *
         * @return The bytes for thumbnailUri.
         */
        com.google.protobuf.ByteString getThumbnailUriBytes();

        /**
         *
         *
         * <pre>
         * Required for cards with vertical orientation. The height of the media
         * within a rich card with a vertical layout.
         * For a standalone card with horizontal layout, height is not
         * customizable, and this field is ignored.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
         * </code>
         *
         * @return The enum numeric value on the wire for height.
         */
        int getHeightValue();
        /**
         *
         *
         * <pre>
         * Required for cards with vertical orientation. The height of the media
         * within a rich card with a vertical layout.
         * For a standalone card with horizontal layout, height is not
         * customizable, and this field is ignored.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
         * </code>
         *
         * @return The height.
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
            getHeight();
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) Media displayed in Cards
       * The following media-types are currently supported:
       *
       * Image Types
       *
       * * image/jpeg
       * * image/jpg'
       * * image/gif
       * * image/png
       *
       * Video Types
       *
       * * video/h263
       * * video/m4v
       * * video/mp4
       * * video/mpeg
       * * video/mpeg4
       * * video/webm
       * </pre>
       *
       * Protobuf type {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia}
       */
      public static final class RbmMedia extends com.google.protobuf.GeneratedMessageV3
          implements
          // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia)
          RbmMediaOrBuilder {
        private static final long serialVersionUID = 0L;
        // Use RbmMedia.newBuilder() to construct.
        private RbmMedia(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
          super(builder);
        }

        private RbmMedia() {
          fileUri_ = "";
          thumbnailUri_ = "";
          height_ = 0;
        }

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

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder
                      .class);
        }

        /**
         *
         *
         * <pre>
         * Media height
         * </pre>
         *
         * Protobuf enum {@code
         * google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height}
         */
        public enum Height implements com.google.protobuf.ProtocolMessageEnum {
          /**
           *
           *
           * <pre>
           * Not specified.
           * </pre>
           *
           * <code>HEIGHT_UNSPECIFIED = 0;</code>
           */
          HEIGHT_UNSPECIFIED(0),
          /**
           *
           *
           * <pre>
           * 112 DP.
           * </pre>
           *
           * <code>SHORT = 1;</code>
           */
          SHORT(1),
          /**
           *
           *
           * <pre>
           * 168 DP.
           * </pre>
           *
           * <code>MEDIUM = 2;</code>
           */
          MEDIUM(2),
          /**
           *
           *
           * <pre>
           * 264 DP. Not available for rich card carousels when the card width
           * is set to small.
           * </pre>
           *
           * <code>TALL = 3;</code>
           */
          TALL(3),
          UNRECOGNIZED(-1),
          ;

          /**
           *
           *
           * <pre>
           * Not specified.
           * </pre>
           *
           * <code>HEIGHT_UNSPECIFIED = 0;</code>
           */
          public static final int HEIGHT_UNSPECIFIED_VALUE = 0;
          /**
           *
           *
           * <pre>
           * 112 DP.
           * </pre>
           *
           * <code>SHORT = 1;</code>
           */
          public static final int SHORT_VALUE = 1;
          /**
           *
           *
           * <pre>
           * 168 DP.
           * </pre>
           *
           * <code>MEDIUM = 2;</code>
           */
          public static final int MEDIUM_VALUE = 2;
          /**
           *
           *
           * <pre>
           * 264 DP. Not available for rich card carousels when the card width
           * is set to small.
           * </pre>
           *
           * <code>TALL = 3;</code>
           */
          public static final int TALL_VALUE = 3;

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

          /**
           * @param value The numeric wire value of the corresponding enum entry.
           * @return The enum associated with the given numeric wire value.
           * @deprecated Use {@link #forNumber(int)} instead.
           */
          @java.lang.Deprecated
          public static Height 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 Height forNumber(int value) {
            switch (value) {
              case 0:
                return HEIGHT_UNSPECIFIED;
              case 1:
                return SHORT;
              case 2:
                return MEDIUM;
              case 3:
                return TALL;
              default:
                return null;
            }
          }

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

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

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

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

          public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                .getDescriptor()
                .getEnumTypes()
                .get(0);
          }

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

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

          // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height)
        }

        public static final int FILE_URI_FIELD_NUMBER = 1;

        @SuppressWarnings("serial")
        private volatile java.lang.Object fileUri_ = "";
        /**
         *
         *
         * <pre>
         * Required. Publicly reachable URI of the file. The RBM platform
         * determines the MIME type of the file from the content-type field in
         * the HTTP headers when the platform fetches the file. The content-type
         * field must be present and accurate in the HTTP response from the URL.
         * </pre>
         *
         * <code>string file_uri = 1;</code>
         *
         * @return The fileUri.
         */
        @java.lang.Override
        public java.lang.String getFileUri() {
          java.lang.Object ref = fileUri_;
          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();
            fileUri_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Publicly reachable URI of the file. The RBM platform
         * determines the MIME type of the file from the content-type field in
         * the HTTP headers when the platform fetches the file. The content-type
         * field must be present and accurate in the HTTP response from the URL.
         * </pre>
         *
         * <code>string file_uri = 1;</code>
         *
         * @return The bytes for fileUri.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getFileUriBytes() {
          java.lang.Object ref = fileUri_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            fileUri_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int THUMBNAIL_URI_FIELD_NUMBER = 2;

        @SuppressWarnings("serial")
        private volatile java.lang.Object thumbnailUri_ = "";
        /**
         *
         *
         * <pre>
         * Optional. Publicly reachable URI of the thumbnail.If you don't
         * provide a thumbnail URI, the RBM platform displays a blank
         * placeholder thumbnail until the user's device downloads the file.
         * Depending on the user's setting, the file may not download
         * automatically and may require the user to tap a download button.
         * </pre>
         *
         * <code>string thumbnail_uri = 2;</code>
         *
         * @return The thumbnailUri.
         */
        @java.lang.Override
        public java.lang.String getThumbnailUri() {
          java.lang.Object ref = thumbnailUri_;
          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();
            thumbnailUri_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Publicly reachable URI of the thumbnail.If you don't
         * provide a thumbnail URI, the RBM platform displays a blank
         * placeholder thumbnail until the user's device downloads the file.
         * Depending on the user's setting, the file may not download
         * automatically and may require the user to tap a download button.
         * </pre>
         *
         * <code>string thumbnail_uri = 2;</code>
         *
         * @return The bytes for thumbnailUri.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getThumbnailUriBytes() {
          java.lang.Object ref = thumbnailUri_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            thumbnailUri_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int HEIGHT_FIELD_NUMBER = 3;
        private int height_ = 0;
        /**
         *
         *
         * <pre>
         * Required for cards with vertical orientation. The height of the media
         * within a rich card with a vertical layout.
         * For a standalone card with horizontal layout, height is not
         * customizable, and this field is ignored.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
         * </code>
         *
         * @return The enum numeric value on the wire for height.
         */
        @java.lang.Override
        public int getHeightValue() {
          return height_;
        }
        /**
         *
         *
         * <pre>
         * Required for cards with vertical orientation. The height of the media
         * within a rich card with a vertical layout.
         * For a standalone card with horizontal layout, height is not
         * customizable, and this field is ignored.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
         * </code>
         *
         * @return The height.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
            getHeight() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height result =
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
                  .forNumber(height_);
          return result == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
                  .UNRECOGNIZED
              : result;
        }

        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(fileUri_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileUri_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbnailUri_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 2, thumbnailUri_);
          }
          if (height_
              != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
                  .HEIGHT_UNSPECIFIED
                  .getNumber()) {
            output.writeEnum(3, height_);
          }
          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(fileUri_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileUri_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbnailUri_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, thumbnailUri_);
          }
          if (height_
              != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
                  .HEIGHT_UNSPECIFIED
                  .getNumber()) {
            size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, height_);
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj
              instanceof
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia)) {
            return super.equals(obj);
          }
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia other =
              (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia) obj;

          if (!getFileUri().equals(other.getFileUri())) return false;
          if (!getThumbnailUri().equals(other.getThumbnailUri())) return false;
          if (height_ != other.height_) 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) + FILE_URI_FIELD_NUMBER;
          hash = (53 * hash) + getFileUri().hashCode();
          hash = (37 * hash) + THUMBNAIL_URI_FIELD_NUMBER;
          hash = (53 * hash) + getThumbnailUri().hashCode();
          hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
          hash = (53 * hash) + height_;
          hash = (29 * hash) + getUnknownFields().hashCode();
          memoizedHashCode = hash;
          return hash;
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseFrom(java.nio.ByteBuffer data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseFrom(
                java.nio.ByteBuffer data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseFrom(com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            parseFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

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

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

        public static Builder newBuilder(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia 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>
         * Rich Business Messaging (RBM) Media displayed in Cards
         * The following media-types are currently supported:
         *
         * Image Types
         *
         * * image/jpeg
         * * image/jpg'
         * * image/gif
         * * image/png
         *
         * Video Types
         *
         * * video/h263
         * * video/m4v
         * * video/mp4
         * * video/mpeg
         * * video/mpeg4
         * * video/webm
         * </pre>
         *
         * Protobuf type {@code
         * google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia}
         */
        public static final class Builder
            extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
            implements
            // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia)
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMediaOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                        .class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                        .Builder.class);
          }

          // Construct using
          // com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.newBuilder()
          private Builder() {}

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

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

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_RbmMedia_descriptor;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
              getDefaultInstanceForType() {
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                .getDefaultInstance();
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
              build() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia result =
                buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
              buildPartial() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia result =
                new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia(
                    this);
            if (bitField0_ != 0) {
              buildPartial0(result);
            }
            onBuilt();
            return result;
          }

          private void buildPartial0(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.fileUri_ = fileUri_;
            }
            if (((from_bitField0_ & 0x00000002) != 0)) {
              result.thumbnailUri_ = thumbnailUri_;
            }
            if (((from_bitField0_ & 0x00000004) != 0)) {
              result.height_ = height_;
            }
          }

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

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

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

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

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

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

          @java.lang.Override
          public Builder mergeFrom(com.google.protobuf.Message other) {
            if (other
                instanceof
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia) {
              return mergeFrom(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia)
                      other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }

          public Builder mergeFrom(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia other) {
            if (other
                == com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                    .getDefaultInstance()) return this;
            if (!other.getFileUri().isEmpty()) {
              fileUri_ = other.fileUri_;
              bitField0_ |= 0x00000001;
              onChanged();
            }
            if (!other.getThumbnailUri().isEmpty()) {
              thumbnailUri_ = other.thumbnailUri_;
              bitField0_ |= 0x00000002;
              onChanged();
            }
            if (other.height_ != 0) {
              setHeightValue(other.getHeightValue());
            }
            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:
                    {
                      fileUri_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000001;
                      break;
                    } // case 10
                  case 18:
                    {
                      thumbnailUri_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000002;
                      break;
                    } // case 18
                  case 24:
                    {
                      height_ = input.readEnum();
                      bitField0_ |= 0x00000004;
                      break;
                    } // case 24
                  default:
                    {
                      if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                        done = true; // was an endgroup tag
                      }
                      break;
                    } // default:
                } // switch (tag)
              } // while (!done)
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.unwrapIOException();
            } finally {
              onChanged();
            } // finally
            return this;
          }

          private int bitField0_;

          private java.lang.Object fileUri_ = "";
          /**
           *
           *
           * <pre>
           * Required. Publicly reachable URI of the file. The RBM platform
           * determines the MIME type of the file from the content-type field in
           * the HTTP headers when the platform fetches the file. The content-type
           * field must be present and accurate in the HTTP response from the URL.
           * </pre>
           *
           * <code>string file_uri = 1;</code>
           *
           * @return The fileUri.
           */
          public java.lang.String getFileUri() {
            java.lang.Object ref = fileUri_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              fileUri_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Publicly reachable URI of the file. The RBM platform
           * determines the MIME type of the file from the content-type field in
           * the HTTP headers when the platform fetches the file. The content-type
           * field must be present and accurate in the HTTP response from the URL.
           * </pre>
           *
           * <code>string file_uri = 1;</code>
           *
           * @return The bytes for fileUri.
           */
          public com.google.protobuf.ByteString getFileUriBytes() {
            java.lang.Object ref = fileUri_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              fileUri_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Publicly reachable URI of the file. The RBM platform
           * determines the MIME type of the file from the content-type field in
           * the HTTP headers when the platform fetches the file. The content-type
           * field must be present and accurate in the HTTP response from the URL.
           * </pre>
           *
           * <code>string file_uri = 1;</code>
           *
           * @param value The fileUri to set.
           * @return This builder for chaining.
           */
          public Builder setFileUri(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            fileUri_ = value;
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Publicly reachable URI of the file. The RBM platform
           * determines the MIME type of the file from the content-type field in
           * the HTTP headers when the platform fetches the file. The content-type
           * field must be present and accurate in the HTTP response from the URL.
           * </pre>
           *
           * <code>string file_uri = 1;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearFileUri() {
            fileUri_ = getDefaultInstance().getFileUri();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Publicly reachable URI of the file. The RBM platform
           * determines the MIME type of the file from the content-type field in
           * the HTTP headers when the platform fetches the file. The content-type
           * field must be present and accurate in the HTTP response from the URL.
           * </pre>
           *
           * <code>string file_uri = 1;</code>
           *
           * @param value The bytes for fileUri to set.
           * @return This builder for chaining.
           */
          public Builder setFileUriBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            fileUri_ = value;
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }

          private java.lang.Object thumbnailUri_ = "";
          /**
           *
           *
           * <pre>
           * Optional. Publicly reachable URI of the thumbnail.If you don't
           * provide a thumbnail URI, the RBM platform displays a blank
           * placeholder thumbnail until the user's device downloads the file.
           * Depending on the user's setting, the file may not download
           * automatically and may require the user to tap a download button.
           * </pre>
           *
           * <code>string thumbnail_uri = 2;</code>
           *
           * @return The thumbnailUri.
           */
          public java.lang.String getThumbnailUri() {
            java.lang.Object ref = thumbnailUri_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              thumbnailUri_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Publicly reachable URI of the thumbnail.If you don't
           * provide a thumbnail URI, the RBM platform displays a blank
           * placeholder thumbnail until the user's device downloads the file.
           * Depending on the user's setting, the file may not download
           * automatically and may require the user to tap a download button.
           * </pre>
           *
           * <code>string thumbnail_uri = 2;</code>
           *
           * @return The bytes for thumbnailUri.
           */
          public com.google.protobuf.ByteString getThumbnailUriBytes() {
            java.lang.Object ref = thumbnailUri_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              thumbnailUri_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Publicly reachable URI of the thumbnail.If you don't
           * provide a thumbnail URI, the RBM platform displays a blank
           * placeholder thumbnail until the user's device downloads the file.
           * Depending on the user's setting, the file may not download
           * automatically and may require the user to tap a download button.
           * </pre>
           *
           * <code>string thumbnail_uri = 2;</code>
           *
           * @param value The thumbnailUri to set.
           * @return This builder for chaining.
           */
          public Builder setThumbnailUri(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            thumbnailUri_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Publicly reachable URI of the thumbnail.If you don't
           * provide a thumbnail URI, the RBM platform displays a blank
           * placeholder thumbnail until the user's device downloads the file.
           * Depending on the user's setting, the file may not download
           * automatically and may require the user to tap a download button.
           * </pre>
           *
           * <code>string thumbnail_uri = 2;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearThumbnailUri() {
            thumbnailUri_ = getDefaultInstance().getThumbnailUri();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Publicly reachable URI of the thumbnail.If you don't
           * provide a thumbnail URI, the RBM platform displays a blank
           * placeholder thumbnail until the user's device downloads the file.
           * Depending on the user's setting, the file may not download
           * automatically and may require the user to tap a download button.
           * </pre>
           *
           * <code>string thumbnail_uri = 2;</code>
           *
           * @param value The bytes for thumbnailUri to set.
           * @return This builder for chaining.
           */
          public Builder setThumbnailUriBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            thumbnailUri_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }

          private int height_ = 0;
          /**
           *
           *
           * <pre>
           * Required for cards with vertical orientation. The height of the media
           * within a rich card with a vertical layout.
           * For a standalone card with horizontal layout, height is not
           * customizable, and this field is ignored.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
           * </code>
           *
           * @return The enum numeric value on the wire for height.
           */
          @java.lang.Override
          public int getHeightValue() {
            return height_;
          }
          /**
           *
           *
           * <pre>
           * Required for cards with vertical orientation. The height of the media
           * within a rich card with a vertical layout.
           * For a standalone card with horizontal layout, height is not
           * customizable, and this field is ignored.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
           * </code>
           *
           * @param value The enum numeric value on the wire for height to set.
           * @return This builder for chaining.
           */
          public Builder setHeightValue(int value) {
            height_ = value;
            bitField0_ |= 0x00000004;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required for cards with vertical orientation. The height of the media
           * within a rich card with a vertical layout.
           * For a standalone card with horizontal layout, height is not
           * customizable, and this field is ignored.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
           * </code>
           *
           * @return The height.
           */
          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
              getHeight() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
                result =
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                        .Height.forNumber(height_);
            return result == null
                ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
                    .UNRECOGNIZED
                : result;
          }
          /**
           *
           *
           * <pre>
           * Required for cards with vertical orientation. The height of the media
           * within a rich card with a vertical layout.
           * For a standalone card with horizontal layout, height is not
           * customizable, and this field is ignored.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
           * </code>
           *
           * @param value The height to set.
           * @return This builder for chaining.
           */
          public Builder setHeight(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height
                  value) {
            if (value == null) {
              throw new NullPointerException();
            }
            bitField0_ |= 0x00000004;
            height_ = value.getNumber();
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required for cards with vertical orientation. The height of the media
           * within a rich card with a vertical layout.
           * For a standalone card with horizontal layout, height is not
           * customizable, and this field is ignored.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
           * </code>
           *
           * @return This builder for chaining.
           */
          public Builder clearHeight() {
            bitField0_ = (bitField0_ & ~0x00000004);
            height_ = 0;
            onChanged();
            return this;
          }

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

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

          // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia)
        }

        // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia)
        private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
                .RbmMedia
            DEFAULT_INSTANCE;

        static {
          DEFAULT_INSTANCE =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia();
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

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

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }
      }

      public static final int TITLE_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object title_ = "";
      /**
       *
       *
       * <pre>
       * Optional. Title of the card (at most 200 bytes).
       *
       * At least one of the title, description or media must be set.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      @java.lang.Override
      public java.lang.String getTitle() {
        java.lang.Object ref = title_;
        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();
          title_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Title of the card (at most 200 bytes).
       *
       * At least one of the title, description or media must be set.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTitleBytes() {
        java.lang.Object ref = title_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          title_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int DESCRIPTION_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private volatile java.lang.Object description_ = "";
      /**
       *
       *
       * <pre>
       * Optional. Description of the card (at most 2000 bytes).
       *
       * At least one of the title, description or media must be set.
       * </pre>
       *
       * <code>string description = 2;</code>
       *
       * @return The description.
       */
      @java.lang.Override
      public java.lang.String getDescription() {
        java.lang.Object ref = description_;
        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();
          description_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Description of the card (at most 2000 bytes).
       *
       * At least one of the title, description or media must be set.
       * </pre>
       *
       * <code>string description = 2;</code>
       *
       * @return The bytes for description.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getDescriptionBytes() {
        java.lang.Object ref = description_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          description_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int MEDIA_FIELD_NUMBER = 3;
      private com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media_;
      /**
       *
       *
       * <pre>
       * Optional. However at least one of the title, description or media must
       * be set. Media (image, GIF or a video) to include in the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
       * </code>
       *
       * @return Whether the media field is set.
       */
      @java.lang.Override
      public boolean hasMedia() {
        return media_ != null;
      }
      /**
       *
       *
       * <pre>
       * Optional. However at least one of the title, description or media must
       * be set. Media (image, GIF or a video) to include in the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
       * </code>
       *
       * @return The media.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia getMedia() {
        return media_ == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                .getDefaultInstance()
            : media_;
      }
      /**
       *
       *
       * <pre>
       * Optional. However at least one of the title, description or media must
       * be set. Media (image, GIF or a video) to include in the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMediaOrBuilder
          getMediaOrBuilder() {
        return media_ == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                .getDefaultInstance()
            : media_;
      }

      public static final int SUGGESTIONS_FIELD_NUMBER = 4;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
          suggestions_;
      /**
       *
       *
       * <pre>
       * Optional. List of suggestions to include in the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
          getSuggestionsList() {
        return suggestions_;
      }
      /**
       *
       *
       * <pre>
       * Optional. List of suggestions to include in the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
          getSuggestionsOrBuilderList() {
        return suggestions_;
      }
      /**
       *
       *
       * <pre>
       * Optional. List of suggestions to include in the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
       * </code>
       */
      @java.lang.Override
      public int getSuggestionsCount() {
        return suggestions_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. List of suggestions to include in the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getSuggestions(
          int index) {
        return suggestions_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. List of suggestions to include in the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
          getSuggestionsOrBuilder(int index) {
        return suggestions_.get(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 {
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
        }
        if (media_ != null) {
          output.writeMessage(3, getMedia());
        }
        for (int i = 0; i < suggestions_.size(); i++) {
          output.writeMessage(4, suggestions_.get(i));
        }
        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(title_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
        }
        if (media_ != null) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMedia());
        }
        for (int i = 0; i < suggestions_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, suggestions_.get(i));
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent) obj;

        if (!getTitle().equals(other.getTitle())) return false;
        if (!getDescription().equals(other.getDescription())) return false;
        if (hasMedia() != other.hasMedia()) return false;
        if (hasMedia()) {
          if (!getMedia().equals(other.getMedia())) return false;
        }
        if (!getSuggestionsList().equals(other.getSuggestionsList())) 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) + TITLE_FIELD_NUMBER;
        hash = (53 * hash) + getTitle().hashCode();
        hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
        hash = (53 * hash) + getDescription().hashCode();
        if (hasMedia()) {
          hash = (37 * hash) + MEDIA_FIELD_NUMBER;
          hash = (53 * hash) + getMedia().hashCode();
        }
        if (getSuggestionsCount() > 0) {
          hash = (37 * hash) + SUGGESTIONS_FIELD_NUMBER;
          hash = (53 * hash) + getSuggestionsList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent 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>
       * Rich Business Messaging (RBM) Card content
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          title_ = "";
          description_ = "";
          media_ = null;
          if (mediaBuilder_ != null) {
            mediaBuilder_.dispose();
            mediaBuilder_ = null;
          }
          if (suggestionsBuilder_ == null) {
            suggestions_ = java.util.Collections.emptyList();
          } else {
            suggestions_ = null;
            suggestionsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000008);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmCardContent_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent result) {
          if (suggestionsBuilder_ == null) {
            if (((bitField0_ & 0x00000008) != 0)) {
              suggestions_ = java.util.Collections.unmodifiableList(suggestions_);
              bitField0_ = (bitField0_ & ~0x00000008);
            }
            result.suggestions_ = suggestions_;
          } else {
            result.suggestions_ = suggestionsBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.title_ = title_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.description_ = description_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.media_ = mediaBuilder_ == null ? media_ : mediaBuilder_.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.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
                  .getDefaultInstance()) return this;
          if (!other.getTitle().isEmpty()) {
            title_ = other.title_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.getDescription().isEmpty()) {
            description_ = other.description_;
            bitField0_ |= 0x00000002;
            onChanged();
          }
          if (other.hasMedia()) {
            mergeMedia(other.getMedia());
          }
          if (suggestionsBuilder_ == null) {
            if (!other.suggestions_.isEmpty()) {
              if (suggestions_.isEmpty()) {
                suggestions_ = other.suggestions_;
                bitField0_ = (bitField0_ & ~0x00000008);
              } else {
                ensureSuggestionsIsMutable();
                suggestions_.addAll(other.suggestions_);
              }
              onChanged();
            }
          } else {
            if (!other.suggestions_.isEmpty()) {
              if (suggestionsBuilder_.isEmpty()) {
                suggestionsBuilder_.dispose();
                suggestionsBuilder_ = null;
                suggestions_ = other.suggestions_;
                bitField0_ = (bitField0_ & ~0x00000008);
                suggestionsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getSuggestionsFieldBuilder()
                        : null;
              } else {
                suggestionsBuilder_.addAllMessages(other.suggestions_);
              }
            }
          }
          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:
                  {
                    title_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    description_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 18
                case 26:
                  {
                    input.readMessage(getMediaFieldBuilder().getBuilder(), extensionRegistry);
                    bitField0_ |= 0x00000004;
                    break;
                  } // case 26
                case 34:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
                                .parser(),
                            extensionRegistry);
                    if (suggestionsBuilder_ == null) {
                      ensureSuggestionsIsMutable();
                      suggestions_.add(m);
                    } else {
                      suggestionsBuilder_.addMessage(m);
                    }
                    break;
                  } // case 34
                default:
                  {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }

        private int bitField0_;

        private java.lang.Object title_ = "";
        /**
         *
         *
         * <pre>
         * Optional. Title of the card (at most 200 bytes).
         *
         * At least one of the title, description or media must be set.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The title.
         */
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            title_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Title of the card (at most 200 bytes).
         *
         * At least one of the title, description or media must be set.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The bytes for title.
         */
        public com.google.protobuf.ByteString getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Title of the card (at most 200 bytes).
         *
         * At least one of the title, description or media must be set.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The title to set.
         * @return This builder for chaining.
         */
        public Builder setTitle(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Title of the card (at most 200 bytes).
         *
         * At least one of the title, description or media must be set.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearTitle() {
          title_ = getDefaultInstance().getTitle();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Title of the card (at most 200 bytes).
         *
         * At least one of the title, description or media must be set.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The bytes for title to set.
         * @return This builder for chaining.
         */
        public Builder setTitleBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.lang.Object description_ = "";
        /**
         *
         *
         * <pre>
         * Optional. Description of the card (at most 2000 bytes).
         *
         * At least one of the title, description or media must be set.
         * </pre>
         *
         * <code>string description = 2;</code>
         *
         * @return The description.
         */
        public java.lang.String getDescription() {
          java.lang.Object ref = description_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            description_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Description of the card (at most 2000 bytes).
         *
         * At least one of the title, description or media must be set.
         * </pre>
         *
         * <code>string description = 2;</code>
         *
         * @return The bytes for description.
         */
        public com.google.protobuf.ByteString getDescriptionBytes() {
          java.lang.Object ref = description_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            description_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Description of the card (at most 2000 bytes).
         *
         * At least one of the title, description or media must be set.
         * </pre>
         *
         * <code>string description = 2;</code>
         *
         * @param value The description to set.
         * @return This builder for chaining.
         */
        public Builder setDescription(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          description_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Description of the card (at most 2000 bytes).
         *
         * At least one of the title, description or media must be set.
         * </pre>
         *
         * <code>string description = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearDescription() {
          description_ = getDefaultInstance().getDescription();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Description of the card (at most 2000 bytes).
         *
         * At least one of the title, description or media must be set.
         * </pre>
         *
         * <code>string description = 2;</code>
         *
         * @param value The bytes for description to set.
         * @return This builder for chaining.
         */
        public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          description_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }

        private com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media_;
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMediaOrBuilder>
            mediaBuilder_;
        /**
         *
         *
         * <pre>
         * Optional. However at least one of the title, description or media must
         * be set. Media (image, GIF or a video) to include in the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
         * </code>
         *
         * @return Whether the media field is set.
         */
        public boolean hasMedia() {
          return ((bitField0_ & 0x00000004) != 0);
        }
        /**
         *
         *
         * <pre>
         * Optional. However at least one of the title, description or media must
         * be set. Media (image, GIF or a video) to include in the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
         * </code>
         *
         * @return The media.
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
            getMedia() {
          if (mediaBuilder_ == null) {
            return media_ == null
                ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                    .getDefaultInstance()
                : media_;
          } else {
            return mediaBuilder_.getMessage();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. However at least one of the title, description or media must
         * be set. Media (image, GIF or a video) to include in the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
         * </code>
         */
        public Builder setMedia(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia value) {
          if (mediaBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            media_ = value;
          } else {
            mediaBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. However at least one of the title, description or media must
         * be set. Media (image, GIF or a video) to include in the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
         * </code>
         */
        public Builder setMedia(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder
                builderForValue) {
          if (mediaBuilder_ == null) {
            media_ = builderForValue.build();
          } else {
            mediaBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. However at least one of the title, description or media must
         * be set. Media (image, GIF or a video) to include in the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
         * </code>
         */
        public Builder mergeMedia(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia value) {
          if (mediaBuilder_ == null) {
            if (((bitField0_ & 0x00000004) != 0)
                && media_ != null
                && media_
                    != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                        .getDefaultInstance()) {
              getMediaBuilder().mergeFrom(value);
            } else {
              media_ = value;
            }
          } else {
            mediaBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. However at least one of the title, description or media must
         * be set. Media (image, GIF or a video) to include in the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
         * </code>
         */
        public Builder clearMedia() {
          bitField0_ = (bitField0_ & ~0x00000004);
          media_ = null;
          if (mediaBuilder_ != null) {
            mediaBuilder_.dispose();
            mediaBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. However at least one of the title, description or media must
         * be set. Media (image, GIF or a video) to include in the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder
            getMediaBuilder() {
          bitField0_ |= 0x00000004;
          onChanged();
          return getMediaFieldBuilder().getBuilder();
        }
        /**
         *
         *
         * <pre>
         * Optional. However at least one of the title, description or media must
         * be set. Media (image, GIF or a video) to include in the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMediaOrBuilder
            getMediaOrBuilder() {
          if (mediaBuilder_ != null) {
            return mediaBuilder_.getMessageOrBuilder();
          } else {
            return media_ == null
                ? com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                    .getDefaultInstance()
                : media_;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. However at least one of the title, description or media must
         * be set. Media (image, GIF or a video) to include in the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;
         * </code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMediaOrBuilder>
            getMediaFieldBuilder() {
          if (mediaBuilder_ == null) {
            mediaBuilder_ =
                new com.google.protobuf.SingleFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
                        .Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
                        .RbmMediaOrBuilder>(getMedia(), getParentForChildren(), isClean());
            media_ = null;
          }
          return mediaBuilder_;
        }

        private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
            suggestions_ = java.util.Collections.emptyList();

        private void ensureSuggestionsIsMutable() {
          if (!((bitField0_ & 0x00000008) != 0)) {
            suggestions_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>(suggestions_);
            bitField0_ |= 0x00000008;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
            suggestionsBuilder_;

        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
            getSuggestionsList() {
          if (suggestionsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(suggestions_);
          } else {
            return suggestionsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public int getSuggestionsCount() {
          if (suggestionsBuilder_ == null) {
            return suggestions_.size();
          } else {
            return suggestionsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion getSuggestions(
            int index) {
          if (suggestionsBuilder_ == null) {
            return suggestions_.get(index);
          } else {
            return suggestionsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public Builder setSuggestions(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
          if (suggestionsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureSuggestionsIsMutable();
            suggestions_.set(index, value);
            onChanged();
          } else {
            suggestionsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public Builder setSuggestions(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
                builderForValue) {
          if (suggestionsBuilder_ == null) {
            ensureSuggestionsIsMutable();
            suggestions_.set(index, builderForValue.build());
            onChanged();
          } else {
            suggestionsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public Builder addSuggestions(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
          if (suggestionsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureSuggestionsIsMutable();
            suggestions_.add(value);
            onChanged();
          } else {
            suggestionsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public Builder addSuggestions(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion value) {
          if (suggestionsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureSuggestionsIsMutable();
            suggestions_.add(index, value);
            onChanged();
          } else {
            suggestionsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public Builder addSuggestions(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
                builderForValue) {
          if (suggestionsBuilder_ == null) {
            ensureSuggestionsIsMutable();
            suggestions_.add(builderForValue.build());
            onChanged();
          } else {
            suggestionsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public Builder addSuggestions(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
                builderForValue) {
          if (suggestionsBuilder_ == null) {
            ensureSuggestionsIsMutable();
            suggestions_.add(index, builderForValue.build());
            onChanged();
          } else {
            suggestionsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public Builder addAllSuggestions(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
                values) {
          if (suggestionsBuilder_ == null) {
            ensureSuggestionsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suggestions_);
            onChanged();
          } else {
            suggestionsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public Builder clearSuggestions() {
          if (suggestionsBuilder_ == null) {
            suggestions_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000008);
            onChanged();
          } else {
            suggestionsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public Builder removeSuggestions(int index) {
          if (suggestionsBuilder_ == null) {
            ensureSuggestionsIsMutable();
            suggestions_.remove(index);
            onChanged();
          } else {
            suggestionsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
            getSuggestionsBuilder(int index) {
          return getSuggestionsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder
            getSuggestionsOrBuilder(int index) {
          if (suggestionsBuilder_ == null) {
            return suggestions_.get(index);
          } else {
            return suggestionsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public java.util.List<
                ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
            getSuggestionsOrBuilderList() {
          if (suggestionsBuilder_ != null) {
            return suggestionsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(suggestions_);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
            addSuggestionsBuilder() {
          return getSuggestionsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder
            addSuggestionsBuilder(int index) {
          return getSuggestionsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. List of suggestions to include in the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder>
            getSuggestionsBuilderList() {
          return getSuggestionsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>
            getSuggestionsFieldBuilder() {
          if (suggestionsBuilder_ == null) {
            suggestionsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>(
                    suggestions_,
                    ((bitField0_ & 0x00000008) != 0),
                    getParentForChildren(),
                    isClean());
            suggestions_ = null;
          }
          return suggestionsBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface RbmSuggestionOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Predefined replies for user to select instead of typing
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
       *
       * @return Whether the reply field is set.
       */
      boolean hasReply();
      /**
       *
       *
       * <pre>
       * Predefined replies for user to select instead of typing
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
       *
       * @return The reply.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply getReply();
      /**
       *
       *
       * <pre>
       * Predefined replies for user to select instead of typing
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder
          getReplyOrBuilder();

      /**
       *
       *
       * <pre>
       * Predefined client side actions that user can choose
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;</code>
       *
       * @return Whether the action field is set.
       */
      boolean hasAction();
      /**
       *
       *
       * <pre>
       * Predefined client side actions that user can choose
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;</code>
       *
       * @return The action.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction getAction();
      /**
       *
       *
       * <pre>
       * Predefined client side actions that user can choose
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;</code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder
          getActionOrBuilder();

      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.SuggestionCase
          getSuggestionCase();
    }
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) suggestion. Suggestions allow user to
     * easily select/click a predefined response or perform an action (like
     * opening a web uri).
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion}
     */
    public static final class RbmSuggestion extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion)
        RbmSuggestionOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use RbmSuggestion.newBuilder() to construct.
      private RbmSuggestion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private RbmSuggestion() {}

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder.class);
      }

      private int suggestionCase_ = 0;

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

      public enum SuggestionCase
          implements
              com.google.protobuf.Internal.EnumLite,
              com.google.protobuf.AbstractMessage.InternalOneOfEnum {
        REPLY(1),
        ACTION(2),
        SUGGESTION_NOT_SET(0);
        private final int value;

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

        public static SuggestionCase forNumber(int value) {
          switch (value) {
            case 1:
              return REPLY;
            case 2:
              return ACTION;
            case 0:
              return SUGGESTION_NOT_SET;
            default:
              return null;
          }
        }

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

      public SuggestionCase getSuggestionCase() {
        return SuggestionCase.forNumber(suggestionCase_);
      }

      public static final int REPLY_FIELD_NUMBER = 1;
      /**
       *
       *
       * <pre>
       * Predefined replies for user to select instead of typing
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
       *
       * @return Whether the reply field is set.
       */
      @java.lang.Override
      public boolean hasReply() {
        return suggestionCase_ == 1;
      }
      /**
       *
       *
       * <pre>
       * Predefined replies for user to select instead of typing
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
       *
       * @return The reply.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply getReply() {
        if (suggestionCase_ == 1) {
          return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) suggestion_;
        }
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
            .getDefaultInstance();
      }
      /**
       *
       *
       * <pre>
       * Predefined replies for user to select instead of typing
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder
          getReplyOrBuilder() {
        if (suggestionCase_ == 1) {
          return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) suggestion_;
        }
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
            .getDefaultInstance();
      }

      public static final int ACTION_FIELD_NUMBER = 2;
      /**
       *
       *
       * <pre>
       * Predefined client side actions that user can choose
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;</code>
       *
       * @return Whether the action field is set.
       */
      @java.lang.Override
      public boolean hasAction() {
        return suggestionCase_ == 2;
      }
      /**
       *
       *
       * <pre>
       * Predefined client side actions that user can choose
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;</code>
       *
       * @return The action.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction getAction() {
        if (suggestionCase_ == 2) {
          return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
              suggestion_;
        }
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
            .getDefaultInstance();
      }
      /**
       *
       *
       * <pre>
       * Predefined client side actions that user can choose
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder
          getActionOrBuilder() {
        if (suggestionCase_ == 2) {
          return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
              suggestion_;
        }
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
            .getDefaultInstance();
      }

      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 (suggestionCase_ == 1) {
          output.writeMessage(
              1,
              (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) suggestion_);
        }
        if (suggestionCase_ == 2) {
          output.writeMessage(
              2,
              (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction) suggestion_);
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        if (suggestionCase_ == 1) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  1,
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
                      suggestion_);
        }
        if (suggestionCase_ == 2) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  2,
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
                      suggestion_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion) obj;

        if (!getSuggestionCase().equals(other.getSuggestionCase())) return false;
        switch (suggestionCase_) {
          case 1:
            if (!getReply().equals(other.getReply())) return false;
            break;
          case 2:
            if (!getAction().equals(other.getAction())) 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();
        switch (suggestionCase_) {
          case 1:
            hash = (37 * hash) + REPLY_FIELD_NUMBER;
            hash = (53 * hash) + getReply().hashCode();
            break;
          case 2:
            hash = (37 * hash) + ACTION_FIELD_NUMBER;
            hash = (53 * hash) + getAction().hashCode();
            break;
          case 0:
          default:
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion 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>
       * Rich Business Messaging (RBM) suggestion. Suggestions allow user to
       * easily select/click a predefined response or perform an action (like
       * opening a web uri).
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          if (replyBuilder_ != null) {
            replyBuilder_.clear();
          }
          if (actionBuilder_ != null) {
            actionBuilder_.clear();
          }
          suggestionCase_ = 0;
          suggestion_ = null;
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestion_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          buildPartialOneofs(result);
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion result) {
          int from_bitField0_ = bitField0_;
        }

        private void buildPartialOneofs(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion result) {
          result.suggestionCase_ = suggestionCase_;
          result.suggestion_ = this.suggestion_;
          if (suggestionCase_ == 1 && replyBuilder_ != null) {
            result.suggestion_ = replyBuilder_.build();
          }
          if (suggestionCase_ == 2 && actionBuilder_ != null) {
            result.suggestion_ = actionBuilder_.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.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
                  .getDefaultInstance()) return this;
          switch (other.getSuggestionCase()) {
            case REPLY:
              {
                mergeReply(other.getReply());
                break;
              }
            case ACTION:
              {
                mergeAction(other.getAction());
                break;
              }
            case SUGGESTION_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:
                  {
                    input.readMessage(getReplyFieldBuilder().getBuilder(), extensionRegistry);
                    suggestionCase_ = 1;
                    break;
                  } // case 10
                case 18:
                  {
                    input.readMessage(getActionFieldBuilder().getBuilder(), extensionRegistry);
                    suggestionCase_ = 2;
                    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 suggestionCase_ = 0;
        private java.lang.Object suggestion_;

        public SuggestionCase getSuggestionCase() {
          return SuggestionCase.forNumber(suggestionCase_);
        }

        public Builder clearSuggestion() {
          suggestionCase_ = 0;
          suggestion_ = null;
          onChanged();
          return this;
        }

        private int bitField0_;

        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder>
            replyBuilder_;
        /**
         *
         *
         * <pre>
         * Predefined replies for user to select instead of typing
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
         *
         * @return Whether the reply field is set.
         */
        @java.lang.Override
        public boolean hasReply() {
          return suggestionCase_ == 1;
        }
        /**
         *
         *
         * <pre>
         * Predefined replies for user to select instead of typing
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
         *
         * @return The reply.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply getReply() {
          if (replyBuilder_ == null) {
            if (suggestionCase_ == 1) {
              return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
                  suggestion_;
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
                .getDefaultInstance();
          } else {
            if (suggestionCase_ == 1) {
              return replyBuilder_.getMessage();
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
                .getDefaultInstance();
          }
        }
        /**
         *
         *
         * <pre>
         * Predefined replies for user to select instead of typing
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
         */
        public Builder setReply(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply value) {
          if (replyBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            suggestion_ = value;
            onChanged();
          } else {
            replyBuilder_.setMessage(value);
          }
          suggestionCase_ = 1;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Predefined replies for user to select instead of typing
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
         */
        public Builder setReply(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder
                builderForValue) {
          if (replyBuilder_ == null) {
            suggestion_ = builderForValue.build();
            onChanged();
          } else {
            replyBuilder_.setMessage(builderForValue.build());
          }
          suggestionCase_ = 1;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Predefined replies for user to select instead of typing
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
         */
        public Builder mergeReply(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply value) {
          if (replyBuilder_ == null) {
            if (suggestionCase_ == 1
                && suggestion_
                    != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
                        .getDefaultInstance()) {
              suggestion_ =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.newBuilder(
                          (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
                              suggestion_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              suggestion_ = value;
            }
            onChanged();
          } else {
            if (suggestionCase_ == 1) {
              replyBuilder_.mergeFrom(value);
            } else {
              replyBuilder_.setMessage(value);
            }
          }
          suggestionCase_ = 1;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Predefined replies for user to select instead of typing
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
         */
        public Builder clearReply() {
          if (replyBuilder_ == null) {
            if (suggestionCase_ == 1) {
              suggestionCase_ = 0;
              suggestion_ = null;
              onChanged();
            }
          } else {
            if (suggestionCase_ == 1) {
              suggestionCase_ = 0;
              suggestion_ = null;
            }
            replyBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Predefined replies for user to select instead of typing
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder
            getReplyBuilder() {
          return getReplyFieldBuilder().getBuilder();
        }
        /**
         *
         *
         * <pre>
         * Predefined replies for user to select instead of typing
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder
            getReplyOrBuilder() {
          if ((suggestionCase_ == 1) && (replyBuilder_ != null)) {
            return replyBuilder_.getMessageOrBuilder();
          } else {
            if (suggestionCase_ == 1) {
              return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
                  suggestion_;
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
                .getDefaultInstance();
          }
        }
        /**
         *
         *
         * <pre>
         * Predefined replies for user to select instead of typing
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply reply = 1;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder>
            getReplyFieldBuilder() {
          if (replyBuilder_ == null) {
            if (!(suggestionCase_ == 1)) {
              suggestion_ =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
                      .getDefaultInstance();
            }
            replyBuilder_ =
                new com.google.protobuf.SingleFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder>(
                    (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
                        suggestion_,
                    getParentForChildren(),
                    isClean());
            suggestion_ = null;
          }
          suggestionCase_ = 1;
          onChanged();
          return replyBuilder_;
        }

        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder>
            actionBuilder_;
        /**
         *
         *
         * <pre>
         * Predefined client side actions that user can choose
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
         * </code>
         *
         * @return Whether the action field is set.
         */
        @java.lang.Override
        public boolean hasAction() {
          return suggestionCase_ == 2;
        }
        /**
         *
         *
         * <pre>
         * Predefined client side actions that user can choose
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
         * </code>
         *
         * @return The action.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction getAction() {
          if (actionBuilder_ == null) {
            if (suggestionCase_ == 2) {
              return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
                  suggestion_;
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .getDefaultInstance();
          } else {
            if (suggestionCase_ == 2) {
              return actionBuilder_.getMessage();
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .getDefaultInstance();
          }
        }
        /**
         *
         *
         * <pre>
         * Predefined client side actions that user can choose
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
         * </code>
         */
        public Builder setAction(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction value) {
          if (actionBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            suggestion_ = value;
            onChanged();
          } else {
            actionBuilder_.setMessage(value);
          }
          suggestionCase_ = 2;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Predefined client side actions that user can choose
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
         * </code>
         */
        public Builder setAction(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder
                builderForValue) {
          if (actionBuilder_ == null) {
            suggestion_ = builderForValue.build();
            onChanged();
          } else {
            actionBuilder_.setMessage(builderForValue.build());
          }
          suggestionCase_ = 2;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Predefined client side actions that user can choose
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
         * </code>
         */
        public Builder mergeAction(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction value) {
          if (actionBuilder_ == null) {
            if (suggestionCase_ == 2
                && suggestion_
                    != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .getDefaultInstance()) {
              suggestion_ =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.newBuilder(
                          (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
                              suggestion_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              suggestion_ = value;
            }
            onChanged();
          } else {
            if (suggestionCase_ == 2) {
              actionBuilder_.mergeFrom(value);
            } else {
              actionBuilder_.setMessage(value);
            }
          }
          suggestionCase_ = 2;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Predefined client side actions that user can choose
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
         * </code>
         */
        public Builder clearAction() {
          if (actionBuilder_ == null) {
            if (suggestionCase_ == 2) {
              suggestionCase_ = 0;
              suggestion_ = null;
              onChanged();
            }
          } else {
            if (suggestionCase_ == 2) {
              suggestionCase_ = 0;
              suggestion_ = null;
            }
            actionBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Predefined client side actions that user can choose
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder
            getActionBuilder() {
          return getActionFieldBuilder().getBuilder();
        }
        /**
         *
         *
         * <pre>
         * Predefined client side actions that user can choose
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
         * </code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder
            getActionOrBuilder() {
          if ((suggestionCase_ == 2) && (actionBuilder_ != null)) {
            return actionBuilder_.getMessageOrBuilder();
          } else {
            if (suggestionCase_ == 2) {
              return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
                  suggestion_;
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .getDefaultInstance();
          }
        }
        /**
         *
         *
         * <pre>
         * Predefined client side actions that user can choose
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction action = 2;
         * </code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder>
            getActionFieldBuilder() {
          if (actionBuilder_ == null) {
            if (!(suggestionCase_ == 2)) {
              suggestion_ =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .getDefaultInstance();
            }
            actionBuilder_ =
                new com.google.protobuf.SingleFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder>(
                    (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
                        suggestion_,
                    getParentForChildren(),
                    isClean());
            suggestion_ = null;
          }
          suggestionCase_ = 2;
          onChanged();
          return actionBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface RbmSuggestedReplyOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Suggested reply text.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      java.lang.String getText();
      /**
       *
       *
       * <pre>
       * Suggested reply text.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      com.google.protobuf.ByteString getTextBytes();

      /**
       *
       *
       * <pre>
       * Opaque payload that the Dialogflow receives in a user event
       * when the user taps the suggested reply. This data will be also
       * forwarded to webhook to allow performing custom business logic.
       * </pre>
       *
       * <code>string postback_data = 2;</code>
       *
       * @return The postbackData.
       */
      java.lang.String getPostbackData();
      /**
       *
       *
       * <pre>
       * Opaque payload that the Dialogflow receives in a user event
       * when the user taps the suggested reply. This data will be also
       * forwarded to webhook to allow performing custom business logic.
       * </pre>
       *
       * <code>string postback_data = 2;</code>
       *
       * @return The bytes for postbackData.
       */
      com.google.protobuf.ByteString getPostbackDataBytes();
    }
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) suggested reply that the user can click
     * instead of typing in their own response.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply}
     */
    public static final class RbmSuggestedReply extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
        RbmSuggestedReplyOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use RbmSuggestedReply.newBuilder() to construct.
      private RbmSuggestedReply(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private RbmSuggestedReply() {
        text_ = "";
        postbackData_ = "";
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder.class);
      }

      public static final int TEXT_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object text_ = "";
      /**
       *
       *
       * <pre>
       * Suggested reply text.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      @java.lang.Override
      public java.lang.String getText() {
        java.lang.Object ref = text_;
        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();
          text_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Suggested reply text.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTextBytes() {
        java.lang.Object ref = text_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          text_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int POSTBACK_DATA_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private volatile java.lang.Object postbackData_ = "";
      /**
       *
       *
       * <pre>
       * Opaque payload that the Dialogflow receives in a user event
       * when the user taps the suggested reply. This data will be also
       * forwarded to webhook to allow performing custom business logic.
       * </pre>
       *
       * <code>string postback_data = 2;</code>
       *
       * @return The postbackData.
       */
      @java.lang.Override
      public java.lang.String getPostbackData() {
        java.lang.Object ref = postbackData_;
        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();
          postbackData_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Opaque payload that the Dialogflow receives in a user event
       * when the user taps the suggested reply. This data will be also
       * forwarded to webhook to allow performing custom business logic.
       * </pre>
       *
       * <code>string postback_data = 2;</code>
       *
       * @return The bytes for postbackData.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getPostbackDataBytes() {
        java.lang.Object ref = postbackData_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          postbackData_ = 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(text_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postbackData_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, postbackData_);
        }
        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(text_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postbackData_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, postbackData_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) obj;

        if (!getText().equals(other.getText())) return false;
        if (!getPostbackData().equals(other.getPostbackData())) 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) + TEXT_FIELD_NUMBER;
        hash = (53 * hash) + getText().hashCode();
        hash = (37 * hash) + POSTBACK_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getPostbackData().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply 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>
       * Rich Business Messaging (RBM) suggested reply that the user can click
       * instead of typing in their own response.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReplyOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.Builder
                      .class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedReply_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.text_ = text_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.postbackData_ = postbackData_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other
              instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
                  .getDefaultInstance()) return this;
          if (!other.getText().isEmpty()) {
            text_ = other.text_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.getPostbackData().isEmpty()) {
            postbackData_ = other.postbackData_;
            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 10:
                  {
                    text_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    postbackData_ = 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 java.lang.Object text_ = "";
        /**
         *
         *
         * <pre>
         * Suggested reply text.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The text.
         */
        public java.lang.String getText() {
          java.lang.Object ref = text_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            text_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Suggested reply text.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The bytes for text.
         */
        public com.google.protobuf.ByteString getTextBytes() {
          java.lang.Object ref = text_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            text_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Suggested reply text.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The text to set.
         * @return This builder for chaining.
         */
        public Builder setText(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          text_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested reply text.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearText() {
          text_ = getDefaultInstance().getText();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested reply text.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The bytes for text to set.
         * @return This builder for chaining.
         */
        public Builder setTextBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          text_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.lang.Object postbackData_ = "";
        /**
         *
         *
         * <pre>
         * Opaque payload that the Dialogflow receives in a user event
         * when the user taps the suggested reply. This data will be also
         * forwarded to webhook to allow performing custom business logic.
         * </pre>
         *
         * <code>string postback_data = 2;</code>
         *
         * @return The postbackData.
         */
        public java.lang.String getPostbackData() {
          java.lang.Object ref = postbackData_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            postbackData_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Opaque payload that the Dialogflow receives in a user event
         * when the user taps the suggested reply. This data will be also
         * forwarded to webhook to allow performing custom business logic.
         * </pre>
         *
         * <code>string postback_data = 2;</code>
         *
         * @return The bytes for postbackData.
         */
        public com.google.protobuf.ByteString getPostbackDataBytes() {
          java.lang.Object ref = postbackData_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            postbackData_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Opaque payload that the Dialogflow receives in a user event
         * when the user taps the suggested reply. This data will be also
         * forwarded to webhook to allow performing custom business logic.
         * </pre>
         *
         * <code>string postback_data = 2;</code>
         *
         * @param value The postbackData to set.
         * @return This builder for chaining.
         */
        public Builder setPostbackData(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          postbackData_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Opaque payload that the Dialogflow receives in a user event
         * when the user taps the suggested reply. This data will be also
         * forwarded to webhook to allow performing custom business logic.
         * </pre>
         *
         * <code>string postback_data = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearPostbackData() {
          postbackData_ = getDefaultInstance().getPostbackData();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Opaque payload that the Dialogflow receives in a user event
         * when the user taps the suggested reply. This data will be also
         * forwarded to webhook to allow performing custom business logic.
         * </pre>
         *
         * <code>string postback_data = 2;</code>
         *
         * @param value The bytes for postbackData to set.
         * @return This builder for chaining.
         */
        public Builder setPostbackDataBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          postbackData_ = 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.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface RbmSuggestedActionOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Text to display alongside the action.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      java.lang.String getText();
      /**
       *
       *
       * <pre>
       * Text to display alongside the action.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      com.google.protobuf.ByteString getTextBytes();

      /**
       *
       *
       * <pre>
       * Opaque payload that the Dialogflow receives in a user event
       * when the user taps the suggested action. This data will be also
       * forwarded to webhook to allow performing custom business logic.
       * </pre>
       *
       * <code>string postback_data = 2;</code>
       *
       * @return The postbackData.
       */
      java.lang.String getPostbackData();
      /**
       *
       *
       * <pre>
       * Opaque payload that the Dialogflow receives in a user event
       * when the user taps the suggested action. This data will be also
       * forwarded to webhook to allow performing custom business logic.
       * </pre>
       *
       * <code>string postback_data = 2;</code>
       *
       * @return The bytes for postbackData.
       */
      com.google.protobuf.ByteString getPostbackDataBytes();

      /**
       *
       *
       * <pre>
       * Suggested client side action: Dial a phone number
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
       * </code>
       *
       * @return Whether the dial field is set.
       */
      boolean hasDial();
      /**
       *
       *
       * <pre>
       * Suggested client side action: Dial a phone number
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
       * </code>
       *
       * @return The dial.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial
          getDial();
      /**
       *
       *
       * <pre>
       * Suggested client side action: Dial a phone number
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .RbmSuggestedActionDialOrBuilder
          getDialOrBuilder();

      /**
       *
       *
       * <pre>
       * Suggested client side action: Open a URI on device
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
       * </code>
       *
       * @return Whether the openUrl field is set.
       */
      boolean hasOpenUrl();
      /**
       *
       *
       * <pre>
       * Suggested client side action: Open a URI on device
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
       * </code>
       *
       * @return The openUrl.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .RbmSuggestedActionOpenUri
          getOpenUrl();
      /**
       *
       *
       * <pre>
       * Suggested client side action: Open a URI on device
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .RbmSuggestedActionOpenUriOrBuilder
          getOpenUrlOrBuilder();

      /**
       *
       *
       * <pre>
       * Suggested client side action: Share user location
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
       * </code>
       *
       * @return Whether the shareLocation field is set.
       */
      boolean hasShareLocation();
      /**
       *
       *
       * <pre>
       * Suggested client side action: Share user location
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
       * </code>
       *
       * @return The shareLocation.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .RbmSuggestedActionShareLocation
          getShareLocation();
      /**
       *
       *
       * <pre>
       * Suggested client side action: Share user location
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .RbmSuggestedActionShareLocationOrBuilder
          getShareLocationOrBuilder();

      com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.ActionCase
          getActionCase();
    }
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) suggested client-side action that the user
     * can choose from the card.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction}
     */
    public static final class RbmSuggestedAction extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
        RbmSuggestedActionOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use RbmSuggestedAction.newBuilder() to construct.
      private RbmSuggestedAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private RbmSuggestedAction() {
        text_ = "";
        postbackData_ = "";
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder
                    .class);
      }

      public interface RbmSuggestedActionDialOrBuilder
          extends
          // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial)
          com.google.protobuf.MessageOrBuilder {

        /**
         *
         *
         * <pre>
         * Required. The phone number to fill in the default dialer app.
         * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
         * format. An example of a correctly formatted phone number:
         * +15556767888.
         * </pre>
         *
         * <code>string phone_number = 1;</code>
         *
         * @return The phoneNumber.
         */
        java.lang.String getPhoneNumber();
        /**
         *
         *
         * <pre>
         * Required. The phone number to fill in the default dialer app.
         * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
         * format. An example of a correctly formatted phone number:
         * +15556767888.
         * </pre>
         *
         * <code>string phone_number = 1;</code>
         *
         * @return The bytes for phoneNumber.
         */
        com.google.protobuf.ByteString getPhoneNumberBytes();
      }
      /**
       *
       *
       * <pre>
       * Opens the user's default dialer app with the specified phone number
       * but does not dial automatically.
       * </pre>
       *
       * Protobuf type {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial}
       */
      public static final class RbmSuggestedActionDial
          extends com.google.protobuf.GeneratedMessageV3
          implements
          // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial)
          RbmSuggestedActionDialOrBuilder {
        private static final long serialVersionUID = 0L;
        // Use RbmSuggestedActionDial.newBuilder() to construct.
        private RbmSuggestedActionDial(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
          super(builder);
        }

        private RbmSuggestedActionDial() {
          phoneNumber_ = "";
        }

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

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionDial.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionDial.Builder.class);
        }

        public static final int PHONE_NUMBER_FIELD_NUMBER = 1;

        @SuppressWarnings("serial")
        private volatile java.lang.Object phoneNumber_ = "";
        /**
         *
         *
         * <pre>
         * Required. The phone number to fill in the default dialer app.
         * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
         * format. An example of a correctly formatted phone number:
         * +15556767888.
         * </pre>
         *
         * <code>string phone_number = 1;</code>
         *
         * @return The phoneNumber.
         */
        @java.lang.Override
        public java.lang.String getPhoneNumber() {
          java.lang.Object ref = phoneNumber_;
          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();
            phoneNumber_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The phone number to fill in the default dialer app.
         * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
         * format. An example of a correctly formatted phone number:
         * +15556767888.
         * </pre>
         *
         * <code>string phone_number = 1;</code>
         *
         * @return The bytes for phoneNumber.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getPhoneNumberBytes() {
          java.lang.Object ref = phoneNumber_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            phoneNumber_ = 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(phoneNumber_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phoneNumber_);
          }
          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(phoneNumber_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phoneNumber_);
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj
              instanceof
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionDial)) {
            return super.equals(obj);
          }
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionDial
              other =
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                          .RbmSuggestedActionDial)
                      obj;

          if (!getPhoneNumber().equals(other.getPhoneNumber())) 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) + PHONE_NUMBER_FIELD_NUMBER;
          hash = (53 * hash) + getPhoneNumber().hashCode();
          hash = (29 * hash) + getUnknownFields().hashCode();
          memoizedHashCode = hash;
          return hash;
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseFrom(java.nio.ByteBuffer data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseFrom(
                java.nio.ByteBuffer data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseFrom(com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            parseFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

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

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

        public static Builder newBuilder(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial
                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>
         * Opens the user's default dialer app with the specified phone number
         * but does not dial automatically.
         * </pre>
         *
         * Protobuf type {@code
         * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial}
         */
        public static final class Builder
            extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
            implements
            // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial)
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDialOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionDial.class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionDial.Builder.class);
          }

          // Construct using
          // com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial.newBuilder()
          private Builder() {}

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

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

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionDial_descriptor;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionDial
              getDefaultInstanceForType() {
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial.getDefaultInstance();
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionDial
              build() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial
                result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionDial
              buildPartial() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial
                result =
                    new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionDial(this);
            if (bitField0_ != 0) {
              buildPartial0(result);
            }
            onBuilt();
            return result;
          }

          private void buildPartial0(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionDial
                  result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.phoneNumber_ = phoneNumber_;
            }
          }

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

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

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

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

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

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

          @java.lang.Override
          public Builder mergeFrom(com.google.protobuf.Message other) {
            if (other
                instanceof
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial) {
              return mergeFrom(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                          .RbmSuggestedActionDial)
                      other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }

          public Builder mergeFrom(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionDial
                  other) {
            if (other
                == com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial.getDefaultInstance()) return this;
            if (!other.getPhoneNumber().isEmpty()) {
              phoneNumber_ = other.phoneNumber_;
              bitField0_ |= 0x00000001;
              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:
                    {
                      phoneNumber_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000001;
                      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 java.lang.Object phoneNumber_ = "";
          /**
           *
           *
           * <pre>
           * Required. The phone number to fill in the default dialer app.
           * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
           * format. An example of a correctly formatted phone number:
           * +15556767888.
           * </pre>
           *
           * <code>string phone_number = 1;</code>
           *
           * @return The phoneNumber.
           */
          public java.lang.String getPhoneNumber() {
            java.lang.Object ref = phoneNumber_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              phoneNumber_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. The phone number to fill in the default dialer app.
           * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
           * format. An example of a correctly formatted phone number:
           * +15556767888.
           * </pre>
           *
           * <code>string phone_number = 1;</code>
           *
           * @return The bytes for phoneNumber.
           */
          public com.google.protobuf.ByteString getPhoneNumberBytes() {
            java.lang.Object ref = phoneNumber_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              phoneNumber_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. The phone number to fill in the default dialer app.
           * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
           * format. An example of a correctly formatted phone number:
           * +15556767888.
           * </pre>
           *
           * <code>string phone_number = 1;</code>
           *
           * @param value The phoneNumber to set.
           * @return This builder for chaining.
           */
          public Builder setPhoneNumber(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            phoneNumber_ = value;
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. The phone number to fill in the default dialer app.
           * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
           * format. An example of a correctly formatted phone number:
           * +15556767888.
           * </pre>
           *
           * <code>string phone_number = 1;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearPhoneNumber() {
            phoneNumber_ = getDefaultInstance().getPhoneNumber();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. The phone number to fill in the default dialer app.
           * This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
           * format. An example of a correctly formatted phone number:
           * +15556767888.
           * </pre>
           *
           * <code>string phone_number = 1;</code>
           *
           * @param value The bytes for phoneNumber to set.
           * @return This builder for chaining.
           */
          public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            phoneNumber_ = 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.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial)
        }

        // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial)
        private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            DEFAULT_INSTANCE;

        static {
          DEFAULT_INSTANCE =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionDial();
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

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

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }
      }

      public interface RbmSuggestedActionOpenUriOrBuilder
          extends
          // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri)
          com.google.protobuf.MessageOrBuilder {

        /**
         *
         *
         * <pre>
         * Required. The uri to open on the user device
         * </pre>
         *
         * <code>string uri = 1;</code>
         *
         * @return The uri.
         */
        java.lang.String getUri();
        /**
         *
         *
         * <pre>
         * Required. The uri to open on the user device
         * </pre>
         *
         * <code>string uri = 1;</code>
         *
         * @return The bytes for uri.
         */
        com.google.protobuf.ByteString getUriBytes();
      }
      /**
       *
       *
       * <pre>
       * Opens the user's default web browser app to the specified uri
       * If the user has an app installed that is
       * registered as the default handler for the URL, then this app will be
       * opened instead, and its icon will be used in the suggested action UI.
       * </pre>
       *
       * Protobuf type {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri}
       */
      public static final class RbmSuggestedActionOpenUri
          extends com.google.protobuf.GeneratedMessageV3
          implements
          // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri)
          RbmSuggestedActionOpenUriOrBuilder {
        private static final long serialVersionUID = 0L;
        // Use RbmSuggestedActionOpenUri.newBuilder() to construct.
        private RbmSuggestedActionOpenUri(
            com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
          super(builder);
        }

        private RbmSuggestedActionOpenUri() {
          uri_ = "";
        }

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

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionOpenUri.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionOpenUri.Builder.class);
        }

        public static final int URI_FIELD_NUMBER = 1;

        @SuppressWarnings("serial")
        private volatile java.lang.Object uri_ = "";
        /**
         *
         *
         * <pre>
         * Required. The uri to open on the user device
         * </pre>
         *
         * <code>string uri = 1;</code>
         *
         * @return The uri.
         */
        @java.lang.Override
        public java.lang.String getUri() {
          java.lang.Object ref = uri_;
          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();
            uri_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. The uri to open on the user device
         * </pre>
         *
         * <code>string uri = 1;</code>
         *
         * @return The bytes for uri.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getUriBytes() {
          java.lang.Object ref = uri_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            uri_ = 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(uri_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
          }
          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(uri_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj
              instanceof
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionOpenUri)) {
            return super.equals(obj);
          }
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionOpenUri
              other =
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                          .RbmSuggestedActionOpenUri)
                      obj;

          if (!getUri().equals(other.getUri())) 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) + URI_FIELD_NUMBER;
          hash = (53 * hash) + getUri().hashCode();
          hash = (29 * hash) + getUnknownFields().hashCode();
          memoizedHashCode = hash;
          return hash;
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseFrom(java.nio.ByteBuffer data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseFrom(
                java.nio.ByteBuffer data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseFrom(com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            parseFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

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

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

        public static Builder newBuilder(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri
                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>
         * Opens the user's default web browser app to the specified uri
         * If the user has an app installed that is
         * registered as the default handler for the URL, then this app will be
         * opened instead, and its icon will be used in the suggested action UI.
         * </pre>
         *
         * Protobuf type {@code
         * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri}
         */
        public static final class Builder
            extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
            implements
            // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri)
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUriOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionOpenUri.class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionOpenUri.Builder.class);
          }

          // Construct using
          // com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri.newBuilder()
          private Builder() {}

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

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

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionOpenUri_descriptor;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionOpenUri
              getDefaultInstanceForType() {
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri.getDefaultInstance();
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionOpenUri
              build() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri
                result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionOpenUri
              buildPartial() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri
                result =
                    new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionOpenUri(this);
            if (bitField0_ != 0) {
              buildPartial0(result);
            }
            onBuilt();
            return result;
          }

          private void buildPartial0(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionOpenUri
                  result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.uri_ = uri_;
            }
          }

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

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

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

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

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

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

          @java.lang.Override
          public Builder mergeFrom(com.google.protobuf.Message other) {
            if (other
                instanceof
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri) {
              return mergeFrom(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                          .RbmSuggestedActionOpenUri)
                      other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }

          public Builder mergeFrom(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionOpenUri
                  other) {
            if (other
                == com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri.getDefaultInstance()) return this;
            if (!other.getUri().isEmpty()) {
              uri_ = other.uri_;
              bitField0_ |= 0x00000001;
              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:
                    {
                      uri_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000001;
                      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 java.lang.Object uri_ = "";
          /**
           *
           *
           * <pre>
           * Required. The uri to open on the user device
           * </pre>
           *
           * <code>string uri = 1;</code>
           *
           * @return The uri.
           */
          public java.lang.String getUri() {
            java.lang.Object ref = uri_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              uri_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. The uri to open on the user device
           * </pre>
           *
           * <code>string uri = 1;</code>
           *
           * @return The bytes for uri.
           */
          public com.google.protobuf.ByteString getUriBytes() {
            java.lang.Object ref = uri_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              uri_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. The uri to open on the user device
           * </pre>
           *
           * <code>string uri = 1;</code>
           *
           * @param value The uri to set.
           * @return This builder for chaining.
           */
          public Builder setUri(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            uri_ = value;
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. The uri to open on the user device
           * </pre>
           *
           * <code>string uri = 1;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearUri() {
            uri_ = getDefaultInstance().getUri();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. The uri to open on the user device
           * </pre>
           *
           * <code>string uri = 1;</code>
           *
           * @param value The bytes for uri to set.
           * @return This builder for chaining.
           */
          public Builder setUriBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            uri_ = 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.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri)
        }

        // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri)
        private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            DEFAULT_INSTANCE;

        static {
          DEFAULT_INSTANCE =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionOpenUri();
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

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

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }
      }

      public interface RbmSuggestedActionShareLocationOrBuilder
          extends
          // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation)
          com.google.protobuf.MessageOrBuilder {}
      /**
       *
       *
       * <pre>
       * Opens the device's location chooser so the user can pick a location
       * to send back to the agent.
       * </pre>
       *
       * Protobuf type {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation}
       */
      public static final class RbmSuggestedActionShareLocation
          extends com.google.protobuf.GeneratedMessageV3
          implements
          // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation)
          RbmSuggestedActionShareLocationOrBuilder {
        private static final long serialVersionUID = 0L;
        // Use RbmSuggestedActionShareLocation.newBuilder() to construct.
        private RbmSuggestedActionShareLocation(
            com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
          super(builder);
        }

        private RbmSuggestedActionShareLocation() {}

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

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionShareLocation.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionShareLocation.Builder.class);
        }

        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 {
          getUnknownFields().writeTo(output);
        }

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

          size = 0;
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj
              instanceof
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionShareLocation)) {
            return super.equals(obj);
          }
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionShareLocation
              other =
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                          .RbmSuggestedActionShareLocation)
                      obj;

          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 = (29 * hash) + getUnknownFields().hashCode();
          memoizedHashCode = hash;
          return hash;
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseFrom(java.nio.ByteBuffer data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseFrom(
                java.nio.ByteBuffer data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseFrom(com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            parseFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

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

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

        public static Builder newBuilder(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation
                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>
         * Opens the device's location chooser so the user can pick a location
         * to send back to the agent.
         * </pre>
         *
         * Protobuf type {@code
         * google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation}
         */
        public static final class Builder
            extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
            implements
            // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation)
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocationOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionShareLocation.class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionShareLocation.Builder.class);
          }

          // Construct using
          // com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation.newBuilder()
          private Builder() {}

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

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

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_descriptor;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionShareLocation
              getDefaultInstanceForType() {
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation.getDefaultInstance();
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionShareLocation
              build() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation
                result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionShareLocation
              buildPartial() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation
                result =
                    new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionShareLocation(this);
            onBuilt();
            return result;
          }

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

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

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

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

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

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

          @java.lang.Override
          public Builder mergeFrom(com.google.protobuf.Message other) {
            if (other
                instanceof
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation) {
              return mergeFrom(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                          .RbmSuggestedActionShareLocation)
                      other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }

          public Builder mergeFrom(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionShareLocation
                  other) {
            if (other
                == com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation.getDefaultInstance()) return this;
            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;
                  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;
          }

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

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

          // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation)
        }

        // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation)
        private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            DEFAULT_INSTANCE;

        static {
          DEFAULT_INSTANCE =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionShareLocation();
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

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

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }
      }

      private int actionCase_ = 0;

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

      public enum ActionCase
          implements
              com.google.protobuf.Internal.EnumLite,
              com.google.protobuf.AbstractMessage.InternalOneOfEnum {
        DIAL(3),
        OPEN_URL(4),
        SHARE_LOCATION(5),
        ACTION_NOT_SET(0);
        private final int value;

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

        public static ActionCase forNumber(int value) {
          switch (value) {
            case 3:
              return DIAL;
            case 4:
              return OPEN_URL;
            case 5:
              return SHARE_LOCATION;
            case 0:
              return ACTION_NOT_SET;
            default:
              return null;
          }
        }

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

      public ActionCase getActionCase() {
        return ActionCase.forNumber(actionCase_);
      }

      public static final int TEXT_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object text_ = "";
      /**
       *
       *
       * <pre>
       * Text to display alongside the action.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      @java.lang.Override
      public java.lang.String getText() {
        java.lang.Object ref = text_;
        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();
          text_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Text to display alongside the action.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTextBytes() {
        java.lang.Object ref = text_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          text_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int POSTBACK_DATA_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private volatile java.lang.Object postbackData_ = "";
      /**
       *
       *
       * <pre>
       * Opaque payload that the Dialogflow receives in a user event
       * when the user taps the suggested action. This data will be also
       * forwarded to webhook to allow performing custom business logic.
       * </pre>
       *
       * <code>string postback_data = 2;</code>
       *
       * @return The postbackData.
       */
      @java.lang.Override
      public java.lang.String getPostbackData() {
        java.lang.Object ref = postbackData_;
        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();
          postbackData_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Opaque payload that the Dialogflow receives in a user event
       * when the user taps the suggested action. This data will be also
       * forwarded to webhook to allow performing custom business logic.
       * </pre>
       *
       * <code>string postback_data = 2;</code>
       *
       * @return The bytes for postbackData.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getPostbackDataBytes() {
        java.lang.Object ref = postbackData_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          postbackData_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int DIAL_FIELD_NUMBER = 3;
      /**
       *
       *
       * <pre>
       * Suggested client side action: Dial a phone number
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
       * </code>
       *
       * @return Whether the dial field is set.
       */
      @java.lang.Override
      public boolean hasDial() {
        return actionCase_ == 3;
      }
      /**
       *
       *
       * <pre>
       * Suggested client side action: Dial a phone number
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
       * </code>
       *
       * @return The dial.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .RbmSuggestedActionDial
          getDial() {
        if (actionCase_ == 3) {
          return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionDial)
              action_;
        }
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
            .RbmSuggestedActionDial.getDefaultInstance();
      }
      /**
       *
       *
       * <pre>
       * Suggested client side action: Dial a phone number
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .RbmSuggestedActionDialOrBuilder
          getDialOrBuilder() {
        if (actionCase_ == 3) {
          return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionDial)
              action_;
        }
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
            .RbmSuggestedActionDial.getDefaultInstance();
      }

      public static final int OPEN_URL_FIELD_NUMBER = 4;
      /**
       *
       *
       * <pre>
       * Suggested client side action: Open a URI on device
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
       * </code>
       *
       * @return Whether the openUrl field is set.
       */
      @java.lang.Override
      public boolean hasOpenUrl() {
        return actionCase_ == 4;
      }
      /**
       *
       *
       * <pre>
       * Suggested client side action: Open a URI on device
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
       * </code>
       *
       * @return The openUrl.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .RbmSuggestedActionOpenUri
          getOpenUrl() {
        if (actionCase_ == 4) {
          return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionOpenUri)
              action_;
        }
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
            .RbmSuggestedActionOpenUri.getDefaultInstance();
      }
      /**
       *
       *
       * <pre>
       * Suggested client side action: Open a URI on device
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .RbmSuggestedActionOpenUriOrBuilder
          getOpenUrlOrBuilder() {
        if (actionCase_ == 4) {
          return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionOpenUri)
              action_;
        }
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
            .RbmSuggestedActionOpenUri.getDefaultInstance();
      }

      public static final int SHARE_LOCATION_FIELD_NUMBER = 5;
      /**
       *
       *
       * <pre>
       * Suggested client side action: Share user location
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
       * </code>
       *
       * @return Whether the shareLocation field is set.
       */
      @java.lang.Override
      public boolean hasShareLocation() {
        return actionCase_ == 5;
      }
      /**
       *
       *
       * <pre>
       * Suggested client side action: Share user location
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
       * </code>
       *
       * @return The shareLocation.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .RbmSuggestedActionShareLocation
          getShareLocation() {
        if (actionCase_ == 5) {
          return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionShareLocation)
              action_;
        }
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
            .RbmSuggestedActionShareLocation.getDefaultInstance();
      }
      /**
       *
       *
       * <pre>
       * Suggested client side action: Share user location
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .RbmSuggestedActionShareLocationOrBuilder
          getShareLocationOrBuilder() {
        if (actionCase_ == 5) {
          return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .RbmSuggestedActionShareLocation)
              action_;
        }
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
            .RbmSuggestedActionShareLocation.getDefaultInstance();
      }

      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(text_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postbackData_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, postbackData_);
        }
        if (actionCase_ == 3) {
          output.writeMessage(
              3,
              (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionDial)
                  action_);
        }
        if (actionCase_ == 4) {
          output.writeMessage(
              4,
              (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionOpenUri)
                  action_);
        }
        if (actionCase_ == 5) {
          output.writeMessage(
              5,
              (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionShareLocation)
                  action_);
        }
        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(text_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postbackData_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, postbackData_);
        }
        if (actionCase_ == 3) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  3,
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                          .RbmSuggestedActionDial)
                      action_);
        }
        if (actionCase_ == 4) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  4,
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                          .RbmSuggestedActionOpenUri)
                      action_);
        }
        if (actionCase_ == 5) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  5,
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                          .RbmSuggestedActionShareLocation)
                      action_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction) obj;

        if (!getText().equals(other.getText())) return false;
        if (!getPostbackData().equals(other.getPostbackData())) return false;
        if (!getActionCase().equals(other.getActionCase())) return false;
        switch (actionCase_) {
          case 3:
            if (!getDial().equals(other.getDial())) return false;
            break;
          case 4:
            if (!getOpenUrl().equals(other.getOpenUrl())) return false;
            break;
          case 5:
            if (!getShareLocation().equals(other.getShareLocation())) 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) + TEXT_FIELD_NUMBER;
        hash = (53 * hash) + getText().hashCode();
        hash = (37 * hash) + POSTBACK_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getPostbackData().hashCode();
        switch (actionCase_) {
          case 3:
            hash = (37 * hash) + DIAL_FIELD_NUMBER;
            hash = (53 * hash) + getDial().hashCode();
            break;
          case 4:
            hash = (37 * hash) + OPEN_URL_FIELD_NUMBER;
            hash = (53 * hash) + getOpenUrl().hashCode();
            break;
          case 5:
            hash = (37 * hash) + SHARE_LOCATION_FIELD_NUMBER;
            hash = (53 * hash) + getShareLocation().hashCode();
            break;
          case 0:
          default:
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction 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>
       * Rich Business Messaging (RBM) suggested client-side action that the user
       * can choose from the card.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedActionOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.Builder
                      .class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          text_ = "";
          postbackData_ = "";
          if (dialBuilder_ != null) {
            dialBuilder_.clear();
          }
          if (openUrlBuilder_ != null) {
            openUrlBuilder_.clear();
          }
          if (shareLocationBuilder_ != null) {
            shareLocationBuilder_.clear();
          }
          actionCase_ = 0;
          action_ = null;
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
            buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          buildPartialOneofs(result);
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.text_ = text_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.postbackData_ = postbackData_;
          }
        }

        private void buildPartialOneofs(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction result) {
          result.actionCase_ = actionCase_;
          result.action_ = this.action_;
          if (actionCase_ == 3 && dialBuilder_ != null) {
            result.action_ = dialBuilder_.build();
          }
          if (actionCase_ == 4 && openUrlBuilder_ != null) {
            result.action_ = openUrlBuilder_.build();
          }
          if (actionCase_ == 5 && shareLocationBuilder_ != null) {
            result.action_ = shareLocationBuilder_.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.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                  .getDefaultInstance()) return this;
          if (!other.getText().isEmpty()) {
            text_ = other.text_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.getPostbackData().isEmpty()) {
            postbackData_ = other.postbackData_;
            bitField0_ |= 0x00000002;
            onChanged();
          }
          switch (other.getActionCase()) {
            case DIAL:
              {
                mergeDial(other.getDial());
                break;
              }
            case OPEN_URL:
              {
                mergeOpenUrl(other.getOpenUrl());
                break;
              }
            case SHARE_LOCATION:
              {
                mergeShareLocation(other.getShareLocation());
                break;
              }
            case ACTION_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:
                  {
                    text_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    postbackData_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 18
                case 26:
                  {
                    input.readMessage(getDialFieldBuilder().getBuilder(), extensionRegistry);
                    actionCase_ = 3;
                    break;
                  } // case 26
                case 34:
                  {
                    input.readMessage(getOpenUrlFieldBuilder().getBuilder(), extensionRegistry);
                    actionCase_ = 4;
                    break;
                  } // case 34
                case 42:
                  {
                    input.readMessage(
                        getShareLocationFieldBuilder().getBuilder(), extensionRegistry);
                    actionCase_ = 5;
                    break;
                  } // case 42
                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 actionCase_ = 0;
        private java.lang.Object action_;

        public ActionCase getActionCase() {
          return ActionCase.forNumber(actionCase_);
        }

        public Builder clearAction() {
          actionCase_ = 0;
          action_ = null;
          onChanged();
          return this;
        }

        private int bitField0_;

        private java.lang.Object text_ = "";
        /**
         *
         *
         * <pre>
         * Text to display alongside the action.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The text.
         */
        public java.lang.String getText() {
          java.lang.Object ref = text_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            text_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Text to display alongside the action.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The bytes for text.
         */
        public com.google.protobuf.ByteString getTextBytes() {
          java.lang.Object ref = text_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            text_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Text to display alongside the action.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The text to set.
         * @return This builder for chaining.
         */
        public Builder setText(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          text_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Text to display alongside the action.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearText() {
          text_ = getDefaultInstance().getText();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Text to display alongside the action.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The bytes for text to set.
         * @return This builder for chaining.
         */
        public Builder setTextBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          text_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.lang.Object postbackData_ = "";
        /**
         *
         *
         * <pre>
         * Opaque payload that the Dialogflow receives in a user event
         * when the user taps the suggested action. This data will be also
         * forwarded to webhook to allow performing custom business logic.
         * </pre>
         *
         * <code>string postback_data = 2;</code>
         *
         * @return The postbackData.
         */
        public java.lang.String getPostbackData() {
          java.lang.Object ref = postbackData_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            postbackData_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Opaque payload that the Dialogflow receives in a user event
         * when the user taps the suggested action. This data will be also
         * forwarded to webhook to allow performing custom business logic.
         * </pre>
         *
         * <code>string postback_data = 2;</code>
         *
         * @return The bytes for postbackData.
         */
        public com.google.protobuf.ByteString getPostbackDataBytes() {
          java.lang.Object ref = postbackData_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            postbackData_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Opaque payload that the Dialogflow receives in a user event
         * when the user taps the suggested action. This data will be also
         * forwarded to webhook to allow performing custom business logic.
         * </pre>
         *
         * <code>string postback_data = 2;</code>
         *
         * @param value The postbackData to set.
         * @return This builder for chaining.
         */
        public Builder setPostbackData(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          postbackData_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Opaque payload that the Dialogflow receives in a user event
         * when the user taps the suggested action. This data will be also
         * forwarded to webhook to allow performing custom business logic.
         * </pre>
         *
         * <code>string postback_data = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearPostbackData() {
          postbackData_ = getDefaultInstance().getPostbackData();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Opaque payload that the Dialogflow receives in a user event
         * when the user taps the suggested action. This data will be also
         * forwarded to webhook to allow performing custom business logic.
         * </pre>
         *
         * <code>string postback_data = 2;</code>
         *
         * @param value The bytes for postbackData to set.
         * @return This builder for chaining.
         */
        public Builder setPostbackDataBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          postbackData_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }

        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDialOrBuilder>
            dialBuilder_;
        /**
         *
         *
         * <pre>
         * Suggested client side action: Dial a phone number
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
         * </code>
         *
         * @return Whether the dial field is set.
         */
        @java.lang.Override
        public boolean hasDial() {
          return actionCase_ == 3;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Dial a phone number
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
         * </code>
         *
         * @return The dial.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial
            getDial() {
          if (dialBuilder_ == null) {
            if (actionCase_ == 3) {
              return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionDial)
                  action_;
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial.getDefaultInstance();
          } else {
            if (actionCase_ == 3) {
              return dialBuilder_.getMessage();
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial.getDefaultInstance();
          }
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Dial a phone number
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
         * </code>
         */
        public Builder setDial(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial
                value) {
          if (dialBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            action_ = value;
            onChanged();
          } else {
            dialBuilder_.setMessage(value);
          }
          actionCase_ = 3;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Dial a phone number
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
         * </code>
         */
        public Builder setDial(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial.Builder
                builderForValue) {
          if (dialBuilder_ == null) {
            action_ = builderForValue.build();
            onChanged();
          } else {
            dialBuilder_.setMessage(builderForValue.build());
          }
          actionCase_ = 3;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Dial a phone number
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
         * </code>
         */
        public Builder mergeDial(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial
                value) {
          if (dialBuilder_ == null) {
            if (actionCase_ == 3
                && action_
                    != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionDial.getDefaultInstance()) {
              action_ =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionDial.newBuilder(
                          (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                                  .RbmSuggestedActionDial)
                              action_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              action_ = value;
            }
            onChanged();
          } else {
            if (actionCase_ == 3) {
              dialBuilder_.mergeFrom(value);
            } else {
              dialBuilder_.setMessage(value);
            }
          }
          actionCase_ = 3;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Dial a phone number
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
         * </code>
         */
        public Builder clearDial() {
          if (dialBuilder_ == null) {
            if (actionCase_ == 3) {
              actionCase_ = 0;
              action_ = null;
              onChanged();
            }
          } else {
            if (actionCase_ == 3) {
              actionCase_ = 0;
              action_ = null;
            }
            dialBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Dial a phone number
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial.Builder
            getDialBuilder() {
          return getDialFieldBuilder().getBuilder();
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Dial a phone number
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
         * </code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDialOrBuilder
            getDialOrBuilder() {
          if ((actionCase_ == 3) && (dialBuilder_ != null)) {
            return dialBuilder_.getMessageOrBuilder();
          } else {
            if (actionCase_ == 3) {
              return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionDial)
                  action_;
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionDial.getDefaultInstance();
          }
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Dial a phone number
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;
         * </code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDial.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionDialOrBuilder>
            getDialFieldBuilder() {
          if (dialBuilder_ == null) {
            if (!(actionCase_ == 3)) {
              action_ =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionDial.getDefaultInstance();
            }
            dialBuilder_ =
                new com.google.protobuf.SingleFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionDial,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionDial.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionDialOrBuilder>(
                    (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                            .RbmSuggestedActionDial)
                        action_,
                    getParentForChildren(),
                    isClean());
            action_ = null;
          }
          actionCase_ = 3;
          onChanged();
          return dialBuilder_;
        }

        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUriOrBuilder>
            openUrlBuilder_;
        /**
         *
         *
         * <pre>
         * Suggested client side action: Open a URI on device
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
         * </code>
         *
         * @return Whether the openUrl field is set.
         */
        @java.lang.Override
        public boolean hasOpenUrl() {
          return actionCase_ == 4;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Open a URI on device
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
         * </code>
         *
         * @return The openUrl.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri
            getOpenUrl() {
          if (openUrlBuilder_ == null) {
            if (actionCase_ == 4) {
              return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionOpenUri)
                  action_;
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri.getDefaultInstance();
          } else {
            if (actionCase_ == 4) {
              return openUrlBuilder_.getMessage();
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri.getDefaultInstance();
          }
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Open a URI on device
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
         * </code>
         */
        public Builder setOpenUrl(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri
                value) {
          if (openUrlBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            action_ = value;
            onChanged();
          } else {
            openUrlBuilder_.setMessage(value);
          }
          actionCase_ = 4;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Open a URI on device
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
         * </code>
         */
        public Builder setOpenUrl(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri.Builder
                builderForValue) {
          if (openUrlBuilder_ == null) {
            action_ = builderForValue.build();
            onChanged();
          } else {
            openUrlBuilder_.setMessage(builderForValue.build());
          }
          actionCase_ = 4;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Open a URI on device
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
         * </code>
         */
        public Builder mergeOpenUrl(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri
                value) {
          if (openUrlBuilder_ == null) {
            if (actionCase_ == 4
                && action_
                    != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionOpenUri.getDefaultInstance()) {
              action_ =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionOpenUri.newBuilder(
                          (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                                  .RbmSuggestedActionOpenUri)
                              action_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              action_ = value;
            }
            onChanged();
          } else {
            if (actionCase_ == 4) {
              openUrlBuilder_.mergeFrom(value);
            } else {
              openUrlBuilder_.setMessage(value);
            }
          }
          actionCase_ = 4;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Open a URI on device
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
         * </code>
         */
        public Builder clearOpenUrl() {
          if (openUrlBuilder_ == null) {
            if (actionCase_ == 4) {
              actionCase_ = 0;
              action_ = null;
              onChanged();
            }
          } else {
            if (actionCase_ == 4) {
              actionCase_ = 0;
              action_ = null;
            }
            openUrlBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Open a URI on device
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri.Builder
            getOpenUrlBuilder() {
          return getOpenUrlFieldBuilder().getBuilder();
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Open a URI on device
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
         * </code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUriOrBuilder
            getOpenUrlOrBuilder() {
          if ((actionCase_ == 4) && (openUrlBuilder_ != null)) {
            return openUrlBuilder_.getMessageOrBuilder();
          } else {
            if (actionCase_ == 4) {
              return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionOpenUri)
                  action_;
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionOpenUri.getDefaultInstance();
          }
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Open a URI on device
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;
         * </code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUri.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionOpenUriOrBuilder>
            getOpenUrlFieldBuilder() {
          if (openUrlBuilder_ == null) {
            if (!(actionCase_ == 4)) {
              action_ =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionOpenUri.getDefaultInstance();
            }
            openUrlBuilder_ =
                new com.google.protobuf.SingleFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionOpenUri,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionOpenUri.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionOpenUriOrBuilder>(
                    (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                            .RbmSuggestedActionOpenUri)
                        action_,
                    getParentForChildren(),
                    isClean());
            action_ = null;
          }
          actionCase_ = 4;
          onChanged();
          return openUrlBuilder_;
        }

        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocationOrBuilder>
            shareLocationBuilder_;
        /**
         *
         *
         * <pre>
         * Suggested client side action: Share user location
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
         * </code>
         *
         * @return Whether the shareLocation field is set.
         */
        @java.lang.Override
        public boolean hasShareLocation() {
          return actionCase_ == 5;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Share user location
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
         * </code>
         *
         * @return The shareLocation.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation
            getShareLocation() {
          if (shareLocationBuilder_ == null) {
            if (actionCase_ == 5) {
              return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionShareLocation)
                  action_;
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation.getDefaultInstance();
          } else {
            if (actionCase_ == 5) {
              return shareLocationBuilder_.getMessage();
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation.getDefaultInstance();
          }
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Share user location
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
         * </code>
         */
        public Builder setShareLocation(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation
                value) {
          if (shareLocationBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            action_ = value;
            onChanged();
          } else {
            shareLocationBuilder_.setMessage(value);
          }
          actionCase_ = 5;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Share user location
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
         * </code>
         */
        public Builder setShareLocation(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation.Builder
                builderForValue) {
          if (shareLocationBuilder_ == null) {
            action_ = builderForValue.build();
            onChanged();
          } else {
            shareLocationBuilder_.setMessage(builderForValue.build());
          }
          actionCase_ = 5;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Share user location
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
         * </code>
         */
        public Builder mergeShareLocation(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation
                value) {
          if (shareLocationBuilder_ == null) {
            if (actionCase_ == 5
                && action_
                    != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionShareLocation.getDefaultInstance()) {
              action_ =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionShareLocation.newBuilder(
                          (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                                  .RbmSuggestedActionShareLocation)
                              action_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              action_ = value;
            }
            onChanged();
          } else {
            if (actionCase_ == 5) {
              shareLocationBuilder_.mergeFrom(value);
            } else {
              shareLocationBuilder_.setMessage(value);
            }
          }
          actionCase_ = 5;
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Share user location
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
         * </code>
         */
        public Builder clearShareLocation() {
          if (shareLocationBuilder_ == null) {
            if (actionCase_ == 5) {
              actionCase_ = 0;
              action_ = null;
              onChanged();
            }
          } else {
            if (actionCase_ == 5) {
              actionCase_ = 0;
              action_ = null;
            }
            shareLocationBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Share user location
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation.Builder
            getShareLocationBuilder() {
          return getShareLocationFieldBuilder().getBuilder();
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Share user location
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
         * </code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocationOrBuilder
            getShareLocationOrBuilder() {
          if ((actionCase_ == 5) && (shareLocationBuilder_ != null)) {
            return shareLocationBuilder_.getMessageOrBuilder();
          } else {
            if (actionCase_ == 5) {
              return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionShareLocation)
                  action_;
            }
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                .RbmSuggestedActionShareLocation.getDefaultInstance();
          }
        }
        /**
         *
         *
         * <pre>
         * Suggested client side action: Share user location
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;
         * </code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocation.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                    .RbmSuggestedActionShareLocationOrBuilder>
            getShareLocationFieldBuilder() {
          if (shareLocationBuilder_ == null) {
            if (!(actionCase_ == 5)) {
              action_ =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                      .RbmSuggestedActionShareLocation.getDefaultInstance();
            }
            shareLocationBuilder_ =
                new com.google.protobuf.SingleFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionShareLocation,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionShareLocation.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                        .RbmSuggestedActionShareLocationOrBuilder>(
                    (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
                            .RbmSuggestedActionShareLocation)
                        action_,
                    getParentForChildren(),
                    isClean());
            action_ = null;
          }
          actionCase_ = 5;
          onChanged();
          return shareLocationBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface MediaContentOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Optional. What type of media is the content (ie "audio").
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;
       * </code>
       *
       * @return The enum numeric value on the wire for mediaType.
       */
      int getMediaTypeValue();
      /**
       *
       *
       * <pre>
       * Optional. What type of media is the content (ie "audio").
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;
       * </code>
       *
       * @return The mediaType.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType
          getMediaType();

      /**
       *
       *
       * <pre>
       * Required. List of media objects.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
       * </code>
       */
      java.util.List<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject>
          getMediaObjectsList();
      /**
       *
       *
       * <pre>
       * Required. List of media objects.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
          getMediaObjects(int index);
      /**
       *
       *
       * <pre>
       * Required. List of media objects.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
       * </code>
       */
      int getMediaObjectsCount();
      /**
       *
       *
       * <pre>
       * Required. List of media objects.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
       * </code>
       */
      java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                      .ResponseMediaObjectOrBuilder>
          getMediaObjectsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Required. List of media objects.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObjectOrBuilder
          getMediaObjectsOrBuilder(int index);
    }
    /**
     *
     *
     * <pre>
     * The media content card for Actions on Google.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent}
     */
    public static final class MediaContent extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent)
        MediaContentOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use MediaContent.newBuilder() to construct.
      private MediaContent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private MediaContent() {
        mediaType_ = 0;
        mediaObjects_ = java.util.Collections.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder.class);
      }

      /**
       *
       *
       * <pre>
       * Format of response media type.
       * </pre>
       *
       * Protobuf enum {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType}
       */
      public enum ResponseMediaType implements com.google.protobuf.ProtocolMessageEnum {
        /**
         *
         *
         * <pre>
         * Unspecified.
         * </pre>
         *
         * <code>RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0;</code>
         */
        RESPONSE_MEDIA_TYPE_UNSPECIFIED(0),
        /**
         *
         *
         * <pre>
         * Response media type is audio.
         * </pre>
         *
         * <code>AUDIO = 1;</code>
         */
        AUDIO(1),
        UNRECOGNIZED(-1),
        ;

        /**
         *
         *
         * <pre>
         * Unspecified.
         * </pre>
         *
         * <code>RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0;</code>
         */
        public static final int RESPONSE_MEDIA_TYPE_UNSPECIFIED_VALUE = 0;
        /**
         *
         *
         * <pre>
         * Response media type is audio.
         * </pre>
         *
         * <code>AUDIO = 1;</code>
         */
        public static final int AUDIO_VALUE = 1;

        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 ResponseMediaType 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 ResponseMediaType forNumber(int value) {
          switch (value) {
            case 0:
              return RESPONSE_MEDIA_TYPE_UNSPECIFIED;
            case 1:
              return AUDIO;
            default:
              return null;
          }
        }

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

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

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

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

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.getDescriptor()
              .getEnumTypes()
              .get(0);
        }

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

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

        // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType)
      }

      public interface ResponseMediaObjectOrBuilder
          extends
          // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject)
          com.google.protobuf.MessageOrBuilder {

        /**
         *
         *
         * <pre>
         * Required. Name of media card.
         * </pre>
         *
         * <code>string name = 1;</code>
         *
         * @return The name.
         */
        java.lang.String getName();
        /**
         *
         *
         * <pre>
         * Required. Name of media card.
         * </pre>
         *
         * <code>string name = 1;</code>
         *
         * @return The bytes for name.
         */
        com.google.protobuf.ByteString getNameBytes();

        /**
         *
         *
         * <pre>
         * Optional. Description of media card.
         * </pre>
         *
         * <code>string description = 2;</code>
         *
         * @return The description.
         */
        java.lang.String getDescription();
        /**
         *
         *
         * <pre>
         * Optional. Description of media card.
         * </pre>
         *
         * <code>string description = 2;</code>
         *
         * @return The bytes for description.
         */
        com.google.protobuf.ByteString getDescriptionBytes();

        /**
         *
         *
         * <pre>
         * Optional. Image to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
         *
         * @return Whether the largeImage field is set.
         */
        boolean hasLargeImage();
        /**
         *
         *
         * <pre>
         * Optional. Image to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
         *
         * @return The largeImage.
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getLargeImage();
        /**
         *
         *
         * <pre>
         * Optional. Image to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getLargeImageOrBuilder();

        /**
         *
         *
         * <pre>
         * Optional. Icon to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
         *
         * @return Whether the icon field is set.
         */
        boolean hasIcon();
        /**
         *
         *
         * <pre>
         * Optional. Icon to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
         *
         * @return The icon.
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getIcon();
        /**
         *
         *
         * <pre>
         * Optional. Icon to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getIconOrBuilder();

        /**
         *
         *
         * <pre>
         * Required. Url where the media is stored.
         * </pre>
         *
         * <code>string content_url = 5;</code>
         *
         * @return The contentUrl.
         */
        java.lang.String getContentUrl();
        /**
         *
         *
         * <pre>
         * Required. Url where the media is stored.
         * </pre>
         *
         * <code>string content_url = 5;</code>
         *
         * @return The bytes for contentUrl.
         */
        com.google.protobuf.ByteString getContentUrlBytes();

        com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                .ImageCase
            getImageCase();
      }
      /**
       *
       *
       * <pre>
       * Response media object for media content card.
       * </pre>
       *
       * Protobuf type {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject}
       */
      public static final class ResponseMediaObject extends com.google.protobuf.GeneratedMessageV3
          implements
          // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject)
          ResponseMediaObjectOrBuilder {
        private static final long serialVersionUID = 0L;
        // Use ResponseMediaObject.newBuilder() to construct.
        private ResponseMediaObject(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
          super(builder);
        }

        private ResponseMediaObject() {
          name_ = "";
          description_ = "";
          contentUrl_ = "";
        }

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

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                      .ResponseMediaObject.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                      .ResponseMediaObject.Builder.class);
        }

        private int imageCase_ = 0;

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

        public enum ImageCase
            implements
                com.google.protobuf.Internal.EnumLite,
                com.google.protobuf.AbstractMessage.InternalOneOfEnum {
          LARGE_IMAGE(3),
          ICON(4),
          IMAGE_NOT_SET(0);
          private final int value;

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

          public static ImageCase forNumber(int value) {
            switch (value) {
              case 3:
                return LARGE_IMAGE;
              case 4:
                return ICON;
              case 0:
                return IMAGE_NOT_SET;
              default:
                return null;
            }
          }

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

        public ImageCase getImageCase() {
          return ImageCase.forNumber(imageCase_);
        }

        public static final int NAME_FIELD_NUMBER = 1;

        @SuppressWarnings("serial")
        private volatile java.lang.Object name_ = "";
        /**
         *
         *
         * <pre>
         * Required. Name of media card.
         * </pre>
         *
         * <code>string name = 1;</code>
         *
         * @return The name.
         */
        @java.lang.Override
        public java.lang.String getName() {
          java.lang.Object ref = name_;
          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();
            name_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Name of media card.
         * </pre>
         *
         * <code>string name = 1;</code>
         *
         * @return The bytes for name.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getNameBytes() {
          java.lang.Object ref = name_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            name_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int DESCRIPTION_FIELD_NUMBER = 2;

        @SuppressWarnings("serial")
        private volatile java.lang.Object description_ = "";
        /**
         *
         *
         * <pre>
         * Optional. Description of media card.
         * </pre>
         *
         * <code>string description = 2;</code>
         *
         * @return The description.
         */
        @java.lang.Override
        public java.lang.String getDescription() {
          java.lang.Object ref = description_;
          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();
            description_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Description of media card.
         * </pre>
         *
         * <code>string description = 2;</code>
         *
         * @return The bytes for description.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getDescriptionBytes() {
          java.lang.Object ref = description_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            description_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int LARGE_IMAGE_FIELD_NUMBER = 3;
        /**
         *
         *
         * <pre>
         * Optional. Image to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
         *
         * @return Whether the largeImage field is set.
         */
        @java.lang.Override
        public boolean hasLargeImage() {
          return imageCase_ == 3;
        }
        /**
         *
         *
         * <pre>
         * Optional. Image to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
         *
         * @return The largeImage.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getLargeImage() {
          if (imageCase_ == 3) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
        }
        /**
         *
         *
         * <pre>
         * Optional. Image to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
            getLargeImageOrBuilder() {
          if (imageCase_ == 3) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
        }

        public static final int ICON_FIELD_NUMBER = 4;
        /**
         *
         *
         * <pre>
         * Optional. Icon to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
         *
         * @return Whether the icon field is set.
         */
        @java.lang.Override
        public boolean hasIcon() {
          return imageCase_ == 4;
        }
        /**
         *
         *
         * <pre>
         * Optional. Icon to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
         *
         * @return The icon.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getIcon() {
          if (imageCase_ == 4) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
        }
        /**
         *
         *
         * <pre>
         * Optional. Icon to display above media content.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
            getIconOrBuilder() {
          if (imageCase_ == 4) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
        }

        public static final int CONTENT_URL_FIELD_NUMBER = 5;

        @SuppressWarnings("serial")
        private volatile java.lang.Object contentUrl_ = "";
        /**
         *
         *
         * <pre>
         * Required. Url where the media is stored.
         * </pre>
         *
         * <code>string content_url = 5;</code>
         *
         * @return The contentUrl.
         */
        @java.lang.Override
        public java.lang.String getContentUrl() {
          java.lang.Object ref = contentUrl_;
          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();
            contentUrl_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Url where the media is stored.
         * </pre>
         *
         * <code>string content_url = 5;</code>
         *
         * @return The bytes for contentUrl.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getContentUrlBytes() {
          java.lang.Object ref = contentUrl_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            contentUrl_ = 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(name_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
          }
          if (imageCase_ == 3) {
            output.writeMessage(
                3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_);
          }
          if (imageCase_ == 4) {
            output.writeMessage(
                4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentUrl_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 5, contentUrl_);
          }
          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(name_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
          }
          if (imageCase_ == 3) {
            size +=
                com.google.protobuf.CodedOutputStream.computeMessageSize(
                    3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_);
          }
          if (imageCase_ == 4) {
            size +=
                com.google.protobuf.CodedOutputStream.computeMessageSize(
                    4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentUrl_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, contentUrl_);
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj
              instanceof
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                  .ResponseMediaObject)) {
            return super.equals(obj);
          }
          com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
              other =
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                          .ResponseMediaObject)
                      obj;

          if (!getName().equals(other.getName())) return false;
          if (!getDescription().equals(other.getDescription())) return false;
          if (!getContentUrl().equals(other.getContentUrl())) return false;
          if (!getImageCase().equals(other.getImageCase())) return false;
          switch (imageCase_) {
            case 3:
              if (!getLargeImage().equals(other.getLargeImage())) return false;
              break;
            case 4:
              if (!getIcon().equals(other.getIcon())) 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) + NAME_FIELD_NUMBER;
          hash = (53 * hash) + getName().hashCode();
          hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
          hash = (53 * hash) + getDescription().hashCode();
          hash = (37 * hash) + CONTENT_URL_FIELD_NUMBER;
          hash = (53 * hash) + getContentUrl().hashCode();
          switch (imageCase_) {
            case 3:
              hash = (37 * hash) + LARGE_IMAGE_FIELD_NUMBER;
              hash = (53 * hash) + getLargeImage().hashCode();
              break;
            case 4:
              hash = (37 * hash) + ICON_FIELD_NUMBER;
              hash = (53 * hash) + getIcon().hashCode();
              break;
            case 0:
            default:
          }
          hash = (29 * hash) + getUnknownFields().hashCode();
          memoizedHashCode = hash;
          return hash;
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseFrom(java.nio.ByteBuffer data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseFrom(
                java.nio.ByteBuffer data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseFrom(com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            parseFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

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

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

        public static Builder newBuilder(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                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>
         * Response media object for media content card.
         * </pre>
         *
         * Protobuf type {@code
         * google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject}
         */
        public static final class Builder
            extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
            implements
            // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject)
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObjectOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                        .ResponseMediaObject.class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                        .ResponseMediaObject.Builder.class);
          }

          // Construct using
          // com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject.newBuilder()
          private Builder() {}

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

          @java.lang.Override
          public Builder clear() {
            super.clear();
            bitField0_ = 0;
            name_ = "";
            description_ = "";
            if (largeImageBuilder_ != null) {
              largeImageBuilder_.clear();
            }
            if (iconBuilder_ != null) {
              iconBuilder_.clear();
            }
            contentUrl_ = "";
            imageCase_ = 0;
            image_ = null;
            return this;
          }

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_descriptor;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
              getDefaultInstanceForType() {
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject.getDefaultInstance();
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
              build() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
              buildPartial() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                result =
                    new com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                        .ResponseMediaObject(this);
            if (bitField0_ != 0) {
              buildPartial0(result);
            }
            buildPartialOneofs(result);
            onBuilt();
            return result;
          }

          private void buildPartial0(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                  result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.name_ = name_;
            }
            if (((from_bitField0_ & 0x00000002) != 0)) {
              result.description_ = description_;
            }
            if (((from_bitField0_ & 0x00000010) != 0)) {
              result.contentUrl_ = contentUrl_;
            }
          }

          private void buildPartialOneofs(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                  result) {
            result.imageCase_ = imageCase_;
            result.image_ = this.image_;
            if (imageCase_ == 3 && largeImageBuilder_ != null) {
              result.image_ = largeImageBuilder_.build();
            }
            if (imageCase_ == 4 && iconBuilder_ != null) {
              result.image_ = iconBuilder_.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.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                    .ResponseMediaObject) {
              return mergeFrom(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                          .ResponseMediaObject)
                      other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }

          public Builder mergeFrom(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                  other) {
            if (other
                == com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                    .ResponseMediaObject.getDefaultInstance()) return this;
            if (!other.getName().isEmpty()) {
              name_ = other.name_;
              bitField0_ |= 0x00000001;
              onChanged();
            }
            if (!other.getDescription().isEmpty()) {
              description_ = other.description_;
              bitField0_ |= 0x00000002;
              onChanged();
            }
            if (!other.getContentUrl().isEmpty()) {
              contentUrl_ = other.contentUrl_;
              bitField0_ |= 0x00000010;
              onChanged();
            }
            switch (other.getImageCase()) {
              case LARGE_IMAGE:
                {
                  mergeLargeImage(other.getLargeImage());
                  break;
                }
              case ICON:
                {
                  mergeIcon(other.getIcon());
                  break;
                }
              case IMAGE_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:
                    {
                      name_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000001;
                      break;
                    } // case 10
                  case 18:
                    {
                      description_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000002;
                      break;
                    } // case 18
                  case 26:
                    {
                      input.readMessage(
                          getLargeImageFieldBuilder().getBuilder(), extensionRegistry);
                      imageCase_ = 3;
                      break;
                    } // case 26
                  case 34:
                    {
                      input.readMessage(getIconFieldBuilder().getBuilder(), extensionRegistry);
                      imageCase_ = 4;
                      break;
                    } // case 34
                  case 42:
                    {
                      contentUrl_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000010;
                      break;
                    } // case 42
                  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 imageCase_ = 0;
          private java.lang.Object image_;

          public ImageCase getImageCase() {
            return ImageCase.forNumber(imageCase_);
          }

          public Builder clearImage() {
            imageCase_ = 0;
            image_ = null;
            onChanged();
            return this;
          }

          private int bitField0_;

          private java.lang.Object name_ = "";
          /**
           *
           *
           * <pre>
           * Required. Name of media card.
           * </pre>
           *
           * <code>string name = 1;</code>
           *
           * @return The name.
           */
          public java.lang.String getName() {
            java.lang.Object ref = name_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              name_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Name of media card.
           * </pre>
           *
           * <code>string name = 1;</code>
           *
           * @return The bytes for name.
           */
          public com.google.protobuf.ByteString getNameBytes() {
            java.lang.Object ref = name_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              name_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Name of media card.
           * </pre>
           *
           * <code>string name = 1;</code>
           *
           * @param value The name to set.
           * @return This builder for chaining.
           */
          public Builder setName(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            name_ = value;
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Name of media card.
           * </pre>
           *
           * <code>string name = 1;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearName() {
            name_ = getDefaultInstance().getName();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Name of media card.
           * </pre>
           *
           * <code>string name = 1;</code>
           *
           * @param value The bytes for name to set.
           * @return This builder for chaining.
           */
          public Builder setNameBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            name_ = value;
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }

          private java.lang.Object description_ = "";
          /**
           *
           *
           * <pre>
           * Optional. Description of media card.
           * </pre>
           *
           * <code>string description = 2;</code>
           *
           * @return The description.
           */
          public java.lang.String getDescription() {
            java.lang.Object ref = description_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              description_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Description of media card.
           * </pre>
           *
           * <code>string description = 2;</code>
           *
           * @return The bytes for description.
           */
          public com.google.protobuf.ByteString getDescriptionBytes() {
            java.lang.Object ref = description_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              description_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Description of media card.
           * </pre>
           *
           * <code>string description = 2;</code>
           *
           * @param value The description to set.
           * @return This builder for chaining.
           */
          public Builder setDescription(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            description_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Description of media card.
           * </pre>
           *
           * <code>string description = 2;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearDescription() {
            description_ = getDefaultInstance().getDescription();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Description of media card.
           * </pre>
           *
           * <code>string description = 2;</code>
           *
           * @param value The bytes for description to set.
           * @return This builder for chaining.
           */
          public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            description_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }

          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
              largeImageBuilder_;
          /**
           *
           *
           * <pre>
           * Optional. Image to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
           *
           * @return Whether the largeImage field is set.
           */
          @java.lang.Override
          public boolean hasLargeImage() {
            return imageCase_ == 3;
          }
          /**
           *
           *
           * <pre>
           * Optional. Image to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
           *
           * @return The largeImage.
           */
          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getLargeImage() {
            if (largeImageBuilder_ == null) {
              if (imageCase_ == 3) {
                return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_;
              }
              return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
            } else {
              if (imageCase_ == 3) {
                return largeImageBuilder_.getMessage();
              }
              return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Image to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
           */
          public Builder setLargeImage(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
            if (largeImageBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              image_ = value;
              onChanged();
            } else {
              largeImageBuilder_.setMessage(value);
            }
            imageCase_ = 3;
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Image to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
           */
          public Builder setLargeImage(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) {
            if (largeImageBuilder_ == null) {
              image_ = builderForValue.build();
              onChanged();
            } else {
              largeImageBuilder_.setMessage(builderForValue.build());
            }
            imageCase_ = 3;
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Image to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
           */
          public Builder mergeLargeImage(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
            if (largeImageBuilder_ == null) {
              if (imageCase_ == 3
                  && image_
                      != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
                          .getDefaultInstance()) {
                image_ =
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder(
                            (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_)
                        .mergeFrom(value)
                        .buildPartial();
              } else {
                image_ = value;
              }
              onChanged();
            } else {
              if (imageCase_ == 3) {
                largeImageBuilder_.mergeFrom(value);
              } else {
                largeImageBuilder_.setMessage(value);
              }
            }
            imageCase_ = 3;
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Image to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
           */
          public Builder clearLargeImage() {
            if (largeImageBuilder_ == null) {
              if (imageCase_ == 3) {
                imageCase_ = 0;
                image_ = null;
                onChanged();
              }
            } else {
              if (imageCase_ == 3) {
                imageCase_ = 0;
                image_ = null;
              }
              largeImageBuilder_.clear();
            }
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Image to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder
              getLargeImageBuilder() {
            return getLargeImageFieldBuilder().getBuilder();
          }
          /**
           *
           *
           * <pre>
           * Optional. Image to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
           */
          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
              getLargeImageOrBuilder() {
            if ((imageCase_ == 3) && (largeImageBuilder_ != null)) {
              return largeImageBuilder_.getMessageOrBuilder();
            } else {
              if (imageCase_ == 3) {
                return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_;
              }
              return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Image to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;</code>
           */
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
              getLargeImageFieldBuilder() {
            if (largeImageBuilder_ == null) {
              if (!(imageCase_ == 3)) {
                image_ =
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
              }
              largeImageBuilder_ =
                  new com.google.protobuf.SingleFieldBuilderV3<
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>(
                      (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_,
                      getParentForChildren(),
                      isClean());
              image_ = null;
            }
            imageCase_ = 3;
            onChanged();
            return largeImageBuilder_;
          }

          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
              iconBuilder_;
          /**
           *
           *
           * <pre>
           * Optional. Icon to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
           *
           * @return Whether the icon field is set.
           */
          @java.lang.Override
          public boolean hasIcon() {
            return imageCase_ == 4;
          }
          /**
           *
           *
           * <pre>
           * Optional. Icon to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
           *
           * @return The icon.
           */
          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getIcon() {
            if (iconBuilder_ == null) {
              if (imageCase_ == 4) {
                return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_;
              }
              return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
            } else {
              if (imageCase_ == 4) {
                return iconBuilder_.getMessage();
              }
              return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Icon to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
           */
          public Builder setIcon(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
            if (iconBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              image_ = value;
              onChanged();
            } else {
              iconBuilder_.setMessage(value);
            }
            imageCase_ = 4;
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Icon to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
           */
          public Builder setIcon(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) {
            if (iconBuilder_ == null) {
              image_ = builderForValue.build();
              onChanged();
            } else {
              iconBuilder_.setMessage(builderForValue.build());
            }
            imageCase_ = 4;
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Icon to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
           */
          public Builder mergeIcon(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
            if (iconBuilder_ == null) {
              if (imageCase_ == 4
                  && image_
                      != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
                          .getDefaultInstance()) {
                image_ =
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder(
                            (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_)
                        .mergeFrom(value)
                        .buildPartial();
              } else {
                image_ = value;
              }
              onChanged();
            } else {
              if (imageCase_ == 4) {
                iconBuilder_.mergeFrom(value);
              } else {
                iconBuilder_.setMessage(value);
              }
            }
            imageCase_ = 4;
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Icon to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
           */
          public Builder clearIcon() {
            if (iconBuilder_ == null) {
              if (imageCase_ == 4) {
                imageCase_ = 0;
                image_ = null;
                onChanged();
              }
            } else {
              if (imageCase_ == 4) {
                imageCase_ = 0;
                image_ = null;
              }
              iconBuilder_.clear();
            }
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Icon to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder getIconBuilder() {
            return getIconFieldBuilder().getBuilder();
          }
          /**
           *
           *
           * <pre>
           * Optional. Icon to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
           */
          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
              getIconOrBuilder() {
            if ((imageCase_ == 4) && (iconBuilder_ != null)) {
              return iconBuilder_.getMessageOrBuilder();
            } else {
              if (imageCase_ == 4) {
                return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_;
              }
              return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Icon to display above media content.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;</code>
           */
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
              getIconFieldBuilder() {
            if (iconBuilder_ == null) {
              if (!(imageCase_ == 4)) {
                image_ =
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
              }
              iconBuilder_ =
                  new com.google.protobuf.SingleFieldBuilderV3<
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>(
                      (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_,
                      getParentForChildren(),
                      isClean());
              image_ = null;
            }
            imageCase_ = 4;
            onChanged();
            return iconBuilder_;
          }

          private java.lang.Object contentUrl_ = "";
          /**
           *
           *
           * <pre>
           * Required. Url where the media is stored.
           * </pre>
           *
           * <code>string content_url = 5;</code>
           *
           * @return The contentUrl.
           */
          public java.lang.String getContentUrl() {
            java.lang.Object ref = contentUrl_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              contentUrl_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Url where the media is stored.
           * </pre>
           *
           * <code>string content_url = 5;</code>
           *
           * @return The bytes for contentUrl.
           */
          public com.google.protobuf.ByteString getContentUrlBytes() {
            java.lang.Object ref = contentUrl_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              contentUrl_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Url where the media is stored.
           * </pre>
           *
           * <code>string content_url = 5;</code>
           *
           * @param value The contentUrl to set.
           * @return This builder for chaining.
           */
          public Builder setContentUrl(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            contentUrl_ = value;
            bitField0_ |= 0x00000010;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Url where the media is stored.
           * </pre>
           *
           * <code>string content_url = 5;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearContentUrl() {
            contentUrl_ = getDefaultInstance().getContentUrl();
            bitField0_ = (bitField0_ & ~0x00000010);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Url where the media is stored.
           * </pre>
           *
           * <code>string content_url = 5;</code>
           *
           * @param value The bytes for contentUrl to set.
           * @return This builder for chaining.
           */
          public Builder setContentUrlBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            contentUrl_ = value;
            bitField0_ |= 0x00000010;
            onChanged();
            return this;
          }

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

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

          // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject)
        }

        // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject)
        private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            DEFAULT_INSTANCE;

        static {
          DEFAULT_INSTANCE =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                  .ResponseMediaObject();
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObject
            getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

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

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
            getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }
      }

      public static final int MEDIA_TYPE_FIELD_NUMBER = 1;
      private int mediaType_ = 0;
      /**
       *
       *
       * <pre>
       * Optional. What type of media is the content (ie "audio").
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;
       * </code>
       *
       * @return The enum numeric value on the wire for mediaType.
       */
      @java.lang.Override
      public int getMediaTypeValue() {
        return mediaType_;
      }
      /**
       *
       *
       * <pre>
       * Optional. What type of media is the content (ie "audio").
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;
       * </code>
       *
       * @return The mediaType.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType
          getMediaType() {
        com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType result =
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType
                .forNumber(mediaType_);
        return result == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType
                .UNRECOGNIZED
            : result;
      }

      public static final int MEDIA_OBJECTS_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private java.util.List<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject>
          mediaObjects_;
      /**
       *
       *
       * <pre>
       * Required. List of media objects.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject>
          getMediaObjectsList() {
        return mediaObjects_;
      }
      /**
       *
       *
       * <pre>
       * Required. List of media objects.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                      .ResponseMediaObjectOrBuilder>
          getMediaObjectsOrBuilderList() {
        return mediaObjects_;
      }
      /**
       *
       *
       * <pre>
       * Required. List of media objects.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
       * </code>
       */
      @java.lang.Override
      public int getMediaObjectsCount() {
        return mediaObjects_.size();
      }
      /**
       *
       *
       * <pre>
       * Required. List of media objects.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
          getMediaObjects(int index) {
        return mediaObjects_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Required. List of media objects.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
              .ResponseMediaObjectOrBuilder
          getMediaObjectsOrBuilder(int index) {
        return mediaObjects_.get(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 {
        if (mediaType_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType
                .RESPONSE_MEDIA_TYPE_UNSPECIFIED
                .getNumber()) {
          output.writeEnum(1, mediaType_);
        }
        for (int i = 0; i < mediaObjects_.size(); i++) {
          output.writeMessage(2, mediaObjects_.get(i));
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        if (mediaType_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType
                .RESPONSE_MEDIA_TYPE_UNSPECIFIED
                .getNumber()) {
          size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mediaType_);
        }
        for (int i = 0; i < mediaObjects_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mediaObjects_.get(i));
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) obj;

        if (mediaType_ != other.mediaType_) return false;
        if (!getMediaObjectsList().equals(other.getMediaObjectsList())) 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) + MEDIA_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + mediaType_;
        if (getMediaObjectsCount() > 0) {
          hash = (37 * hash) + MEDIA_OBJECTS_FIELD_NUMBER;
          hash = (53 * hash) + getMediaObjectsList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent 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>
       * The media content card for Actions on Google.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          mediaType_ = 0;
          if (mediaObjectsBuilder_ == null) {
            mediaObjects_ = java.util.Collections.emptyList();
          } else {
            mediaObjects_ = null;
            mediaObjectsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000002);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent result) {
          if (mediaObjectsBuilder_ == null) {
            if (((bitField0_ & 0x00000002) != 0)) {
              mediaObjects_ = java.util.Collections.unmodifiableList(mediaObjects_);
              bitField0_ = (bitField0_ & ~0x00000002);
            }
            result.mediaObjects_ = mediaObjects_;
          } else {
            result.mediaObjects_ = mediaObjectsBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.mediaType_ = mediaType_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                  .getDefaultInstance()) return this;
          if (other.mediaType_ != 0) {
            setMediaTypeValue(other.getMediaTypeValue());
          }
          if (mediaObjectsBuilder_ == null) {
            if (!other.mediaObjects_.isEmpty()) {
              if (mediaObjects_.isEmpty()) {
                mediaObjects_ = other.mediaObjects_;
                bitField0_ = (bitField0_ & ~0x00000002);
              } else {
                ensureMediaObjectsIsMutable();
                mediaObjects_.addAll(other.mediaObjects_);
              }
              onChanged();
            }
          } else {
            if (!other.mediaObjects_.isEmpty()) {
              if (mediaObjectsBuilder_.isEmpty()) {
                mediaObjectsBuilder_.dispose();
                mediaObjectsBuilder_ = null;
                mediaObjects_ = other.mediaObjects_;
                bitField0_ = (bitField0_ & ~0x00000002);
                mediaObjectsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getMediaObjectsFieldBuilder()
                        : null;
              } else {
                mediaObjectsBuilder_.addAllMessages(other.mediaObjects_);
              }
            }
          }
          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:
                  {
                    mediaType_ = input.readEnum();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 8
                case 18:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                            .ResponseMediaObject
                        m =
                            input.readMessage(
                                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                                    .ResponseMediaObject.parser(),
                                extensionRegistry);
                    if (mediaObjectsBuilder_ == null) {
                      ensureMediaObjectsIsMutable();
                      mediaObjects_.add(m);
                    } else {
                      mediaObjectsBuilder_.addMessage(m);
                    }
                    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 mediaType_ = 0;
        /**
         *
         *
         * <pre>
         * Optional. What type of media is the content (ie "audio").
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;
         * </code>
         *
         * @return The enum numeric value on the wire for mediaType.
         */
        @java.lang.Override
        public int getMediaTypeValue() {
          return mediaType_;
        }
        /**
         *
         *
         * <pre>
         * Optional. What type of media is the content (ie "audio").
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;
         * </code>
         *
         * @param value The enum numeric value on the wire for mediaType to set.
         * @return This builder for chaining.
         */
        public Builder setMediaTypeValue(int value) {
          mediaType_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. What type of media is the content (ie "audio").
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;
         * </code>
         *
         * @return The mediaType.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType
            getMediaType() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType result =
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType
                  .forNumber(mediaType_);
          return result == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType
                  .UNRECOGNIZED
              : result;
        }
        /**
         *
         *
         * <pre>
         * Optional. What type of media is the content (ie "audio").
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;
         * </code>
         *
         * @param value The mediaType to set.
         * @return This builder for chaining.
         */
        public Builder setMediaType(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType
                value) {
          if (value == null) {
            throw new NullPointerException();
          }
          bitField0_ |= 0x00000001;
          mediaType_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. What type of media is the content (ie "audio").
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;
         * </code>
         *
         * @return This builder for chaining.
         */
        public Builder clearMediaType() {
          bitField0_ = (bitField0_ & ~0x00000001);
          mediaType_ = 0;
          onChanged();
          return this;
        }

        private java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject>
            mediaObjects_ = java.util.Collections.emptyList();

        private void ensureMediaObjectsIsMutable() {
          if (!((bitField0_ & 0x00000002) != 0)) {
            mediaObjects_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                        .ResponseMediaObject>(mediaObjects_);
            bitField0_ |= 0x00000002;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                    .Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                    .ResponseMediaObjectOrBuilder>
            mediaObjectsBuilder_;

        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject>
            getMediaObjectsList() {
          if (mediaObjectsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(mediaObjects_);
          } else {
            return mediaObjectsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public int getMediaObjectsCount() {
          if (mediaObjectsBuilder_ == null) {
            return mediaObjects_.size();
          } else {
            return mediaObjectsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
            getMediaObjects(int index) {
          if (mediaObjectsBuilder_ == null) {
            return mediaObjects_.get(index);
          } else {
            return mediaObjectsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public Builder setMediaObjects(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                value) {
          if (mediaObjectsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureMediaObjectsIsMutable();
            mediaObjects_.set(index, value);
            onChanged();
          } else {
            mediaObjectsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public Builder setMediaObjects(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                    .Builder
                builderForValue) {
          if (mediaObjectsBuilder_ == null) {
            ensureMediaObjectsIsMutable();
            mediaObjects_.set(index, builderForValue.build());
            onChanged();
          } else {
            mediaObjectsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public Builder addMediaObjects(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                value) {
          if (mediaObjectsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureMediaObjectsIsMutable();
            mediaObjects_.add(value);
            onChanged();
          } else {
            mediaObjectsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public Builder addMediaObjects(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                value) {
          if (mediaObjectsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureMediaObjectsIsMutable();
            mediaObjects_.add(index, value);
            onChanged();
          } else {
            mediaObjectsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public Builder addMediaObjects(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                    .Builder
                builderForValue) {
          if (mediaObjectsBuilder_ == null) {
            ensureMediaObjectsIsMutable();
            mediaObjects_.add(builderForValue.build());
            onChanged();
          } else {
            mediaObjectsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public Builder addMediaObjects(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                    .Builder
                builderForValue) {
          if (mediaObjectsBuilder_ == null) {
            ensureMediaObjectsIsMutable();
            mediaObjects_.add(index, builderForValue.build());
            onChanged();
          } else {
            mediaObjectsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public Builder addAllMediaObjects(
            java.lang.Iterable<
                    ? extends
                        com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                            .ResponseMediaObject>
                values) {
          if (mediaObjectsBuilder_ == null) {
            ensureMediaObjectsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mediaObjects_);
            onChanged();
          } else {
            mediaObjectsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public Builder clearMediaObjects() {
          if (mediaObjectsBuilder_ == null) {
            mediaObjects_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
          } else {
            mediaObjectsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public Builder removeMediaObjects(int index) {
          if (mediaObjectsBuilder_ == null) {
            ensureMediaObjectsIsMutable();
            mediaObjects_.remove(index);
            onChanged();
          } else {
            mediaObjectsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                .Builder
            getMediaObjectsBuilder(int index) {
          return getMediaObjectsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                .ResponseMediaObjectOrBuilder
            getMediaObjectsOrBuilder(int index) {
          if (mediaObjectsBuilder_ == null) {
            return mediaObjects_.get(index);
          } else {
            return mediaObjectsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public java.util.List<
                ? extends
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                        .ResponseMediaObjectOrBuilder>
            getMediaObjectsOrBuilderList() {
          if (mediaObjectsBuilder_ != null) {
            return mediaObjectsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(mediaObjects_);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                .Builder
            addMediaObjectsBuilder() {
          return getMediaObjectsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                      .ResponseMediaObject.getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                .Builder
            addMediaObjectsBuilder(int index) {
          return getMediaObjectsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                      .ResponseMediaObject.getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. List of media objects.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                    .Builder>
            getMediaObjectsBuilderList() {
          return getMediaObjectsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
                    .Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                    .ResponseMediaObjectOrBuilder>
            getMediaObjectsFieldBuilder() {
          if (mediaObjectsBuilder_ == null) {
            mediaObjectsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                        .ResponseMediaObject,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                        .ResponseMediaObject.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                        .ResponseMediaObjectOrBuilder>(
                    mediaObjects_,
                    ((bitField0_ & 0x00000002) != 0),
                    getParentForChildren(),
                    isClean());
            mediaObjects_ = null;
          }
          return mediaObjectsBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface BrowseCarouselCardOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. List of items in the Browse Carousel Card. Minimum of two
       * items, maximum of ten.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
       * </code>
       */
      java.util.List<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem>
          getItemsList();
      /**
       *
       *
       * <pre>
       * Required. List of items in the Browse Carousel Card. Minimum of two
       * items, maximum of ten.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
          getItems(int index);
      /**
       *
       *
       * <pre>
       * Required. List of items in the Browse Carousel Card. Minimum of two
       * items, maximum of ten.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
       * </code>
       */
      int getItemsCount();
      /**
       *
       *
       * <pre>
       * Required. List of items in the Browse Carousel Card. Minimum of two
       * items, maximum of ten.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
       * </code>
       */
      java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItemOrBuilder>
          getItemsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Required. List of items in the Browse Carousel Card. Minimum of two
       * items, maximum of ten.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
              .BrowseCarouselCardItemOrBuilder
          getItemsOrBuilder(int index);

      /**
       *
       *
       * <pre>
       * Optional. Settings for displaying the image. Applies to every image in
       * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2;
       * </code>
       *
       * @return The enum numeric value on the wire for imageDisplayOptions.
       */
      int getImageDisplayOptionsValue();
      /**
       *
       *
       * <pre>
       * Optional. Settings for displaying the image. Applies to every image in
       * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2;
       * </code>
       *
       * @return The imageDisplayOptions.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
          getImageDisplayOptions();
    }
    /**
     *
     *
     * <pre>
     * Browse Carousel Card for Actions on Google.
     * https://developers.google.com/actions/assistant/responses#browsing_carousel
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard}
     */
    public static final class BrowseCarouselCard extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard)
        BrowseCarouselCardOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use BrowseCarouselCard.newBuilder() to construct.
      private BrowseCarouselCard(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private BrowseCarouselCard() {
        items_ = java.util.Collections.emptyList();
        imageDisplayOptions_ = 0;
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder
                    .class);
      }

      /**
       *
       *
       * <pre>
       * Image display options for Actions on Google. This should be used for
       * when the image's aspect ratio does not match the image container's
       * aspect ratio.
       * </pre>
       *
       * Protobuf enum {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions}
       */
      public enum ImageDisplayOptions implements com.google.protobuf.ProtocolMessageEnum {
        /**
         *
         *
         * <pre>
         * Fill the gaps between the image and the image container with gray
         * bars.
         * </pre>
         *
         * <code>IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0;</code>
         */
        IMAGE_DISPLAY_OPTIONS_UNSPECIFIED(0),
        /**
         *
         *
         * <pre>
         * Fill the gaps between the image and the image container with gray
         * bars.
         * </pre>
         *
         * <code>GRAY = 1;</code>
         */
        GRAY(1),
        /**
         *
         *
         * <pre>
         * Fill the gaps between the image and the image container with white
         * bars.
         * </pre>
         *
         * <code>WHITE = 2;</code>
         */
        WHITE(2),
        /**
         *
         *
         * <pre>
         * Image is scaled such that the image width and height match or exceed
         * the container dimensions. This may crop the top and bottom of the
         * image if the scaled image height is greater than the container
         * height, or crop the left and right of the image if the scaled image
         * width is greater than the container width. This is similar to "Zoom
         * Mode" on a widescreen TV when playing a 4:3 video.
         * </pre>
         *
         * <code>CROPPED = 3;</code>
         */
        CROPPED(3),
        /**
         *
         *
         * <pre>
         * Pad the gaps between image and image frame with a blurred copy of the
         * same image.
         * </pre>
         *
         * <code>BLURRED_BACKGROUND = 4;</code>
         */
        BLURRED_BACKGROUND(4),
        UNRECOGNIZED(-1),
        ;

        /**
         *
         *
         * <pre>
         * Fill the gaps between the image and the image container with gray
         * bars.
         * </pre>
         *
         * <code>IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0;</code>
         */
        public static final int IMAGE_DISPLAY_OPTIONS_UNSPECIFIED_VALUE = 0;
        /**
         *
         *
         * <pre>
         * Fill the gaps between the image and the image container with gray
         * bars.
         * </pre>
         *
         * <code>GRAY = 1;</code>
         */
        public static final int GRAY_VALUE = 1;
        /**
         *
         *
         * <pre>
         * Fill the gaps between the image and the image container with white
         * bars.
         * </pre>
         *
         * <code>WHITE = 2;</code>
         */
        public static final int WHITE_VALUE = 2;
        /**
         *
         *
         * <pre>
         * Image is scaled such that the image width and height match or exceed
         * the container dimensions. This may crop the top and bottom of the
         * image if the scaled image height is greater than the container
         * height, or crop the left and right of the image if the scaled image
         * width is greater than the container width. This is similar to "Zoom
         * Mode" on a widescreen TV when playing a 4:3 video.
         * </pre>
         *
         * <code>CROPPED = 3;</code>
         */
        public static final int CROPPED_VALUE = 3;
        /**
         *
         *
         * <pre>
         * Pad the gaps between image and image frame with a blurred copy of the
         * same image.
         * </pre>
         *
         * <code>BLURRED_BACKGROUND = 4;</code>
         */
        public static final int BLURRED_BACKGROUND_VALUE = 4;

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

        /**
         * @param value The numeric wire value of the corresponding enum entry.
         * @return The enum associated with the given numeric wire value.
         * @deprecated Use {@link #forNumber(int)} instead.
         */
        @java.lang.Deprecated
        public static ImageDisplayOptions 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 ImageDisplayOptions forNumber(int value) {
          switch (value) {
            case 0:
              return IMAGE_DISPLAY_OPTIONS_UNSPECIFIED;
            case 1:
              return GRAY;
            case 2:
              return WHITE;
            case 3:
              return CROPPED;
            case 4:
              return BLURRED_BACKGROUND;
            default:
              return null;
          }
        }

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

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

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

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

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
              .getDescriptor()
              .getEnumTypes()
              .get(0);
        }

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

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

        // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions)
      }

      public interface BrowseCarouselCardItemOrBuilder
          extends
          // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem)
          com.google.protobuf.MessageOrBuilder {

        /**
         *
         *
         * <pre>
         * Required. Action to present to the user.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
         * </code>
         *
         * @return Whether the openUriAction field is set.
         */
        boolean hasOpenUriAction();
        /**
         *
         *
         * <pre>
         * Required. Action to present to the user.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
         * </code>
         *
         * @return The openUriAction.
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
                .OpenUrlAction
            getOpenUriAction();
        /**
         *
         *
         * <pre>
         * Required. Action to present to the user.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
         * </code>
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
                .OpenUrlActionOrBuilder
            getOpenUriActionOrBuilder();

        /**
         *
         *
         * <pre>
         * Required. Title of the carousel item. Maximum of two lines of text.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The title.
         */
        java.lang.String getTitle();
        /**
         *
         *
         * <pre>
         * Required. Title of the carousel item. Maximum of two lines of text.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The bytes for title.
         */
        com.google.protobuf.ByteString getTitleBytes();

        /**
         *
         *
         * <pre>
         * Optional. Description of the carousel item. Maximum of four lines of
         * text.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The description.
         */
        java.lang.String getDescription();
        /**
         *
         *
         * <pre>
         * Optional. Description of the carousel item. Maximum of four lines of
         * text.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The bytes for description.
         */
        com.google.protobuf.ByteString getDescriptionBytes();

        /**
         *
         *
         * <pre>
         * Optional. Hero image for the carousel item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return Whether the image field is set.
         */
        boolean hasImage();
        /**
         *
         *
         * <pre>
         * Optional. Hero image for the carousel item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return The image.
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage();
        /**
         *
         *
         * <pre>
         * Optional. Hero image for the carousel item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder();

        /**
         *
         *
         * <pre>
         * Optional. Text that appears at the bottom of the Browse Carousel
         * Card. Maximum of one line of text.
         * </pre>
         *
         * <code>string footer = 5;</code>
         *
         * @return The footer.
         */
        java.lang.String getFooter();
        /**
         *
         *
         * <pre>
         * Optional. Text that appears at the bottom of the Browse Carousel
         * Card. Maximum of one line of text.
         * </pre>
         *
         * <code>string footer = 5;</code>
         *
         * @return The bytes for footer.
         */
        com.google.protobuf.ByteString getFooterBytes();
      }
      /**
       *
       *
       * <pre>
       * Browsing carousel tile
       * </pre>
       *
       * Protobuf type {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem}
       */
      public static final class BrowseCarouselCardItem
          extends com.google.protobuf.GeneratedMessageV3
          implements
          // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem)
          BrowseCarouselCardItemOrBuilder {
        private static final long serialVersionUID = 0L;
        // Use BrowseCarouselCardItem.newBuilder() to construct.
        private BrowseCarouselCardItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
          super(builder);
        }

        private BrowseCarouselCardItem() {
          title_ = "";
          description_ = "";
          footer_ = "";
        }

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

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.Builder.class);
        }

        public interface OpenUrlActionOrBuilder
            extends
            // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction)
            com.google.protobuf.MessageOrBuilder {

          /**
           *
           *
           * <pre>
           * Required. URL
           * </pre>
           *
           * <code>string url = 1;</code>
           *
           * @return The url.
           */
          java.lang.String getUrl();
          /**
           *
           *
           * <pre>
           * Required. URL
           * </pre>
           *
           * <code>string url = 1;</code>
           *
           * @return The bytes for url.
           */
          com.google.protobuf.ByteString getUrlBytes();

          /**
           *
           *
           * <pre>
           * Optional. Specifies the type of viewer that is used when opening
           * the URL. Defaults to opening via web browser.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3;
           * </code>
           *
           * @return The enum numeric value on the wire for urlTypeHint.
           */
          int getUrlTypeHintValue();
          /**
           *
           *
           * <pre>
           * Optional. Specifies the type of viewer that is used when opening
           * the URL. Defaults to opening via web browser.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3;
           * </code>
           *
           * @return The urlTypeHint.
           */
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint
              getUrlTypeHint();
        }
        /**
         *
         *
         * <pre>
         * Actions on Google action to open a given url.
         * </pre>
         *
         * Protobuf type {@code
         * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction}
         */
        public static final class OpenUrlAction extends com.google.protobuf.GeneratedMessageV3
            implements
            // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction)
            OpenUrlActionOrBuilder {
          private static final long serialVersionUID = 0L;
          // Use OpenUrlAction.newBuilder() to construct.
          private OpenUrlAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
          }

          private OpenUrlAction() {
            url_ = "";
            urlTypeHint_ = 0;
          }

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

          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem.OpenUrlAction.class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem.OpenUrlAction.Builder.class);
          }

          /**
           *
           *
           * <pre>
           * Type of the URI.
           * </pre>
           *
           * Protobuf enum {@code
           * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint}
           */
          public enum UrlTypeHint implements com.google.protobuf.ProtocolMessageEnum {
            /**
             *
             *
             * <pre>
             * Unspecified
             * </pre>
             *
             * <code>URL_TYPE_HINT_UNSPECIFIED = 0;</code>
             */
            URL_TYPE_HINT_UNSPECIFIED(0),
            /**
             *
             *
             * <pre>
             * Url would be an amp action
             * </pre>
             *
             * <code>AMP_ACTION = 1;</code>
             */
            AMP_ACTION(1),
            /**
             *
             *
             * <pre>
             * URL that points directly to AMP content, or to a canonical URL
             * which refers to AMP content via &lt;link rel="amphtml"&gt;.
             * </pre>
             *
             * <code>AMP_CONTENT = 2;</code>
             */
            AMP_CONTENT(2),
            UNRECOGNIZED(-1),
            ;

            /**
             *
             *
             * <pre>
             * Unspecified
             * </pre>
             *
             * <code>URL_TYPE_HINT_UNSPECIFIED = 0;</code>
             */
            public static final int URL_TYPE_HINT_UNSPECIFIED_VALUE = 0;
            /**
             *
             *
             * <pre>
             * Url would be an amp action
             * </pre>
             *
             * <code>AMP_ACTION = 1;</code>
             */
            public static final int AMP_ACTION_VALUE = 1;
            /**
             *
             *
             * <pre>
             * URL that points directly to AMP content, or to a canonical URL
             * which refers to AMP content via &lt;link rel="amphtml"&gt;.
             * </pre>
             *
             * <code>AMP_CONTENT = 2;</code>
             */
            public static final int AMP_CONTENT_VALUE = 2;

            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 UrlTypeHint 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 UrlTypeHint forNumber(int value) {
              switch (value) {
                case 0:
                  return URL_TYPE_HINT_UNSPECIFIED;
                case 1:
                  return AMP_ACTION;
                case 2:
                  return AMP_CONTENT;
                default:
                  return null;
              }
            }

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

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

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

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

            public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
              return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction.getDescriptor()
                  .getEnumTypes()
                  .get(0);
            }

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

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

            // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint)
          }

          public static final int URL_FIELD_NUMBER = 1;

          @SuppressWarnings("serial")
          private volatile java.lang.Object url_ = "";
          /**
           *
           *
           * <pre>
           * Required. URL
           * </pre>
           *
           * <code>string url = 1;</code>
           *
           * @return The url.
           */
          @java.lang.Override
          public java.lang.String getUrl() {
            java.lang.Object ref = url_;
            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();
              url_ = s;
              return s;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. URL
           * </pre>
           *
           * <code>string url = 1;</code>
           *
           * @return The bytes for url.
           */
          @java.lang.Override
          public com.google.protobuf.ByteString getUrlBytes() {
            java.lang.Object ref = url_;
            if (ref instanceof java.lang.String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              url_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }

          public static final int URL_TYPE_HINT_FIELD_NUMBER = 3;
          private int urlTypeHint_ = 0;
          /**
           *
           *
           * <pre>
           * Optional. Specifies the type of viewer that is used when opening
           * the URL. Defaults to opening via web browser.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3;
           * </code>
           *
           * @return The enum numeric value on the wire for urlTypeHint.
           */
          @java.lang.Override
          public int getUrlTypeHintValue() {
            return urlTypeHint_;
          }
          /**
           *
           *
           * <pre>
           * Optional. Specifies the type of viewer that is used when opening
           * the URL. Defaults to opening via web browser.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3;
           * </code>
           *
           * @return The urlTypeHint.
           */
          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint
              getUrlTypeHint() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint
                result =
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.forNumber(urlTypeHint_);
            return result == null
                ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.UNRECOGNIZED
                : result;
          }

          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(url_)) {
              com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_);
            }
            if (urlTypeHint_
                != com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.URL_TYPE_HINT_UNSPECIFIED
                    .getNumber()) {
              output.writeEnum(3, urlTypeHint_);
            }
            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(url_)) {
              size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_);
            }
            if (urlTypeHint_
                != com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.URL_TYPE_HINT_UNSPECIFIED
                    .getNumber()) {
              size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, urlTypeHint_);
            }
            size += getUnknownFields().getSerializedSize();
            memoizedSize = size;
            return size;
          }

          @java.lang.Override
          public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
              return true;
            }
            if (!(obj
                instanceof
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.OpenUrlAction)) {
              return super.equals(obj);
            }
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.OpenUrlAction
                other =
                    (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                            .BrowseCarouselCardItem.OpenUrlAction)
                        obj;

            if (!getUrl().equals(other.getUrl())) return false;
            if (urlTypeHint_ != other.urlTypeHint_) 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) + URL_FIELD_NUMBER;
            hash = (53 * hash) + getUrl().hashCode();
            hash = (37 * hash) + URL_TYPE_HINT_FIELD_NUMBER;
            hash = (53 * hash) + urlTypeHint_;
            hash = (29 * hash) + getUnknownFields().hashCode();
            memoizedHashCode = hash;
            return hash;
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseFrom(java.nio.ByteBuffer data)
                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseFrom(
                  java.nio.ByteBuffer data,
                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseFrom(com.google.protobuf.ByteString data)
                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseFrom(
                  com.google.protobuf.ByteString data,
                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseFrom(
                  java.io.InputStream input,
                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                PARSER, input, extensionRegistry);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                PARSER, input);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseDelimitedFrom(
                  java.io.InputStream input,
                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                PARSER, input, extensionRegistry);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              parseFrom(
                  com.google.protobuf.CodedInputStream input,
                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                PARSER, input, extensionRegistry);
          }

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

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

          public static Builder newBuilder(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction
                  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>
           * Actions on Google action to open a given url.
           * </pre>
           *
           * Protobuf type {@code
           * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction}
           */
          public static final class Builder
              extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
              implements
              // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction)
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlActionOrBuilder {
            public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              return com.google.cloud.dialogflow.v2beta1.IntentProto
                  .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor;
            }

            @java.lang.Override
            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                internalGetFieldAccessorTable() {
              return com.google.cloud.dialogflow.v2beta1.IntentProto
                  .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_fieldAccessorTable
                  .ensureFieldAccessorsInitialized(
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                          .BrowseCarouselCardItem.OpenUrlAction.class,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                          .BrowseCarouselCardItem.OpenUrlAction.Builder.class);
            }

            // Construct using
            // com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.newBuilder()
            private Builder() {}

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

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

            @java.lang.Override
            public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
              return com.google.cloud.dialogflow.v2beta1.IntentProto
                  .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor;
            }

            @java.lang.Override
            public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.OpenUrlAction
                getDefaultInstanceForType() {
              return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance();
            }

            @java.lang.Override
            public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.OpenUrlAction
                build() {
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction
                  result = buildPartial();
              if (!result.isInitialized()) {
                throw newUninitializedMessageException(result);
              }
              return result;
            }

            @java.lang.Override
            public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.OpenUrlAction
                buildPartial() {
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction
                  result =
                      new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                          .BrowseCarouselCardItem.OpenUrlAction(this);
              if (bitField0_ != 0) {
                buildPartial0(result);
              }
              onBuilt();
              return result;
            }

            private void buildPartial0(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem.OpenUrlAction
                    result) {
              int from_bitField0_ = bitField0_;
              if (((from_bitField0_ & 0x00000001) != 0)) {
                result.url_ = url_;
              }
              if (((from_bitField0_ & 0x00000002) != 0)) {
                result.urlTypeHint_ = urlTypeHint_;
              }
            }

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

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

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

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

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

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

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.Message other) {
              if (other
                  instanceof
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction) {
                return mergeFrom(
                    (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                            .BrowseCarouselCardItem.OpenUrlAction)
                        other);
              } else {
                super.mergeFrom(other);
                return this;
              }
            }

            public Builder mergeFrom(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem.OpenUrlAction
                    other) {
              if (other
                  == com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance()) return this;
              if (!other.getUrl().isEmpty()) {
                url_ = other.url_;
                bitField0_ |= 0x00000001;
                onChanged();
              }
              if (other.urlTypeHint_ != 0) {
                setUrlTypeHintValue(other.getUrlTypeHintValue());
              }
              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:
                      {
                        url_ = input.readStringRequireUtf8();
                        bitField0_ |= 0x00000001;
                        break;
                      } // case 10
                    case 24:
                      {
                        urlTypeHint_ = input.readEnum();
                        bitField0_ |= 0x00000002;
                        break;
                      } // case 24
                    default:
                      {
                        if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                          done = true; // was an endgroup tag
                        }
                        break;
                      } // default:
                  } // switch (tag)
                } // while (!done)
              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                throw e.unwrapIOException();
              } finally {
                onChanged();
              } // finally
              return this;
            }

            private int bitField0_;

            private java.lang.Object url_ = "";
            /**
             *
             *
             * <pre>
             * Required. URL
             * </pre>
             *
             * <code>string url = 1;</code>
             *
             * @return The url.
             */
            public java.lang.String getUrl() {
              java.lang.Object ref = url_;
              if (!(ref instanceof java.lang.String)) {
                com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
                java.lang.String s = bs.toStringUtf8();
                url_ = s;
                return s;
              } else {
                return (java.lang.String) ref;
              }
            }
            /**
             *
             *
             * <pre>
             * Required. URL
             * </pre>
             *
             * <code>string url = 1;</code>
             *
             * @return The bytes for url.
             */
            public com.google.protobuf.ByteString getUrlBytes() {
              java.lang.Object ref = url_;
              if (ref instanceof String) {
                com.google.protobuf.ByteString b =
                    com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
                url_ = b;
                return b;
              } else {
                return (com.google.protobuf.ByteString) ref;
              }
            }
            /**
             *
             *
             * <pre>
             * Required. URL
             * </pre>
             *
             * <code>string url = 1;</code>
             *
             * @param value The url to set.
             * @return This builder for chaining.
             */
            public Builder setUrl(java.lang.String value) {
              if (value == null) {
                throw new NullPointerException();
              }
              url_ = value;
              bitField0_ |= 0x00000001;
              onChanged();
              return this;
            }
            /**
             *
             *
             * <pre>
             * Required. URL
             * </pre>
             *
             * <code>string url = 1;</code>
             *
             * @return This builder for chaining.
             */
            public Builder clearUrl() {
              url_ = getDefaultInstance().getUrl();
              bitField0_ = (bitField0_ & ~0x00000001);
              onChanged();
              return this;
            }
            /**
             *
             *
             * <pre>
             * Required. URL
             * </pre>
             *
             * <code>string url = 1;</code>
             *
             * @param value The bytes for url to set.
             * @return This builder for chaining.
             */
            public Builder setUrlBytes(com.google.protobuf.ByteString value) {
              if (value == null) {
                throw new NullPointerException();
              }
              checkByteStringIsUtf8(value);
              url_ = value;
              bitField0_ |= 0x00000001;
              onChanged();
              return this;
            }

            private int urlTypeHint_ = 0;
            /**
             *
             *
             * <pre>
             * Optional. Specifies the type of viewer that is used when opening
             * the URL. Defaults to opening via web browser.
             * </pre>
             *
             * <code>
             * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3;
             * </code>
             *
             * @return The enum numeric value on the wire for urlTypeHint.
             */
            @java.lang.Override
            public int getUrlTypeHintValue() {
              return urlTypeHint_;
            }
            /**
             *
             *
             * <pre>
             * Optional. Specifies the type of viewer that is used when opening
             * the URL. Defaults to opening via web browser.
             * </pre>
             *
             * <code>
             * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3;
             * </code>
             *
             * @param value The enum numeric value on the wire for urlTypeHint to set.
             * @return This builder for chaining.
             */
            public Builder setUrlTypeHintValue(int value) {
              urlTypeHint_ = value;
              bitField0_ |= 0x00000002;
              onChanged();
              return this;
            }
            /**
             *
             *
             * <pre>
             * Optional. Specifies the type of viewer that is used when opening
             * the URL. Defaults to opening via web browser.
             * </pre>
             *
             * <code>
             * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3;
             * </code>
             *
             * @return The urlTypeHint.
             */
            @java.lang.Override
            public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint
                getUrlTypeHint() {
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint
                  result =
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                          .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.forNumber(urlTypeHint_);
              return result == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.UNRECOGNIZED
                  : result;
            }
            /**
             *
             *
             * <pre>
             * Optional. Specifies the type of viewer that is used when opening
             * the URL. Defaults to opening via web browser.
             * </pre>
             *
             * <code>
             * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3;
             * </code>
             *
             * @param value The urlTypeHint to set.
             * @return This builder for chaining.
             */
            public Builder setUrlTypeHint(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint
                    value) {
              if (value == null) {
                throw new NullPointerException();
              }
              bitField0_ |= 0x00000002;
              urlTypeHint_ = value.getNumber();
              onChanged();
              return this;
            }
            /**
             *
             *
             * <pre>
             * Optional. Specifies the type of viewer that is used when opening
             * the URL. Defaults to opening via web browser.
             * </pre>
             *
             * <code>
             * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3;
             * </code>
             *
             * @return This builder for chaining.
             */
            public Builder clearUrlTypeHint() {
              bitField0_ = (bitField0_ & ~0x00000002);
              urlTypeHint_ = 0;
              onChanged();
              return this;
            }

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

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

            // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction)
          }

          // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction)
          private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              DEFAULT_INSTANCE;

          static {
            DEFAULT_INSTANCE =
                new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.OpenUrlAction();
          }

          public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              getDefaultInstance() {
            return DEFAULT_INSTANCE;
          }

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

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

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
          }
        }

        public static final int OPEN_URI_ACTION_FIELD_NUMBER = 1;
        private com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem.OpenUrlAction
            openUriAction_;
        /**
         *
         *
         * <pre>
         * Required. Action to present to the user.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
         * </code>
         *
         * @return Whether the openUriAction field is set.
         */
        @java.lang.Override
        public boolean hasOpenUriAction() {
          return openUriAction_ != null;
        }
        /**
         *
         *
         * <pre>
         * Required. Action to present to the user.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
         * </code>
         *
         * @return The openUriAction.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem.OpenUrlAction
            getOpenUriAction() {
          return openUriAction_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance()
              : openUriAction_;
        }
        /**
         *
         *
         * <pre>
         * Required. Action to present to the user.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
         * </code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem.OpenUrlActionOrBuilder
            getOpenUriActionOrBuilder() {
          return openUriAction_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance()
              : openUriAction_;
        }

        public static final int TITLE_FIELD_NUMBER = 2;

        @SuppressWarnings("serial")
        private volatile java.lang.Object title_ = "";
        /**
         *
         *
         * <pre>
         * Required. Title of the carousel item. Maximum of two lines of text.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The title.
         */
        @java.lang.Override
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          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();
            title_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Title of the carousel item. Maximum of two lines of text.
         * </pre>
         *
         * <code>string title = 2;</code>
         *
         * @return The bytes for title.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int DESCRIPTION_FIELD_NUMBER = 3;

        @SuppressWarnings("serial")
        private volatile java.lang.Object description_ = "";
        /**
         *
         *
         * <pre>
         * Optional. Description of the carousel item. Maximum of four lines of
         * text.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The description.
         */
        @java.lang.Override
        public java.lang.String getDescription() {
          java.lang.Object ref = description_;
          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();
            description_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Description of the carousel item. Maximum of four lines of
         * text.
         * </pre>
         *
         * <code>string description = 3;</code>
         *
         * @return The bytes for description.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getDescriptionBytes() {
          java.lang.Object ref = description_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            description_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }

        public static final int IMAGE_FIELD_NUMBER = 4;
        private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_;
        /**
         *
         *
         * <pre>
         * Optional. Hero image for the carousel item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return Whether the image field is set.
         */
        @java.lang.Override
        public boolean hasImage() {
          return image_ != null;
        }
        /**
         *
         *
         * <pre>
         * Optional. Hero image for the carousel item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         *
         * @return The image.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
          return image_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
              : image_;
        }
        /**
         *
         *
         * <pre>
         * Optional. Hero image for the carousel item.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
            getImageOrBuilder() {
          return image_ == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
              : image_;
        }

        public static final int FOOTER_FIELD_NUMBER = 5;

        @SuppressWarnings("serial")
        private volatile java.lang.Object footer_ = "";
        /**
         *
         *
         * <pre>
         * Optional. Text that appears at the bottom of the Browse Carousel
         * Card. Maximum of one line of text.
         * </pre>
         *
         * <code>string footer = 5;</code>
         *
         * @return The footer.
         */
        @java.lang.Override
        public java.lang.String getFooter() {
          java.lang.Object ref = footer_;
          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();
            footer_ = s;
            return s;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Text that appears at the bottom of the Browse Carousel
         * Card. Maximum of one line of text.
         * </pre>
         *
         * <code>string footer = 5;</code>
         *
         * @return The bytes for footer.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getFooterBytes() {
          java.lang.Object ref = footer_;
          if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            footer_ = 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 (openUriAction_ != null) {
            output.writeMessage(1, getOpenUriAction());
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
          }
          if (image_ != null) {
            output.writeMessage(4, getImage());
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(footer_)) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 5, footer_);
          }
          getUnknownFields().writeTo(output);
        }

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

          size = 0;
          if (openUriAction_ != null) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOpenUriAction());
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
          }
          if (image_ != null) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getImage());
          }
          if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(footer_)) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, footer_);
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
            return true;
          }
          if (!(obj
              instanceof
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem)) {
            return super.equals(obj);
          }
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem
              other =
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                          .BrowseCarouselCardItem)
                      obj;

          if (hasOpenUriAction() != other.hasOpenUriAction()) return false;
          if (hasOpenUriAction()) {
            if (!getOpenUriAction().equals(other.getOpenUriAction())) return false;
          }
          if (!getTitle().equals(other.getTitle())) return false;
          if (!getDescription().equals(other.getDescription())) return false;
          if (hasImage() != other.hasImage()) return false;
          if (hasImage()) {
            if (!getImage().equals(other.getImage())) return false;
          }
          if (!getFooter().equals(other.getFooter())) 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 (hasOpenUriAction()) {
            hash = (37 * hash) + OPEN_URI_ACTION_FIELD_NUMBER;
            hash = (53 * hash) + getOpenUriAction().hashCode();
          }
          hash = (37 * hash) + TITLE_FIELD_NUMBER;
          hash = (53 * hash) + getTitle().hashCode();
          hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
          hash = (53 * hash) + getDescription().hashCode();
          if (hasImage()) {
            hash = (37 * hash) + IMAGE_FIELD_NUMBER;
            hash = (53 * hash) + getImage().hashCode();
          }
          hash = (37 * hash) + FOOTER_FIELD_NUMBER;
          hash = (53 * hash) + getFooter().hashCode();
          hash = (29 * hash) + getUnknownFields().hashCode();
          memoizedHashCode = hash;
          return hash;
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseFrom(java.nio.ByteBuffer data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseFrom(
                java.nio.ByteBuffer data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseFrom(com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              PARSER, input, extensionRegistry);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            parseFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              PARSER, input, extensionRegistry);
        }

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

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

        public static Builder newBuilder(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem
                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>
         * Browsing carousel tile
         * </pre>
         *
         * Protobuf type {@code
         * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem}
         */
        public static final class Builder
            extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
            implements
            // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem)
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItemOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem.class,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem.Builder.class);
          }

          // Construct using
          // com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.newBuilder()
          private Builder() {}

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

          @java.lang.Override
          public Builder clear() {
            super.clear();
            bitField0_ = 0;
            openUriAction_ = null;
            if (openUriActionBuilder_ != null) {
              openUriActionBuilder_.dispose();
              openUriActionBuilder_ = null;
            }
            title_ = "";
            description_ = "";
            image_ = null;
            if (imageBuilder_ != null) {
              imageBuilder_.dispose();
              imageBuilder_ = null;
            }
            footer_ = "";
            return this;
          }

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return com.google.cloud.dialogflow.v2beta1.IntentProto
                .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem
              getDefaultInstanceForType() {
            return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem.getDefaultInstance();
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem
              build() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem
                result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem
              buildPartial() {
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem
                result =
                    new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem(this);
            if (bitField0_ != 0) {
              buildPartial0(result);
            }
            onBuilt();
            return result;
          }

          private void buildPartial0(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem
                  result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.openUriAction_ =
                  openUriActionBuilder_ == null ? openUriAction_ : openUriActionBuilder_.build();
            }
            if (((from_bitField0_ & 0x00000002) != 0)) {
              result.title_ = title_;
            }
            if (((from_bitField0_ & 0x00000004) != 0)) {
              result.description_ = description_;
            }
            if (((from_bitField0_ & 0x00000008) != 0)) {
              result.image_ = imageBuilder_ == null ? image_ : imageBuilder_.build();
            }
            if (((from_bitField0_ & 0x00000010) != 0)) {
              result.footer_ = footer_;
            }
          }

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

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

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

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

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

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

          @java.lang.Override
          public Builder mergeFrom(com.google.protobuf.Message other) {
            if (other
                instanceof
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem) {
              return mergeFrom(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                          .BrowseCarouselCardItem)
                      other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }

          public Builder mergeFrom(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem
                  other) {
            if (other
                == com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.getDefaultInstance()) return this;
            if (other.hasOpenUriAction()) {
              mergeOpenUriAction(other.getOpenUriAction());
            }
            if (!other.getTitle().isEmpty()) {
              title_ = other.title_;
              bitField0_ |= 0x00000002;
              onChanged();
            }
            if (!other.getDescription().isEmpty()) {
              description_ = other.description_;
              bitField0_ |= 0x00000004;
              onChanged();
            }
            if (other.hasImage()) {
              mergeImage(other.getImage());
            }
            if (!other.getFooter().isEmpty()) {
              footer_ = other.footer_;
              bitField0_ |= 0x00000010;
              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:
                    {
                      input.readMessage(
                          getOpenUriActionFieldBuilder().getBuilder(), extensionRegistry);
                      bitField0_ |= 0x00000001;
                      break;
                    } // case 10
                  case 18:
                    {
                      title_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000002;
                      break;
                    } // case 18
                  case 26:
                    {
                      description_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000004;
                      break;
                    } // case 26
                  case 34:
                    {
                      input.readMessage(getImageFieldBuilder().getBuilder(), extensionRegistry);
                      bitField0_ |= 0x00000008;
                      break;
                    } // case 34
                  case 42:
                    {
                      footer_ = input.readStringRequireUtf8();
                      bitField0_ |= 0x00000010;
                      break;
                    } // case 42
                  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.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              openUriAction_;
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlActionOrBuilder>
              openUriActionBuilder_;
          /**
           *
           *
           * <pre>
           * Required. Action to present to the user.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
           * </code>
           *
           * @return Whether the openUriAction field is set.
           */
          public boolean hasOpenUriAction() {
            return ((bitField0_ & 0x00000001) != 0);
          }
          /**
           *
           *
           * <pre>
           * Required. Action to present to the user.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
           * </code>
           *
           * @return The openUriAction.
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction
              getOpenUriAction() {
            if (openUriActionBuilder_ == null) {
              return openUriAction_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance()
                  : openUriAction_;
            } else {
              return openUriActionBuilder_.getMessage();
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Action to present to the user.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
           * </code>
           */
          public Builder setOpenUriAction(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction
                  value) {
            if (openUriActionBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              openUriAction_ = value;
            } else {
              openUriActionBuilder_.setMessage(value);
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Action to present to the user.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
           * </code>
           */
          public Builder setOpenUriAction(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction.Builder
                  builderForValue) {
            if (openUriActionBuilder_ == null) {
              openUriAction_ = builderForValue.build();
            } else {
              openUriActionBuilder_.setMessage(builderForValue.build());
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Action to present to the user.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
           * </code>
           */
          public Builder mergeOpenUriAction(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction
                  value) {
            if (openUriActionBuilder_ == null) {
              if (((bitField0_ & 0x00000001) != 0)
                  && openUriAction_ != null
                  && openUriAction_
                      != com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                          .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance()) {
                getOpenUriActionBuilder().mergeFrom(value);
              } else {
                openUriAction_ = value;
              }
            } else {
              openUriActionBuilder_.mergeFrom(value);
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Action to present to the user.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
           * </code>
           */
          public Builder clearOpenUriAction() {
            bitField0_ = (bitField0_ & ~0x00000001);
            openUriAction_ = null;
            if (openUriActionBuilder_ != null) {
              openUriActionBuilder_.dispose();
              openUriActionBuilder_ = null;
            }
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Action to present to the user.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
           * </code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlAction.Builder
              getOpenUriActionBuilder() {
            bitField0_ |= 0x00000001;
            onChanged();
            return getOpenUriActionFieldBuilder().getBuilder();
          }
          /**
           *
           *
           * <pre>
           * Required. Action to present to the user.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
           * </code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem.OpenUrlActionOrBuilder
              getOpenUriActionOrBuilder() {
            if (openUriActionBuilder_ != null) {
              return openUriActionBuilder_.getMessageOrBuilder();
            } else {
              return openUriAction_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance()
                  : openUriAction_;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Action to present to the user.
           * </pre>
           *
           * <code>
           * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1;
           * </code>
           */
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlAction.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.OpenUrlActionOrBuilder>
              getOpenUriActionFieldBuilder() {
            if (openUriActionBuilder_ == null) {
              openUriActionBuilder_ =
                  new com.google.protobuf.SingleFieldBuilderV3<
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                          .BrowseCarouselCardItem.OpenUrlAction,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                          .BrowseCarouselCardItem.OpenUrlAction.Builder,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                          .BrowseCarouselCardItem.OpenUrlActionOrBuilder>(
                      getOpenUriAction(), getParentForChildren(), isClean());
              openUriAction_ = null;
            }
            return openUriActionBuilder_;
          }

          private java.lang.Object title_ = "";
          /**
           *
           *
           * <pre>
           * Required. Title of the carousel item. Maximum of two lines of text.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @return The title.
           */
          public java.lang.String getTitle() {
            java.lang.Object ref = title_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              title_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Title of the carousel item. Maximum of two lines of text.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @return The bytes for title.
           */
          public com.google.protobuf.ByteString getTitleBytes() {
            java.lang.Object ref = title_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              title_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Required. Title of the carousel item. Maximum of two lines of text.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @param value The title to set.
           * @return This builder for chaining.
           */
          public Builder setTitle(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            title_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Title of the carousel item. Maximum of two lines of text.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearTitle() {
            title_ = getDefaultInstance().getTitle();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Required. Title of the carousel item. Maximum of two lines of text.
           * </pre>
           *
           * <code>string title = 2;</code>
           *
           * @param value The bytes for title to set.
           * @return This builder for chaining.
           */
          public Builder setTitleBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            title_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }

          private java.lang.Object description_ = "";
          /**
           *
           *
           * <pre>
           * Optional. Description of the carousel item. Maximum of four lines of
           * text.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @return The description.
           */
          public java.lang.String getDescription() {
            java.lang.Object ref = description_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              description_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Description of the carousel item. Maximum of four lines of
           * text.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @return The bytes for description.
           */
          public com.google.protobuf.ByteString getDescriptionBytes() {
            java.lang.Object ref = description_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              description_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Description of the carousel item. Maximum of four lines of
           * text.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @param value The description to set.
           * @return This builder for chaining.
           */
          public Builder setDescription(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            description_ = value;
            bitField0_ |= 0x00000004;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Description of the carousel item. Maximum of four lines of
           * text.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearDescription() {
            description_ = getDefaultInstance().getDescription();
            bitField0_ = (bitField0_ & ~0x00000004);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Description of the carousel item. Maximum of four lines of
           * text.
           * </pre>
           *
           * <code>string description = 3;</code>
           *
           * @param value The bytes for description to set.
           * @return This builder for chaining.
           */
          public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            description_ = value;
            bitField0_ |= 0x00000004;
            onChanged();
            return this;
          }

          private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_;
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
              imageBuilder_;
          /**
           *
           *
           * <pre>
           * Optional. Hero image for the carousel item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           *
           * @return Whether the image field is set.
           */
          public boolean hasImage() {
            return ((bitField0_ & 0x00000008) != 0);
          }
          /**
           *
           *
           * <pre>
           * Optional. Hero image for the carousel item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           *
           * @return The image.
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
            if (imageBuilder_ == null) {
              return image_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
                  : image_;
            } else {
              return imageBuilder_.getMessage();
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Hero image for the carousel item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
            if (imageBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              image_ = value;
            } else {
              imageBuilder_.setMessage(value);
            }
            bitField0_ |= 0x00000008;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Hero image for the carousel item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder setImage(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) {
            if (imageBuilder_ == null) {
              image_ = builderForValue.build();
            } else {
              imageBuilder_.setMessage(builderForValue.build());
            }
            bitField0_ |= 0x00000008;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Hero image for the carousel item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder mergeImage(
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
            if (imageBuilder_ == null) {
              if (((bitField0_ & 0x00000008) != 0)
                  && image_ != null
                  && image_
                      != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
                          .getDefaultInstance()) {
                getImageBuilder().mergeFrom(value);
              } else {
                image_ = value;
              }
            } else {
              imageBuilder_.mergeFrom(value);
            }
            bitField0_ |= 0x00000008;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Hero image for the carousel item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public Builder clearImage() {
            bitField0_ = (bitField0_ & ~0x00000008);
            image_ = null;
            if (imageBuilder_ != null) {
              imageBuilder_.dispose();
              imageBuilder_ = null;
            }
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Hero image for the carousel item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder
              getImageBuilder() {
            bitField0_ |= 0x00000008;
            onChanged();
            return getImageFieldBuilder().getBuilder();
          }
          /**
           *
           *
           * <pre>
           * Optional. Hero image for the carousel item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
              getImageOrBuilder() {
            if (imageBuilder_ != null) {
              return imageBuilder_.getMessageOrBuilder();
            } else {
              return image_ == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
                  : image_;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Hero image for the carousel item.
           * </pre>
           *
           * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;</code>
           */
          private com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
              getImageFieldBuilder() {
            if (imageBuilder_ == null) {
              imageBuilder_ =
                  new com.google.protobuf.SingleFieldBuilderV3<
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                      com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>(
                      getImage(), getParentForChildren(), isClean());
              image_ = null;
            }
            return imageBuilder_;
          }

          private java.lang.Object footer_ = "";
          /**
           *
           *
           * <pre>
           * Optional. Text that appears at the bottom of the Browse Carousel
           * Card. Maximum of one line of text.
           * </pre>
           *
           * <code>string footer = 5;</code>
           *
           * @return The footer.
           */
          public java.lang.String getFooter() {
            java.lang.Object ref = footer_;
            if (!(ref instanceof java.lang.String)) {
              com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
              java.lang.String s = bs.toStringUtf8();
              footer_ = s;
              return s;
            } else {
              return (java.lang.String) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Text that appears at the bottom of the Browse Carousel
           * Card. Maximum of one line of text.
           * </pre>
           *
           * <code>string footer = 5;</code>
           *
           * @return The bytes for footer.
           */
          public com.google.protobuf.ByteString getFooterBytes() {
            java.lang.Object ref = footer_;
            if (ref instanceof String) {
              com.google.protobuf.ByteString b =
                  com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
              footer_ = b;
              return b;
            } else {
              return (com.google.protobuf.ByteString) ref;
            }
          }
          /**
           *
           *
           * <pre>
           * Optional. Text that appears at the bottom of the Browse Carousel
           * Card. Maximum of one line of text.
           * </pre>
           *
           * <code>string footer = 5;</code>
           *
           * @param value The footer to set.
           * @return This builder for chaining.
           */
          public Builder setFooter(java.lang.String value) {
            if (value == null) {
              throw new NullPointerException();
            }
            footer_ = value;
            bitField0_ |= 0x00000010;
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Text that appears at the bottom of the Browse Carousel
           * Card. Maximum of one line of text.
           * </pre>
           *
           * <code>string footer = 5;</code>
           *
           * @return This builder for chaining.
           */
          public Builder clearFooter() {
            footer_ = getDefaultInstance().getFooter();
            bitField0_ = (bitField0_ & ~0x00000010);
            onChanged();
            return this;
          }
          /**
           *
           *
           * <pre>
           * Optional. Text that appears at the bottom of the Browse Carousel
           * Card. Maximum of one line of text.
           * </pre>
           *
           * <code>string footer = 5;</code>
           *
           * @param value The bytes for footer to set.
           * @return This builder for chaining.
           */
          public Builder setFooterBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
              throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);
            footer_ = value;
            bitField0_ |= 0x00000010;
            onChanged();
            return this;
          }

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

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

          // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem)
        }

        // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem)
        private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            DEFAULT_INSTANCE;

        static {
          DEFAULT_INSTANCE =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem();
        }

        public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

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

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }
      }

      public static final int ITEMS_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private java.util.List<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem>
          items_;
      /**
       *
       *
       * <pre>
       * Required. List of items in the Browse Carousel Card. Minimum of two
       * items, maximum of ten.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .BrowseCarouselCardItem>
          getItemsList() {
        return items_;
      }
      /**
       *
       *
       * <pre>
       * Required. List of items in the Browse Carousel Card. Minimum of two
       * items, maximum of ten.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItemOrBuilder>
          getItemsOrBuilderList() {
        return items_;
      }
      /**
       *
       *
       * <pre>
       * Required. List of items in the Browse Carousel Card. Minimum of two
       * items, maximum of ten.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
       * </code>
       */
      @java.lang.Override
      public int getItemsCount() {
        return items_.size();
      }
      /**
       *
       *
       * <pre>
       * Required. List of items in the Browse Carousel Card. Minimum of two
       * items, maximum of ten.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
              .BrowseCarouselCardItem
          getItems(int index) {
        return items_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Required. List of items in the Browse Carousel Card. Minimum of two
       * items, maximum of ten.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
              .BrowseCarouselCardItemOrBuilder
          getItemsOrBuilder(int index) {
        return items_.get(index);
      }

      public static final int IMAGE_DISPLAY_OPTIONS_FIELD_NUMBER = 2;
      private int imageDisplayOptions_ = 0;
      /**
       *
       *
       * <pre>
       * Optional. Settings for displaying the image. Applies to every image in
       * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2;
       * </code>
       *
       * @return The enum numeric value on the wire for imageDisplayOptions.
       */
      @java.lang.Override
      public int getImageDisplayOptionsValue() {
        return imageDisplayOptions_;
      }
      /**
       *
       *
       * <pre>
       * Optional. Settings for displaying the image. Applies to every image in
       * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2;
       * </code>
       *
       * @return The imageDisplayOptions.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
              .ImageDisplayOptions
          getImageDisplayOptions() {
        com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
            result =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .ImageDisplayOptions.forNumber(imageDisplayOptions_);
        return result == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .ImageDisplayOptions.UNRECOGNIZED
            : result;
      }

      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 < items_.size(); i++) {
          output.writeMessage(1, items_.get(i));
        }
        if (imageDisplayOptions_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .ImageDisplayOptions.IMAGE_DISPLAY_OPTIONS_UNSPECIFIED
                .getNumber()) {
          output.writeEnum(2, imageDisplayOptions_);
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        for (int i = 0; i < items_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i));
        }
        if (imageDisplayOptions_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .ImageDisplayOptions.IMAGE_DISPLAY_OPTIONS_UNSPECIFIED
                .getNumber()) {
          size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, imageDisplayOptions_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) obj;

        if (!getItemsList().equals(other.getItemsList())) return false;
        if (imageDisplayOptions_ != other.imageDisplayOptions_) 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 (getItemsCount() > 0) {
          hash = (37 * hash) + ITEMS_FIELD_NUMBER;
          hash = (53 * hash) + getItemsList().hashCode();
        }
        hash = (37 * hash) + IMAGE_DISPLAY_OPTIONS_FIELD_NUMBER;
        hash = (53 * hash) + imageDisplayOptions_;
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard 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>
       * Browse Carousel Card for Actions on Google.
       * https://developers.google.com/actions/assistant/responses#browsing_carousel
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder
                      .class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          if (itemsBuilder_ == null) {
            items_ = java.util.Collections.emptyList();
          } else {
            items_ = null;
            itemsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          imageDisplayOptions_ = 0;
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
            buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard result) {
          if (itemsBuilder_ == null) {
            if (((bitField0_ & 0x00000001) != 0)) {
              items_ = java.util.Collections.unmodifiableList(items_);
              bitField0_ = (bitField0_ & ~0x00000001);
            }
            result.items_ = items_;
          } else {
            result.items_ = itemsBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.imageDisplayOptions_ = imageDisplayOptions_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other
              instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .getDefaultInstance()) return this;
          if (itemsBuilder_ == null) {
            if (!other.items_.isEmpty()) {
              if (items_.isEmpty()) {
                items_ = other.items_;
                bitField0_ = (bitField0_ & ~0x00000001);
              } else {
                ensureItemsIsMutable();
                items_.addAll(other.items_);
              }
              onChanged();
            }
          } else {
            if (!other.items_.isEmpty()) {
              if (itemsBuilder_.isEmpty()) {
                itemsBuilder_.dispose();
                itemsBuilder_ = null;
                items_ = other.items_;
                bitField0_ = (bitField0_ & ~0x00000001);
                itemsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getItemsFieldBuilder()
                        : null;
              } else {
                itemsBuilder_.addAllMessages(other.items_);
              }
            }
          }
          if (other.imageDisplayOptions_ != 0) {
            setImageDisplayOptionsValue(other.getImageDisplayOptionsValue());
          }
          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:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                            .BrowseCarouselCardItem
                        m =
                            input.readMessage(
                                com.google.cloud.dialogflow.v2beta1.Intent.Message
                                    .BrowseCarouselCard.BrowseCarouselCardItem.parser(),
                                extensionRegistry);
                    if (itemsBuilder_ == null) {
                      ensureItemsIsMutable();
                      items_.add(m);
                    } else {
                      itemsBuilder_.addMessage(m);
                    }
                    break;
                  } // case 10
                case 16:
                  {
                    imageDisplayOptions_ = input.readEnum();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 16
                default:
                  {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }

        private int bitField0_;

        private java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem>
            items_ = java.util.Collections.emptyList();

        private void ensureItemsIsMutable() {
          if (!((bitField0_ & 0x00000001) != 0)) {
            items_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem>(items_);
            bitField0_ |= 0x00000001;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItemOrBuilder>
            itemsBuilder_;

        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem>
            getItemsList() {
          if (itemsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(items_);
          } else {
            return itemsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public int getItemsCount() {
          if (itemsBuilder_ == null) {
            return items_.size();
          } else {
            return itemsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem
            getItems(int index) {
          if (itemsBuilder_ == null) {
            return items_.get(index);
          } else {
            return itemsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public Builder setItems(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem
                value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.set(index, value);
            onChanged();
          } else {
            itemsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public Builder setItems(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.Builder
                builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.set(index, builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public Builder addItems(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem
                value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.add(value);
            onChanged();
          } else {
            itemsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public Builder addItems(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem
                value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.add(index, value);
            onChanged();
          } else {
            itemsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public Builder addItems(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.Builder
                builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.add(builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public Builder addItems(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.Builder
                builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.add(index, builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public Builder addAllItems(
            java.lang.Iterable<
                    ? extends
                        com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                            .BrowseCarouselCardItem>
                values) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
            onChanged();
          } else {
            itemsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public Builder clearItems() {
          if (itemsBuilder_ == null) {
            items_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
          } else {
            itemsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public Builder removeItems(int index) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.remove(index);
            onChanged();
          } else {
            itemsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem.Builder
            getItemsBuilder(int index) {
          return getItemsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItemOrBuilder
            getItemsOrBuilder(int index) {
          if (itemsBuilder_ == null) {
            return items_.get(index);
          } else {
            return itemsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public java.util.List<
                ? extends
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItemOrBuilder>
            getItemsOrBuilderList() {
          if (itemsBuilder_ != null) {
            return itemsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(items_);
          }
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem.Builder
            addItemsBuilder() {
          return getItemsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .BrowseCarouselCardItem.Builder
            addItemsBuilder(int index) {
          return getItemsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .BrowseCarouselCardItem.getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Required. List of items in the Browse Carousel Card. Minimum of two
         * items, maximum of ten.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.Builder>
            getItemsBuilderList() {
          return getItemsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItem.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .BrowseCarouselCardItemOrBuilder>
            getItemsFieldBuilder() {
          if (itemsBuilder_ == null) {
            itemsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItem.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                        .BrowseCarouselCardItemOrBuilder>(
                    items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
            items_ = null;
          }
          return itemsBuilder_;
        }

        private int imageDisplayOptions_ = 0;
        /**
         *
         *
         * <pre>
         * Optional. Settings for displaying the image. Applies to every image in
         * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2;
         * </code>
         *
         * @return The enum numeric value on the wire for imageDisplayOptions.
         */
        @java.lang.Override
        public int getImageDisplayOptionsValue() {
          return imageDisplayOptions_;
        }
        /**
         *
         *
         * <pre>
         * Optional. Settings for displaying the image. Applies to every image in
         * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2;
         * </code>
         *
         * @param value The enum numeric value on the wire for imageDisplayOptions to set.
         * @return This builder for chaining.
         */
        public Builder setImageDisplayOptionsValue(int value) {
          imageDisplayOptions_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Settings for displaying the image. Applies to every image in
         * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2;
         * </code>
         *
         * @return The imageDisplayOptions.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                .ImageDisplayOptions
            getImageDisplayOptions() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions
              result =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .ImageDisplayOptions.forNumber(imageDisplayOptions_);
          return result == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                  .ImageDisplayOptions.UNRECOGNIZED
              : result;
        }
        /**
         *
         *
         * <pre>
         * Optional. Settings for displaying the image. Applies to every image in
         * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2;
         * </code>
         *
         * @param value The imageDisplayOptions to set.
         * @return This builder for chaining.
         */
        public Builder setImageDisplayOptions(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .ImageDisplayOptions
                value) {
          if (value == null) {
            throw new NullPointerException();
          }
          bitField0_ |= 0x00000002;
          imageDisplayOptions_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Settings for displaying the image. Applies to every image in
         * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2;
         * </code>
         *
         * @return This builder for chaining.
         */
        public Builder clearImageDisplayOptions() {
          bitField0_ = (bitField0_ & ~0x00000002);
          imageDisplayOptions_ = 0;
          onChanged();
          return this;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface TableCardOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TableCard)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. Title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      java.lang.String getTitle();
      /**
       *
       *
       * <pre>
       * Required. Title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      com.google.protobuf.ByteString getTitleBytes();

      /**
       *
       *
       * <pre>
       * Optional. Subtitle to the title.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The subtitle.
       */
      java.lang.String getSubtitle();
      /**
       *
       *
       * <pre>
       * Optional. Subtitle to the title.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The bytes for subtitle.
       */
      com.google.protobuf.ByteString getSubtitleBytes();

      /**
       *
       *
       * <pre>
       * Optional. Image which should be displayed on the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
       *
       * @return Whether the image field is set.
       */
      boolean hasImage();
      /**
       *
       *
       * <pre>
       * Optional. Image which should be displayed on the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
       *
       * @return The image.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage();
      /**
       *
       *
       * <pre>
       * Optional. Image which should be displayed on the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder();

      /**
       *
       *
       * <pre>
       * Optional. Display properties for the columns in this table.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties>
          getColumnPropertiesList();
      /**
       *
       *
       * <pre>
       * Optional. Display properties for the columns in this table.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties getColumnProperties(
          int index);
      /**
       *
       *
       * <pre>
       * Optional. Display properties for the columns in this table.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
       * </code>
       */
      int getColumnPropertiesCount();
      /**
       *
       *
       * <pre>
       * Optional. Display properties for the columns in this table.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
       * </code>
       */
      java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder>
          getColumnPropertiesOrBuilderList();
      /**
       *
       *
       * <pre>
       * Optional. Display properties for the columns in this table.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder
          getColumnPropertiesOrBuilder(int index);

      /**
       *
       *
       * <pre>
       * Optional. Rows in this table of data.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow> getRowsList();
      /**
       *
       *
       * <pre>
       * Optional. Rows in this table of data.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow getRows(int index);
      /**
       *
       *
       * <pre>
       * Optional. Rows in this table of data.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
       * </code>
       */
      int getRowsCount();
      /**
       *
       *
       * <pre>
       * Optional. Rows in this table of data.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
       * </code>
       */
      java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder>
          getRowsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Optional. Rows in this table of data.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder getRowsOrBuilder(
          int index);

      /**
       *
       *
       * <pre>
       * Optional. List of buttons for the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
          getButtonsList();
      /**
       *
       *
       * <pre>
       * Optional. List of buttons for the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button getButtons(int index);
      /**
       *
       *
       * <pre>
       * Optional. List of buttons for the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
       * </code>
       */
      int getButtonsCount();
      /**
       *
       *
       * <pre>
       * Optional. List of buttons for the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
       * </code>
       */
      java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>
          getButtonsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Optional. List of buttons for the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder
          getButtonsOrBuilder(int index);
    }
    /**
     *
     *
     * <pre>
     * Table card for Actions on Google.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCard}
     */
    public static final class TableCard extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCard)
        TableCardOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use TableCard.newBuilder() to construct.
      private TableCard(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private TableCard() {
        title_ = "";
        subtitle_ = "";
        columnProperties_ = java.util.Collections.emptyList();
        rows_ = java.util.Collections.emptyList();
        buttons_ = java.util.Collections.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder.class);
      }

      public static final int TITLE_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object title_ = "";
      /**
       *
       *
       * <pre>
       * Required. Title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The title.
       */
      @java.lang.Override
      public java.lang.String getTitle() {
        java.lang.Object ref = title_;
        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();
          title_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. Title of the card.
       * </pre>
       *
       * <code>string title = 1;</code>
       *
       * @return The bytes for title.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTitleBytes() {
        java.lang.Object ref = title_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          title_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int SUBTITLE_FIELD_NUMBER = 2;

      @SuppressWarnings("serial")
      private volatile java.lang.Object subtitle_ = "";
      /**
       *
       *
       * <pre>
       * Optional. Subtitle to the title.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The subtitle.
       */
      @java.lang.Override
      public java.lang.String getSubtitle() {
        java.lang.Object ref = subtitle_;
        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();
          subtitle_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Subtitle to the title.
       * </pre>
       *
       * <code>string subtitle = 2;</code>
       *
       * @return The bytes for subtitle.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getSubtitleBytes() {
        java.lang.Object ref = subtitle_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          subtitle_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int IMAGE_FIELD_NUMBER = 3;
      private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_;
      /**
       *
       *
       * <pre>
       * Optional. Image which should be displayed on the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
       *
       * @return Whether the image field is set.
       */
      @java.lang.Override
      public boolean hasImage() {
        return image_ != null;
      }
      /**
       *
       *
       * <pre>
       * Optional. Image which should be displayed on the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
       *
       * @return The image.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
        return image_ == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
            : image_;
      }
      /**
       *
       *
       * <pre>
       * Optional. Image which should be displayed on the card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() {
        return image_ == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
            : image_;
      }

      public static final int COLUMN_PROPERTIES_FIELD_NUMBER = 4;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties>
          columnProperties_;
      /**
       *
       *
       * <pre>
       * Optional. Display properties for the columns in this table.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties>
          getColumnPropertiesList() {
        return columnProperties_;
      }
      /**
       *
       *
       * <pre>
       * Optional. Display properties for the columns in this table.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder>
          getColumnPropertiesOrBuilderList() {
        return columnProperties_;
      }
      /**
       *
       *
       * <pre>
       * Optional. Display properties for the columns in this table.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
       * </code>
       */
      @java.lang.Override
      public int getColumnPropertiesCount() {
        return columnProperties_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. Display properties for the columns in this table.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
          getColumnProperties(int index) {
        return columnProperties_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. Display properties for the columns in this table.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder
          getColumnPropertiesOrBuilder(int index) {
        return columnProperties_.get(index);
      }

      public static final int ROWS_FIELD_NUMBER = 5;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow> rows_;
      /**
       *
       *
       * <pre>
       * Optional. Rows in this table of data.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow>
          getRowsList() {
        return rows_;
      }
      /**
       *
       *
       * <pre>
       * Optional. Rows in this table of data.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder>
          getRowsOrBuilderList() {
        return rows_;
      }
      /**
       *
       *
       * <pre>
       * Optional. Rows in this table of data.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
       * </code>
       */
      @java.lang.Override
      public int getRowsCount() {
        return rows_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. Rows in this table of data.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow getRows(int index) {
        return rows_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. Rows in this table of data.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder
          getRowsOrBuilder(int index) {
        return rows_.get(index);
      }

      public static final int BUTTONS_FIELD_NUMBER = 6;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
          buttons_;
      /**
       *
       *
       * <pre>
       * Optional. List of buttons for the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
          getButtonsList() {
        return buttons_;
      }
      /**
       *
       *
       * <pre>
       * Optional. List of buttons for the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>
          getButtonsOrBuilderList() {
        return buttons_;
      }
      /**
       *
       *
       * <pre>
       * Optional. List of buttons for the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
       * </code>
       */
      @java.lang.Override
      public int getButtonsCount() {
        return buttons_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. List of buttons for the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button getButtons(
          int index) {
        return buttons_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. List of buttons for the card.
       * </pre>
       *
       * <code>
       * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder
          getButtonsOrBuilder(int index) {
        return buttons_.get(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 {
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subtitle_);
        }
        if (image_ != null) {
          output.writeMessage(3, getImage());
        }
        for (int i = 0; i < columnProperties_.size(); i++) {
          output.writeMessage(4, columnProperties_.get(i));
        }
        for (int i = 0; i < rows_.size(); i++) {
          output.writeMessage(5, rows_.get(i));
        }
        for (int i = 0; i < buttons_.size(); i++) {
          output.writeMessage(6, buttons_.get(i));
        }
        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(title_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subtitle_);
        }
        if (image_ != null) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImage());
        }
        for (int i = 0; i < columnProperties_.size(); i++) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(4, columnProperties_.get(i));
        }
        for (int i = 0; i < rows_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, rows_.get(i));
        }
        for (int i = 0; i < buttons_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, buttons_.get(i));
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) obj;

        if (!getTitle().equals(other.getTitle())) return false;
        if (!getSubtitle().equals(other.getSubtitle())) return false;
        if (hasImage() != other.hasImage()) return false;
        if (hasImage()) {
          if (!getImage().equals(other.getImage())) return false;
        }
        if (!getColumnPropertiesList().equals(other.getColumnPropertiesList())) return false;
        if (!getRowsList().equals(other.getRowsList())) return false;
        if (!getButtonsList().equals(other.getButtonsList())) 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) + TITLE_FIELD_NUMBER;
        hash = (53 * hash) + getTitle().hashCode();
        hash = (37 * hash) + SUBTITLE_FIELD_NUMBER;
        hash = (53 * hash) + getSubtitle().hashCode();
        if (hasImage()) {
          hash = (37 * hash) + IMAGE_FIELD_NUMBER;
          hash = (53 * hash) + getImage().hashCode();
        }
        if (getColumnPropertiesCount() > 0) {
          hash = (37 * hash) + COLUMN_PROPERTIES_FIELD_NUMBER;
          hash = (53 * hash) + getColumnPropertiesList().hashCode();
        }
        if (getRowsCount() > 0) {
          hash = (37 * hash) + ROWS_FIELD_NUMBER;
          hash = (53 * hash) + getRowsList().hashCode();
        }
        if (getButtonsCount() > 0) {
          hash = (37 * hash) + BUTTONS_FIELD_NUMBER;
          hash = (53 * hash) + getButtonsList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseDelimitedFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseDelimitedFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard 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>
       * Table card for Actions on Google.
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCard}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCard)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder.class);
        }

        // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          title_ = "";
          subtitle_ = "";
          image_ = null;
          if (imageBuilder_ != null) {
            imageBuilder_.dispose();
            imageBuilder_ = null;
          }
          if (columnPropertiesBuilder_ == null) {
            columnProperties_ = java.util.Collections.emptyList();
          } else {
            columnProperties_ = null;
            columnPropertiesBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000008);
          if (rowsBuilder_ == null) {
            rows_ = java.util.Collections.emptyList();
          } else {
            rows_ = null;
            rowsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000010);
          if (buttonsBuilder_ == null) {
            buttons_ = java.util.Collections.emptyList();
          } else {
            buttons_ = null;
            buttonsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000020);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard result) {
          if (columnPropertiesBuilder_ == null) {
            if (((bitField0_ & 0x00000008) != 0)) {
              columnProperties_ = java.util.Collections.unmodifiableList(columnProperties_);
              bitField0_ = (bitField0_ & ~0x00000008);
            }
            result.columnProperties_ = columnProperties_;
          } else {
            result.columnProperties_ = columnPropertiesBuilder_.build();
          }
          if (rowsBuilder_ == null) {
            if (((bitField0_ & 0x00000010) != 0)) {
              rows_ = java.util.Collections.unmodifiableList(rows_);
              bitField0_ = (bitField0_ & ~0x00000010);
            }
            result.rows_ = rows_;
          } else {
            result.rows_ = rowsBuilder_.build();
          }
          if (buttonsBuilder_ == null) {
            if (((bitField0_ & 0x00000020) != 0)) {
              buttons_ = java.util.Collections.unmodifiableList(buttons_);
              bitField0_ = (bitField0_ & ~0x00000020);
            }
            result.buttons_ = buttons_;
          } else {
            result.buttons_ = buttonsBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.title_ = title_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.subtitle_ = subtitle_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.image_ = imageBuilder_ == null ? image_ : imageBuilder_.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.cloud.dialogflow.v2beta1.Intent.Message.TableCard) {
            return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance())
            return this;
          if (!other.getTitle().isEmpty()) {
            title_ = other.title_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (!other.getSubtitle().isEmpty()) {
            subtitle_ = other.subtitle_;
            bitField0_ |= 0x00000002;
            onChanged();
          }
          if (other.hasImage()) {
            mergeImage(other.getImage());
          }
          if (columnPropertiesBuilder_ == null) {
            if (!other.columnProperties_.isEmpty()) {
              if (columnProperties_.isEmpty()) {
                columnProperties_ = other.columnProperties_;
                bitField0_ = (bitField0_ & ~0x00000008);
              } else {
                ensureColumnPropertiesIsMutable();
                columnProperties_.addAll(other.columnProperties_);
              }
              onChanged();
            }
          } else {
            if (!other.columnProperties_.isEmpty()) {
              if (columnPropertiesBuilder_.isEmpty()) {
                columnPropertiesBuilder_.dispose();
                columnPropertiesBuilder_ = null;
                columnProperties_ = other.columnProperties_;
                bitField0_ = (bitField0_ & ~0x00000008);
                columnPropertiesBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getColumnPropertiesFieldBuilder()
                        : null;
              } else {
                columnPropertiesBuilder_.addAllMessages(other.columnProperties_);
              }
            }
          }
          if (rowsBuilder_ == null) {
            if (!other.rows_.isEmpty()) {
              if (rows_.isEmpty()) {
                rows_ = other.rows_;
                bitField0_ = (bitField0_ & ~0x00000010);
              } else {
                ensureRowsIsMutable();
                rows_.addAll(other.rows_);
              }
              onChanged();
            }
          } else {
            if (!other.rows_.isEmpty()) {
              if (rowsBuilder_.isEmpty()) {
                rowsBuilder_.dispose();
                rowsBuilder_ = null;
                rows_ = other.rows_;
                bitField0_ = (bitField0_ & ~0x00000010);
                rowsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getRowsFieldBuilder()
                        : null;
              } else {
                rowsBuilder_.addAllMessages(other.rows_);
              }
            }
          }
          if (buttonsBuilder_ == null) {
            if (!other.buttons_.isEmpty()) {
              if (buttons_.isEmpty()) {
                buttons_ = other.buttons_;
                bitField0_ = (bitField0_ & ~0x00000020);
              } else {
                ensureButtonsIsMutable();
                buttons_.addAll(other.buttons_);
              }
              onChanged();
            }
          } else {
            if (!other.buttons_.isEmpty()) {
              if (buttonsBuilder_.isEmpty()) {
                buttonsBuilder_.dispose();
                buttonsBuilder_ = null;
                buttons_ = other.buttons_;
                bitField0_ = (bitField0_ & ~0x00000020);
                buttonsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getButtonsFieldBuilder()
                        : null;
              } else {
                buttonsBuilder_.addAllMessages(other.buttons_);
              }
            }
          }
          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:
                  {
                    title_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 18:
                  {
                    subtitle_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 18
                case 26:
                  {
                    input.readMessage(getImageFieldBuilder().getBuilder(), extensionRegistry);
                    bitField0_ |= 0x00000004;
                    break;
                  } // case 26
                case 34:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
                                .parser(),
                            extensionRegistry);
                    if (columnPropertiesBuilder_ == null) {
                      ensureColumnPropertiesIsMutable();
                      columnProperties_.add(m);
                    } else {
                      columnPropertiesBuilder_.addMessage(m);
                    }
                    break;
                  } // case 34
                case 42:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow
                                .parser(),
                            extensionRegistry);
                    if (rowsBuilder_ == null) {
                      ensureRowsIsMutable();
                      rows_.add(m);
                    } else {
                      rowsBuilder_.addMessage(m);
                    }
                    break;
                  } // case 42
                case 50:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                                .parser(),
                            extensionRegistry);
                    if (buttonsBuilder_ == null) {
                      ensureButtonsIsMutable();
                      buttons_.add(m);
                    } else {
                      buttonsBuilder_.addMessage(m);
                    }
                    break;
                  } // case 50
                default:
                  {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }

        private int bitField0_;

        private java.lang.Object title_ = "";
        /**
         *
         *
         * <pre>
         * Required. Title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The title.
         */
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            title_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return The bytes for title.
         */
        public com.google.protobuf.ByteString getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The title to set.
         * @return This builder for chaining.
         */
        public Builder setTitle(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearTitle() {
          title_ = getDefaultInstance().getTitle();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Title of the card.
         * </pre>
         *
         * <code>string title = 1;</code>
         *
         * @param value The bytes for title to set.
         * @return This builder for chaining.
         */
        public Builder setTitleBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          title_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private java.lang.Object subtitle_ = "";
        /**
         *
         *
         * <pre>
         * Optional. Subtitle to the title.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @return The subtitle.
         */
        public java.lang.String getSubtitle() {
          java.lang.Object ref = subtitle_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            subtitle_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Subtitle to the title.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @return The bytes for subtitle.
         */
        public com.google.protobuf.ByteString getSubtitleBytes() {
          java.lang.Object ref = subtitle_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            subtitle_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Subtitle to the title.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @param value The subtitle to set.
         * @return This builder for chaining.
         */
        public Builder setSubtitle(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          subtitle_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Subtitle to the title.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearSubtitle() {
          subtitle_ = getDefaultInstance().getSubtitle();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Subtitle to the title.
         * </pre>
         *
         * <code>string subtitle = 2;</code>
         *
         * @param value The bytes for subtitle to set.
         * @return This builder for chaining.
         */
        public Builder setSubtitleBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          subtitle_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }

        private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_;
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
            imageBuilder_;
        /**
         *
         *
         * <pre>
         * Optional. Image which should be displayed on the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
         *
         * @return Whether the image field is set.
         */
        public boolean hasImage() {
          return ((bitField0_ & 0x00000004) != 0);
        }
        /**
         *
         *
         * <pre>
         * Optional. Image which should be displayed on the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
         *
         * @return The image.
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
          if (imageBuilder_ == null) {
            return image_ == null
                ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
                : image_;
          } else {
            return imageBuilder_.getMessage();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Image which should be displayed on the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
         */
        public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
          if (imageBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            image_ = value;
          } else {
            imageBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Image which should be displayed on the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
         */
        public Builder setImage(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) {
          if (imageBuilder_ == null) {
            image_ = builderForValue.build();
          } else {
            imageBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Image which should be displayed on the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
         */
        public Builder mergeImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
          if (imageBuilder_ == null) {
            if (((bitField0_ & 0x00000004) != 0)
                && image_ != null
                && image_
                    != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
                        .getDefaultInstance()) {
              getImageBuilder().mergeFrom(value);
            } else {
              image_ = value;
            }
          } else {
            imageBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Image which should be displayed on the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
         */
        public Builder clearImage() {
          bitField0_ = (bitField0_ & ~0x00000004);
          image_ = null;
          if (imageBuilder_ != null) {
            imageBuilder_.dispose();
            imageBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Image which should be displayed on the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder getImageBuilder() {
          bitField0_ |= 0x00000004;
          onChanged();
          return getImageFieldBuilder().getBuilder();
        }
        /**
         *
         *
         * <pre>
         * Optional. Image which should be displayed on the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder
            getImageOrBuilder() {
          if (imageBuilder_ != null) {
            return imageBuilder_.getMessageOrBuilder();
          } else {
            return image_ == null
                ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()
                : image_;
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Image which should be displayed on the card.
         * </pre>
         *
         * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
            getImageFieldBuilder() {
          if (imageBuilder_ == null) {
            imageBuilder_ =
                new com.google.protobuf.SingleFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>(
                    getImage(), getParentForChildren(), isClean());
            image_ = null;
          }
          return imageBuilder_;
        }

        private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties>
            columnProperties_ = java.util.Collections.emptyList();

        private void ensureColumnPropertiesIsMutable() {
          if (!((bitField0_ & 0x00000008) != 0)) {
            columnProperties_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties>(
                    columnProperties_);
            bitField0_ |= 0x00000008;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder>
            columnPropertiesBuilder_;

        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties>
            getColumnPropertiesList() {
          if (columnPropertiesBuilder_ == null) {
            return java.util.Collections.unmodifiableList(columnProperties_);
          } else {
            return columnPropertiesBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public int getColumnPropertiesCount() {
          if (columnPropertiesBuilder_ == null) {
            return columnProperties_.size();
          } else {
            return columnPropertiesBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
            getColumnProperties(int index) {
          if (columnPropertiesBuilder_ == null) {
            return columnProperties_.get(index);
          } else {
            return columnPropertiesBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public Builder setColumnProperties(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties value) {
          if (columnPropertiesBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureColumnPropertiesIsMutable();
            columnProperties_.set(index, value);
            onChanged();
          } else {
            columnPropertiesBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public Builder setColumnProperties(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder
                builderForValue) {
          if (columnPropertiesBuilder_ == null) {
            ensureColumnPropertiesIsMutable();
            columnProperties_.set(index, builderForValue.build());
            onChanged();
          } else {
            columnPropertiesBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public Builder addColumnProperties(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties value) {
          if (columnPropertiesBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureColumnPropertiesIsMutable();
            columnProperties_.add(value);
            onChanged();
          } else {
            columnPropertiesBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public Builder addColumnProperties(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties value) {
          if (columnPropertiesBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureColumnPropertiesIsMutable();
            columnProperties_.add(index, value);
            onChanged();
          } else {
            columnPropertiesBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public Builder addColumnProperties(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder
                builderForValue) {
          if (columnPropertiesBuilder_ == null) {
            ensureColumnPropertiesIsMutable();
            columnProperties_.add(builderForValue.build());
            onChanged();
          } else {
            columnPropertiesBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public Builder addColumnProperties(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder
                builderForValue) {
          if (columnPropertiesBuilder_ == null) {
            ensureColumnPropertiesIsMutable();
            columnProperties_.add(index, builderForValue.build());
            onChanged();
          } else {
            columnPropertiesBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public Builder addAllColumnProperties(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties>
                values) {
          if (columnPropertiesBuilder_ == null) {
            ensureColumnPropertiesIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnProperties_);
            onChanged();
          } else {
            columnPropertiesBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public Builder clearColumnProperties() {
          if (columnPropertiesBuilder_ == null) {
            columnProperties_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000008);
            onChanged();
          } else {
            columnPropertiesBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public Builder removeColumnProperties(int index) {
          if (columnPropertiesBuilder_ == null) {
            ensureColumnPropertiesIsMutable();
            columnProperties_.remove(index);
            onChanged();
          } else {
            columnPropertiesBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder
            getColumnPropertiesBuilder(int index) {
          return getColumnPropertiesFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder
            getColumnPropertiesOrBuilder(int index) {
          if (columnPropertiesBuilder_ == null) {
            return columnProperties_.get(index);
          } else {
            return columnPropertiesBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public java.util.List<
                ? extends
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder>
            getColumnPropertiesOrBuilderList() {
          if (columnPropertiesBuilder_ != null) {
            return columnPropertiesBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(columnProperties_);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder
            addColumnPropertiesBuilder() {
          return getColumnPropertiesFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder
            addColumnPropertiesBuilder(int index) {
          return getColumnPropertiesFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. Display properties for the columns in this table.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder>
            getColumnPropertiesBuilderList() {
          return getColumnPropertiesFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder>
            getColumnPropertiesFieldBuilder() {
          if (columnPropertiesBuilder_ == null) {
            columnPropertiesBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder>(
                    columnProperties_,
                    ((bitField0_ & 0x00000008) != 0),
                    getParentForChildren(),
                    isClean());
            columnProperties_ = null;
          }
          return columnPropertiesBuilder_;
        }

        private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow>
            rows_ = java.util.Collections.emptyList();

        private void ensureRowsIsMutable() {
          if (!((bitField0_ & 0x00000010) != 0)) {
            rows_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow>(rows_);
            bitField0_ |= 0x00000010;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder>
            rowsBuilder_;

        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow>
            getRowsList() {
          if (rowsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(rows_);
          } else {
            return rowsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public int getRowsCount() {
          if (rowsBuilder_ == null) {
            return rows_.size();
          } else {
            return rowsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow getRows(int index) {
          if (rowsBuilder_ == null) {
            return rows_.get(index);
          } else {
            return rowsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public Builder setRows(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow value) {
          if (rowsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureRowsIsMutable();
            rows_.set(index, value);
            onChanged();
          } else {
            rowsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public Builder setRows(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder
                builderForValue) {
          if (rowsBuilder_ == null) {
            ensureRowsIsMutable();
            rows_.set(index, builderForValue.build());
            onChanged();
          } else {
            rowsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public Builder addRows(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow value) {
          if (rowsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureRowsIsMutable();
            rows_.add(value);
            onChanged();
          } else {
            rowsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public Builder addRows(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow value) {
          if (rowsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureRowsIsMutable();
            rows_.add(index, value);
            onChanged();
          } else {
            rowsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public Builder addRows(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder
                builderForValue) {
          if (rowsBuilder_ == null) {
            ensureRowsIsMutable();
            rows_.add(builderForValue.build());
            onChanged();
          } else {
            rowsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public Builder addRows(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder
                builderForValue) {
          if (rowsBuilder_ == null) {
            ensureRowsIsMutable();
            rows_.add(index, builderForValue.build());
            onChanged();
          } else {
            rowsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public Builder addAllRows(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow>
                values) {
          if (rowsBuilder_ == null) {
            ensureRowsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_);
            onChanged();
          } else {
            rowsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public Builder clearRows() {
          if (rowsBuilder_ == null) {
            rows_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000010);
            onChanged();
          } else {
            rowsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public Builder removeRows(int index) {
          if (rowsBuilder_ == null) {
            ensureRowsIsMutable();
            rows_.remove(index);
            onChanged();
          } else {
            rowsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder
            getRowsBuilder(int index) {
          return getRowsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder
            getRowsOrBuilder(int index) {
          if (rowsBuilder_ == null) {
            return rows_.get(index);
          } else {
            return rowsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public java.util.List<
                ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder>
            getRowsOrBuilderList() {
          if (rowsBuilder_ != null) {
            return rowsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(rows_);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder
            addRowsBuilder() {
          return getRowsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder
            addRowsBuilder(int index) {
          return getRowsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. Rows in this table of data.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder>
            getRowsBuilderList() {
          return getRowsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder>
            getRowsFieldBuilder() {
          if (rowsBuilder_ == null) {
            rowsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder>(
                    rows_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
            rows_ = null;
          }
          return rowsBuilder_;
        }

        private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
            buttons_ = java.util.Collections.emptyList();

        private void ensureButtonsIsMutable() {
          if (!((bitField0_ & 0x00000020) != 0)) {
            buttons_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>(buttons_);
            bitField0_ |= 0x00000020;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>
            buttonsBuilder_;

        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
            getButtonsList() {
          if (buttonsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(buttons_);
          } else {
            return buttonsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public int getButtonsCount() {
          if (buttonsBuilder_ == null) {
            return buttons_.size();
          } else {
            return buttonsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button getButtons(
            int index) {
          if (buttonsBuilder_ == null) {
            return buttons_.get(index);
          } else {
            return buttonsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public Builder setButtons(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button value) {
          if (buttonsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureButtonsIsMutable();
            buttons_.set(index, value);
            onChanged();
          } else {
            buttonsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public Builder setButtons(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
                builderForValue) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.set(index, builderForValue.build());
            onChanged();
          } else {
            buttonsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public Builder addButtons(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button value) {
          if (buttonsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureButtonsIsMutable();
            buttons_.add(value);
            onChanged();
          } else {
            buttonsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public Builder addButtons(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button value) {
          if (buttonsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureButtonsIsMutable();
            buttons_.add(index, value);
            onChanged();
          } else {
            buttonsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public Builder addButtons(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
                builderForValue) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.add(builderForValue.build());
            onChanged();
          } else {
            buttonsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public Builder addButtons(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
                builderForValue) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.add(index, builderForValue.build());
            onChanged();
          } else {
            buttonsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public Builder addAllButtons(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
                values) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buttons_);
            onChanged();
          } else {
            buttonsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public Builder clearButtons() {
          if (buttonsBuilder_ == null) {
            buttons_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000020);
            onChanged();
          } else {
            buttonsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public Builder removeButtons(int index) {
          if (buttonsBuilder_ == null) {
            ensureButtonsIsMutable();
            buttons_.remove(index);
            onChanged();
          } else {
            buttonsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
            getButtonsBuilder(int index) {
          return getButtonsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder
            getButtonsOrBuilder(int index) {
          if (buttonsBuilder_ == null) {
            return buttons_.get(index);
          } else {
            return buttonsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public java.util.List<
                ? extends
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>
            getButtonsOrBuilderList() {
          if (buttonsBuilder_ != null) {
            return buttonsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(buttons_);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
            addButtonsBuilder() {
          return getButtonsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder
            addButtonsBuilder(int index) {
          return getButtonsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. List of buttons for the card.
         * </pre>
         *
         * <code>
         * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder>
            getButtonsBuilderList() {
          return getButtonsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>
            getButtonsFieldBuilder() {
          if (buttonsBuilder_ == null) {
            buttonsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>(
                    buttons_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean());
            buttons_ = null;
          }
          return buttonsBuilder_;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TableCard)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TableCard)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface ColumnPropertiesOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. Column heading.
       * </pre>
       *
       * <code>string header = 1;</code>
       *
       * @return The header.
       */
      java.lang.String getHeader();
      /**
       *
       *
       * <pre>
       * Required. Column heading.
       * </pre>
       *
       * <code>string header = 1;</code>
       *
       * @return The bytes for header.
       */
      com.google.protobuf.ByteString getHeaderBytes();

      /**
       *
       *
       * <pre>
       * Optional. Defines text alignment for all cells in this column.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2;
       * </code>
       *
       * @return The enum numeric value on the wire for horizontalAlignment.
       */
      int getHorizontalAlignmentValue();
      /**
       *
       *
       * <pre>
       * Optional. Defines text alignment for all cells in this column.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2;
       * </code>
       *
       * @return The horizontalAlignment.
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment
          getHorizontalAlignment();
    }
    /**
     *
     *
     * <pre>
     * Column properties for
     * [TableCard][google.cloud.dialogflow.v2beta1.Intent.Message.TableCard].
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties}
     */
    public static final class ColumnProperties extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties)
        ColumnPropertiesOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use ColumnProperties.newBuilder() to construct.
      private ColumnProperties(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private ColumnProperties() {
        header_ = "";
        horizontalAlignment_ = 0;
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder.class);
      }

      /**
       *
       *
       * <pre>
       * Text alignments within a cell.
       * </pre>
       *
       * Protobuf enum {@code
       * google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment}
       */
      public enum HorizontalAlignment implements com.google.protobuf.ProtocolMessageEnum {
        /**
         *
         *
         * <pre>
         * Text is aligned to the leading edge of the column.
         * </pre>
         *
         * <code>HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0;</code>
         */
        HORIZONTAL_ALIGNMENT_UNSPECIFIED(0),
        /**
         *
         *
         * <pre>
         * Text is aligned to the leading edge of the column.
         * </pre>
         *
         * <code>LEADING = 1;</code>
         */
        LEADING(1),
        /**
         *
         *
         * <pre>
         * Text is centered in the column.
         * </pre>
         *
         * <code>CENTER = 2;</code>
         */
        CENTER(2),
        /**
         *
         *
         * <pre>
         * Text is aligned to the trailing edge of the column.
         * </pre>
         *
         * <code>TRAILING = 3;</code>
         */
        TRAILING(3),
        UNRECOGNIZED(-1),
        ;

        /**
         *
         *
         * <pre>
         * Text is aligned to the leading edge of the column.
         * </pre>
         *
         * <code>HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0;</code>
         */
        public static final int HORIZONTAL_ALIGNMENT_UNSPECIFIED_VALUE = 0;
        /**
         *
         *
         * <pre>
         * Text is aligned to the leading edge of the column.
         * </pre>
         *
         * <code>LEADING = 1;</code>
         */
        public static final int LEADING_VALUE = 1;
        /**
         *
         *
         * <pre>
         * Text is centered in the column.
         * </pre>
         *
         * <code>CENTER = 2;</code>
         */
        public static final int CENTER_VALUE = 2;
        /**
         *
         *
         * <pre>
         * Text is aligned to the trailing edge of the column.
         * </pre>
         *
         * <code>TRAILING = 3;</code>
         */
        public static final int TRAILING_VALUE = 3;

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

        /**
         * @param value The numeric wire value of the corresponding enum entry.
         * @return The enum associated with the given numeric wire value.
         * @deprecated Use {@link #forNumber(int)} instead.
         */
        @java.lang.Deprecated
        public static HorizontalAlignment 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 HorizontalAlignment forNumber(int value) {
          switch (value) {
            case 0:
              return HORIZONTAL_ALIGNMENT_UNSPECIFIED;
            case 1:
              return LEADING;
            case 2:
              return CENTER;
            case 3:
              return TRAILING;
            default:
              return null;
          }
        }

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

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

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

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

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.getDescriptor()
              .getEnumTypes()
              .get(0);
        }

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

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

        // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment)
      }

      public static final int HEADER_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object header_ = "";
      /**
       *
       *
       * <pre>
       * Required. Column heading.
       * </pre>
       *
       * <code>string header = 1;</code>
       *
       * @return The header.
       */
      @java.lang.Override
      public java.lang.String getHeader() {
        java.lang.Object ref = header_;
        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();
          header_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. Column heading.
       * </pre>
       *
       * <code>string header = 1;</code>
       *
       * @return The bytes for header.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getHeaderBytes() {
        java.lang.Object ref = header_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          header_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int HORIZONTAL_ALIGNMENT_FIELD_NUMBER = 2;
      private int horizontalAlignment_ = 0;
      /**
       *
       *
       * <pre>
       * Optional. Defines text alignment for all cells in this column.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2;
       * </code>
       *
       * @return The enum numeric value on the wire for horizontalAlignment.
       */
      @java.lang.Override
      public int getHorizontalAlignmentValue() {
        return horizontalAlignment_;
      }
      /**
       *
       *
       * <pre>
       * Optional. Defines text alignment for all cells in this column.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2;
       * </code>
       *
       * @return The horizontalAlignment.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment
          getHorizontalAlignment() {
        com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment
            result =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
                    .HorizontalAlignment.forNumber(horizontalAlignment_);
        return result == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
                .HorizontalAlignment.UNRECOGNIZED
            : result;
      }

      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(header_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, header_);
        }
        if (horizontalAlignment_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
                .HorizontalAlignment.HORIZONTAL_ALIGNMENT_UNSPECIFIED
                .getNumber()) {
          output.writeEnum(2, horizontalAlignment_);
        }
        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(header_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, header_);
        }
        if (horizontalAlignment_
            != com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
                .HorizontalAlignment.HORIZONTAL_ALIGNMENT_UNSPECIFIED
                .getNumber()) {
          size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, horizontalAlignment_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties) obj;

        if (!getHeader().equals(other.getHeader())) return false;
        if (horizontalAlignment_ != other.horizontalAlignment_) 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) + HEADER_FIELD_NUMBER;
        hash = (53 * hash) + getHeader().hashCode();
        hash = (37 * hash) + HORIZONTAL_ALIGNMENT_FIELD_NUMBER;
        hash = (53 * hash) + horizontalAlignment_;
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties 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>
       * Column properties for
       * [TableCard][google.cloud.dialogflow.v2beta1.Intent.Message.TableCard].
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder
                      .class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties result =
              buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.header_ = header_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.horizontalAlignment_ = horizontalAlignment_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other
              instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
                  .getDefaultInstance()) return this;
          if (!other.getHeader().isEmpty()) {
            header_ = other.header_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (other.horizontalAlignment_ != 0) {
            setHorizontalAlignmentValue(other.getHorizontalAlignmentValue());
          }
          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:
                  {
                    header_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                case 16:
                  {
                    horizontalAlignment_ = input.readEnum();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 16
                default:
                  {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }

        private int bitField0_;

        private java.lang.Object header_ = "";
        /**
         *
         *
         * <pre>
         * Required. Column heading.
         * </pre>
         *
         * <code>string header = 1;</code>
         *
         * @return The header.
         */
        public java.lang.String getHeader() {
          java.lang.Object ref = header_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            header_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Column heading.
         * </pre>
         *
         * <code>string header = 1;</code>
         *
         * @return The bytes for header.
         */
        public com.google.protobuf.ByteString getHeaderBytes() {
          java.lang.Object ref = header_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            header_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Column heading.
         * </pre>
         *
         * <code>string header = 1;</code>
         *
         * @param value The header to set.
         * @return This builder for chaining.
         */
        public Builder setHeader(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          header_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Column heading.
         * </pre>
         *
         * <code>string header = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearHeader() {
          header_ = getDefaultInstance().getHeader();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Column heading.
         * </pre>
         *
         * <code>string header = 1;</code>
         *
         * @param value The bytes for header to set.
         * @return This builder for chaining.
         */
        public Builder setHeaderBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          header_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }

        private int horizontalAlignment_ = 0;
        /**
         *
         *
         * <pre>
         * Optional. Defines text alignment for all cells in this column.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2;
         * </code>
         *
         * @return The enum numeric value on the wire for horizontalAlignment.
         */
        @java.lang.Override
        public int getHorizontalAlignmentValue() {
          return horizontalAlignment_;
        }
        /**
         *
         *
         * <pre>
         * Optional. Defines text alignment for all cells in this column.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2;
         * </code>
         *
         * @param value The enum numeric value on the wire for horizontalAlignment to set.
         * @return This builder for chaining.
         */
        public Builder setHorizontalAlignmentValue(int value) {
          horizontalAlignment_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Defines text alignment for all cells in this column.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2;
         * </code>
         *
         * @return The horizontalAlignment.
         */
        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
                .HorizontalAlignment
            getHorizontalAlignment() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment
              result =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
                      .HorizontalAlignment.forNumber(horizontalAlignment_);
          return result == null
              ? com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
                  .HorizontalAlignment.UNRECOGNIZED
              : result;
        }
        /**
         *
         *
         * <pre>
         * Optional. Defines text alignment for all cells in this column.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2;
         * </code>
         *
         * @param value The horizontalAlignment to set.
         * @return This builder for chaining.
         */
        public Builder setHorizontalAlignment(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment
                value) {
          if (value == null) {
            throw new NullPointerException();
          }
          bitField0_ |= 0x00000002;
          horizontalAlignment_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Defines text alignment for all cells in this column.
         * </pre>
         *
         * <code>
         * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2;
         * </code>
         *
         * @return This builder for chaining.
         */
        public Builder clearHorizontalAlignment() {
          bitField0_ = (bitField0_ & ~0x00000002);
          horizontalAlignment_ = 0;
          onChanged();
          return this;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE =
            new com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface TableCardRowOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Optional. List of cells that make up this row.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
       * </code>
       */
      java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell>
          getCellsList();
      /**
       *
       *
       * <pre>
       * Optional. List of cells that make up this row.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell getCells(int index);
      /**
       *
       *
       * <pre>
       * Optional. List of cells that make up this row.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
       * </code>
       */
      int getCellsCount();
      /**
       *
       *
       * <pre>
       * Optional. List of cells that make up this row.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
       * </code>
       */
      java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder>
          getCellsOrBuilderList();
      /**
       *
       *
       * <pre>
       * Optional. List of cells that make up this row.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
       * </code>
       */
      com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder getCellsOrBuilder(
          int index);

      /**
       *
       *
       * <pre>
       * Optional. Whether to add a visual divider after this row.
       * </pre>
       *
       * <code>bool divider_after = 2;</code>
       *
       * @return The dividerAfter.
       */
      boolean getDividerAfter();
    }
    /**
     *
     *
     * <pre>
     * Row of
     * [TableCard][google.cloud.dialogflow.v2beta1.Intent.Message.TableCard].
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow}
     */
    public static final class TableCardRow extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow)
        TableCardRowOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use TableCardRow.newBuilder() to construct.
      private TableCardRow(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private TableCardRow() {
        cells_ = java.util.Collections.emptyList();
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder.class);
      }

      public static final int CELLS_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell>
          cells_;
      /**
       *
       *
       * <pre>
       * Optional. List of cells that make up this row.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
       * </code>
       */
      @java.lang.Override
      public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell>
          getCellsList() {
        return cells_;
      }
      /**
       *
       *
       * <pre>
       * Optional. List of cells that make up this row.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
       * </code>
       */
      @java.lang.Override
      public java.util.List<
              ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder>
          getCellsOrBuilderList() {
        return cells_;
      }
      /**
       *
       *
       * <pre>
       * Optional. List of cells that make up this row.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
       * </code>
       */
      @java.lang.Override
      public int getCellsCount() {
        return cells_.size();
      }
      /**
       *
       *
       * <pre>
       * Optional. List of cells that make up this row.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell getCells(int index) {
        return cells_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Optional. List of cells that make up this row.
       * </pre>
       *
       * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder
          getCellsOrBuilder(int index) {
        return cells_.get(index);
      }

      public static final int DIVIDER_AFTER_FIELD_NUMBER = 2;
      private boolean dividerAfter_ = false;
      /**
       *
       *
       * <pre>
       * Optional. Whether to add a visual divider after this row.
       * </pre>
       *
       * <code>bool divider_after = 2;</code>
       *
       * @return The dividerAfter.
       */
      @java.lang.Override
      public boolean getDividerAfter() {
        return dividerAfter_;
      }

      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 < cells_.size(); i++) {
          output.writeMessage(1, cells_.get(i));
        }
        if (dividerAfter_ != false) {
          output.writeBool(2, dividerAfter_);
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        for (int i = 0; i < cells_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cells_.get(i));
        }
        if (dividerAfter_ != false) {
          size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, dividerAfter_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow) obj;

        if (!getCellsList().equals(other.getCellsList())) return false;
        if (getDividerAfter() != other.getDividerAfter()) 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 (getCellsCount() > 0) {
          hash = (37 * hash) + CELLS_FIELD_NUMBER;
          hash = (53 * hash) + getCellsList().hashCode();
        }
        hash = (37 * hash) + DIVIDER_AFTER_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDividerAfter());
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow 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>
       * Row of
       * [TableCard][google.cloud.dialogflow.v2beta1.Intent.Message.TableCard].
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          if (cellsBuilder_ == null) {
            cells_ = java.util.Collections.emptyList();
          } else {
            cells_ = null;
            cellsBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          dividerAfter_ = false;
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow(this);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow result) {
          if (cellsBuilder_ == null) {
            if (((bitField0_ & 0x00000001) != 0)) {
              cells_ = java.util.Collections.unmodifiableList(cells_);
              bitField0_ = (bitField0_ & ~0x00000001);
            }
            result.cells_ = cells_;
          } else {
            result.cells_ = cellsBuilder_.build();
          }
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.dividerAfter_ = dividerAfter_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow
                  .getDefaultInstance()) return this;
          if (cellsBuilder_ == null) {
            if (!other.cells_.isEmpty()) {
              if (cells_.isEmpty()) {
                cells_ = other.cells_;
                bitField0_ = (bitField0_ & ~0x00000001);
              } else {
                ensureCellsIsMutable();
                cells_.addAll(other.cells_);
              }
              onChanged();
            }
          } else {
            if (!other.cells_.isEmpty()) {
              if (cellsBuilder_.isEmpty()) {
                cellsBuilder_.dispose();
                cellsBuilder_ = null;
                cells_ = other.cells_;
                bitField0_ = (bitField0_ & ~0x00000001);
                cellsBuilder_ =
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                        ? getCellsFieldBuilder()
                        : null;
              } else {
                cellsBuilder_.addAllMessages(other.cells_);
              }
            }
          }
          if (other.getDividerAfter() != false) {
            setDividerAfter(other.getDividerAfter());
          }
          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:
                  {
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell m =
                        input.readMessage(
                            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell
                                .parser(),
                            extensionRegistry);
                    if (cellsBuilder_ == null) {
                      ensureCellsIsMutable();
                      cells_.add(m);
                    } else {
                      cellsBuilder_.addMessage(m);
                    }
                    break;
                  } // case 10
                case 16:
                  {
                    dividerAfter_ = input.readBool();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 16
                default:
                  {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }

        private int bitField0_;

        private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell>
            cells_ = java.util.Collections.emptyList();

        private void ensureCellsIsMutable() {
          if (!((bitField0_ & 0x00000001) != 0)) {
            cells_ =
                new java.util.ArrayList<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell>(cells_);
            bitField0_ |= 0x00000001;
          }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder>
            cellsBuilder_;

        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell>
            getCellsList() {
          if (cellsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(cells_);
          } else {
            return cellsBuilder_.getMessageList();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public int getCellsCount() {
          if (cellsBuilder_ == null) {
            return cells_.size();
          } else {
            return cellsBuilder_.getCount();
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell getCells(
            int index) {
          if (cellsBuilder_ == null) {
            return cells_.get(index);
          } else {
            return cellsBuilder_.getMessage(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public Builder setCells(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell value) {
          if (cellsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureCellsIsMutable();
            cells_.set(index, value);
            onChanged();
          } else {
            cellsBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public Builder setCells(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder
                builderForValue) {
          if (cellsBuilder_ == null) {
            ensureCellsIsMutable();
            cells_.set(index, builderForValue.build());
            onChanged();
          } else {
            cellsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public Builder addCells(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell value) {
          if (cellsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureCellsIsMutable();
            cells_.add(value);
            onChanged();
          } else {
            cellsBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public Builder addCells(
            int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell value) {
          if (cellsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureCellsIsMutable();
            cells_.add(index, value);
            onChanged();
          } else {
            cellsBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public Builder addCells(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder
                builderForValue) {
          if (cellsBuilder_ == null) {
            ensureCellsIsMutable();
            cells_.add(builderForValue.build());
            onChanged();
          } else {
            cellsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public Builder addCells(
            int index,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder
                builderForValue) {
          if (cellsBuilder_ == null) {
            ensureCellsIsMutable();
            cells_.add(index, builderForValue.build());
            onChanged();
          } else {
            cellsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public Builder addAllCells(
            java.lang.Iterable<
                    ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell>
                values) {
          if (cellsBuilder_ == null) {
            ensureCellsIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cells_);
            onChanged();
          } else {
            cellsBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public Builder clearCells() {
          if (cellsBuilder_ == null) {
            cells_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
          } else {
            cellsBuilder_.clear();
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public Builder removeCells(int index) {
          if (cellsBuilder_ == null) {
            ensureCellsIsMutable();
            cells_.remove(index);
            onChanged();
          } else {
            cellsBuilder_.remove(index);
          }
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder
            getCellsBuilder(int index) {
          return getCellsFieldBuilder().getBuilder(index);
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder
            getCellsOrBuilder(int index) {
          if (cellsBuilder_ == null) {
            return cells_.get(index);
          } else {
            return cellsBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public java.util.List<
                ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder>
            getCellsOrBuilderList() {
          if (cellsBuilder_ != null) {
            return cellsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(cells_);
          }
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder
            addCellsBuilder() {
          return getCellsFieldBuilder()
              .addBuilder(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder
            addCellsBuilder(int index) {
          return getCellsFieldBuilder()
              .addBuilder(
                  index,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell
                      .getDefaultInstance());
        }
        /**
         *
         *
         * <pre>
         * Optional. List of cells that make up this row.
         * </pre>
         *
         * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1;
         * </code>
         */
        public java.util.List<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder>
            getCellsBuilderList() {
          return getCellsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder>
            getCellsFieldBuilder() {
          if (cellsBuilder_ == null) {
            cellsBuilder_ =
                new com.google.protobuf.RepeatedFieldBuilderV3<
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder,
                    com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder>(
                    cells_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
            cells_ = null;
          }
          return cellsBuilder_;
        }

        private boolean dividerAfter_;
        /**
         *
         *
         * <pre>
         * Optional. Whether to add a visual divider after this row.
         * </pre>
         *
         * <code>bool divider_after = 2;</code>
         *
         * @return The dividerAfter.
         */
        @java.lang.Override
        public boolean getDividerAfter() {
          return dividerAfter_;
        }
        /**
         *
         *
         * <pre>
         * Optional. Whether to add a visual divider after this row.
         * </pre>
         *
         * <code>bool divider_after = 2;</code>
         *
         * @param value The dividerAfter to set.
         * @return This builder for chaining.
         */
        public Builder setDividerAfter(boolean value) {

          dividerAfter_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Optional. Whether to add a visual divider after this row.
         * </pre>
         *
         * <code>bool divider_after = 2;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearDividerAfter() {
          bitField0_ = (bitField0_ & ~0x00000002);
          dividerAfter_ = false;
          onChanged();
          return this;
        }

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

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

        // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public interface TableCardCellOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * Required. Text in this cell.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      java.lang.String getText();
      /**
       *
       *
       * <pre>
       * Required. Text in this cell.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      com.google.protobuf.ByteString getTextBytes();
    }
    /**
     *
     *
     * <pre>
     * Cell of
     * [TableCardRow][google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow].
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell}
     */
    public static final class TableCardCell extends com.google.protobuf.GeneratedMessageV3
        implements
        // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell)
        TableCardCellOrBuilder {
      private static final long serialVersionUID = 0L;
      // Use TableCardCell.newBuilder() to construct.
      private TableCardCell(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }

      private TableCardCell() {
        text_ = "";
      }

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder.class);
      }

      public static final int TEXT_FIELD_NUMBER = 1;

      @SuppressWarnings("serial")
      private volatile java.lang.Object text_ = "";
      /**
       *
       *
       * <pre>
       * Required. Text in this cell.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The text.
       */
      @java.lang.Override
      public java.lang.String getText() {
        java.lang.Object ref = text_;
        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();
          text_ = s;
          return s;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. Text in this cell.
       * </pre>
       *
       * <code>string text = 1;</code>
       *
       * @return The bytes for text.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTextBytes() {
        java.lang.Object ref = text_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          text_ = 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(text_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
        }
        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(text_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell)) {
          return super.equals(obj);
        }
        com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell other =
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell) obj;

        if (!getText().equals(other.getText())) 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) + TEXT_FIELD_NUMBER;
        hash = (53 * hash) + getText().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom(
          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell
          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell
          parseDelimitedFrom(
              java.io.InputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

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

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

      public static Builder newBuilder(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell 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>
       * Cell of
       * [TableCardRow][google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow].
       * </pre>
       *
       * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell)
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.class,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder.class);
        }

        // Construct using
        // com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.newBuilder()
        private Builder() {}

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

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

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.cloud.dialogflow.v2beta1.IntentProto
              .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_descriptor;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell
            getDefaultInstanceForType() {
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell
              .getDefaultInstance();
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell build() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell buildPartial() {
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell result =
              new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          onBuilt();
          return result;
        }

        private void buildPartial0(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.text_ = text_;
          }
        }

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

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

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

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

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

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

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell) {
            return mergeFrom(
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(
            com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell other) {
          if (other
              == com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell
                  .getDefaultInstance()) return this;
          if (!other.getText().isEmpty()) {
            text_ = other.text_;
            bitField0_ |= 0x00000001;
            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:
                  {
                    text_ = input.readStringRequireUtf8();
                    bitField0_ |= 0x00000001;
                    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 java.lang.Object text_ = "";
        /**
         *
         *
         * <pre>
         * Required. Text in this cell.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The text.
         */
        public java.lang.String getText() {
          java.lang.Object ref = text_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            text_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Text in this cell.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return The bytes for text.
         */
        public com.google.protobuf.ByteString getTextBytes() {
          java.lang.Object ref = text_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            text_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         *
         *
         * <pre>
         * Required. Text in this cell.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The text to set.
         * @return This builder for chaining.
         */
        public Builder setText(java.lang.String value) {
          if (value == null) {
            throw new NullPointerException();
          }
          text_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Text in this cell.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearText() {
          text_ = getDefaultInstance().getText();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         *
         *
         * <pre>
         * Required. Text in this cell.
         * </pre>
         *
         * <code>string text = 1;</code>
         *
         * @param value The bytes for text to set.
         * @return This builder for chaining.
         */
        public Builder setTextBytes(com.google.protobuf.ByteString value) {
          if (value == null) {
            throw new NullPointerException();
          }
          checkByteStringIsUtf8(value);
          text_ = 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.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell)
      }

      // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell)
      private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell
          DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell();
      }

      public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell
          getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell
          getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    private int messageCase_ = 0;

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

    public enum MessageCase
        implements
            com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      TEXT(1),
      IMAGE(2),
      QUICK_REPLIES(3),
      CARD(4),
      PAYLOAD(5),
      SIMPLE_RESPONSES(7),
      BASIC_CARD(8),
      SUGGESTIONS(9),
      LINK_OUT_SUGGESTION(10),
      LIST_SELECT(11),
      CAROUSEL_SELECT(12),
      TELEPHONY_PLAY_AUDIO(13),
      TELEPHONY_SYNTHESIZE_SPEECH(14),
      TELEPHONY_TRANSFER_CALL(15),
      RBM_TEXT(18),
      RBM_STANDALONE_RICH_CARD(19),
      RBM_CAROUSEL_RICH_CARD(20),
      BROWSE_CAROUSEL_CARD(22),
      TABLE_CARD(23),
      MEDIA_CONTENT(24),
      MESSAGE_NOT_SET(0);
      private final int value;

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

      public static MessageCase forNumber(int value) {
        switch (value) {
          case 1:
            return TEXT;
          case 2:
            return IMAGE;
          case 3:
            return QUICK_REPLIES;
          case 4:
            return CARD;
          case 5:
            return PAYLOAD;
          case 7:
            return SIMPLE_RESPONSES;
          case 8:
            return BASIC_CARD;
          case 9:
            return SUGGESTIONS;
          case 10:
            return LINK_OUT_SUGGESTION;
          case 11:
            return LIST_SELECT;
          case 12:
            return CAROUSEL_SELECT;
          case 13:
            return TELEPHONY_PLAY_AUDIO;
          case 14:
            return TELEPHONY_SYNTHESIZE_SPEECH;
          case 15:
            return TELEPHONY_TRANSFER_CALL;
          case 18:
            return RBM_TEXT;
          case 19:
            return RBM_STANDALONE_RICH_CARD;
          case 20:
            return RBM_CAROUSEL_RICH_CARD;
          case 22:
            return BROWSE_CAROUSEL_CARD;
          case 23:
            return TABLE_CARD;
          case 24:
            return MEDIA_CONTENT;
          case 0:
            return MESSAGE_NOT_SET;
          default:
            return null;
        }
      }

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

    public MessageCase getMessageCase() {
      return MessageCase.forNumber(messageCase_);
    }

    public static final int TEXT_FIELD_NUMBER = 1;
    /**
     *
     *
     * <pre>
     * Returns a text response.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
     *
     * @return Whether the text field is set.
     */
    @java.lang.Override
    public boolean hasText() {
      return messageCase_ == 1;
    }
    /**
     *
     *
     * <pre>
     * Returns a text response.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
     *
     * @return The text.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() {
      if (messageCase_ == 1) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Returns a text response.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() {
      if (messageCase_ == 1) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
    }

    public static final int IMAGE_FIELD_NUMBER = 2;
    /**
     *
     *
     * <pre>
     * Displays an image.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
     *
     * @return Whether the image field is set.
     */
    @java.lang.Override
    public boolean hasImage() {
      return messageCase_ == 2;
    }
    /**
     *
     *
     * <pre>
     * Displays an image.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
     *
     * @return The image.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
      if (messageCase_ == 2) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Displays an image.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() {
      if (messageCase_ == 2) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
    }

    public static final int QUICK_REPLIES_FIELD_NUMBER = 3;
    /**
     *
     *
     * <pre>
     * Displays quick replies.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;</code>
     *
     * @return Whether the quickReplies field is set.
     */
    @java.lang.Override
    public boolean hasQuickReplies() {
      return messageCase_ == 3;
    }
    /**
     *
     *
     * <pre>
     * Displays quick replies.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;</code>
     *
     * @return The quickReplies.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() {
      if (messageCase_ == 3) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Displays quick replies.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;</code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder
        getQuickRepliesOrBuilder() {
      if (messageCase_ == 3) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance();
    }

    public static final int CARD_FIELD_NUMBER = 4;
    /**
     *
     *
     * <pre>
     * Displays a card.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
     *
     * @return Whether the card field is set.
     */
    @java.lang.Override
    public boolean hasCard() {
      return messageCase_ == 4;
    }
    /**
     *
     *
     * <pre>
     * Displays a card.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
     *
     * @return The card.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() {
      if (messageCase_ == 4) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Displays a card.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() {
      if (messageCase_ == 4) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
    }

    public static final int PAYLOAD_FIELD_NUMBER = 5;
    /**
     *
     *
     * <pre>
     * A custom platform-specific response.
     * </pre>
     *
     * <code>.google.protobuf.Struct payload = 5;</code>
     *
     * @return Whether the payload field is set.
     */
    @java.lang.Override
    public boolean hasPayload() {
      return messageCase_ == 5;
    }
    /**
     *
     *
     * <pre>
     * A custom platform-specific response.
     * </pre>
     *
     * <code>.google.protobuf.Struct payload = 5;</code>
     *
     * @return The payload.
     */
    @java.lang.Override
    public com.google.protobuf.Struct getPayload() {
      if (messageCase_ == 5) {
        return (com.google.protobuf.Struct) message_;
      }
      return com.google.protobuf.Struct.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * A custom platform-specific response.
     * </pre>
     *
     * <code>.google.protobuf.Struct payload = 5;</code>
     */
    @java.lang.Override
    public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
      if (messageCase_ == 5) {
        return (com.google.protobuf.Struct) message_;
      }
      return com.google.protobuf.Struct.getDefaultInstance();
    }

    public static final int SIMPLE_RESPONSES_FIELD_NUMBER = 7;
    /**
     *
     *
     * <pre>
     * Returns a voice or text-only response for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
     * </code>
     *
     * @return Whether the simpleResponses field is set.
     */
    @java.lang.Override
    public boolean hasSimpleResponses() {
      return messageCase_ == 7;
    }
    /**
     *
     *
     * <pre>
     * Returns a voice or text-only response for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
     * </code>
     *
     * @return The simpleResponses.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses getSimpleResponses() {
      if (messageCase_ == 7) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Returns a voice or text-only response for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder
        getSimpleResponsesOrBuilder() {
      if (messageCase_ == 7) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
          .getDefaultInstance();
    }

    public static final int BASIC_CARD_FIELD_NUMBER = 8;
    /**
     *
     *
     * <pre>
     * Displays a basic card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
     *
     * @return Whether the basicCard field is set.
     */
    @java.lang.Override
    public boolean hasBasicCard() {
      return messageCase_ == 8;
    }
    /**
     *
     *
     * <pre>
     * Displays a basic card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
     *
     * @return The basicCard.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard getBasicCard() {
      if (messageCase_ == 8) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Displays a basic card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder
        getBasicCardOrBuilder() {
      if (messageCase_ == 8) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
    }

    public static final int SUGGESTIONS_FIELD_NUMBER = 9;
    /**
     *
     *
     * <pre>
     * Displays suggestion chips for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
     *
     * @return Whether the suggestions field is set.
     */
    @java.lang.Override
    public boolean hasSuggestions() {
      return messageCase_ == 9;
    }
    /**
     *
     *
     * <pre>
     * Displays suggestion chips for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
     *
     * @return The suggestions.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggestions() {
      if (messageCase_ == 9) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Displays suggestion chips for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder
        getSuggestionsOrBuilder() {
      if (messageCase_ == 9) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance();
    }

    public static final int LINK_OUT_SUGGESTION_FIELD_NUMBER = 10;
    /**
     *
     *
     * <pre>
     * Displays a link out suggestion chip for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
     * </code>
     *
     * @return Whether the linkOutSuggestion field is set.
     */
    @java.lang.Override
    public boolean hasLinkOutSuggestion() {
      return messageCase_ == 10;
    }
    /**
     *
     *
     * <pre>
     * Displays a link out suggestion chip for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
     * </code>
     *
     * @return The linkOutSuggestion.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
        getLinkOutSuggestion() {
      if (messageCase_ == 10) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Displays a link out suggestion chip for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder
        getLinkOutSuggestionOrBuilder() {
      if (messageCase_ == 10) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
          .getDefaultInstance();
    }

    public static final int LIST_SELECT_FIELD_NUMBER = 11;
    /**
     *
     *
     * <pre>
     * Displays a list card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
     *
     * @return Whether the listSelect field is set.
     */
    @java.lang.Override
    public boolean hasListSelect() {
      return messageCase_ == 11;
    }
    /**
     *
     *
     * <pre>
     * Displays a list card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
     *
     * @return The listSelect.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect getListSelect() {
      if (messageCase_ == 11) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Displays a list card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder
        getListSelectOrBuilder() {
      if (messageCase_ == 11) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
    }

    public static final int CAROUSEL_SELECT_FIELD_NUMBER = 12;
    /**
     *
     *
     * <pre>
     * Displays a carousel card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
     * </code>
     *
     * @return Whether the carouselSelect field is set.
     */
    @java.lang.Override
    public boolean hasCarouselSelect() {
      return messageCase_ == 12;
    }
    /**
     *
     *
     * <pre>
     * Displays a carousel card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
     * </code>
     *
     * @return The carouselSelect.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCarouselSelect() {
      if (messageCase_ == 12) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Displays a carousel card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder
        getCarouselSelectOrBuilder() {
      if (messageCase_ == 12) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance();
    }

    public static final int TELEPHONY_PLAY_AUDIO_FIELD_NUMBER = 13;
    /**
     *
     *
     * <pre>
     * Plays audio from a file in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
     * </code>
     *
     * @return Whether the telephonyPlayAudio field is set.
     */
    @java.lang.Override
    public boolean hasTelephonyPlayAudio() {
      return messageCase_ == 13;
    }
    /**
     *
     *
     * <pre>
     * Plays audio from a file in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
     * </code>
     *
     * @return The telephonyPlayAudio.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
        getTelephonyPlayAudio() {
      if (messageCase_ == 13) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Plays audio from a file in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder
        getTelephonyPlayAudioOrBuilder() {
      if (messageCase_ == 13) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
          .getDefaultInstance();
    }

    public static final int TELEPHONY_SYNTHESIZE_SPEECH_FIELD_NUMBER = 14;
    /**
     *
     *
     * <pre>
     * Synthesizes speech in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
     * </code>
     *
     * @return Whether the telephonySynthesizeSpeech field is set.
     */
    @java.lang.Override
    public boolean hasTelephonySynthesizeSpeech() {
      return messageCase_ == 14;
    }
    /**
     *
     *
     * <pre>
     * Synthesizes speech in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
     * </code>
     *
     * @return The telephonySynthesizeSpeech.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
        getTelephonySynthesizeSpeech() {
      if (messageCase_ == 14) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
            message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Synthesizes speech in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder
        getTelephonySynthesizeSpeechOrBuilder() {
      if (messageCase_ == 14) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
            message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          .getDefaultInstance();
    }

    public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER = 15;
    /**
     *
     *
     * <pre>
     * Transfers the call in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
     * </code>
     *
     * @return Whether the telephonyTransferCall field is set.
     */
    @java.lang.Override
    public boolean hasTelephonyTransferCall() {
      return messageCase_ == 15;
    }
    /**
     *
     *
     * <pre>
     * Transfers the call in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
     * </code>
     *
     * @return The telephonyTransferCall.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
        getTelephonyTransferCall() {
      if (messageCase_ == 15) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Transfers the call in Telephony Gateway.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder
        getTelephonyTransferCallOrBuilder() {
      if (messageCase_ == 15) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          .getDefaultInstance();
    }

    public static final int RBM_TEXT_FIELD_NUMBER = 18;
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) text response.
     *
     * RBM allows businesses to send enriched and branded versions of SMS. See
     * https://jibe.google.com/business-messaging.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
     *
     * @return Whether the rbmText field is set.
     */
    @java.lang.Override
    public boolean hasRbmText() {
      return messageCase_ == 18;
    }
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) text response.
     *
     * RBM allows businesses to send enriched and branded versions of SMS. See
     * https://jibe.google.com/business-messaging.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
     *
     * @return The rbmText.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText getRbmText() {
      if (messageCase_ == 18) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) text response.
     *
     * RBM allows businesses to send enriched and branded versions of SMS. See
     * https://jibe.google.com/business-messaging.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder
        getRbmTextOrBuilder() {
      if (messageCase_ == 18) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
    }

    public static final int RBM_STANDALONE_RICH_CARD_FIELD_NUMBER = 19;
    /**
     *
     *
     * <pre>
     * Standalone Rich Business Messaging (RBM) rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
     * </code>
     *
     * @return Whether the rbmStandaloneRichCard field is set.
     */
    @java.lang.Override
    public boolean hasRbmStandaloneRichCard() {
      return messageCase_ == 19;
    }
    /**
     *
     *
     * <pre>
     * Standalone Rich Business Messaging (RBM) rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
     * </code>
     *
     * @return The rbmStandaloneRichCard.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
        getRbmStandaloneRichCard() {
      if (messageCase_ == 19) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Standalone Rich Business Messaging (RBM) rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder
        getRbmStandaloneRichCardOrBuilder() {
      if (messageCase_ == 19) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
          .getDefaultInstance();
    }

    public static final int RBM_CAROUSEL_RICH_CARD_FIELD_NUMBER = 20;
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) carousel rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
     * </code>
     *
     * @return Whether the rbmCarouselRichCard field is set.
     */
    @java.lang.Override
    public boolean hasRbmCarouselRichCard() {
      return messageCase_ == 20;
    }
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) carousel rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
     * </code>
     *
     * @return The rbmCarouselRichCard.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
        getRbmCarouselRichCard() {
      if (messageCase_ == 20) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Rich Business Messaging (RBM) carousel rich card response.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder
        getRbmCarouselRichCardOrBuilder() {
      if (messageCase_ == 20) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
          .getDefaultInstance();
    }

    public static final int BROWSE_CAROUSEL_CARD_FIELD_NUMBER = 22;
    /**
     *
     *
     * <pre>
     * Browse carousel card for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
     * </code>
     *
     * @return Whether the browseCarouselCard field is set.
     */
    @java.lang.Override
    public boolean hasBrowseCarouselCard() {
      return messageCase_ == 22;
    }
    /**
     *
     *
     * <pre>
     * Browse carousel card for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
     * </code>
     *
     * @return The browseCarouselCard.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
        getBrowseCarouselCard() {
      if (messageCase_ == 22) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Browse carousel card for Actions on Google.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder
        getBrowseCarouselCardOrBuilder() {
      if (messageCase_ == 22) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
          .getDefaultInstance();
    }

    public static final int TABLE_CARD_FIELD_NUMBER = 23;
    /**
     *
     *
     * <pre>
     * Table card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
     *
     * @return Whether the tableCard field is set.
     */
    @java.lang.Override
    public boolean hasTableCard() {
      return messageCase_ == 23;
    }
    /**
     *
     *
     * <pre>
     * Table card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
     *
     * @return The tableCard.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard getTableCard() {
      if (messageCase_ == 23) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Table card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder
        getTableCardOrBuilder() {
      if (messageCase_ == 23) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance();
    }

    public static final int MEDIA_CONTENT_FIELD_NUMBER = 24;
    /**
     *
     *
     * <pre>
     * The media content card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;</code>
     *
     * @return Whether the mediaContent field is set.
     */
    @java.lang.Override
    public boolean hasMediaContent() {
      return messageCase_ == 24;
    }
    /**
     *
     *
     * <pre>
     * The media content card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;</code>
     *
     * @return The mediaContent.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent getMediaContent() {
      if (messageCase_ == 24) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * The media content card for Actions on Google.
     * </pre>
     *
     * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;</code>
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder
        getMediaContentOrBuilder() {
      if (messageCase_ == 24) {
        return (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_;
      }
      return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.getDefaultInstance();
    }

    public static final int PLATFORM_FIELD_NUMBER = 6;
    private int platform_ = 0;
    /**
     *
     *
     * <pre>
     * Optional. The platform that this message is intended for.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The enum numeric value on the wire for platform.
     */
    @java.lang.Override
    public int getPlatformValue() {
      return platform_;
    }
    /**
     *
     *
     * <pre>
     * Optional. The platform that this message is intended for.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The platform.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getPlatform() {
      com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform result =
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.forNumber(platform_);
      return result == null
          ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.UNRECOGNIZED
          : result;
    }

    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 (messageCase_ == 1) {
        output.writeMessage(1, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_);
      }
      if (messageCase_ == 2) {
        output.writeMessage(2, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_);
      }
      if (messageCase_ == 3) {
        output.writeMessage(
            3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_);
      }
      if (messageCase_ == 4) {
        output.writeMessage(4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_);
      }
      if (messageCase_ == 5) {
        output.writeMessage(5, (com.google.protobuf.Struct) message_);
      }
      if (platform_
          != com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.PLATFORM_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(6, platform_);
      }
      if (messageCase_ == 7) {
        output.writeMessage(
            7, (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_);
      }
      if (messageCase_ == 8) {
        output.writeMessage(
            8, (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_);
      }
      if (messageCase_ == 9) {
        output.writeMessage(
            9, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_);
      }
      if (messageCase_ == 10) {
        output.writeMessage(
            10, (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_);
      }
      if (messageCase_ == 11) {
        output.writeMessage(
            11, (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_);
      }
      if (messageCase_ == 12) {
        output.writeMessage(
            12, (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_);
      }
      if (messageCase_ == 13) {
        output.writeMessage(
            13, (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_);
      }
      if (messageCase_ == 14) {
        output.writeMessage(
            14,
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
                message_);
      }
      if (messageCase_ == 15) {
        output.writeMessage(
            15,
            (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_);
      }
      if (messageCase_ == 18) {
        output.writeMessage(
            18, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_);
      }
      if (messageCase_ == 19) {
        output.writeMessage(
            19, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_);
      }
      if (messageCase_ == 20) {
        output.writeMessage(
            20, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_);
      }
      if (messageCase_ == 22) {
        output.writeMessage(
            22, (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_);
      }
      if (messageCase_ == 23) {
        output.writeMessage(
            23, (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_);
      }
      if (messageCase_ == 24) {
        output.writeMessage(
            24, (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (messageCase_ == 1) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                1, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_);
      }
      if (messageCase_ == 2) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                2, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_);
      }
      if (messageCase_ == 3) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_);
      }
      if (messageCase_ == 4) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_);
      }
      if (messageCase_ == 5) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                5, (com.google.protobuf.Struct) message_);
      }
      if (platform_
          != com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.PLATFORM_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, platform_);
      }
      if (messageCase_ == 7) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                7, (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_);
      }
      if (messageCase_ == 8) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                8, (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_);
      }
      if (messageCase_ == 9) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                9, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_);
      }
      if (messageCase_ == 10) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                10,
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_);
      }
      if (messageCase_ == 11) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                11, (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_);
      }
      if (messageCase_ == 12) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                12, (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_);
      }
      if (messageCase_ == 13) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                13,
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_);
      }
      if (messageCase_ == 14) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                14,
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
                    message_);
      }
      if (messageCase_ == 15) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                15,
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
                    message_);
      }
      if (messageCase_ == 18) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                18, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_);
      }
      if (messageCase_ == 19) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                19,
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_);
      }
      if (messageCase_ == 20) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                20, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_);
      }
      if (messageCase_ == 22) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                22,
                (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_);
      }
      if (messageCase_ == 23) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                23, (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_);
      }
      if (messageCase_ == 24) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                24, (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message)) {
        return super.equals(obj);
      }
      com.google.cloud.dialogflow.v2beta1.Intent.Message other =
          (com.google.cloud.dialogflow.v2beta1.Intent.Message) obj;

      if (platform_ != other.platform_) return false;
      if (!getMessageCase().equals(other.getMessageCase())) return false;
      switch (messageCase_) {
        case 1:
          if (!getText().equals(other.getText())) return false;
          break;
        case 2:
          if (!getImage().equals(other.getImage())) return false;
          break;
        case 3:
          if (!getQuickReplies().equals(other.getQuickReplies())) return false;
          break;
        case 4:
          if (!getCard().equals(other.getCard())) return false;
          break;
        case 5:
          if (!getPayload().equals(other.getPayload())) return false;
          break;
        case 7:
          if (!getSimpleResponses().equals(other.getSimpleResponses())) return false;
          break;
        case 8:
          if (!getBasicCard().equals(other.getBasicCard())) return false;
          break;
        case 9:
          if (!getSuggestions().equals(other.getSuggestions())) return false;
          break;
        case 10:
          if (!getLinkOutSuggestion().equals(other.getLinkOutSuggestion())) return false;
          break;
        case 11:
          if (!getListSelect().equals(other.getListSelect())) return false;
          break;
        case 12:
          if (!getCarouselSelect().equals(other.getCarouselSelect())) return false;
          break;
        case 13:
          if (!getTelephonyPlayAudio().equals(other.getTelephonyPlayAudio())) return false;
          break;
        case 14:
          if (!getTelephonySynthesizeSpeech().equals(other.getTelephonySynthesizeSpeech()))
            return false;
          break;
        case 15:
          if (!getTelephonyTransferCall().equals(other.getTelephonyTransferCall())) return false;
          break;
        case 18:
          if (!getRbmText().equals(other.getRbmText())) return false;
          break;
        case 19:
          if (!getRbmStandaloneRichCard().equals(other.getRbmStandaloneRichCard())) return false;
          break;
        case 20:
          if (!getRbmCarouselRichCard().equals(other.getRbmCarouselRichCard())) return false;
          break;
        case 22:
          if (!getBrowseCarouselCard().equals(other.getBrowseCarouselCard())) return false;
          break;
        case 23:
          if (!getTableCard().equals(other.getTableCard())) return false;
          break;
        case 24:
          if (!getMediaContent().equals(other.getMediaContent())) 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) + PLATFORM_FIELD_NUMBER;
      hash = (53 * hash) + platform_;
      switch (messageCase_) {
        case 1:
          hash = (37 * hash) + TEXT_FIELD_NUMBER;
          hash = (53 * hash) + getText().hashCode();
          break;
        case 2:
          hash = (37 * hash) + IMAGE_FIELD_NUMBER;
          hash = (53 * hash) + getImage().hashCode();
          break;
        case 3:
          hash = (37 * hash) + QUICK_REPLIES_FIELD_NUMBER;
          hash = (53 * hash) + getQuickReplies().hashCode();
          break;
        case 4:
          hash = (37 * hash) + CARD_FIELD_NUMBER;
          hash = (53 * hash) + getCard().hashCode();
          break;
        case 5:
          hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
          hash = (53 * hash) + getPayload().hashCode();
          break;
        case 7:
          hash = (37 * hash) + SIMPLE_RESPONSES_FIELD_NUMBER;
          hash = (53 * hash) + getSimpleResponses().hashCode();
          break;
        case 8:
          hash = (37 * hash) + BASIC_CARD_FIELD_NUMBER;
          hash = (53 * hash) + getBasicCard().hashCode();
          break;
        case 9:
          hash = (37 * hash) + SUGGESTIONS_FIELD_NUMBER;
          hash = (53 * hash) + getSuggestions().hashCode();
          break;
        case 10:
          hash = (37 * hash) + LINK_OUT_SUGGESTION_FIELD_NUMBER;
          hash = (53 * hash) + getLinkOutSuggestion().hashCode();
          break;
        case 11:
          hash = (37 * hash) + LIST_SELECT_FIELD_NUMBER;
          hash = (53 * hash) + getListSelect().hashCode();
          break;
        case 12:
          hash = (37 * hash) + CAROUSEL_SELECT_FIELD_NUMBER;
          hash = (53 * hash) + getCarouselSelect().hashCode();
          break;
        case 13:
          hash = (37 * hash) + TELEPHONY_PLAY_AUDIO_FIELD_NUMBER;
          hash = (53 * hash) + getTelephonyPlayAudio().hashCode();
          break;
        case 14:
          hash = (37 * hash) + TELEPHONY_SYNTHESIZE_SPEECH_FIELD_NUMBER;
          hash = (53 * hash) + getTelephonySynthesizeSpeech().hashCode();
          break;
        case 15:
          hash = (37 * hash) + TELEPHONY_TRANSFER_CALL_FIELD_NUMBER;
          hash = (53 * hash) + getTelephonyTransferCall().hashCode();
          break;
        case 18:
          hash = (37 * hash) + RBM_TEXT_FIELD_NUMBER;
          hash = (53 * hash) + getRbmText().hashCode();
          break;
        case 19:
          hash = (37 * hash) + RBM_STANDALONE_RICH_CARD_FIELD_NUMBER;
          hash = (53 * hash) + getRbmStandaloneRichCard().hashCode();
          break;
        case 20:
          hash = (37 * hash) + RBM_CAROUSEL_RICH_CARD_FIELD_NUMBER;
          hash = (53 * hash) + getRbmCarouselRichCard().hashCode();
          break;
        case 22:
          hash = (37 * hash) + BROWSE_CAROUSEL_CARD_FIELD_NUMBER;
          hash = (53 * hash) + getBrowseCarouselCard().hashCode();
          break;
        case 23:
          hash = (37 * hash) + TABLE_CARD_FIELD_NUMBER;
          hash = (53 * hash) + getTableCard().hashCode();
          break;
        case 24:
          hash = (37 * hash) + MEDIA_CONTENT_FIELD_NUMBER;
          hash = (53 * hash) + getMediaContent().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

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

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

    public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Intent.Message 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>
     * Corresponds to the `Response` field in the Dialogflow console.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message)
        com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.Message.class,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder.class);
      }

      // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        if (textBuilder_ != null) {
          textBuilder_.clear();
        }
        if (imageBuilder_ != null) {
          imageBuilder_.clear();
        }
        if (quickRepliesBuilder_ != null) {
          quickRepliesBuilder_.clear();
        }
        if (cardBuilder_ != null) {
          cardBuilder_.clear();
        }
        if (payloadBuilder_ != null) {
          payloadBuilder_.clear();
        }
        if (simpleResponsesBuilder_ != null) {
          simpleResponsesBuilder_.clear();
        }
        if (basicCardBuilder_ != null) {
          basicCardBuilder_.clear();
        }
        if (suggestionsBuilder_ != null) {
          suggestionsBuilder_.clear();
        }
        if (linkOutSuggestionBuilder_ != null) {
          linkOutSuggestionBuilder_.clear();
        }
        if (listSelectBuilder_ != null) {
          listSelectBuilder_.clear();
        }
        if (carouselSelectBuilder_ != null) {
          carouselSelectBuilder_.clear();
        }
        if (telephonyPlayAudioBuilder_ != null) {
          telephonyPlayAudioBuilder_.clear();
        }
        if (telephonySynthesizeSpeechBuilder_ != null) {
          telephonySynthesizeSpeechBuilder_.clear();
        }
        if (telephonyTransferCallBuilder_ != null) {
          telephonyTransferCallBuilder_.clear();
        }
        if (rbmTextBuilder_ != null) {
          rbmTextBuilder_.clear();
        }
        if (rbmStandaloneRichCardBuilder_ != null) {
          rbmStandaloneRichCardBuilder_.clear();
        }
        if (rbmCarouselRichCardBuilder_ != null) {
          rbmCarouselRichCardBuilder_.clear();
        }
        if (browseCarouselCardBuilder_ != null) {
          browseCarouselCardBuilder_.clear();
        }
        if (tableCardBuilder_ != null) {
          tableCardBuilder_.clear();
        }
        if (mediaContentBuilder_ != null) {
          mediaContentBuilder_.clear();
        }
        platform_ = 0;
        messageCase_ = 0;
        message_ = null;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message getDefaultInstanceForType() {
        return com.google.cloud.dialogflow.v2beta1.Intent.Message.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message build() {
        com.google.cloud.dialogflow.v2beta1.Intent.Message result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message buildPartial() {
        com.google.cloud.dialogflow.v2beta1.Intent.Message result =
            new com.google.cloud.dialogflow.v2beta1.Intent.Message(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        buildPartialOneofs(result);
        onBuilt();
        return result;
      }

      private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Intent.Message result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00100000) != 0)) {
          result.platform_ = platform_;
        }
      }

      private void buildPartialOneofs(com.google.cloud.dialogflow.v2beta1.Intent.Message result) {
        result.messageCase_ = messageCase_;
        result.message_ = this.message_;
        if (messageCase_ == 1 && textBuilder_ != null) {
          result.message_ = textBuilder_.build();
        }
        if (messageCase_ == 2 && imageBuilder_ != null) {
          result.message_ = imageBuilder_.build();
        }
        if (messageCase_ == 3 && quickRepliesBuilder_ != null) {
          result.message_ = quickRepliesBuilder_.build();
        }
        if (messageCase_ == 4 && cardBuilder_ != null) {
          result.message_ = cardBuilder_.build();
        }
        if (messageCase_ == 5 && payloadBuilder_ != null) {
          result.message_ = payloadBuilder_.build();
        }
        if (messageCase_ == 7 && simpleResponsesBuilder_ != null) {
          result.message_ = simpleResponsesBuilder_.build();
        }
        if (messageCase_ == 8 && basicCardBuilder_ != null) {
          result.message_ = basicCardBuilder_.build();
        }
        if (messageCase_ == 9 && suggestionsBuilder_ != null) {
          result.message_ = suggestionsBuilder_.build();
        }
        if (messageCase_ == 10 && linkOutSuggestionBuilder_ != null) {
          result.message_ = linkOutSuggestionBuilder_.build();
        }
        if (messageCase_ == 11 && listSelectBuilder_ != null) {
          result.message_ = listSelectBuilder_.build();
        }
        if (messageCase_ == 12 && carouselSelectBuilder_ != null) {
          result.message_ = carouselSelectBuilder_.build();
        }
        if (messageCase_ == 13 && telephonyPlayAudioBuilder_ != null) {
          result.message_ = telephonyPlayAudioBuilder_.build();
        }
        if (messageCase_ == 14 && telephonySynthesizeSpeechBuilder_ != null) {
          result.message_ = telephonySynthesizeSpeechBuilder_.build();
        }
        if (messageCase_ == 15 && telephonyTransferCallBuilder_ != null) {
          result.message_ = telephonyTransferCallBuilder_.build();
        }
        if (messageCase_ == 18 && rbmTextBuilder_ != null) {
          result.message_ = rbmTextBuilder_.build();
        }
        if (messageCase_ == 19 && rbmStandaloneRichCardBuilder_ != null) {
          result.message_ = rbmStandaloneRichCardBuilder_.build();
        }
        if (messageCase_ == 20 && rbmCarouselRichCardBuilder_ != null) {
          result.message_ = rbmCarouselRichCardBuilder_.build();
        }
        if (messageCase_ == 22 && browseCarouselCardBuilder_ != null) {
          result.message_ = browseCarouselCardBuilder_.build();
        }
        if (messageCase_ == 23 && tableCardBuilder_ != null) {
          result.message_ = tableCardBuilder_.build();
        }
        if (messageCase_ == 24 && mediaContentBuilder_ != null) {
          result.message_ = mediaContentBuilder_.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.cloud.dialogflow.v2beta1.Intent.Message) {
          return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message other) {
        if (other == com.google.cloud.dialogflow.v2beta1.Intent.Message.getDefaultInstance())
          return this;
        if (other.platform_ != 0) {
          setPlatformValue(other.getPlatformValue());
        }
        switch (other.getMessageCase()) {
          case TEXT:
            {
              mergeText(other.getText());
              break;
            }
          case IMAGE:
            {
              mergeImage(other.getImage());
              break;
            }
          case QUICK_REPLIES:
            {
              mergeQuickReplies(other.getQuickReplies());
              break;
            }
          case CARD:
            {
              mergeCard(other.getCard());
              break;
            }
          case PAYLOAD:
            {
              mergePayload(other.getPayload());
              break;
            }
          case SIMPLE_RESPONSES:
            {
              mergeSimpleResponses(other.getSimpleResponses());
              break;
            }
          case BASIC_CARD:
            {
              mergeBasicCard(other.getBasicCard());
              break;
            }
          case SUGGESTIONS:
            {
              mergeSuggestions(other.getSuggestions());
              break;
            }
          case LINK_OUT_SUGGESTION:
            {
              mergeLinkOutSuggestion(other.getLinkOutSuggestion());
              break;
            }
          case LIST_SELECT:
            {
              mergeListSelect(other.getListSelect());
              break;
            }
          case CAROUSEL_SELECT:
            {
              mergeCarouselSelect(other.getCarouselSelect());
              break;
            }
          case TELEPHONY_PLAY_AUDIO:
            {
              mergeTelephonyPlayAudio(other.getTelephonyPlayAudio());
              break;
            }
          case TELEPHONY_SYNTHESIZE_SPEECH:
            {
              mergeTelephonySynthesizeSpeech(other.getTelephonySynthesizeSpeech());
              break;
            }
          case TELEPHONY_TRANSFER_CALL:
            {
              mergeTelephonyTransferCall(other.getTelephonyTransferCall());
              break;
            }
          case RBM_TEXT:
            {
              mergeRbmText(other.getRbmText());
              break;
            }
          case RBM_STANDALONE_RICH_CARD:
            {
              mergeRbmStandaloneRichCard(other.getRbmStandaloneRichCard());
              break;
            }
          case RBM_CAROUSEL_RICH_CARD:
            {
              mergeRbmCarouselRichCard(other.getRbmCarouselRichCard());
              break;
            }
          case BROWSE_CAROUSEL_CARD:
            {
              mergeBrowseCarouselCard(other.getBrowseCarouselCard());
              break;
            }
          case TABLE_CARD:
            {
              mergeTableCard(other.getTableCard());
              break;
            }
          case MEDIA_CONTENT:
            {
              mergeMediaContent(other.getMediaContent());
              break;
            }
          case MESSAGE_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:
                {
                  input.readMessage(getTextFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 1;
                  break;
                } // case 10
              case 18:
                {
                  input.readMessage(getImageFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 2;
                  break;
                } // case 18
              case 26:
                {
                  input.readMessage(getQuickRepliesFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 3;
                  break;
                } // case 26
              case 34:
                {
                  input.readMessage(getCardFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 4;
                  break;
                } // case 34
              case 42:
                {
                  input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 5;
                  break;
                } // case 42
              case 48:
                {
                  platform_ = input.readEnum();
                  bitField0_ |= 0x00100000;
                  break;
                } // case 48
              case 58:
                {
                  input.readMessage(
                      getSimpleResponsesFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 7;
                  break;
                } // case 58
              case 66:
                {
                  input.readMessage(getBasicCardFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 8;
                  break;
                } // case 66
              case 74:
                {
                  input.readMessage(getSuggestionsFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 9;
                  break;
                } // case 74
              case 82:
                {
                  input.readMessage(
                      getLinkOutSuggestionFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 10;
                  break;
                } // case 82
              case 90:
                {
                  input.readMessage(getListSelectFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 11;
                  break;
                } // case 90
              case 98:
                {
                  input.readMessage(
                      getCarouselSelectFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 12;
                  break;
                } // case 98
              case 106:
                {
                  input.readMessage(
                      getTelephonyPlayAudioFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 13;
                  break;
                } // case 106
              case 114:
                {
                  input.readMessage(
                      getTelephonySynthesizeSpeechFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 14;
                  break;
                } // case 114
              case 122:
                {
                  input.readMessage(
                      getTelephonyTransferCallFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 15;
                  break;
                } // case 122
              case 146:
                {
                  input.readMessage(getRbmTextFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 18;
                  break;
                } // case 146
              case 154:
                {
                  input.readMessage(
                      getRbmStandaloneRichCardFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 19;
                  break;
                } // case 154
              case 162:
                {
                  input.readMessage(
                      getRbmCarouselRichCardFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 20;
                  break;
                } // case 162
              case 178:
                {
                  input.readMessage(
                      getBrowseCarouselCardFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 22;
                  break;
                } // case 178
              case 186:
                {
                  input.readMessage(getTableCardFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 23;
                  break;
                } // case 186
              case 194:
                {
                  input.readMessage(getMediaContentFieldBuilder().getBuilder(), extensionRegistry);
                  messageCase_ = 24;
                  break;
                } // case 194
              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 messageCase_ = 0;
      private java.lang.Object message_;

      public MessageCase getMessageCase() {
        return MessageCase.forNumber(messageCase_);
      }

      public Builder clearMessage() {
        messageCase_ = 0;
        message_ = null;
        onChanged();
        return this;
      }

      private int bitField0_;

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Text,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder>
          textBuilder_;
      /**
       *
       *
       * <pre>
       * Returns a text response.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
       *
       * @return Whether the text field is set.
       */
      @java.lang.Override
      public boolean hasText() {
        return messageCase_ == 1;
      }
      /**
       *
       *
       * <pre>
       * Returns a text response.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
       *
       * @return The text.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() {
        if (textBuilder_ == null) {
          if (messageCase_ == 1) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
        } else {
          if (messageCase_ == 1) {
            return textBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Returns a text response.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
       */
      public Builder setText(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text value) {
        if (textBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          textBuilder_.setMessage(value);
        }
        messageCase_ = 1;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Returns a text response.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
       */
      public Builder setText(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder builderForValue) {
        if (textBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          textBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 1;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Returns a text response.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
       */
      public Builder mergeText(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text value) {
        if (textBuilder_ == null) {
          if (messageCase_ == 1
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 1) {
            textBuilder_.mergeFrom(value);
          } else {
            textBuilder_.setMessage(value);
          }
        }
        messageCase_ = 1;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Returns a text response.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
       */
      public Builder clearText() {
        if (textBuilder_ == null) {
          if (messageCase_ == 1) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 1) {
            messageCase_ = 0;
            message_ = null;
          }
          textBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Returns a text response.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder getTextBuilder() {
        return getTextFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Returns a text response.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() {
        if ((messageCase_ == 1) && (textBuilder_ != null)) {
          return textBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 1) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Returns a text response.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Text,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder>
          getTextFieldBuilder() {
        if (textBuilder_ == null) {
          if (!(messageCase_ == 1)) {
            message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance();
          }
          textBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Text,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 1;
        onChanged();
        return textBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
          imageBuilder_;
      /**
       *
       *
       * <pre>
       * Displays an image.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
       *
       * @return Whether the image field is set.
       */
      @java.lang.Override
      public boolean hasImage() {
        return messageCase_ == 2;
      }
      /**
       *
       *
       * <pre>
       * Displays an image.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
       *
       * @return The image.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() {
        if (imageBuilder_ == null) {
          if (messageCase_ == 2) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
        } else {
          if (messageCase_ == 2) {
            return imageBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays an image.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
       */
      public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
        if (imageBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          imageBuilder_.setMessage(value);
        }
        messageCase_ = 2;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays an image.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
       */
      public Builder setImage(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) {
        if (imageBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          imageBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 2;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays an image.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
       */
      public Builder mergeImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) {
        if (imageBuilder_ == null) {
          if (messageCase_ == 2
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 2) {
            imageBuilder_.mergeFrom(value);
          } else {
            imageBuilder_.setMessage(value);
          }
        }
        messageCase_ = 2;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays an image.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
       */
      public Builder clearImage() {
        if (imageBuilder_ == null) {
          if (messageCase_ == 2) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 2) {
            messageCase_ = 0;
            message_ = null;
          }
          imageBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays an image.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder getImageBuilder() {
        return getImageFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Displays an image.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() {
        if ((messageCase_ == 2) && (imageBuilder_ != null)) {
          return imageBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 2) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays an image.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>
          getImageFieldBuilder() {
        if (imageBuilder_ == null) {
          if (!(messageCase_ == 2)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance();
          }
          imageBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 2;
        onChanged();
        return imageBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder>
          quickRepliesBuilder_;
      /**
       *
       *
       * <pre>
       * Displays quick replies.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
       * </code>
       *
       * @return Whether the quickReplies field is set.
       */
      @java.lang.Override
      public boolean hasQuickReplies() {
        return messageCase_ == 3;
      }
      /**
       *
       *
       * <pre>
       * Displays quick replies.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
       * </code>
       *
       * @return The quickReplies.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() {
        if (quickRepliesBuilder_ == null) {
          if (messageCase_ == 3) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
              .getDefaultInstance();
        } else {
          if (messageCase_ == 3) {
            return quickRepliesBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays quick replies.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
       * </code>
       */
      public Builder setQuickReplies(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies value) {
        if (quickRepliesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          quickRepliesBuilder_.setMessage(value);
        }
        messageCase_ = 3;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays quick replies.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
       * </code>
       */
      public Builder setQuickReplies(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder builderForValue) {
        if (quickRepliesBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          quickRepliesBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 3;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays quick replies.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
       * </code>
       */
      public Builder mergeQuickReplies(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies value) {
        if (quickRepliesBuilder_ == null) {
          if (messageCase_ == 3
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 3) {
            quickRepliesBuilder_.mergeFrom(value);
          } else {
            quickRepliesBuilder_.setMessage(value);
          }
        }
        messageCase_ = 3;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays quick replies.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
       * </code>
       */
      public Builder clearQuickReplies() {
        if (quickRepliesBuilder_ == null) {
          if (messageCase_ == 3) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 3) {
            messageCase_ = 0;
            message_ = null;
          }
          quickRepliesBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays quick replies.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder
          getQuickRepliesBuilder() {
        return getQuickRepliesFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Displays quick replies.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder
          getQuickRepliesOrBuilder() {
        if ((messageCase_ == 3) && (quickRepliesBuilder_ != null)) {
          return quickRepliesBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 3) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays quick replies.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder>
          getQuickRepliesFieldBuilder() {
        if (quickRepliesBuilder_ == null) {
          if (!(messageCase_ == 3)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies
                    .getDefaultInstance();
          }
          quickRepliesBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 3;
        onChanged();
        return quickRepliesBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Card,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder>
          cardBuilder_;
      /**
       *
       *
       * <pre>
       * Displays a card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
       *
       * @return Whether the card field is set.
       */
      @java.lang.Override
      public boolean hasCard() {
        return messageCase_ == 4;
      }
      /**
       *
       *
       * <pre>
       * Displays a card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
       *
       * @return The card.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() {
        if (cardBuilder_ == null) {
          if (messageCase_ == 4) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
        } else {
          if (messageCase_ == 4) {
            return cardBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays a card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
       */
      public Builder setCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card value) {
        if (cardBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          cardBuilder_.setMessage(value);
        }
        messageCase_ = 4;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
       */
      public Builder setCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder builderForValue) {
        if (cardBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          cardBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 4;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
       */
      public Builder mergeCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card value) {
        if (cardBuilder_ == null) {
          if (messageCase_ == 4
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 4) {
            cardBuilder_.mergeFrom(value);
          } else {
            cardBuilder_.setMessage(value);
          }
        }
        messageCase_ = 4;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
       */
      public Builder clearCard() {
        if (cardBuilder_ == null) {
          if (messageCase_ == 4) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 4) {
            messageCase_ = 0;
            message_ = null;
          }
          cardBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder getCardBuilder() {
        return getCardFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Displays a card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() {
        if ((messageCase_ == 4) && (cardBuilder_ != null)) {
          return cardBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 4) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays a card.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Card,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder>
          getCardFieldBuilder() {
        if (cardBuilder_ == null) {
          if (!(messageCase_ == 4)) {
            message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance();
          }
          cardBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Card,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 4;
        onChanged();
        return cardBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Struct,
              com.google.protobuf.Struct.Builder,
              com.google.protobuf.StructOrBuilder>
          payloadBuilder_;
      /**
       *
       *
       * <pre>
       * A custom platform-specific response.
       * </pre>
       *
       * <code>.google.protobuf.Struct payload = 5;</code>
       *
       * @return Whether the payload field is set.
       */
      @java.lang.Override
      public boolean hasPayload() {
        return messageCase_ == 5;
      }
      /**
       *
       *
       * <pre>
       * A custom platform-specific response.
       * </pre>
       *
       * <code>.google.protobuf.Struct payload = 5;</code>
       *
       * @return The payload.
       */
      @java.lang.Override
      public com.google.protobuf.Struct getPayload() {
        if (payloadBuilder_ == null) {
          if (messageCase_ == 5) {
            return (com.google.protobuf.Struct) message_;
          }
          return com.google.protobuf.Struct.getDefaultInstance();
        } else {
          if (messageCase_ == 5) {
            return payloadBuilder_.getMessage();
          }
          return com.google.protobuf.Struct.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * A custom platform-specific response.
       * </pre>
       *
       * <code>.google.protobuf.Struct payload = 5;</code>
       */
      public Builder setPayload(com.google.protobuf.Struct value) {
        if (payloadBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          payloadBuilder_.setMessage(value);
        }
        messageCase_ = 5;
        return this;
      }
      /**
       *
       *
       * <pre>
       * A custom platform-specific response.
       * </pre>
       *
       * <code>.google.protobuf.Struct payload = 5;</code>
       */
      public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) {
        if (payloadBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          payloadBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 5;
        return this;
      }
      /**
       *
       *
       * <pre>
       * A custom platform-specific response.
       * </pre>
       *
       * <code>.google.protobuf.Struct payload = 5;</code>
       */
      public Builder mergePayload(com.google.protobuf.Struct value) {
        if (payloadBuilder_ == null) {
          if (messageCase_ == 5 && message_ != com.google.protobuf.Struct.getDefaultInstance()) {
            message_ =
                com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 5) {
            payloadBuilder_.mergeFrom(value);
          } else {
            payloadBuilder_.setMessage(value);
          }
        }
        messageCase_ = 5;
        return this;
      }
      /**
       *
       *
       * <pre>
       * A custom platform-specific response.
       * </pre>
       *
       * <code>.google.protobuf.Struct payload = 5;</code>
       */
      public Builder clearPayload() {
        if (payloadBuilder_ == null) {
          if (messageCase_ == 5) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 5) {
            messageCase_ = 0;
            message_ = null;
          }
          payloadBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A custom platform-specific response.
       * </pre>
       *
       * <code>.google.protobuf.Struct payload = 5;</code>
       */
      public com.google.protobuf.Struct.Builder getPayloadBuilder() {
        return getPayloadFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * A custom platform-specific response.
       * </pre>
       *
       * <code>.google.protobuf.Struct payload = 5;</code>
       */
      @java.lang.Override
      public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
        if ((messageCase_ == 5) && (payloadBuilder_ != null)) {
          return payloadBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 5) {
            return (com.google.protobuf.Struct) message_;
          }
          return com.google.protobuf.Struct.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * A custom platform-specific response.
       * </pre>
       *
       * <code>.google.protobuf.Struct payload = 5;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Struct,
              com.google.protobuf.Struct.Builder,
              com.google.protobuf.StructOrBuilder>
          getPayloadFieldBuilder() {
        if (payloadBuilder_ == null) {
          if (!(messageCase_ == 5)) {
            message_ = com.google.protobuf.Struct.getDefaultInstance();
          }
          payloadBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Struct,
                  com.google.protobuf.Struct.Builder,
                  com.google.protobuf.StructOrBuilder>(
                  (com.google.protobuf.Struct) message_, getParentForChildren(), isClean());
          message_ = null;
        }
        messageCase_ = 5;
        onChanged();
        return payloadBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder>
          simpleResponsesBuilder_;
      /**
       *
       *
       * <pre>
       * Returns a voice or text-only response for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
       * </code>
       *
       * @return Whether the simpleResponses field is set.
       */
      @java.lang.Override
      public boolean hasSimpleResponses() {
        return messageCase_ == 7;
      }
      /**
       *
       *
       * <pre>
       * Returns a voice or text-only response for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
       * </code>
       *
       * @return The simpleResponses.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
          getSimpleResponses() {
        if (simpleResponsesBuilder_ == null) {
          if (messageCase_ == 7) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
              .getDefaultInstance();
        } else {
          if (messageCase_ == 7) {
            return simpleResponsesBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Returns a voice or text-only response for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
       * </code>
       */
      public Builder setSimpleResponses(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses value) {
        if (simpleResponsesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          simpleResponsesBuilder_.setMessage(value);
        }
        messageCase_ = 7;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Returns a voice or text-only response for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
       * </code>
       */
      public Builder setSimpleResponses(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder
              builderForValue) {
        if (simpleResponsesBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          simpleResponsesBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 7;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Returns a voice or text-only response for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
       * </code>
       */
      public Builder mergeSimpleResponses(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses value) {
        if (simpleResponsesBuilder_ == null) {
          if (messageCase_ == 7
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses)
                            message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 7) {
            simpleResponsesBuilder_.mergeFrom(value);
          } else {
            simpleResponsesBuilder_.setMessage(value);
          }
        }
        messageCase_ = 7;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Returns a voice or text-only response for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
       * </code>
       */
      public Builder clearSimpleResponses() {
        if (simpleResponsesBuilder_ == null) {
          if (messageCase_ == 7) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 7) {
            messageCase_ = 0;
            message_ = null;
          }
          simpleResponsesBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Returns a voice or text-only response for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder
          getSimpleResponsesBuilder() {
        return getSimpleResponsesFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Returns a voice or text-only response for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder
          getSimpleResponsesOrBuilder() {
        if ((messageCase_ == 7) && (simpleResponsesBuilder_ != null)) {
          return simpleResponsesBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 7) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Returns a voice or text-only response for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder>
          getSimpleResponsesFieldBuilder() {
        if (simpleResponsesBuilder_ == null) {
          if (!(messageCase_ == 7)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses
                    .getDefaultInstance();
          }
          simpleResponsesBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 7;
        onChanged();
        return simpleResponsesBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder>
          basicCardBuilder_;
      /**
       *
       *
       * <pre>
       * Displays a basic card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
       *
       * @return Whether the basicCard field is set.
       */
      @java.lang.Override
      public boolean hasBasicCard() {
        return messageCase_ == 8;
      }
      /**
       *
       *
       * <pre>
       * Displays a basic card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
       *
       * @return The basicCard.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard getBasicCard() {
        if (basicCardBuilder_ == null) {
          if (messageCase_ == 8) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
        } else {
          if (messageCase_ == 8) {
            return basicCardBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays a basic card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
       */
      public Builder setBasicCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard value) {
        if (basicCardBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          basicCardBuilder_.setMessage(value);
        }
        messageCase_ = 8;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a basic card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
       */
      public Builder setBasicCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder builderForValue) {
        if (basicCardBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          basicCardBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 8;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a basic card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
       */
      public Builder mergeBasicCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard value) {
        if (basicCardBuilder_ == null) {
          if (messageCase_ == 8
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 8) {
            basicCardBuilder_.mergeFrom(value);
          } else {
            basicCardBuilder_.setMessage(value);
          }
        }
        messageCase_ = 8;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a basic card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
       */
      public Builder clearBasicCard() {
        if (basicCardBuilder_ == null) {
          if (messageCase_ == 8) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 8) {
            messageCase_ = 0;
            message_ = null;
          }
          basicCardBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a basic card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder
          getBasicCardBuilder() {
        return getBasicCardFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Displays a basic card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder
          getBasicCardOrBuilder() {
        if ((messageCase_ == 8) && (basicCardBuilder_ != null)) {
          return basicCardBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 8) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays a basic card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder>
          getBasicCardFieldBuilder() {
        if (basicCardBuilder_ == null) {
          if (!(messageCase_ == 8)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance();
          }
          basicCardBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 8;
        onChanged();
        return basicCardBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder>
          suggestionsBuilder_;
      /**
       *
       *
       * <pre>
       * Displays suggestion chips for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
       *
       * @return Whether the suggestions field is set.
       */
      @java.lang.Override
      public boolean hasSuggestions() {
        return messageCase_ == 9;
      }
      /**
       *
       *
       * <pre>
       * Displays suggestion chips for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
       *
       * @return The suggestions.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggestions() {
        if (suggestionsBuilder_ == null) {
          if (messageCase_ == 9) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
              .getDefaultInstance();
        } else {
          if (messageCase_ == 9) {
            return suggestionsBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays suggestion chips for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
       */
      public Builder setSuggestions(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions value) {
        if (suggestionsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          suggestionsBuilder_.setMessage(value);
        }
        messageCase_ = 9;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays suggestion chips for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
       */
      public Builder setSuggestions(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder builderForValue) {
        if (suggestionsBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          suggestionsBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 9;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays suggestion chips for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
       */
      public Builder mergeSuggestions(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions value) {
        if (suggestionsBuilder_ == null) {
          if (messageCase_ == 9
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 9) {
            suggestionsBuilder_.mergeFrom(value);
          } else {
            suggestionsBuilder_.setMessage(value);
          }
        }
        messageCase_ = 9;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays suggestion chips for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
       */
      public Builder clearSuggestions() {
        if (suggestionsBuilder_ == null) {
          if (messageCase_ == 9) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 9) {
            messageCase_ = 0;
            message_ = null;
          }
          suggestionsBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays suggestion chips for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder
          getSuggestionsBuilder() {
        return getSuggestionsFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Displays suggestion chips for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder
          getSuggestionsOrBuilder() {
        if ((messageCase_ == 9) && (suggestionsBuilder_ != null)) {
          return suggestionsBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 9) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays suggestion chips for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder>
          getSuggestionsFieldBuilder() {
        if (suggestionsBuilder_ == null) {
          if (!(messageCase_ == 9)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance();
          }
          suggestionsBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 9;
        onChanged();
        return suggestionsBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder>
          linkOutSuggestionBuilder_;
      /**
       *
       *
       * <pre>
       * Displays a link out suggestion chip for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
       * </code>
       *
       * @return Whether the linkOutSuggestion field is set.
       */
      @java.lang.Override
      public boolean hasLinkOutSuggestion() {
        return messageCase_ == 10;
      }
      /**
       *
       *
       * <pre>
       * Displays a link out suggestion chip for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
       * </code>
       *
       * @return The linkOutSuggestion.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
          getLinkOutSuggestion() {
        if (linkOutSuggestionBuilder_ == null) {
          if (messageCase_ == 10) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
              .getDefaultInstance();
        } else {
          if (messageCase_ == 10) {
            return linkOutSuggestionBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays a link out suggestion chip for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
       * </code>
       */
      public Builder setLinkOutSuggestion(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion value) {
        if (linkOutSuggestionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          linkOutSuggestionBuilder_.setMessage(value);
        }
        messageCase_ = 10;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a link out suggestion chip for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
       * </code>
       */
      public Builder setLinkOutSuggestion(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder
              builderForValue) {
        if (linkOutSuggestionBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          linkOutSuggestionBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 10;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a link out suggestion chip for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
       * </code>
       */
      public Builder mergeLinkOutSuggestion(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion value) {
        if (linkOutSuggestionBuilder_ == null) {
          if (messageCase_ == 10
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion)
                            message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 10) {
            linkOutSuggestionBuilder_.mergeFrom(value);
          } else {
            linkOutSuggestionBuilder_.setMessage(value);
          }
        }
        messageCase_ = 10;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a link out suggestion chip for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
       * </code>
       */
      public Builder clearLinkOutSuggestion() {
        if (linkOutSuggestionBuilder_ == null) {
          if (messageCase_ == 10) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 10) {
            messageCase_ = 0;
            message_ = null;
          }
          linkOutSuggestionBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a link out suggestion chip for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder
          getLinkOutSuggestionBuilder() {
        return getLinkOutSuggestionFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Displays a link out suggestion chip for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder
          getLinkOutSuggestionOrBuilder() {
        if ((messageCase_ == 10) && (linkOutSuggestionBuilder_ != null)) {
          return linkOutSuggestionBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 10) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays a link out suggestion chip for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder>
          getLinkOutSuggestionFieldBuilder() {
        if (linkOutSuggestionBuilder_ == null) {
          if (!(messageCase_ == 10)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion
                    .getDefaultInstance();
          }
          linkOutSuggestionBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 10;
        onChanged();
        return linkOutSuggestionBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder>
          listSelectBuilder_;
      /**
       *
       *
       * <pre>
       * Displays a list card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
       *
       * @return Whether the listSelect field is set.
       */
      @java.lang.Override
      public boolean hasListSelect() {
        return messageCase_ == 11;
      }
      /**
       *
       *
       * <pre>
       * Displays a list card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
       *
       * @return The listSelect.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect getListSelect() {
        if (listSelectBuilder_ == null) {
          if (messageCase_ == 11) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
        } else {
          if (messageCase_ == 11) {
            return listSelectBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays a list card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
       */
      public Builder setListSelect(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect value) {
        if (listSelectBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          listSelectBuilder_.setMessage(value);
        }
        messageCase_ = 11;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a list card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
       */
      public Builder setListSelect(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder builderForValue) {
        if (listSelectBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          listSelectBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 11;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a list card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
       */
      public Builder mergeListSelect(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect value) {
        if (listSelectBuilder_ == null) {
          if (messageCase_ == 11
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 11) {
            listSelectBuilder_.mergeFrom(value);
          } else {
            listSelectBuilder_.setMessage(value);
          }
        }
        messageCase_ = 11;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a list card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
       */
      public Builder clearListSelect() {
        if (listSelectBuilder_ == null) {
          if (messageCase_ == 11) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 11) {
            messageCase_ = 0;
            message_ = null;
          }
          listSelectBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a list card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder
          getListSelectBuilder() {
        return getListSelectFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Displays a list card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder
          getListSelectOrBuilder() {
        if ((messageCase_ == 11) && (listSelectBuilder_ != null)) {
          return listSelectBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 11) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays a list card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder>
          getListSelectFieldBuilder() {
        if (listSelectBuilder_ == null) {
          if (!(messageCase_ == 11)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance();
          }
          listSelectBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 11;
        onChanged();
        return listSelectBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder>
          carouselSelectBuilder_;
      /**
       *
       *
       * <pre>
       * Displays a carousel card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
       * </code>
       *
       * @return Whether the carouselSelect field is set.
       */
      @java.lang.Override
      public boolean hasCarouselSelect() {
        return messageCase_ == 12;
      }
      /**
       *
       *
       * <pre>
       * Displays a carousel card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
       * </code>
       *
       * @return The carouselSelect.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCarouselSelect() {
        if (carouselSelectBuilder_ == null) {
          if (messageCase_ == 12) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
              .getDefaultInstance();
        } else {
          if (messageCase_ == 12) {
            return carouselSelectBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays a carousel card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
       * </code>
       */
      public Builder setCarouselSelect(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect value) {
        if (carouselSelectBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          carouselSelectBuilder_.setMessage(value);
        }
        messageCase_ = 12;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a carousel card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
       * </code>
       */
      public Builder setCarouselSelect(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder
              builderForValue) {
        if (carouselSelectBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          carouselSelectBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 12;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a carousel card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
       * </code>
       */
      public Builder mergeCarouselSelect(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect value) {
        if (carouselSelectBuilder_ == null) {
          if (messageCase_ == 12
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect)
                            message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 12) {
            carouselSelectBuilder_.mergeFrom(value);
          } else {
            carouselSelectBuilder_.setMessage(value);
          }
        }
        messageCase_ = 12;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a carousel card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
       * </code>
       */
      public Builder clearCarouselSelect() {
        if (carouselSelectBuilder_ == null) {
          if (messageCase_ == 12) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 12) {
            messageCase_ = 0;
            message_ = null;
          }
          carouselSelectBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Displays a carousel card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder
          getCarouselSelectBuilder() {
        return getCarouselSelectFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Displays a carousel card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder
          getCarouselSelectOrBuilder() {
        if ((messageCase_ == 12) && (carouselSelectBuilder_ != null)) {
          return carouselSelectBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 12) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Displays a carousel card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder>
          getCarouselSelectFieldBuilder() {
        if (carouselSelectBuilder_ == null) {
          if (!(messageCase_ == 12)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect
                    .getDefaultInstance();
          }
          carouselSelectBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 12;
        onChanged();
        return carouselSelectBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder>
          telephonyPlayAudioBuilder_;
      /**
       *
       *
       * <pre>
       * Plays audio from a file in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
       * </code>
       *
       * @return Whether the telephonyPlayAudio field is set.
       */
      @java.lang.Override
      public boolean hasTelephonyPlayAudio() {
        return messageCase_ == 13;
      }
      /**
       *
       *
       * <pre>
       * Plays audio from a file in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
       * </code>
       *
       * @return The telephonyPlayAudio.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
          getTelephonyPlayAudio() {
        if (telephonyPlayAudioBuilder_ == null) {
          if (messageCase_ == 13) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
              .getDefaultInstance();
        } else {
          if (messageCase_ == 13) {
            return telephonyPlayAudioBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Plays audio from a file in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
       * </code>
       */
      public Builder setTelephonyPlayAudio(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio value) {
        if (telephonyPlayAudioBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          telephonyPlayAudioBuilder_.setMessage(value);
        }
        messageCase_ = 13;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Plays audio from a file in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
       * </code>
       */
      public Builder setTelephonyPlayAudio(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder
              builderForValue) {
        if (telephonyPlayAudioBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          telephonyPlayAudioBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 13;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Plays audio from a file in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
       * </code>
       */
      public Builder mergeTelephonyPlayAudio(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio value) {
        if (telephonyPlayAudioBuilder_ == null) {
          if (messageCase_ == 13
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio)
                            message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 13) {
            telephonyPlayAudioBuilder_.mergeFrom(value);
          } else {
            telephonyPlayAudioBuilder_.setMessage(value);
          }
        }
        messageCase_ = 13;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Plays audio from a file in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
       * </code>
       */
      public Builder clearTelephonyPlayAudio() {
        if (telephonyPlayAudioBuilder_ == null) {
          if (messageCase_ == 13) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 13) {
            messageCase_ = 0;
            message_ = null;
          }
          telephonyPlayAudioBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Plays audio from a file in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder
          getTelephonyPlayAudioBuilder() {
        return getTelephonyPlayAudioFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Plays audio from a file in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder
          getTelephonyPlayAudioOrBuilder() {
        if ((messageCase_ == 13) && (telephonyPlayAudioBuilder_ != null)) {
          return telephonyPlayAudioBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 13) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Plays audio from a file in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder>
          getTelephonyPlayAudioFieldBuilder() {
        if (telephonyPlayAudioBuilder_ == null) {
          if (!(messageCase_ == 13)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio
                    .getDefaultInstance();
          }
          telephonyPlayAudioBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 13;
        onChanged();
        return telephonyPlayAudioBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder>
          telephonySynthesizeSpeechBuilder_;
      /**
       *
       *
       * <pre>
       * Synthesizes speech in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
       * </code>
       *
       * @return Whether the telephonySynthesizeSpeech field is set.
       */
      @java.lang.Override
      public boolean hasTelephonySynthesizeSpeech() {
        return messageCase_ == 14;
      }
      /**
       *
       *
       * <pre>
       * Synthesizes speech in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
       * </code>
       *
       * @return The telephonySynthesizeSpeech.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
          getTelephonySynthesizeSpeech() {
        if (telephonySynthesizeSpeechBuilder_ == null) {
          if (messageCase_ == 14) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
                message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
              .getDefaultInstance();
        } else {
          if (messageCase_ == 14) {
            return telephonySynthesizeSpeechBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Synthesizes speech in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
       * </code>
       */
      public Builder setTelephonySynthesizeSpeech(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech value) {
        if (telephonySynthesizeSpeechBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          telephonySynthesizeSpeechBuilder_.setMessage(value);
        }
        messageCase_ = 14;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Synthesizes speech in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
       * </code>
       */
      public Builder setTelephonySynthesizeSpeech(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder
              builderForValue) {
        if (telephonySynthesizeSpeechBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          telephonySynthesizeSpeechBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 14;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Synthesizes speech in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
       * </code>
       */
      public Builder mergeTelephonySynthesizeSpeech(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech value) {
        if (telephonySynthesizeSpeechBuilder_ == null) {
          if (messageCase_ == 14
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
                    .newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message
                                .TelephonySynthesizeSpeech)
                            message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 14) {
            telephonySynthesizeSpeechBuilder_.mergeFrom(value);
          } else {
            telephonySynthesizeSpeechBuilder_.setMessage(value);
          }
        }
        messageCase_ = 14;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Synthesizes speech in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
       * </code>
       */
      public Builder clearTelephonySynthesizeSpeech() {
        if (telephonySynthesizeSpeechBuilder_ == null) {
          if (messageCase_ == 14) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 14) {
            messageCase_ = 0;
            message_ = null;
          }
          telephonySynthesizeSpeechBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Synthesizes speech in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder
          getTelephonySynthesizeSpeechBuilder() {
        return getTelephonySynthesizeSpeechFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Synthesizes speech in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder
          getTelephonySynthesizeSpeechOrBuilder() {
        if ((messageCase_ == 14) && (telephonySynthesizeSpeechBuilder_ != null)) {
          return telephonySynthesizeSpeechBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 14) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
                message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Synthesizes speech in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder>
          getTelephonySynthesizeSpeechFieldBuilder() {
        if (telephonySynthesizeSpeechBuilder_ == null) {
          if (!(messageCase_ == 14)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
                    .getDefaultInstance();
          }
          telephonySynthesizeSpeechBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech
                      .Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message
                      .TelephonySynthesizeSpeechOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)
                      message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 14;
        onChanged();
        return telephonySynthesizeSpeechBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder>
          telephonyTransferCallBuilder_;
      /**
       *
       *
       * <pre>
       * Transfers the call in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
       * </code>
       *
       * @return Whether the telephonyTransferCall field is set.
       */
      @java.lang.Override
      public boolean hasTelephonyTransferCall() {
        return messageCase_ == 15;
      }
      /**
       *
       *
       * <pre>
       * Transfers the call in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
       * </code>
       *
       * @return The telephonyTransferCall.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
          getTelephonyTransferCall() {
        if (telephonyTransferCallBuilder_ == null) {
          if (messageCase_ == 15) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
                message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
              .getDefaultInstance();
        } else {
          if (messageCase_ == 15) {
            return telephonyTransferCallBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Transfers the call in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
       * </code>
       */
      public Builder setTelephonyTransferCall(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall value) {
        if (telephonyTransferCallBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          telephonyTransferCallBuilder_.setMessage(value);
        }
        messageCase_ = 15;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Transfers the call in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
       * </code>
       */
      public Builder setTelephonyTransferCall(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder
              builderForValue) {
        if (telephonyTransferCallBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          telephonyTransferCallBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 15;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Transfers the call in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
       * </code>
       */
      public Builder mergeTelephonyTransferCall(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall value) {
        if (telephonyTransferCallBuilder_ == null) {
          if (messageCase_ == 15
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
                            message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 15) {
            telephonyTransferCallBuilder_.mergeFrom(value);
          } else {
            telephonyTransferCallBuilder_.setMessage(value);
          }
        }
        messageCase_ = 15;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Transfers the call in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
       * </code>
       */
      public Builder clearTelephonyTransferCall() {
        if (telephonyTransferCallBuilder_ == null) {
          if (messageCase_ == 15) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 15) {
            messageCase_ = 0;
            message_ = null;
          }
          telephonyTransferCallBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Transfers the call in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder
          getTelephonyTransferCallBuilder() {
        return getTelephonyTransferCallFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Transfers the call in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder
          getTelephonyTransferCallOrBuilder() {
        if ((messageCase_ == 15) && (telephonyTransferCallBuilder_ != null)) {
          return telephonyTransferCallBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 15) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
                message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Transfers the call in Telephony Gateway.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder>
          getTelephonyTransferCallFieldBuilder() {
        if (telephonyTransferCallBuilder_ == null) {
          if (!(messageCase_ == 15)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall
                    .getDefaultInstance();
          }
          telephonyTransferCallBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message
                      .TelephonyTransferCallOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
                      message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 15;
        onChanged();
        return telephonyTransferCallBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder>
          rbmTextBuilder_;
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) text response.
       *
       * RBM allows businesses to send enriched and branded versions of SMS. See
       * https://jibe.google.com/business-messaging.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
       *
       * @return Whether the rbmText field is set.
       */
      @java.lang.Override
      public boolean hasRbmText() {
        return messageCase_ == 18;
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) text response.
       *
       * RBM allows businesses to send enriched and branded versions of SMS. See
       * https://jibe.google.com/business-messaging.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
       *
       * @return The rbmText.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText getRbmText() {
        if (rbmTextBuilder_ == null) {
          if (messageCase_ == 18) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
        } else {
          if (messageCase_ == 18) {
            return rbmTextBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) text response.
       *
       * RBM allows businesses to send enriched and branded versions of SMS. See
       * https://jibe.google.com/business-messaging.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
       */
      public Builder setRbmText(com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText value) {
        if (rbmTextBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          rbmTextBuilder_.setMessage(value);
        }
        messageCase_ = 18;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) text response.
       *
       * RBM allows businesses to send enriched and branded versions of SMS. See
       * https://jibe.google.com/business-messaging.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
       */
      public Builder setRbmText(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder builderForValue) {
        if (rbmTextBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          rbmTextBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 18;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) text response.
       *
       * RBM allows businesses to send enriched and branded versions of SMS. See
       * https://jibe.google.com/business-messaging.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
       */
      public Builder mergeRbmText(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText value) {
        if (rbmTextBuilder_ == null) {
          if (messageCase_ == 18
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 18) {
            rbmTextBuilder_.mergeFrom(value);
          } else {
            rbmTextBuilder_.setMessage(value);
          }
        }
        messageCase_ = 18;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) text response.
       *
       * RBM allows businesses to send enriched and branded versions of SMS. See
       * https://jibe.google.com/business-messaging.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
       */
      public Builder clearRbmText() {
        if (rbmTextBuilder_ == null) {
          if (messageCase_ == 18) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 18) {
            messageCase_ = 0;
            message_ = null;
          }
          rbmTextBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) text response.
       *
       * RBM allows businesses to send enriched and branded versions of SMS. See
       * https://jibe.google.com/business-messaging.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder
          getRbmTextBuilder() {
        return getRbmTextFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) text response.
       *
       * RBM allows businesses to send enriched and branded versions of SMS. See
       * https://jibe.google.com/business-messaging.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder
          getRbmTextOrBuilder() {
        if ((messageCase_ == 18) && (rbmTextBuilder_ != null)) {
          return rbmTextBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 18) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) text response.
       *
       * RBM allows businesses to send enriched and branded versions of SMS. See
       * https://jibe.google.com/business-messaging.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder>
          getRbmTextFieldBuilder() {
        if (rbmTextBuilder_ == null) {
          if (!(messageCase_ == 18)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.getDefaultInstance();
          }
          rbmTextBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmTextOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmText) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 18;
        onChanged();
        return rbmTextBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder>
          rbmStandaloneRichCardBuilder_;
      /**
       *
       *
       * <pre>
       * Standalone Rich Business Messaging (RBM) rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
       * </code>
       *
       * @return Whether the rbmStandaloneRichCard field is set.
       */
      @java.lang.Override
      public boolean hasRbmStandaloneRichCard() {
        return messageCase_ == 19;
      }
      /**
       *
       *
       * <pre>
       * Standalone Rich Business Messaging (RBM) rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
       * </code>
       *
       * @return The rbmStandaloneRichCard.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
          getRbmStandaloneRichCard() {
        if (rbmStandaloneRichCardBuilder_ == null) {
          if (messageCase_ == 19) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
              .getDefaultInstance();
        } else {
          if (messageCase_ == 19) {
            return rbmStandaloneRichCardBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Standalone Rich Business Messaging (RBM) rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
       * </code>
       */
      public Builder setRbmStandaloneRichCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard value) {
        if (rbmStandaloneRichCardBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          rbmStandaloneRichCardBuilder_.setMessage(value);
        }
        messageCase_ = 19;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Standalone Rich Business Messaging (RBM) rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
       * </code>
       */
      public Builder setRbmStandaloneRichCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder
              builderForValue) {
        if (rbmStandaloneRichCardBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          rbmStandaloneRichCardBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 19;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Standalone Rich Business Messaging (RBM) rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
       * </code>
       */
      public Builder mergeRbmStandaloneRichCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard value) {
        if (rbmStandaloneRichCardBuilder_ == null) {
          if (messageCase_ == 19
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard)
                            message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 19) {
            rbmStandaloneRichCardBuilder_.mergeFrom(value);
          } else {
            rbmStandaloneRichCardBuilder_.setMessage(value);
          }
        }
        messageCase_ = 19;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Standalone Rich Business Messaging (RBM) rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
       * </code>
       */
      public Builder clearRbmStandaloneRichCard() {
        if (rbmStandaloneRichCardBuilder_ == null) {
          if (messageCase_ == 19) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 19) {
            messageCase_ = 0;
            message_ = null;
          }
          rbmStandaloneRichCardBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Standalone Rich Business Messaging (RBM) rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder
          getRbmStandaloneRichCardBuilder() {
        return getRbmStandaloneRichCardFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Standalone Rich Business Messaging (RBM) rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder
          getRbmStandaloneRichCardOrBuilder() {
        if ((messageCase_ == 19) && (rbmStandaloneRichCardBuilder_ != null)) {
          return rbmStandaloneRichCardBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 19) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Standalone Rich Business Messaging (RBM) rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder>
          getRbmStandaloneRichCardFieldBuilder() {
        if (rbmStandaloneRichCardBuilder_ == null) {
          if (!(messageCase_ == 19)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard
                    .getDefaultInstance();
          }
          rbmStandaloneRichCardBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCardOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 19;
        onChanged();
        return rbmStandaloneRichCardBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder>
          rbmCarouselRichCardBuilder_;
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) carousel rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
       * </code>
       *
       * @return Whether the rbmCarouselRichCard field is set.
       */
      @java.lang.Override
      public boolean hasRbmCarouselRichCard() {
        return messageCase_ == 20;
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) carousel rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
       * </code>
       *
       * @return The rbmCarouselRichCard.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
          getRbmCarouselRichCard() {
        if (rbmCarouselRichCardBuilder_ == null) {
          if (messageCase_ == 20) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
              .getDefaultInstance();
        } else {
          if (messageCase_ == 20) {
            return rbmCarouselRichCardBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) carousel rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
       * </code>
       */
      public Builder setRbmCarouselRichCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard value) {
        if (rbmCarouselRichCardBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          rbmCarouselRichCardBuilder_.setMessage(value);
        }
        messageCase_ = 20;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) carousel rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
       * </code>
       */
      public Builder setRbmCarouselRichCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder
              builderForValue) {
        if (rbmCarouselRichCardBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          rbmCarouselRichCardBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 20;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) carousel rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
       * </code>
       */
      public Builder mergeRbmCarouselRichCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard value) {
        if (rbmCarouselRichCardBuilder_ == null) {
          if (messageCase_ == 20
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard)
                            message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 20) {
            rbmCarouselRichCardBuilder_.mergeFrom(value);
          } else {
            rbmCarouselRichCardBuilder_.setMessage(value);
          }
        }
        messageCase_ = 20;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) carousel rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
       * </code>
       */
      public Builder clearRbmCarouselRichCard() {
        if (rbmCarouselRichCardBuilder_ == null) {
          if (messageCase_ == 20) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 20) {
            messageCase_ = 0;
            message_ = null;
          }
          rbmCarouselRichCardBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) carousel rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder
          getRbmCarouselRichCardBuilder() {
        return getRbmCarouselRichCardFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) carousel rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder
          getRbmCarouselRichCardOrBuilder() {
        if ((messageCase_ == 20) && (rbmCarouselRichCardBuilder_ != null)) {
          return rbmCarouselRichCardBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 20) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Rich Business Messaging (RBM) carousel rich card response.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder>
          getRbmCarouselRichCardFieldBuilder() {
        if (rbmCarouselRichCardBuilder_ == null) {
          if (!(messageCase_ == 20)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
                    .getDefaultInstance();
          }
          rbmCarouselRichCardBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 20;
        onChanged();
        return rbmCarouselRichCardBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder>
          browseCarouselCardBuilder_;
      /**
       *
       *
       * <pre>
       * Browse carousel card for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
       * </code>
       *
       * @return Whether the browseCarouselCard field is set.
       */
      @java.lang.Override
      public boolean hasBrowseCarouselCard() {
        return messageCase_ == 22;
      }
      /**
       *
       *
       * <pre>
       * Browse carousel card for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
       * </code>
       *
       * @return The browseCarouselCard.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
          getBrowseCarouselCard() {
        if (browseCarouselCardBuilder_ == null) {
          if (messageCase_ == 22) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
              .getDefaultInstance();
        } else {
          if (messageCase_ == 22) {
            return browseCarouselCardBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Browse carousel card for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
       * </code>
       */
      public Builder setBrowseCarouselCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard value) {
        if (browseCarouselCardBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          browseCarouselCardBuilder_.setMessage(value);
        }
        messageCase_ = 22;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Browse carousel card for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
       * </code>
       */
      public Builder setBrowseCarouselCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder
              builderForValue) {
        if (browseCarouselCardBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          browseCarouselCardBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 22;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Browse carousel card for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
       * </code>
       */
      public Builder mergeBrowseCarouselCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard value) {
        if (browseCarouselCardBuilder_ == null) {
          if (messageCase_ == 22
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard)
                            message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 22) {
            browseCarouselCardBuilder_.mergeFrom(value);
          } else {
            browseCarouselCardBuilder_.setMessage(value);
          }
        }
        messageCase_ = 22;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Browse carousel card for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
       * </code>
       */
      public Builder clearBrowseCarouselCard() {
        if (browseCarouselCardBuilder_ == null) {
          if (messageCase_ == 22) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 22) {
            messageCase_ = 0;
            message_ = null;
          }
          browseCarouselCardBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Browse carousel card for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder
          getBrowseCarouselCardBuilder() {
        return getBrowseCarouselCardFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Browse carousel card for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder
          getBrowseCarouselCardOrBuilder() {
        if ((messageCase_ == 22) && (browseCarouselCardBuilder_ != null)) {
          return browseCarouselCardBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 22) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Browse carousel card for Actions on Google.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder>
          getBrowseCarouselCardFieldBuilder() {
        if (browseCarouselCardBuilder_ == null) {
          if (!(messageCase_ == 22)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard
                    .getDefaultInstance();
          }
          browseCarouselCardBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 22;
        onChanged();
        return browseCarouselCardBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder>
          tableCardBuilder_;
      /**
       *
       *
       * <pre>
       * Table card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
       *
       * @return Whether the tableCard field is set.
       */
      @java.lang.Override
      public boolean hasTableCard() {
        return messageCase_ == 23;
      }
      /**
       *
       *
       * <pre>
       * Table card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
       *
       * @return The tableCard.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard getTableCard() {
        if (tableCardBuilder_ == null) {
          if (messageCase_ == 23) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance();
        } else {
          if (messageCase_ == 23) {
            return tableCardBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Table card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
       */
      public Builder setTableCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard value) {
        if (tableCardBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          tableCardBuilder_.setMessage(value);
        }
        messageCase_ = 23;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Table card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
       */
      public Builder setTableCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder builderForValue) {
        if (tableCardBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          tableCardBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 23;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Table card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
       */
      public Builder mergeTableCard(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard value) {
        if (tableCardBuilder_ == null) {
          if (messageCase_ == 23
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 23) {
            tableCardBuilder_.mergeFrom(value);
          } else {
            tableCardBuilder_.setMessage(value);
          }
        }
        messageCase_ = 23;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Table card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
       */
      public Builder clearTableCard() {
        if (tableCardBuilder_ == null) {
          if (messageCase_ == 23) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 23) {
            messageCase_ = 0;
            message_ = null;
          }
          tableCardBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Table card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder
          getTableCardBuilder() {
        return getTableCardFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Table card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder
          getTableCardOrBuilder() {
        if ((messageCase_ == 23) && (tableCardBuilder_ != null)) {
          return tableCardBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 23) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Table card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder>
          getTableCardFieldBuilder() {
        if (tableCardBuilder_ == null) {
          if (!(messageCase_ == 23)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance();
          }
          tableCardBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 23;
        onChanged();
        return tableCardBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder>
          mediaContentBuilder_;
      /**
       *
       *
       * <pre>
       * The media content card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;
       * </code>
       *
       * @return Whether the mediaContent field is set.
       */
      @java.lang.Override
      public boolean hasMediaContent() {
        return messageCase_ == 24;
      }
      /**
       *
       *
       * <pre>
       * The media content card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;
       * </code>
       *
       * @return The mediaContent.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent getMediaContent() {
        if (mediaContentBuilder_ == null) {
          if (messageCase_ == 24) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
              .getDefaultInstance();
        } else {
          if (messageCase_ == 24) {
            return mediaContentBuilder_.getMessage();
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * The media content card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;
       * </code>
       */
      public Builder setMediaContent(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent value) {
        if (mediaContentBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          message_ = value;
          onChanged();
        } else {
          mediaContentBuilder_.setMessage(value);
        }
        messageCase_ = 24;
        return this;
      }
      /**
       *
       *
       * <pre>
       * The media content card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;
       * </code>
       */
      public Builder setMediaContent(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder builderForValue) {
        if (mediaContentBuilder_ == null) {
          message_ = builderForValue.build();
          onChanged();
        } else {
          mediaContentBuilder_.setMessage(builderForValue.build());
        }
        messageCase_ = 24;
        return this;
      }
      /**
       *
       *
       * <pre>
       * The media content card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;
       * </code>
       */
      public Builder mergeMediaContent(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent value) {
        if (mediaContentBuilder_ == null) {
          if (messageCase_ == 24
              && message_
                  != com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                      .getDefaultInstance()) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.newBuilder(
                        (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            message_ = value;
          }
          onChanged();
        } else {
          if (messageCase_ == 24) {
            mediaContentBuilder_.mergeFrom(value);
          } else {
            mediaContentBuilder_.setMessage(value);
          }
        }
        messageCase_ = 24;
        return this;
      }
      /**
       *
       *
       * <pre>
       * The media content card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;
       * </code>
       */
      public Builder clearMediaContent() {
        if (mediaContentBuilder_ == null) {
          if (messageCase_ == 24) {
            messageCase_ = 0;
            message_ = null;
            onChanged();
          }
        } else {
          if (messageCase_ == 24) {
            messageCase_ = 0;
            message_ = null;
          }
          mediaContentBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * The media content card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;
       * </code>
       */
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder
          getMediaContentBuilder() {
        return getMediaContentFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * The media content card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder
          getMediaContentOrBuilder() {
        if ((messageCase_ == 24) && (mediaContentBuilder_ != null)) {
          return mediaContentBuilder_.getMessageOrBuilder();
        } else {
          if (messageCase_ == 24) {
            return (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_;
          }
          return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * The media content card for Actions on Google.
       * </pre>
       *
       * <code>.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder,
              com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder>
          getMediaContentFieldBuilder() {
        if (mediaContentBuilder_ == null) {
          if (!(messageCase_ == 24)) {
            message_ =
                com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent
                    .getDefaultInstance();
          }
          mediaContentBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder,
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder>(
                  (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_,
                  getParentForChildren(),
                  isClean());
          message_ = null;
        }
        messageCase_ = 24;
        onChanged();
        return mediaContentBuilder_;
      }

      private int platform_ = 0;
      /**
       *
       *
       * <pre>
       * Optional. The platform that this message is intended for.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @return The enum numeric value on the wire for platform.
       */
      @java.lang.Override
      public int getPlatformValue() {
        return platform_;
      }
      /**
       *
       *
       * <pre>
       * Optional. The platform that this message is intended for.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @param value The enum numeric value on the wire for platform to set.
       * @return This builder for chaining.
       */
      public Builder setPlatformValue(int value) {
        platform_ = value;
        bitField0_ |= 0x00100000;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The platform that this message is intended for.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @return The platform.
       */
      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getPlatform() {
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform result =
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.forNumber(platform_);
        return result == null
            ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * Optional. The platform that this message is intended for.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @param value The platform to set.
       * @return This builder for chaining.
       */
      public Builder setPlatform(
          com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00100000;
        platform_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. The platform that this message is intended for.
       * </pre>
       *
       * <code>
       * .google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearPlatform() {
        bitField0_ = (bitField0_ & ~0x00100000);
        platform_ = 0;
        onChanged();
        return this;
      }

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

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

      // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message)
    private static final com.google.cloud.dialogflow.v2beta1.Intent.Message DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message();
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.Message getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.Message getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface FollowupIntentInfoOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The unique identifier of the followup intent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string followup_intent_name = 1;</code>
     *
     * @return The followupIntentName.
     */
    java.lang.String getFollowupIntentName();
    /**
     *
     *
     * <pre>
     * The unique identifier of the followup intent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string followup_intent_name = 1;</code>
     *
     * @return The bytes for followupIntentName.
     */
    com.google.protobuf.ByteString getFollowupIntentNameBytes();

    /**
     *
     *
     * <pre>
     * The unique identifier of the followup intent's parent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string parent_followup_intent_name = 2;</code>
     *
     * @return The parentFollowupIntentName.
     */
    java.lang.String getParentFollowupIntentName();
    /**
     *
     *
     * <pre>
     * The unique identifier of the followup intent's parent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string parent_followup_intent_name = 2;</code>
     *
     * @return The bytes for parentFollowupIntentName.
     */
    com.google.protobuf.ByteString getParentFollowupIntentNameBytes();
  }
  /**
   *
   *
   * <pre>
   * Represents a single followup intent in the chain.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo}
   */
  public static final class FollowupIntentInfo extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo)
      FollowupIntentInfoOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use FollowupIntentInfo.newBuilder() to construct.
    private FollowupIntentInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private FollowupIntentInfo() {
      followupIntentName_ = "";
      parentFollowupIntentName_ = "";
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto
          .internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto
          .internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.class,
              com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder.class);
    }

    public static final int FOLLOWUP_INTENT_NAME_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object followupIntentName_ = "";
    /**
     *
     *
     * <pre>
     * The unique identifier of the followup intent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string followup_intent_name = 1;</code>
     *
     * @return The followupIntentName.
     */
    @java.lang.Override
    public java.lang.String getFollowupIntentName() {
      java.lang.Object ref = followupIntentName_;
      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();
        followupIntentName_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The unique identifier of the followup intent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string followup_intent_name = 1;</code>
     *
     * @return The bytes for followupIntentName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getFollowupIntentNameBytes() {
      java.lang.Object ref = followupIntentName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        followupIntentName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PARENT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object parentFollowupIntentName_ = "";
    /**
     *
     *
     * <pre>
     * The unique identifier of the followup intent's parent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string parent_followup_intent_name = 2;</code>
     *
     * @return The parentFollowupIntentName.
     */
    @java.lang.Override
    public java.lang.String getParentFollowupIntentName() {
      java.lang.Object ref = parentFollowupIntentName_;
      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();
        parentFollowupIntentName_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The unique identifier of the followup intent's parent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string parent_followup_intent_name = 2;</code>
     *
     * @return The bytes for parentFollowupIntentName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getParentFollowupIntentNameBytes() {
      java.lang.Object ref = parentFollowupIntentName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        parentFollowupIntentName_ = 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(followupIntentName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, followupIntentName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentFollowupIntentName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parentFollowupIntentName_);
      }
      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(followupIntentName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, followupIntentName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentFollowupIntentName_)) {
        size +=
            com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parentFollowupIntentName_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo)) {
        return super.equals(obj);
      }
      com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo other =
          (com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo) obj;

      if (!getFollowupIntentName().equals(other.getFollowupIntentName())) return false;
      if (!getParentFollowupIntentName().equals(other.getParentFollowupIntentName())) 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) + FOLLOWUP_INTENT_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getFollowupIntentName().hashCode();
      hash = (37 * hash) + PARENT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getParentFollowupIntentName().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

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

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

    public static Builder newBuilder(
        com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo 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>
     * Represents a single followup intent in the chain.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo)
        com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.class,
                com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder.class);
      }

      // Construct using com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.newBuilder()
      private Builder() {}

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

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.dialogflow.v2beta1.IntentProto
            .internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo
          getDefaultInstanceForType() {
        return com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo build() {
        com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo buildPartial() {
        com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo result =
            new com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.followupIntentName_ = followupIntentName_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.parentFollowupIntentName_ = parentFollowupIntentName_;
        }
      }

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

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

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

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

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

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

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo) {
          return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo other) {
        if (other
            == com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.getDefaultInstance())
          return this;
        if (!other.getFollowupIntentName().isEmpty()) {
          followupIntentName_ = other.followupIntentName_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getParentFollowupIntentName().isEmpty()) {
          parentFollowupIntentName_ = other.parentFollowupIntentName_;
          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 10:
                {
                  followupIntentName_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  parentFollowupIntentName_ = 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 java.lang.Object followupIntentName_ = "";
      /**
       *
       *
       * <pre>
       * The unique identifier of the followup intent.
       * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
       * </pre>
       *
       * <code>string followup_intent_name = 1;</code>
       *
       * @return The followupIntentName.
       */
      public java.lang.String getFollowupIntentName() {
        java.lang.Object ref = followupIntentName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          followupIntentName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of the followup intent.
       * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
       * </pre>
       *
       * <code>string followup_intent_name = 1;</code>
       *
       * @return The bytes for followupIntentName.
       */
      public com.google.protobuf.ByteString getFollowupIntentNameBytes() {
        java.lang.Object ref = followupIntentName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          followupIntentName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of the followup intent.
       * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
       * </pre>
       *
       * <code>string followup_intent_name = 1;</code>
       *
       * @param value The followupIntentName to set.
       * @return This builder for chaining.
       */
      public Builder setFollowupIntentName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        followupIntentName_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of the followup intent.
       * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
       * </pre>
       *
       * <code>string followup_intent_name = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearFollowupIntentName() {
        followupIntentName_ = getDefaultInstance().getFollowupIntentName();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of the followup intent.
       * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
       * </pre>
       *
       * <code>string followup_intent_name = 1;</code>
       *
       * @param value The bytes for followupIntentName to set.
       * @return This builder for chaining.
       */
      public Builder setFollowupIntentNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        followupIntentName_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object parentFollowupIntentName_ = "";
      /**
       *
       *
       * <pre>
       * The unique identifier of the followup intent's parent.
       * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
       * </pre>
       *
       * <code>string parent_followup_intent_name = 2;</code>
       *
       * @return The parentFollowupIntentName.
       */
      public java.lang.String getParentFollowupIntentName() {
        java.lang.Object ref = parentFollowupIntentName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          parentFollowupIntentName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of the followup intent's parent.
       * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
       * </pre>
       *
       * <code>string parent_followup_intent_name = 2;</code>
       *
       * @return The bytes for parentFollowupIntentName.
       */
      public com.google.protobuf.ByteString getParentFollowupIntentNameBytes() {
        java.lang.Object ref = parentFollowupIntentName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          parentFollowupIntentName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of the followup intent's parent.
       * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
       * </pre>
       *
       * <code>string parent_followup_intent_name = 2;</code>
       *
       * @param value The parentFollowupIntentName to set.
       * @return This builder for chaining.
       */
      public Builder setParentFollowupIntentName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        parentFollowupIntentName_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of the followup intent's parent.
       * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
       * </pre>
       *
       * <code>string parent_followup_intent_name = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearParentFollowupIntentName() {
        parentFollowupIntentName_ = getDefaultInstance().getParentFollowupIntentName();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The unique identifier of the followup intent's parent.
       * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
       * </pre>
       *
       * <code>string parent_followup_intent_name = 2;</code>
       *
       * @param value The bytes for parentFollowupIntentName to set.
       * @return This builder for chaining.
       */
      public Builder setParentFollowupIntentNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        parentFollowupIntentName_ = 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.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo)
    private static final com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo();
    }

    public static com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Optional. The unique identifier of this intent.
   * Required for
   * [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent]
   * and
   * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
   * methods.
   * Supported formats:
   *
   * - `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`
   * - `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agent/intents/&lt;Intent ID&gt;`
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    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();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. The unique identifier of this intent.
   * Required for
   * [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent]
   * and
   * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
   * methods.
   * Supported formats:
   *
   * - `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`
   * - `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agent/intents/&lt;Intent ID&gt;`
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPLAY_NAME_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object displayName_ = "";
  /**
   *
   *
   * <pre>
   * Required. The name of this intent.
   * </pre>
   *
   * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The displayName.
   */
  @java.lang.Override
  public java.lang.String getDisplayName() {
    java.lang.Object ref = displayName_;
    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();
      displayName_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. The name of this intent.
   * </pre>
   *
   * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The bytes for displayName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDisplayNameBytes() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      displayName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int WEBHOOK_STATE_FIELD_NUMBER = 6;
  private int webhookState_ = 0;
  /**
   *
   *
   * <pre>
   * Optional. Indicates whether webhooks are enabled for the intent.
   * </pre>
   *
   * <code>
   * .google.cloud.dialogflow.v2beta1.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The enum numeric value on the wire for webhookState.
   */
  @java.lang.Override
  public int getWebhookStateValue() {
    return webhookState_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Indicates whether webhooks are enabled for the intent.
   * </pre>
   *
   * <code>
   * .google.cloud.dialogflow.v2beta1.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The webhookState.
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Intent.WebhookState getWebhookState() {
    com.google.cloud.dialogflow.v2beta1.Intent.WebhookState result =
        com.google.cloud.dialogflow.v2beta1.Intent.WebhookState.forNumber(webhookState_);
    return result == null
        ? com.google.cloud.dialogflow.v2beta1.Intent.WebhookState.UNRECOGNIZED
        : result;
  }

  public static final int PRIORITY_FIELD_NUMBER = 3;
  private int priority_ = 0;
  /**
   *
   *
   * <pre>
   * Optional. The priority of this intent. Higher numbers represent higher
   * priorities.
   *
   * - If the supplied value is unspecified or 0, the service
   *   translates the value to 500,000, which corresponds to the
   *   `Normal` priority in the console.
   * - If the supplied value is negative, the intent is ignored
   *   in runtime detect intent requests.
   * </pre>
   *
   * <code>int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The priority.
   */
  @java.lang.Override
  public int getPriority() {
    return priority_;
  }

  public static final int IS_FALLBACK_FIELD_NUMBER = 4;
  private boolean isFallback_ = false;
  /**
   *
   *
   * <pre>
   * Optional. Indicates whether this is a fallback intent.
   * </pre>
   *
   * <code>bool is_fallback = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The isFallback.
   */
  @java.lang.Override
  public boolean getIsFallback() {
    return isFallback_;
  }

  public static final int ML_ENABLED_FIELD_NUMBER = 5;
  private boolean mlEnabled_ = false;
  /**
   *
   *
   * <pre>
   * Optional. Indicates whether Machine Learning is enabled for the intent.
   * Note: If `ml_enabled` setting is set to false, then this intent is not
   * taken into account during inference in `ML ONLY` match mode. Also,
   * auto-markup in the UI is turned off.
   * DEPRECATED! Please use `ml_disabled` field instead.
   * NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
   * then the default value is determined as follows:
   *
   * - Before April 15th, 2018 the default is:
   *   ml_enabled = false / ml_disabled = true.
   * - After April 15th, 2018 the default is:
   *   ml_enabled = true / ml_disabled = false.
   * </pre>
   *
   * <code>bool ml_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @deprecated google.cloud.dialogflow.v2beta1.Intent.ml_enabled is deprecated. See
   *     google/cloud/dialogflow/v2beta1/intent.proto;l=1154
   * @return The mlEnabled.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public boolean getMlEnabled() {
    return mlEnabled_;
  }

  public static final int ML_DISABLED_FIELD_NUMBER = 19;
  private boolean mlDisabled_ = false;
  /**
   *
   *
   * <pre>
   * Optional. Indicates whether Machine Learning is disabled for the intent.
   * Note: If `ml_disabled` setting is set to true, then this intent is not
   * taken into account during inference in `ML ONLY` match mode. Also,
   * auto-markup in the UI is turned off.
   * </pre>
   *
   * <code>bool ml_disabled = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The mlDisabled.
   */
  @java.lang.Override
  public boolean getMlDisabled() {
    return mlDisabled_;
  }

  public static final int LIVE_AGENT_HANDOFF_FIELD_NUMBER = 20;
  private boolean liveAgentHandoff_ = false;
  /**
   *
   *
   * <pre>
   * Optional. Indicates that a live agent should be brought in to handle the
   * interaction with the user. In most cases, when you set this flag to true,
   * you would also want to set end_interaction to true as well. Default is
   * false.
   * </pre>
   *
   * <code>bool live_agent_handoff = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The liveAgentHandoff.
   */
  @java.lang.Override
  public boolean getLiveAgentHandoff() {
    return liveAgentHandoff_;
  }

  public static final int END_INTERACTION_FIELD_NUMBER = 21;
  private boolean endInteraction_ = false;
  /**
   *
   *
   * <pre>
   * Optional. Indicates that this intent ends an interaction. Some integrations
   * (e.g., Actions on Google or Dialogflow phone gateway) use this information
   * to close interaction with an end user. Default is false.
   * </pre>
   *
   * <code>bool end_interaction = 21 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The endInteraction.
   */
  @java.lang.Override
  public boolean getEndInteraction() {
    return endInteraction_;
  }

  public static final int INPUT_CONTEXT_NAMES_FIELD_NUMBER = 7;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList inputContextNames_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   *
   *
   * <pre>
   * Optional. The list of context names required for this intent to be
   * triggered.
   * Formats:
   *
   * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
   * - `projects/&lt;Project ID&gt;/locations/&lt;Location
   *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
   * </pre>
   *
   * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return A list containing the inputContextNames.
   */
  public com.google.protobuf.ProtocolStringList getInputContextNamesList() {
    return inputContextNames_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The list of context names required for this intent to be
   * triggered.
   * Formats:
   *
   * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
   * - `projects/&lt;Project ID&gt;/locations/&lt;Location
   *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
   * </pre>
   *
   * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The count of inputContextNames.
   */
  public int getInputContextNamesCount() {
    return inputContextNames_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The list of context names required for this intent to be
   * triggered.
   * Formats:
   *
   * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
   * - `projects/&lt;Project ID&gt;/locations/&lt;Location
   *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
   * </pre>
   *
   * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the element to return.
   * @return The inputContextNames at the given index.
   */
  public java.lang.String getInputContextNames(int index) {
    return inputContextNames_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. The list of context names required for this intent to be
   * triggered.
   * Formats:
   *
   * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
   * - `projects/&lt;Project ID&gt;/locations/&lt;Location
   *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
   * </pre>
   *
   * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the inputContextNames at the given index.
   */
  public com.google.protobuf.ByteString getInputContextNamesBytes(int index) {
    return inputContextNames_.getByteString(index);
  }

  public static final int EVENTS_FIELD_NUMBER = 8;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList events_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   *
   *
   * <pre>
   * Optional. The collection of event names that trigger the intent.
   * If the collection of input contexts is not empty, all of the contexts must
   * be present in the active user session for an event to trigger this intent.
   * Event names are limited to 150 characters.
   * </pre>
   *
   * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return A list containing the events.
   */
  public com.google.protobuf.ProtocolStringList getEventsList() {
    return events_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of event names that trigger the intent.
   * If the collection of input contexts is not empty, all of the contexts must
   * be present in the active user session for an event to trigger this intent.
   * Event names are limited to 150 characters.
   * </pre>
   *
   * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The count of events.
   */
  public int getEventsCount() {
    return events_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of event names that trigger the intent.
   * If the collection of input contexts is not empty, all of the contexts must
   * be present in the active user session for an event to trigger this intent.
   * Event names are limited to 150 characters.
   * </pre>
   *
   * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the element to return.
   * @return The events at the given index.
   */
  public java.lang.String getEvents(int index) {
    return events_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of event names that trigger the intent.
   * If the collection of input contexts is not empty, all of the contexts must
   * be present in the active user session for an event to trigger this intent.
   * Event names are limited to 150 characters.
   * </pre>
   *
   * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the events at the given index.
   */
  public com.google.protobuf.ByteString getEventsBytes(int index) {
    return events_.getByteString(index);
  }

  public static final int TRAINING_PHRASES_FIELD_NUMBER = 9;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase>
      trainingPhrases_;
  /**
   *
   *
   * <pre>
   * Optional. The collection of examples that the agent is
   * trained on.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase>
      getTrainingPhrasesList() {
    return trainingPhrases_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of examples that the agent is
   * trained on.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<
          ? extends com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhraseOrBuilder>
      getTrainingPhrasesOrBuilderList() {
    return trainingPhrases_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of examples that the agent is
   * trained on.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public int getTrainingPhrasesCount() {
    return trainingPhrases_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of examples that the agent is
   * trained on.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase getTrainingPhrases(int index) {
    return trainingPhrases_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of examples that the agent is
   * trained on.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhraseOrBuilder
      getTrainingPhrasesOrBuilder(int index) {
    return trainingPhrases_.get(index);
  }

  public static final int ACTION_FIELD_NUMBER = 10;

  @SuppressWarnings("serial")
  private volatile java.lang.Object action_ = "";
  /**
   *
   *
   * <pre>
   * Optional. The name of the action associated with the intent.
   * Note: The action name must not contain whitespaces.
   * </pre>
   *
   * <code>string action = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The action.
   */
  @java.lang.Override
  public java.lang.String getAction() {
    java.lang.Object ref = action_;
    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();
      action_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. The name of the action associated with the intent.
   * Note: The action name must not contain whitespaces.
   * </pre>
   *
   * <code>string action = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for action.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getActionBytes() {
    java.lang.Object ref = action_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      action_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OUTPUT_CONTEXTS_FIELD_NUMBER = 11;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.dialogflow.v2beta1.Context> outputContexts_;
  /**
   *
   *
   * <pre>
   * Optional. The collection of contexts that are activated when the intent
   * is matched. Context messages in this collection should not set the
   * parameters field. Setting the `lifespan_count` to 0 will reset the context
   * when the intent is matched.
   * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.dialogflow.v2beta1.Context> getOutputContextsList() {
    return outputContexts_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of contexts that are activated when the intent
   * is matched. Context messages in this collection should not set the
   * parameters field. Setting the `lifespan_count` to 0 will reset the context
   * when the intent is matched.
   * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.dialogflow.v2beta1.ContextOrBuilder>
      getOutputContextsOrBuilderList() {
    return outputContexts_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of contexts that are activated when the intent
   * is matched. Context messages in this collection should not set the
   * parameters field. Setting the `lifespan_count` to 0 will reset the context
   * when the intent is matched.
   * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public int getOutputContextsCount() {
    return outputContexts_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of contexts that are activated when the intent
   * is matched. Context messages in this collection should not set the
   * parameters field. Setting the `lifespan_count` to 0 will reset the context
   * when the intent is matched.
   * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Context getOutputContexts(int index) {
    return outputContexts_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of contexts that are activated when the intent
   * is matched. Context messages in this collection should not set the
   * parameters field. Setting the `lifespan_count` to 0 will reset the context
   * when the intent is matched.
   * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.ContextOrBuilder getOutputContextsOrBuilder(
      int index) {
    return outputContexts_.get(index);
  }

  public static final int RESET_CONTEXTS_FIELD_NUMBER = 12;
  private boolean resetContexts_ = false;
  /**
   *
   *
   * <pre>
   * Optional. Indicates whether to delete all contexts in the current
   * session when this intent is matched.
   * </pre>
   *
   * <code>bool reset_contexts = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The resetContexts.
   */
  @java.lang.Override
  public boolean getResetContexts() {
    return resetContexts_;
  }

  public static final int PARAMETERS_FIELD_NUMBER = 13;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Parameter> parameters_;
  /**
   *
   *
   * <pre>
   * Optional. The collection of parameters associated with the intent.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Parameter> getParametersList() {
    return parameters_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of parameters associated with the intent.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.dialogflow.v2beta1.Intent.ParameterOrBuilder>
      getParametersOrBuilderList() {
    return parameters_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of parameters associated with the intent.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public int getParametersCount() {
    return parameters_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of parameters associated with the intent.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Intent.Parameter getParameters(int index) {
    return parameters_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of parameters associated with the intent.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Intent.ParameterOrBuilder getParametersOrBuilder(
      int index) {
    return parameters_.get(index);
  }

  public static final int MESSAGES_FIELD_NUMBER = 14;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message> messages_;
  /**
   *
   *
   * <pre>
   * Optional. The collection of rich messages corresponding to the
   * `Response` field in the Dialogflow console.
   * </pre>
   *
   * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message> getMessagesList() {
    return messages_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of rich messages corresponding to the
   * `Response` field in the Dialogflow console.
   * </pre>
   *
   * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder>
      getMessagesOrBuilderList() {
    return messages_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of rich messages corresponding to the
   * `Response` field in the Dialogflow console.
   * </pre>
   *
   * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
   */
  @java.lang.Override
  public int getMessagesCount() {
    return messages_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of rich messages corresponding to the
   * `Response` field in the Dialogflow console.
   * </pre>
   *
   * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Intent.Message getMessages(int index) {
    return messages_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional. The collection of rich messages corresponding to the
   * `Response` field in the Dialogflow console.
   * </pre>
   *
   * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder getMessagesOrBuilder(
      int index) {
    return messages_.get(index);
  }

  public static final int DEFAULT_RESPONSE_PLATFORMS_FIELD_NUMBER = 15;

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

  private static final com.google.protobuf.Internal.ListAdapter.Converter<
          java.lang.Integer, com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform>
      defaultResponsePlatforms_converter_ =
          new com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform>() {
            public com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform convert(
                java.lang.Integer from) {
              com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform result =
                  com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.forNumber(from);
              return result == null
                  ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.UNRECOGNIZED
                  : result;
            }
          };
  /**
   *
   *
   * <pre>
   * Optional. The list of platforms for which the first responses will be
   * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return A list containing the defaultResponsePlatforms.
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform>
      getDefaultResponsePlatformsList() {
    return new com.google.protobuf.Internal.ListAdapter<
        java.lang.Integer, com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform>(
        defaultResponsePlatforms_, defaultResponsePlatforms_converter_);
  }
  /**
   *
   *
   * <pre>
   * Optional. The list of platforms for which the first responses will be
   * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The count of defaultResponsePlatforms.
   */
  @java.lang.Override
  public int getDefaultResponsePlatformsCount() {
    return defaultResponsePlatforms_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional. The list of platforms for which the first responses will be
   * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @param index The index of the element to return.
   * @return The defaultResponsePlatforms at the given index.
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getDefaultResponsePlatforms(
      int index) {
    return defaultResponsePlatforms_converter_.convert(defaultResponsePlatforms_.get(index));
  }
  /**
   *
   *
   * <pre>
   * Optional. The list of platforms for which the first responses will be
   * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return A list containing the enum numeric values on the wire for defaultResponsePlatforms.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer> getDefaultResponsePlatformsValueList() {
    return defaultResponsePlatforms_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The list of platforms for which the first responses will be
   * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @param index The index of the value to return.
   * @return The enum numeric value on the wire of defaultResponsePlatforms at the given index.
   */
  @java.lang.Override
  public int getDefaultResponsePlatformsValue(int index) {
    return defaultResponsePlatforms_.get(index);
  }

  private int defaultResponsePlatformsMemoizedSerializedSize;

  public static final int ROOT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER = 16;

  @SuppressWarnings("serial")
  private volatile java.lang.Object rootFollowupIntentName_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The unique identifier of the root intent in the chain of
   * followup intents. It identifies the correct followup intents chain for
   * this intent.
   *
   * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
   * </pre>
   *
   * <code>string root_followup_intent_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The rootFollowupIntentName.
   */
  @java.lang.Override
  public java.lang.String getRootFollowupIntentName() {
    java.lang.Object ref = rootFollowupIntentName_;
    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();
      rootFollowupIntentName_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The unique identifier of the root intent in the chain of
   * followup intents. It identifies the correct followup intents chain for
   * this intent.
   *
   * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
   * </pre>
   *
   * <code>string root_followup_intent_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The bytes for rootFollowupIntentName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getRootFollowupIntentNameBytes() {
    java.lang.Object ref = rootFollowupIntentName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      rootFollowupIntentName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PARENT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER = 17;

  @SuppressWarnings("serial")
  private volatile java.lang.Object parentFollowupIntentName_ = "";
  /**
   *
   *
   * <pre>
   * Optional. The unique identifier of the parent intent in the
   * chain of followup intents. You can set this field when creating an intent,
   * for example with
   * [CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent] or
   * [BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents],
   * in order to make this intent a followup intent.
   *
   * It identifies the parent followup intent.
   * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
   * </pre>
   *
   * <code>string parent_followup_intent_name = 17 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The parentFollowupIntentName.
   */
  @java.lang.Override
  public java.lang.String getParentFollowupIntentName() {
    java.lang.Object ref = parentFollowupIntentName_;
    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();
      parentFollowupIntentName_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional. The unique identifier of the parent intent in the
   * chain of followup intents. You can set this field when creating an intent,
   * for example with
   * [CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent] or
   * [BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents],
   * in order to make this intent a followup intent.
   *
   * It identifies the parent followup intent.
   * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
   * </pre>
   *
   * <code>string parent_followup_intent_name = 17 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for parentFollowupIntentName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getParentFollowupIntentNameBytes() {
    java.lang.Object ref = parentFollowupIntentName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      parentFollowupIntentName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FOLLOWUP_INTENT_INFO_FIELD_NUMBER = 18;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo>
      followupIntentInfo_;
  /**
   *
   *
   * <pre>
   * Output only. Information about all followup intents that have this intent
   * as a direct or indirect parent. We populate this field only in the output.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo>
      getFollowupIntentInfoList() {
    return followupIntentInfo_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Information about all followup intents that have this intent
   * as a direct or indirect parent. We populate this field only in the output.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<
          ? extends com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfoOrBuilder>
      getFollowupIntentInfoOrBuilderList() {
    return followupIntentInfo_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Information about all followup intents that have this intent
   * as a direct or indirect parent. We populate this field only in the output.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public int getFollowupIntentInfoCount() {
    return followupIntentInfo_.size();
  }
  /**
   *
   *
   * <pre>
   * Output only. Information about all followup intents that have this intent
   * as a direct or indirect parent. We populate this field only in the output.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo getFollowupIntentInfo(
      int index) {
    return followupIntentInfo_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Output only. Information about all followup intents that have this intent
   * as a direct or indirect parent. We populate this field only in the output.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfoOrBuilder
      getFollowupIntentInfoOrBuilder(int index) {
    return followupIntentInfo_.get(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 {
    getSerializedSize();
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
    }
    if (priority_ != 0) {
      output.writeInt32(3, priority_);
    }
    if (isFallback_ != false) {
      output.writeBool(4, isFallback_);
    }
    if (mlEnabled_ != false) {
      output.writeBool(5, mlEnabled_);
    }
    if (webhookState_
        != com.google.cloud.dialogflow.v2beta1.Intent.WebhookState.WEBHOOK_STATE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(6, webhookState_);
    }
    for (int i = 0; i < inputContextNames_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, inputContextNames_.getRaw(i));
    }
    for (int i = 0; i < events_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, events_.getRaw(i));
    }
    for (int i = 0; i < trainingPhrases_.size(); i++) {
      output.writeMessage(9, trainingPhrases_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, action_);
    }
    for (int i = 0; i < outputContexts_.size(); i++) {
      output.writeMessage(11, outputContexts_.get(i));
    }
    if (resetContexts_ != false) {
      output.writeBool(12, resetContexts_);
    }
    for (int i = 0; i < parameters_.size(); i++) {
      output.writeMessage(13, parameters_.get(i));
    }
    for (int i = 0; i < messages_.size(); i++) {
      output.writeMessage(14, messages_.get(i));
    }
    if (getDefaultResponsePlatformsList().size() > 0) {
      output.writeUInt32NoTag(122);
      output.writeUInt32NoTag(defaultResponsePlatformsMemoizedSerializedSize);
    }
    for (int i = 0; i < defaultResponsePlatforms_.size(); i++) {
      output.writeEnumNoTag(defaultResponsePlatforms_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootFollowupIntentName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, rootFollowupIntentName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentFollowupIntentName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, parentFollowupIntentName_);
    }
    for (int i = 0; i < followupIntentInfo_.size(); i++) {
      output.writeMessage(18, followupIntentInfo_.get(i));
    }
    if (mlDisabled_ != false) {
      output.writeBool(19, mlDisabled_);
    }
    if (liveAgentHandoff_ != false) {
      output.writeBool(20, liveAgentHandoff_);
    }
    if (endInteraction_ != false) {
      output.writeBool(21, endInteraction_);
    }
    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(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
    }
    if (priority_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, priority_);
    }
    if (isFallback_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isFallback_);
    }
    if (mlEnabled_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, mlEnabled_);
    }
    if (webhookState_
        != com.google.cloud.dialogflow.v2beta1.Intent.WebhookState.WEBHOOK_STATE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, webhookState_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < inputContextNames_.size(); i++) {
        dataSize += computeStringSizeNoTag(inputContextNames_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getInputContextNamesList().size();
    }
    {
      int dataSize = 0;
      for (int i = 0; i < events_.size(); i++) {
        dataSize += computeStringSizeNoTag(events_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getEventsList().size();
    }
    for (int i = 0; i < trainingPhrases_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, trainingPhrases_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, action_);
    }
    for (int i = 0; i < outputContexts_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, outputContexts_.get(i));
    }
    if (resetContexts_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, resetContexts_);
    }
    for (int i = 0; i < parameters_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, parameters_.get(i));
    }
    for (int i = 0; i < messages_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, messages_.get(i));
    }
    {
      int dataSize = 0;
      for (int i = 0; i < defaultResponsePlatforms_.size(); i++) {
        dataSize +=
            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
                defaultResponsePlatforms_.get(i));
      }
      size += dataSize;
      if (!getDefaultResponsePlatformsList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
      }
      defaultResponsePlatformsMemoizedSerializedSize = dataSize;
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootFollowupIntentName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, rootFollowupIntentName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentFollowupIntentName_)) {
      size +=
          com.google.protobuf.GeneratedMessageV3.computeStringSize(17, parentFollowupIntentName_);
    }
    for (int i = 0; i < followupIntentInfo_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(18, followupIntentInfo_.get(i));
    }
    if (mlDisabled_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, mlDisabled_);
    }
    if (liveAgentHandoff_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, liveAgentHandoff_);
    }
    if (endInteraction_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, endInteraction_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent)) {
      return super.equals(obj);
    }
    com.google.cloud.dialogflow.v2beta1.Intent other =
        (com.google.cloud.dialogflow.v2beta1.Intent) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getDisplayName().equals(other.getDisplayName())) return false;
    if (webhookState_ != other.webhookState_) return false;
    if (getPriority() != other.getPriority()) return false;
    if (getIsFallback() != other.getIsFallback()) return false;
    if (getMlEnabled() != other.getMlEnabled()) return false;
    if (getMlDisabled() != other.getMlDisabled()) return false;
    if (getLiveAgentHandoff() != other.getLiveAgentHandoff()) return false;
    if (getEndInteraction() != other.getEndInteraction()) return false;
    if (!getInputContextNamesList().equals(other.getInputContextNamesList())) return false;
    if (!getEventsList().equals(other.getEventsList())) return false;
    if (!getTrainingPhrasesList().equals(other.getTrainingPhrasesList())) return false;
    if (!getAction().equals(other.getAction())) return false;
    if (!getOutputContextsList().equals(other.getOutputContextsList())) return false;
    if (getResetContexts() != other.getResetContexts()) return false;
    if (!getParametersList().equals(other.getParametersList())) return false;
    if (!getMessagesList().equals(other.getMessagesList())) return false;
    if (!defaultResponsePlatforms_.equals(other.defaultResponsePlatforms_)) return false;
    if (!getRootFollowupIntentName().equals(other.getRootFollowupIntentName())) return false;
    if (!getParentFollowupIntentName().equals(other.getParentFollowupIntentName())) return false;
    if (!getFollowupIntentInfoList().equals(other.getFollowupIntentInfoList())) 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) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayName().hashCode();
    hash = (37 * hash) + WEBHOOK_STATE_FIELD_NUMBER;
    hash = (53 * hash) + webhookState_;
    hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
    hash = (53 * hash) + getPriority();
    hash = (37 * hash) + IS_FALLBACK_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFallback());
    hash = (37 * hash) + ML_ENABLED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMlEnabled());
    hash = (37 * hash) + ML_DISABLED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMlDisabled());
    hash = (37 * hash) + LIVE_AGENT_HANDOFF_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLiveAgentHandoff());
    hash = (37 * hash) + END_INTERACTION_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEndInteraction());
    if (getInputContextNamesCount() > 0) {
      hash = (37 * hash) + INPUT_CONTEXT_NAMES_FIELD_NUMBER;
      hash = (53 * hash) + getInputContextNamesList().hashCode();
    }
    if (getEventsCount() > 0) {
      hash = (37 * hash) + EVENTS_FIELD_NUMBER;
      hash = (53 * hash) + getEventsList().hashCode();
    }
    if (getTrainingPhrasesCount() > 0) {
      hash = (37 * hash) + TRAINING_PHRASES_FIELD_NUMBER;
      hash = (53 * hash) + getTrainingPhrasesList().hashCode();
    }
    hash = (37 * hash) + ACTION_FIELD_NUMBER;
    hash = (53 * hash) + getAction().hashCode();
    if (getOutputContextsCount() > 0) {
      hash = (37 * hash) + OUTPUT_CONTEXTS_FIELD_NUMBER;
      hash = (53 * hash) + getOutputContextsList().hashCode();
    }
    hash = (37 * hash) + RESET_CONTEXTS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResetContexts());
    if (getParametersCount() > 0) {
      hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
      hash = (53 * hash) + getParametersList().hashCode();
    }
    if (getMessagesCount() > 0) {
      hash = (37 * hash) + MESSAGES_FIELD_NUMBER;
      hash = (53 * hash) + getMessagesList().hashCode();
    }
    if (getDefaultResponsePlatformsCount() > 0) {
      hash = (37 * hash) + DEFAULT_RESPONSE_PLATFORMS_FIELD_NUMBER;
      hash = (53 * hash) + defaultResponsePlatforms_.hashCode();
    }
    hash = (37 * hash) + ROOT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getRootFollowupIntentName().hashCode();
    hash = (37 * hash) + PARENT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getParentFollowupIntentName().hashCode();
    if (getFollowupIntentInfoCount() > 0) {
      hash = (37 * hash) + FOLLOWUP_INTENT_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getFollowupIntentInfoList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.dialogflow.v2beta1.Intent parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

  public static com.google.cloud.dialogflow.v2beta1.Intent parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.dialogflow.v2beta1.Intent parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.dialogflow.v2beta1.Intent parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

  public static com.google.cloud.dialogflow.v2beta1.Intent parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.dialogflow.v2beta1.Intent parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.dialogflow.v2beta1.Intent parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.dialogflow.v2beta1.Intent parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.dialogflow.v2beta1.Intent parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

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

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

  public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Intent 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>
   * An intent categorizes an end-user's intention for one conversation turn. For
   * each agent, you define many intents, where your combined intents can handle a
   * complete conversation. When an end-user writes or says something, referred to
   * as an end-user expression or end-user input, Dialogflow matches the end-user
   * input to the best intent in your agent. Matching an intent is also known as
   * intent classification.
   *
   * For more information, see the [intent
   * guide](https://cloud.google.com/dialogflow/docs/intents-overview).
   * </pre>
   *
   * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent)
      com.google.cloud.dialogflow.v2beta1.IntentOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto
          .internal_static_google_cloud_dialogflow_v2beta1_Intent_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto
          .internal_static_google_cloud_dialogflow_v2beta1_Intent_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dialogflow.v2beta1.Intent.class,
              com.google.cloud.dialogflow.v2beta1.Intent.Builder.class);
    }

    // Construct using com.google.cloud.dialogflow.v2beta1.Intent.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      displayName_ = "";
      webhookState_ = 0;
      priority_ = 0;
      isFallback_ = false;
      mlEnabled_ = false;
      mlDisabled_ = false;
      liveAgentHandoff_ = false;
      endInteraction_ = false;
      inputContextNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
      events_ = com.google.protobuf.LazyStringArrayList.emptyList();
      if (trainingPhrasesBuilder_ == null) {
        trainingPhrases_ = java.util.Collections.emptyList();
      } else {
        trainingPhrases_ = null;
        trainingPhrasesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000800);
      action_ = "";
      if (outputContextsBuilder_ == null) {
        outputContexts_ = java.util.Collections.emptyList();
      } else {
        outputContexts_ = null;
        outputContextsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00002000);
      resetContexts_ = false;
      if (parametersBuilder_ == null) {
        parameters_ = java.util.Collections.emptyList();
      } else {
        parameters_ = null;
        parametersBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00008000);
      if (messagesBuilder_ == null) {
        messages_ = java.util.Collections.emptyList();
      } else {
        messages_ = null;
        messagesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00010000);
      defaultResponsePlatforms_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00020000);
      rootFollowupIntentName_ = "";
      parentFollowupIntentName_ = "";
      if (followupIntentInfoBuilder_ == null) {
        followupIntentInfo_ = java.util.Collections.emptyList();
      } else {
        followupIntentInfo_ = null;
        followupIntentInfoBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00100000);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto
          .internal_static_google_cloud_dialogflow_v2beta1_Intent_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent getDefaultInstanceForType() {
      return com.google.cloud.dialogflow.v2beta1.Intent.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent buildPartial() {
      com.google.cloud.dialogflow.v2beta1.Intent result =
          new com.google.cloud.dialogflow.v2beta1.Intent(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(com.google.cloud.dialogflow.v2beta1.Intent result) {
      if (trainingPhrasesBuilder_ == null) {
        if (((bitField0_ & 0x00000800) != 0)) {
          trainingPhrases_ = java.util.Collections.unmodifiableList(trainingPhrases_);
          bitField0_ = (bitField0_ & ~0x00000800);
        }
        result.trainingPhrases_ = trainingPhrases_;
      } else {
        result.trainingPhrases_ = trainingPhrasesBuilder_.build();
      }
      if (outputContextsBuilder_ == null) {
        if (((bitField0_ & 0x00002000) != 0)) {
          outputContexts_ = java.util.Collections.unmodifiableList(outputContexts_);
          bitField0_ = (bitField0_ & ~0x00002000);
        }
        result.outputContexts_ = outputContexts_;
      } else {
        result.outputContexts_ = outputContextsBuilder_.build();
      }
      if (parametersBuilder_ == null) {
        if (((bitField0_ & 0x00008000) != 0)) {
          parameters_ = java.util.Collections.unmodifiableList(parameters_);
          bitField0_ = (bitField0_ & ~0x00008000);
        }
        result.parameters_ = parameters_;
      } else {
        result.parameters_ = parametersBuilder_.build();
      }
      if (messagesBuilder_ == null) {
        if (((bitField0_ & 0x00010000) != 0)) {
          messages_ = java.util.Collections.unmodifiableList(messages_);
          bitField0_ = (bitField0_ & ~0x00010000);
        }
        result.messages_ = messages_;
      } else {
        result.messages_ = messagesBuilder_.build();
      }
      if (((bitField0_ & 0x00020000) != 0)) {
        defaultResponsePlatforms_ =
            java.util.Collections.unmodifiableList(defaultResponsePlatforms_);
        bitField0_ = (bitField0_ & ~0x00020000);
      }
      result.defaultResponsePlatforms_ = defaultResponsePlatforms_;
      if (followupIntentInfoBuilder_ == null) {
        if (((bitField0_ & 0x00100000) != 0)) {
          followupIntentInfo_ = java.util.Collections.unmodifiableList(followupIntentInfo_);
          bitField0_ = (bitField0_ & ~0x00100000);
        }
        result.followupIntentInfo_ = followupIntentInfo_;
      } else {
        result.followupIntentInfo_ = followupIntentInfoBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Intent result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.displayName_ = displayName_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.webhookState_ = webhookState_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.priority_ = priority_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.isFallback_ = isFallback_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.mlEnabled_ = mlEnabled_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.mlDisabled_ = mlDisabled_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.liveAgentHandoff_ = liveAgentHandoff_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.endInteraction_ = endInteraction_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        inputContextNames_.makeImmutable();
        result.inputContextNames_ = inputContextNames_;
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        events_.makeImmutable();
        result.events_ = events_;
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        result.action_ = action_;
      }
      if (((from_bitField0_ & 0x00004000) != 0)) {
        result.resetContexts_ = resetContexts_;
      }
      if (((from_bitField0_ & 0x00040000) != 0)) {
        result.rootFollowupIntentName_ = rootFollowupIntentName_;
      }
      if (((from_bitField0_ & 0x00080000) != 0)) {
        result.parentFollowupIntentName_ = parentFollowupIntentName_;
      }
    }

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

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

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

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

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

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

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent) {
        return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
      if (other == com.google.cloud.dialogflow.v2beta1.Intent.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getDisplayName().isEmpty()) {
        displayName_ = other.displayName_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.webhookState_ != 0) {
        setWebhookStateValue(other.getWebhookStateValue());
      }
      if (other.getPriority() != 0) {
        setPriority(other.getPriority());
      }
      if (other.getIsFallback() != false) {
        setIsFallback(other.getIsFallback());
      }
      if (other.getMlEnabled() != false) {
        setMlEnabled(other.getMlEnabled());
      }
      if (other.getMlDisabled() != false) {
        setMlDisabled(other.getMlDisabled());
      }
      if (other.getLiveAgentHandoff() != false) {
        setLiveAgentHandoff(other.getLiveAgentHandoff());
      }
      if (other.getEndInteraction() != false) {
        setEndInteraction(other.getEndInteraction());
      }
      if (!other.inputContextNames_.isEmpty()) {
        if (inputContextNames_.isEmpty()) {
          inputContextNames_ = other.inputContextNames_;
          bitField0_ |= 0x00000200;
        } else {
          ensureInputContextNamesIsMutable();
          inputContextNames_.addAll(other.inputContextNames_);
        }
        onChanged();
      }
      if (!other.events_.isEmpty()) {
        if (events_.isEmpty()) {
          events_ = other.events_;
          bitField0_ |= 0x00000400;
        } else {
          ensureEventsIsMutable();
          events_.addAll(other.events_);
        }
        onChanged();
      }
      if (trainingPhrasesBuilder_ == null) {
        if (!other.trainingPhrases_.isEmpty()) {
          if (trainingPhrases_.isEmpty()) {
            trainingPhrases_ = other.trainingPhrases_;
            bitField0_ = (bitField0_ & ~0x00000800);
          } else {
            ensureTrainingPhrasesIsMutable();
            trainingPhrases_.addAll(other.trainingPhrases_);
          }
          onChanged();
        }
      } else {
        if (!other.trainingPhrases_.isEmpty()) {
          if (trainingPhrasesBuilder_.isEmpty()) {
            trainingPhrasesBuilder_.dispose();
            trainingPhrasesBuilder_ = null;
            trainingPhrases_ = other.trainingPhrases_;
            bitField0_ = (bitField0_ & ~0x00000800);
            trainingPhrasesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getTrainingPhrasesFieldBuilder()
                    : null;
          } else {
            trainingPhrasesBuilder_.addAllMessages(other.trainingPhrases_);
          }
        }
      }
      if (!other.getAction().isEmpty()) {
        action_ = other.action_;
        bitField0_ |= 0x00001000;
        onChanged();
      }
      if (outputContextsBuilder_ == null) {
        if (!other.outputContexts_.isEmpty()) {
          if (outputContexts_.isEmpty()) {
            outputContexts_ = other.outputContexts_;
            bitField0_ = (bitField0_ & ~0x00002000);
          } else {
            ensureOutputContextsIsMutable();
            outputContexts_.addAll(other.outputContexts_);
          }
          onChanged();
        }
      } else {
        if (!other.outputContexts_.isEmpty()) {
          if (outputContextsBuilder_.isEmpty()) {
            outputContextsBuilder_.dispose();
            outputContextsBuilder_ = null;
            outputContexts_ = other.outputContexts_;
            bitField0_ = (bitField0_ & ~0x00002000);
            outputContextsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getOutputContextsFieldBuilder()
                    : null;
          } else {
            outputContextsBuilder_.addAllMessages(other.outputContexts_);
          }
        }
      }
      if (other.getResetContexts() != false) {
        setResetContexts(other.getResetContexts());
      }
      if (parametersBuilder_ == null) {
        if (!other.parameters_.isEmpty()) {
          if (parameters_.isEmpty()) {
            parameters_ = other.parameters_;
            bitField0_ = (bitField0_ & ~0x00008000);
          } else {
            ensureParametersIsMutable();
            parameters_.addAll(other.parameters_);
          }
          onChanged();
        }
      } else {
        if (!other.parameters_.isEmpty()) {
          if (parametersBuilder_.isEmpty()) {
            parametersBuilder_.dispose();
            parametersBuilder_ = null;
            parameters_ = other.parameters_;
            bitField0_ = (bitField0_ & ~0x00008000);
            parametersBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getParametersFieldBuilder()
                    : null;
          } else {
            parametersBuilder_.addAllMessages(other.parameters_);
          }
        }
      }
      if (messagesBuilder_ == null) {
        if (!other.messages_.isEmpty()) {
          if (messages_.isEmpty()) {
            messages_ = other.messages_;
            bitField0_ = (bitField0_ & ~0x00010000);
          } else {
            ensureMessagesIsMutable();
            messages_.addAll(other.messages_);
          }
          onChanged();
        }
      } else {
        if (!other.messages_.isEmpty()) {
          if (messagesBuilder_.isEmpty()) {
            messagesBuilder_.dispose();
            messagesBuilder_ = null;
            messages_ = other.messages_;
            bitField0_ = (bitField0_ & ~0x00010000);
            messagesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getMessagesFieldBuilder()
                    : null;
          } else {
            messagesBuilder_.addAllMessages(other.messages_);
          }
        }
      }
      if (!other.defaultResponsePlatforms_.isEmpty()) {
        if (defaultResponsePlatforms_.isEmpty()) {
          defaultResponsePlatforms_ = other.defaultResponsePlatforms_;
          bitField0_ = (bitField0_ & ~0x00020000);
        } else {
          ensureDefaultResponsePlatformsIsMutable();
          defaultResponsePlatforms_.addAll(other.defaultResponsePlatforms_);
        }
        onChanged();
      }
      if (!other.getRootFollowupIntentName().isEmpty()) {
        rootFollowupIntentName_ = other.rootFollowupIntentName_;
        bitField0_ |= 0x00040000;
        onChanged();
      }
      if (!other.getParentFollowupIntentName().isEmpty()) {
        parentFollowupIntentName_ = other.parentFollowupIntentName_;
        bitField0_ |= 0x00080000;
        onChanged();
      }
      if (followupIntentInfoBuilder_ == null) {
        if (!other.followupIntentInfo_.isEmpty()) {
          if (followupIntentInfo_.isEmpty()) {
            followupIntentInfo_ = other.followupIntentInfo_;
            bitField0_ = (bitField0_ & ~0x00100000);
          } else {
            ensureFollowupIntentInfoIsMutable();
            followupIntentInfo_.addAll(other.followupIntentInfo_);
          }
          onChanged();
        }
      } else {
        if (!other.followupIntentInfo_.isEmpty()) {
          if (followupIntentInfoBuilder_.isEmpty()) {
            followupIntentInfoBuilder_.dispose();
            followupIntentInfoBuilder_ = null;
            followupIntentInfo_ = other.followupIntentInfo_;
            bitField0_ = (bitField0_ & ~0x00100000);
            followupIntentInfoBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getFollowupIntentInfoFieldBuilder()
                    : null;
          } else {
            followupIntentInfoBuilder_.addAllMessages(other.followupIntentInfo_);
          }
        }
      }
      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:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                displayName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 24:
              {
                priority_ = input.readInt32();
                bitField0_ |= 0x00000008;
                break;
              } // case 24
            case 32:
              {
                isFallback_ = input.readBool();
                bitField0_ |= 0x00000010;
                break;
              } // case 32
            case 40:
              {
                mlEnabled_ = input.readBool();
                bitField0_ |= 0x00000020;
                break;
              } // case 40
            case 48:
              {
                webhookState_ = input.readEnum();
                bitField0_ |= 0x00000004;
                break;
              } // case 48
            case 58:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureInputContextNamesIsMutable();
                inputContextNames_.add(s);
                break;
              } // case 58
            case 66:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureEventsIsMutable();
                events_.add(s);
                break;
              } // case 66
            case 74:
              {
                com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase m =
                    input.readMessage(
                        com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.parser(),
                        extensionRegistry);
                if (trainingPhrasesBuilder_ == null) {
                  ensureTrainingPhrasesIsMutable();
                  trainingPhrases_.add(m);
                } else {
                  trainingPhrasesBuilder_.addMessage(m);
                }
                break;
              } // case 74
            case 82:
              {
                action_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00001000;
                break;
              } // case 82
            case 90:
              {
                com.google.cloud.dialogflow.v2beta1.Context m =
                    input.readMessage(
                        com.google.cloud.dialogflow.v2beta1.Context.parser(), extensionRegistry);
                if (outputContextsBuilder_ == null) {
                  ensureOutputContextsIsMutable();
                  outputContexts_.add(m);
                } else {
                  outputContextsBuilder_.addMessage(m);
                }
                break;
              } // case 90
            case 96:
              {
                resetContexts_ = input.readBool();
                bitField0_ |= 0x00004000;
                break;
              } // case 96
            case 106:
              {
                com.google.cloud.dialogflow.v2beta1.Intent.Parameter m =
                    input.readMessage(
                        com.google.cloud.dialogflow.v2beta1.Intent.Parameter.parser(),
                        extensionRegistry);
                if (parametersBuilder_ == null) {
                  ensureParametersIsMutable();
                  parameters_.add(m);
                } else {
                  parametersBuilder_.addMessage(m);
                }
                break;
              } // case 106
            case 114:
              {
                com.google.cloud.dialogflow.v2beta1.Intent.Message m =
                    input.readMessage(
                        com.google.cloud.dialogflow.v2beta1.Intent.Message.parser(),
                        extensionRegistry);
                if (messagesBuilder_ == null) {
                  ensureMessagesIsMutable();
                  messages_.add(m);
                } else {
                  messagesBuilder_.addMessage(m);
                }
                break;
              } // case 114
            case 120:
              {
                int tmpRaw = input.readEnum();
                ensureDefaultResponsePlatformsIsMutable();
                defaultResponsePlatforms_.add(tmpRaw);
                break;
              } // case 120
            case 122:
              {
                int length = input.readRawVarint32();
                int oldLimit = input.pushLimit(length);
                while (input.getBytesUntilLimit() > 0) {
                  int tmpRaw = input.readEnum();
                  ensureDefaultResponsePlatformsIsMutable();
                  defaultResponsePlatforms_.add(tmpRaw);
                }
                input.popLimit(oldLimit);
                break;
              } // case 122
            case 130:
              {
                rootFollowupIntentName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00040000;
                break;
              } // case 130
            case 138:
              {
                parentFollowupIntentName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00080000;
                break;
              } // case 138
            case 146:
              {
                com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo m =
                    input.readMessage(
                        com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.parser(),
                        extensionRegistry);
                if (followupIntentInfoBuilder_ == null) {
                  ensureFollowupIntentInfoIsMutable();
                  followupIntentInfo_.add(m);
                } else {
                  followupIntentInfoBuilder_.addMessage(m);
                }
                break;
              } // case 146
            case 152:
              {
                mlDisabled_ = input.readBool();
                bitField0_ |= 0x00000040;
                break;
              } // case 152
            case 160:
              {
                liveAgentHandoff_ = input.readBool();
                bitField0_ |= 0x00000080;
                break;
              } // case 160
            case 168:
              {
                endInteraction_ = input.readBool();
                bitField0_ |= 0x00000100;
                break;
              } // case 168
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The unique identifier of this intent.
     * Required for
     * [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent]
     * and
     * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
     * methods.
     * Supported formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agent/intents/&lt;Intent ID&gt;`
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The unique identifier of this intent.
     * Required for
     * [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent]
     * and
     * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
     * methods.
     * Supported formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agent/intents/&lt;Intent ID&gt;`
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The unique identifier of this intent.
     * Required for
     * [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent]
     * and
     * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
     * methods.
     * Supported formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agent/intents/&lt;Intent ID&gt;`
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The unique identifier of this intent.
     * Required for
     * [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent]
     * and
     * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
     * methods.
     * Supported formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agent/intents/&lt;Intent ID&gt;`
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The unique identifier of this intent.
     * Required for
     * [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent]
     * and
     * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
     * methods.
     * Supported formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agent/intents/&lt;Intent ID&gt;`
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object displayName_ = "";
    /**
     *
     *
     * <pre>
     * Required. The name of this intent.
     * </pre>
     *
     * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The displayName.
     */
    public java.lang.String getDisplayName() {
      java.lang.Object ref = displayName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        displayName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The name of this intent.
     * </pre>
     *
     * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for displayName.
     */
    public com.google.protobuf.ByteString getDisplayNameBytes() {
      java.lang.Object ref = displayName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        displayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The name of this intent.
     * </pre>
     *
     * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      displayName_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The name of this intent.
     * </pre>
     *
     * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDisplayName() {
      displayName_ = getDefaultInstance().getDisplayName();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The name of this intent.
     * </pre>
     *
     * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The bytes for displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      displayName_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private int webhookState_ = 0;
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether webhooks are enabled for the intent.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The enum numeric value on the wire for webhookState.
     */
    @java.lang.Override
    public int getWebhookStateValue() {
      return webhookState_;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether webhooks are enabled for the intent.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The enum numeric value on the wire for webhookState to set.
     * @return This builder for chaining.
     */
    public Builder setWebhookStateValue(int value) {
      webhookState_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether webhooks are enabled for the intent.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The webhookState.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.Intent.WebhookState getWebhookState() {
      com.google.cloud.dialogflow.v2beta1.Intent.WebhookState result =
          com.google.cloud.dialogflow.v2beta1.Intent.WebhookState.forNumber(webhookState_);
      return result == null
          ? com.google.cloud.dialogflow.v2beta1.Intent.WebhookState.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether webhooks are enabled for the intent.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The webhookState to set.
     * @return This builder for chaining.
     */
    public Builder setWebhookState(com.google.cloud.dialogflow.v2beta1.Intent.WebhookState value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000004;
      webhookState_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether webhooks are enabled for the intent.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearWebhookState() {
      bitField0_ = (bitField0_ & ~0x00000004);
      webhookState_ = 0;
      onChanged();
      return this;
    }

    private int priority_;
    /**
     *
     *
     * <pre>
     * Optional. The priority of this intent. Higher numbers represent higher
     * priorities.
     *
     * - If the supplied value is unspecified or 0, the service
     *   translates the value to 500,000, which corresponds to the
     *   `Normal` priority in the console.
     * - If the supplied value is negative, the intent is ignored
     *   in runtime detect intent requests.
     * </pre>
     *
     * <code>int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The priority.
     */
    @java.lang.Override
    public int getPriority() {
      return priority_;
    }
    /**
     *
     *
     * <pre>
     * Optional. The priority of this intent. Higher numbers represent higher
     * priorities.
     *
     * - If the supplied value is unspecified or 0, the service
     *   translates the value to 500,000, which corresponds to the
     *   `Normal` priority in the console.
     * - If the supplied value is negative, the intent is ignored
     *   in runtime detect intent requests.
     * </pre>
     *
     * <code>int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The priority to set.
     * @return This builder for chaining.
     */
    public Builder setPriority(int value) {

      priority_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The priority of this intent. Higher numbers represent higher
     * priorities.
     *
     * - If the supplied value is unspecified or 0, the service
     *   translates the value to 500,000, which corresponds to the
     *   `Normal` priority in the console.
     * - If the supplied value is negative, the intent is ignored
     *   in runtime detect intent requests.
     * </pre>
     *
     * <code>int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPriority() {
      bitField0_ = (bitField0_ & ~0x00000008);
      priority_ = 0;
      onChanged();
      return this;
    }

    private boolean isFallback_;
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether this is a fallback intent.
     * </pre>
     *
     * <code>bool is_fallback = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The isFallback.
     */
    @java.lang.Override
    public boolean getIsFallback() {
      return isFallback_;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether this is a fallback intent.
     * </pre>
     *
     * <code>bool is_fallback = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The isFallback to set.
     * @return This builder for chaining.
     */
    public Builder setIsFallback(boolean value) {

      isFallback_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether this is a fallback intent.
     * </pre>
     *
     * <code>bool is_fallback = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearIsFallback() {
      bitField0_ = (bitField0_ & ~0x00000010);
      isFallback_ = false;
      onChanged();
      return this;
    }

    private boolean mlEnabled_;
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether Machine Learning is enabled for the intent.
     * Note: If `ml_enabled` setting is set to false, then this intent is not
     * taken into account during inference in `ML ONLY` match mode. Also,
     * auto-markup in the UI is turned off.
     * DEPRECATED! Please use `ml_disabled` field instead.
     * NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
     * then the default value is determined as follows:
     *
     * - Before April 15th, 2018 the default is:
     *   ml_enabled = false / ml_disabled = true.
     * - After April 15th, 2018 the default is:
     *   ml_enabled = true / ml_disabled = false.
     * </pre>
     *
     * <code>bool ml_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @deprecated google.cloud.dialogflow.v2beta1.Intent.ml_enabled is deprecated. See
     *     google/cloud/dialogflow/v2beta1/intent.proto;l=1154
     * @return The mlEnabled.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public boolean getMlEnabled() {
      return mlEnabled_;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether Machine Learning is enabled for the intent.
     * Note: If `ml_enabled` setting is set to false, then this intent is not
     * taken into account during inference in `ML ONLY` match mode. Also,
     * auto-markup in the UI is turned off.
     * DEPRECATED! Please use `ml_disabled` field instead.
     * NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
     * then the default value is determined as follows:
     *
     * - Before April 15th, 2018 the default is:
     *   ml_enabled = false / ml_disabled = true.
     * - After April 15th, 2018 the default is:
     *   ml_enabled = true / ml_disabled = false.
     * </pre>
     *
     * <code>bool ml_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @deprecated google.cloud.dialogflow.v2beta1.Intent.ml_enabled is deprecated. See
     *     google/cloud/dialogflow/v2beta1/intent.proto;l=1154
     * @param value The mlEnabled to set.
     * @return This builder for chaining.
     */
    @java.lang.Deprecated
    public Builder setMlEnabled(boolean value) {

      mlEnabled_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether Machine Learning is enabled for the intent.
     * Note: If `ml_enabled` setting is set to false, then this intent is not
     * taken into account during inference in `ML ONLY` match mode. Also,
     * auto-markup in the UI is turned off.
     * DEPRECATED! Please use `ml_disabled` field instead.
     * NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
     * then the default value is determined as follows:
     *
     * - Before April 15th, 2018 the default is:
     *   ml_enabled = false / ml_disabled = true.
     * - After April 15th, 2018 the default is:
     *   ml_enabled = true / ml_disabled = false.
     * </pre>
     *
     * <code>bool ml_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @deprecated google.cloud.dialogflow.v2beta1.Intent.ml_enabled is deprecated. See
     *     google/cloud/dialogflow/v2beta1/intent.proto;l=1154
     * @return This builder for chaining.
     */
    @java.lang.Deprecated
    public Builder clearMlEnabled() {
      bitField0_ = (bitField0_ & ~0x00000020);
      mlEnabled_ = false;
      onChanged();
      return this;
    }

    private boolean mlDisabled_;
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether Machine Learning is disabled for the intent.
     * Note: If `ml_disabled` setting is set to true, then this intent is not
     * taken into account during inference in `ML ONLY` match mode. Also,
     * auto-markup in the UI is turned off.
     * </pre>
     *
     * <code>bool ml_disabled = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The mlDisabled.
     */
    @java.lang.Override
    public boolean getMlDisabled() {
      return mlDisabled_;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether Machine Learning is disabled for the intent.
     * Note: If `ml_disabled` setting is set to true, then this intent is not
     * taken into account during inference in `ML ONLY` match mode. Also,
     * auto-markup in the UI is turned off.
     * </pre>
     *
     * <code>bool ml_disabled = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The mlDisabled to set.
     * @return This builder for chaining.
     */
    public Builder setMlDisabled(boolean value) {

      mlDisabled_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether Machine Learning is disabled for the intent.
     * Note: If `ml_disabled` setting is set to true, then this intent is not
     * taken into account during inference in `ML ONLY` match mode. Also,
     * auto-markup in the UI is turned off.
     * </pre>
     *
     * <code>bool ml_disabled = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearMlDisabled() {
      bitField0_ = (bitField0_ & ~0x00000040);
      mlDisabled_ = false;
      onChanged();
      return this;
    }

    private boolean liveAgentHandoff_;
    /**
     *
     *
     * <pre>
     * Optional. Indicates that a live agent should be brought in to handle the
     * interaction with the user. In most cases, when you set this flag to true,
     * you would also want to set end_interaction to true as well. Default is
     * false.
     * </pre>
     *
     * <code>bool live_agent_handoff = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The liveAgentHandoff.
     */
    @java.lang.Override
    public boolean getLiveAgentHandoff() {
      return liveAgentHandoff_;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates that a live agent should be brought in to handle the
     * interaction with the user. In most cases, when you set this flag to true,
     * you would also want to set end_interaction to true as well. Default is
     * false.
     * </pre>
     *
     * <code>bool live_agent_handoff = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The liveAgentHandoff to set.
     * @return This builder for chaining.
     */
    public Builder setLiveAgentHandoff(boolean value) {

      liveAgentHandoff_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates that a live agent should be brought in to handle the
     * interaction with the user. In most cases, when you set this flag to true,
     * you would also want to set end_interaction to true as well. Default is
     * false.
     * </pre>
     *
     * <code>bool live_agent_handoff = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearLiveAgentHandoff() {
      bitField0_ = (bitField0_ & ~0x00000080);
      liveAgentHandoff_ = false;
      onChanged();
      return this;
    }

    private boolean endInteraction_;
    /**
     *
     *
     * <pre>
     * Optional. Indicates that this intent ends an interaction. Some integrations
     * (e.g., Actions on Google or Dialogflow phone gateway) use this information
     * to close interaction with an end user. Default is false.
     * </pre>
     *
     * <code>bool end_interaction = 21 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The endInteraction.
     */
    @java.lang.Override
    public boolean getEndInteraction() {
      return endInteraction_;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates that this intent ends an interaction. Some integrations
     * (e.g., Actions on Google or Dialogflow phone gateway) use this information
     * to close interaction with an end user. Default is false.
     * </pre>
     *
     * <code>bool end_interaction = 21 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The endInteraction to set.
     * @return This builder for chaining.
     */
    public Builder setEndInteraction(boolean value) {

      endInteraction_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates that this intent ends an interaction. Some integrations
     * (e.g., Actions on Google or Dialogflow phone gateway) use this information
     * to close interaction with an end user. Default is false.
     * </pre>
     *
     * <code>bool end_interaction = 21 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearEndInteraction() {
      bitField0_ = (bitField0_ & ~0x00000100);
      endInteraction_ = false;
      onChanged();
      return this;
    }

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

    private void ensureInputContextNamesIsMutable() {
      if (!inputContextNames_.isModifiable()) {
        inputContextNames_ = new com.google.protobuf.LazyStringArrayList(inputContextNames_);
      }
      bitField0_ |= 0x00000200;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of context names required for this intent to be
     * triggered.
     * Formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location
     *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * </pre>
     *
     * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return A list containing the inputContextNames.
     */
    public com.google.protobuf.ProtocolStringList getInputContextNamesList() {
      inputContextNames_.makeImmutable();
      return inputContextNames_;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of context names required for this intent to be
     * triggered.
     * Formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location
     *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * </pre>
     *
     * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The count of inputContextNames.
     */
    public int getInputContextNamesCount() {
      return inputContextNames_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of context names required for this intent to be
     * triggered.
     * Formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location
     *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * </pre>
     *
     * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the element to return.
     * @return The inputContextNames at the given index.
     */
    public java.lang.String getInputContextNames(int index) {
      return inputContextNames_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of context names required for this intent to be
     * triggered.
     * Formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location
     *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * </pre>
     *
     * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the inputContextNames at the given index.
     */
    public com.google.protobuf.ByteString getInputContextNamesBytes(int index) {
      return inputContextNames_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of context names required for this intent to be
     * triggered.
     * Formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location
     *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * </pre>
     *
     * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index to set the value at.
     * @param value The inputContextNames to set.
     * @return This builder for chaining.
     */
    public Builder setInputContextNames(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureInputContextNamesIsMutable();
      inputContextNames_.set(index, value);
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of context names required for this intent to be
     * triggered.
     * Formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location
     *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * </pre>
     *
     * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The inputContextNames to add.
     * @return This builder for chaining.
     */
    public Builder addInputContextNames(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureInputContextNamesIsMutable();
      inputContextNames_.add(value);
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of context names required for this intent to be
     * triggered.
     * Formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location
     *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * </pre>
     *
     * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param values The inputContextNames to add.
     * @return This builder for chaining.
     */
    public Builder addAllInputContextNames(java.lang.Iterable<java.lang.String> values) {
      ensureInputContextNamesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputContextNames_);
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of context names required for this intent to be
     * triggered.
     * Formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location
     *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * </pre>
     *
     * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearInputContextNames() {
      inputContextNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
      bitField0_ = (bitField0_ & ~0x00000200);
      ;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of context names required for this intent to be
     * triggered.
     * Formats:
     *
     * - `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * - `projects/&lt;Project ID&gt;/locations/&lt;Location
     *   ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`
     * </pre>
     *
     * <code>repeated string input_context_names = 7 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The bytes of the inputContextNames to add.
     * @return This builder for chaining.
     */
    public Builder addInputContextNamesBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureInputContextNamesIsMutable();
      inputContextNames_.add(value);
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }

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

    private void ensureEventsIsMutable() {
      if (!events_.isModifiable()) {
        events_ = new com.google.protobuf.LazyStringArrayList(events_);
      }
      bitField0_ |= 0x00000400;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of event names that trigger the intent.
     * If the collection of input contexts is not empty, all of the contexts must
     * be present in the active user session for an event to trigger this intent.
     * Event names are limited to 150 characters.
     * </pre>
     *
     * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return A list containing the events.
     */
    public com.google.protobuf.ProtocolStringList getEventsList() {
      events_.makeImmutable();
      return events_;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of event names that trigger the intent.
     * If the collection of input contexts is not empty, all of the contexts must
     * be present in the active user session for an event to trigger this intent.
     * Event names are limited to 150 characters.
     * </pre>
     *
     * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The count of events.
     */
    public int getEventsCount() {
      return events_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of event names that trigger the intent.
     * If the collection of input contexts is not empty, all of the contexts must
     * be present in the active user session for an event to trigger this intent.
     * Event names are limited to 150 characters.
     * </pre>
     *
     * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the element to return.
     * @return The events at the given index.
     */
    public java.lang.String getEvents(int index) {
      return events_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of event names that trigger the intent.
     * If the collection of input contexts is not empty, all of the contexts must
     * be present in the active user session for an event to trigger this intent.
     * Event names are limited to 150 characters.
     * </pre>
     *
     * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the events at the given index.
     */
    public com.google.protobuf.ByteString getEventsBytes(int index) {
      return events_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of event names that trigger the intent.
     * If the collection of input contexts is not empty, all of the contexts must
     * be present in the active user session for an event to trigger this intent.
     * Event names are limited to 150 characters.
     * </pre>
     *
     * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index to set the value at.
     * @param value The events to set.
     * @return This builder for chaining.
     */
    public Builder setEvents(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureEventsIsMutable();
      events_.set(index, value);
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of event names that trigger the intent.
     * If the collection of input contexts is not empty, all of the contexts must
     * be present in the active user session for an event to trigger this intent.
     * Event names are limited to 150 characters.
     * </pre>
     *
     * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The events to add.
     * @return This builder for chaining.
     */
    public Builder addEvents(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureEventsIsMutable();
      events_.add(value);
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of event names that trigger the intent.
     * If the collection of input contexts is not empty, all of the contexts must
     * be present in the active user session for an event to trigger this intent.
     * Event names are limited to 150 characters.
     * </pre>
     *
     * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param values The events to add.
     * @return This builder for chaining.
     */
    public Builder addAllEvents(java.lang.Iterable<java.lang.String> values) {
      ensureEventsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_);
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of event names that trigger the intent.
     * If the collection of input contexts is not empty, all of the contexts must
     * be present in the active user session for an event to trigger this intent.
     * Event names are limited to 150 characters.
     * </pre>
     *
     * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearEvents() {
      events_ = com.google.protobuf.LazyStringArrayList.emptyList();
      bitField0_ = (bitField0_ & ~0x00000400);
      ;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of event names that trigger the intent.
     * If the collection of input contexts is not empty, all of the contexts must
     * be present in the active user session for an event to trigger this intent.
     * Event names are limited to 150 characters.
     * </pre>
     *
     * <code>repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes of the events to add.
     * @return This builder for chaining.
     */
    public Builder addEventsBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureEventsIsMutable();
      events_.add(value);
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase>
        trainingPhrases_ = java.util.Collections.emptyList();

    private void ensureTrainingPhrasesIsMutable() {
      if (!((bitField0_ & 0x00000800) != 0)) {
        trainingPhrases_ =
            new java.util.ArrayList<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase>(
                trainingPhrases_);
        bitField0_ |= 0x00000800;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase,
            com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder,
            com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhraseOrBuilder>
        trainingPhrasesBuilder_;

    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase>
        getTrainingPhrasesList() {
      if (trainingPhrasesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(trainingPhrases_);
      } else {
        return trainingPhrasesBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public int getTrainingPhrasesCount() {
      if (trainingPhrasesBuilder_ == null) {
        return trainingPhrases_.size();
      } else {
        return trainingPhrasesBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase getTrainingPhrases(int index) {
      if (trainingPhrasesBuilder_ == null) {
        return trainingPhrases_.get(index);
      } else {
        return trainingPhrasesBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setTrainingPhrases(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase value) {
      if (trainingPhrasesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTrainingPhrasesIsMutable();
        trainingPhrases_.set(index, value);
        onChanged();
      } else {
        trainingPhrasesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setTrainingPhrases(
        int index,
        com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder builderForValue) {
      if (trainingPhrasesBuilder_ == null) {
        ensureTrainingPhrasesIsMutable();
        trainingPhrases_.set(index, builderForValue.build());
        onChanged();
      } else {
        trainingPhrasesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addTrainingPhrases(
        com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase value) {
      if (trainingPhrasesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTrainingPhrasesIsMutable();
        trainingPhrases_.add(value);
        onChanged();
      } else {
        trainingPhrasesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addTrainingPhrases(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase value) {
      if (trainingPhrasesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTrainingPhrasesIsMutable();
        trainingPhrases_.add(index, value);
        onChanged();
      } else {
        trainingPhrasesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addTrainingPhrases(
        com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder builderForValue) {
      if (trainingPhrasesBuilder_ == null) {
        ensureTrainingPhrasesIsMutable();
        trainingPhrases_.add(builderForValue.build());
        onChanged();
      } else {
        trainingPhrasesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addTrainingPhrases(
        int index,
        com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder builderForValue) {
      if (trainingPhrasesBuilder_ == null) {
        ensureTrainingPhrasesIsMutable();
        trainingPhrases_.add(index, builderForValue.build());
        onChanged();
      } else {
        trainingPhrasesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addAllTrainingPhrases(
        java.lang.Iterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase>
            values) {
      if (trainingPhrasesBuilder_ == null) {
        ensureTrainingPhrasesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trainingPhrases_);
        onChanged();
      } else {
        trainingPhrasesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearTrainingPhrases() {
      if (trainingPhrasesBuilder_ == null) {
        trainingPhrases_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000800);
        onChanged();
      } else {
        trainingPhrasesBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder removeTrainingPhrases(int index) {
      if (trainingPhrasesBuilder_ == null) {
        ensureTrainingPhrasesIsMutable();
        trainingPhrases_.remove(index);
        onChanged();
      } else {
        trainingPhrasesBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder
        getTrainingPhrasesBuilder(int index) {
      return getTrainingPhrasesFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhraseOrBuilder
        getTrainingPhrasesOrBuilder(int index) {
      if (trainingPhrasesBuilder_ == null) {
        return trainingPhrases_.get(index);
      } else {
        return trainingPhrasesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<
            ? extends com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhraseOrBuilder>
        getTrainingPhrasesOrBuilderList() {
      if (trainingPhrasesBuilder_ != null) {
        return trainingPhrasesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(trainingPhrases_);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder
        addTrainingPhrasesBuilder() {
      return getTrainingPhrasesFieldBuilder()
          .addBuilder(
              com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder
        addTrainingPhrasesBuilder(int index) {
      return getTrainingPhrasesFieldBuilder()
          .addBuilder(
              index,
              com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of examples that the agent is
     * trained on.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder>
        getTrainingPhrasesBuilderList() {
      return getTrainingPhrasesFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase,
            com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder,
            com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhraseOrBuilder>
        getTrainingPhrasesFieldBuilder() {
      if (trainingPhrasesBuilder_ == null) {
        trainingPhrasesBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase,
                com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhraseOrBuilder>(
                trainingPhrases_,
                ((bitField0_ & 0x00000800) != 0),
                getParentForChildren(),
                isClean());
        trainingPhrases_ = null;
      }
      return trainingPhrasesBuilder_;
    }

    private java.lang.Object action_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The name of the action associated with the intent.
     * Note: The action name must not contain whitespaces.
     * </pre>
     *
     * <code>string action = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The action.
     */
    public java.lang.String getAction() {
      java.lang.Object ref = action_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        action_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The name of the action associated with the intent.
     * Note: The action name must not contain whitespaces.
     * </pre>
     *
     * <code>string action = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for action.
     */
    public com.google.protobuf.ByteString getActionBytes() {
      java.lang.Object ref = action_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        action_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The name of the action associated with the intent.
     * Note: The action name must not contain whitespaces.
     * </pre>
     *
     * <code>string action = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The action to set.
     * @return This builder for chaining.
     */
    public Builder setAction(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      action_ = value;
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The name of the action associated with the intent.
     * Note: The action name must not contain whitespaces.
     * </pre>
     *
     * <code>string action = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAction() {
      action_ = getDefaultInstance().getAction();
      bitField0_ = (bitField0_ & ~0x00001000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The name of the action associated with the intent.
     * Note: The action name must not contain whitespaces.
     * </pre>
     *
     * <code>string action = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The bytes for action to set.
     * @return This builder for chaining.
     */
    public Builder setActionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      action_ = value;
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.dialogflow.v2beta1.Context> outputContexts_ =
        java.util.Collections.emptyList();

    private void ensureOutputContextsIsMutable() {
      if (!((bitField0_ & 0x00002000) != 0)) {
        outputContexts_ =
            new java.util.ArrayList<com.google.cloud.dialogflow.v2beta1.Context>(outputContexts_);
        bitField0_ |= 0x00002000;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.dialogflow.v2beta1.Context,
            com.google.cloud.dialogflow.v2beta1.Context.Builder,
            com.google.cloud.dialogflow.v2beta1.ContextOrBuilder>
        outputContextsBuilder_;

    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Context> getOutputContextsList() {
      if (outputContextsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(outputContexts_);
      } else {
        return outputContextsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public int getOutputContextsCount() {
      if (outputContextsBuilder_ == null) {
        return outputContexts_.size();
      } else {
        return outputContextsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Context getOutputContexts(int index) {
      if (outputContextsBuilder_ == null) {
        return outputContexts_.get(index);
      } else {
        return outputContextsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setOutputContexts(int index, com.google.cloud.dialogflow.v2beta1.Context value) {
      if (outputContextsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOutputContextsIsMutable();
        outputContexts_.set(index, value);
        onChanged();
      } else {
        outputContextsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setOutputContexts(
        int index, com.google.cloud.dialogflow.v2beta1.Context.Builder builderForValue) {
      if (outputContextsBuilder_ == null) {
        ensureOutputContextsIsMutable();
        outputContexts_.set(index, builderForValue.build());
        onChanged();
      } else {
        outputContextsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addOutputContexts(com.google.cloud.dialogflow.v2beta1.Context value) {
      if (outputContextsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOutputContextsIsMutable();
        outputContexts_.add(value);
        onChanged();
      } else {
        outputContextsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addOutputContexts(int index, com.google.cloud.dialogflow.v2beta1.Context value) {
      if (outputContextsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOutputContextsIsMutable();
        outputContexts_.add(index, value);
        onChanged();
      } else {
        outputContextsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addOutputContexts(
        com.google.cloud.dialogflow.v2beta1.Context.Builder builderForValue) {
      if (outputContextsBuilder_ == null) {
        ensureOutputContextsIsMutable();
        outputContexts_.add(builderForValue.build());
        onChanged();
      } else {
        outputContextsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addOutputContexts(
        int index, com.google.cloud.dialogflow.v2beta1.Context.Builder builderForValue) {
      if (outputContextsBuilder_ == null) {
        ensureOutputContextsIsMutable();
        outputContexts_.add(index, builderForValue.build());
        onChanged();
      } else {
        outputContextsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addAllOutputContexts(
        java.lang.Iterable<? extends com.google.cloud.dialogflow.v2beta1.Context> values) {
      if (outputContextsBuilder_ == null) {
        ensureOutputContextsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputContexts_);
        onChanged();
      } else {
        outputContextsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearOutputContexts() {
      if (outputContextsBuilder_ == null) {
        outputContexts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00002000);
        onChanged();
      } else {
        outputContextsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder removeOutputContexts(int index) {
      if (outputContextsBuilder_ == null) {
        ensureOutputContextsIsMutable();
        outputContexts_.remove(index);
        onChanged();
      } else {
        outputContextsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Context.Builder getOutputContextsBuilder(int index) {
      return getOutputContextsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.ContextOrBuilder getOutputContextsOrBuilder(
        int index) {
      if (outputContextsBuilder_ == null) {
        return outputContexts_.get(index);
      } else {
        return outputContextsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.dialogflow.v2beta1.ContextOrBuilder>
        getOutputContextsOrBuilderList() {
      if (outputContextsBuilder_ != null) {
        return outputContextsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(outputContexts_);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Context.Builder addOutputContextsBuilder() {
      return getOutputContextsFieldBuilder()
          .addBuilder(com.google.cloud.dialogflow.v2beta1.Context.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Context.Builder addOutputContextsBuilder(int index) {
      return getOutputContextsFieldBuilder()
          .addBuilder(index, com.google.cloud.dialogflow.v2beta1.Context.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of contexts that are activated when the intent
     * is matched. Context messages in this collection should not set the
     * parameters field. Setting the `lifespan_count` to 0 will reset the context
     * when the intent is matched.
     * Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Context.Builder>
        getOutputContextsBuilderList() {
      return getOutputContextsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.dialogflow.v2beta1.Context,
            com.google.cloud.dialogflow.v2beta1.Context.Builder,
            com.google.cloud.dialogflow.v2beta1.ContextOrBuilder>
        getOutputContextsFieldBuilder() {
      if (outputContextsBuilder_ == null) {
        outputContextsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Context,
                com.google.cloud.dialogflow.v2beta1.Context.Builder,
                com.google.cloud.dialogflow.v2beta1.ContextOrBuilder>(
                outputContexts_,
                ((bitField0_ & 0x00002000) != 0),
                getParentForChildren(),
                isClean());
        outputContexts_ = null;
      }
      return outputContextsBuilder_;
    }

    private boolean resetContexts_;
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether to delete all contexts in the current
     * session when this intent is matched.
     * </pre>
     *
     * <code>bool reset_contexts = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The resetContexts.
     */
    @java.lang.Override
    public boolean getResetContexts() {
      return resetContexts_;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether to delete all contexts in the current
     * session when this intent is matched.
     * </pre>
     *
     * <code>bool reset_contexts = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param value The resetContexts to set.
     * @return This builder for chaining.
     */
    public Builder setResetContexts(boolean value) {

      resetContexts_ = value;
      bitField0_ |= 0x00004000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Indicates whether to delete all contexts in the current
     * session when this intent is matched.
     * </pre>
     *
     * <code>bool reset_contexts = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearResetContexts() {
      bitField0_ = (bitField0_ & ~0x00004000);
      resetContexts_ = false;
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Parameter> parameters_ =
        java.util.Collections.emptyList();

    private void ensureParametersIsMutable() {
      if (!((bitField0_ & 0x00008000) != 0)) {
        parameters_ =
            new java.util.ArrayList<com.google.cloud.dialogflow.v2beta1.Intent.Parameter>(
                parameters_);
        bitField0_ |= 0x00008000;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.dialogflow.v2beta1.Intent.Parameter,
            com.google.cloud.dialogflow.v2beta1.Intent.Parameter.Builder,
            com.google.cloud.dialogflow.v2beta1.Intent.ParameterOrBuilder>
        parametersBuilder_;

    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Parameter>
        getParametersList() {
      if (parametersBuilder_ == null) {
        return java.util.Collections.unmodifiableList(parameters_);
      } else {
        return parametersBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public int getParametersCount() {
      if (parametersBuilder_ == null) {
        return parameters_.size();
      } else {
        return parametersBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.Parameter getParameters(int index) {
      if (parametersBuilder_ == null) {
        return parameters_.get(index);
      } else {
        return parametersBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setParameters(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.Parameter value) {
      if (parametersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParametersIsMutable();
        parameters_.set(index, value);
        onChanged();
      } else {
        parametersBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setParameters(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.Parameter.Builder builderForValue) {
      if (parametersBuilder_ == null) {
        ensureParametersIsMutable();
        parameters_.set(index, builderForValue.build());
        onChanged();
      } else {
        parametersBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addParameters(com.google.cloud.dialogflow.v2beta1.Intent.Parameter value) {
      if (parametersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParametersIsMutable();
        parameters_.add(value);
        onChanged();
      } else {
        parametersBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addParameters(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.Parameter value) {
      if (parametersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParametersIsMutable();
        parameters_.add(index, value);
        onChanged();
      } else {
        parametersBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addParameters(
        com.google.cloud.dialogflow.v2beta1.Intent.Parameter.Builder builderForValue) {
      if (parametersBuilder_ == null) {
        ensureParametersIsMutable();
        parameters_.add(builderForValue.build());
        onChanged();
      } else {
        parametersBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addParameters(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.Parameter.Builder builderForValue) {
      if (parametersBuilder_ == null) {
        ensureParametersIsMutable();
        parameters_.add(index, builderForValue.build());
        onChanged();
      } else {
        parametersBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder addAllParameters(
        java.lang.Iterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Parameter> values) {
      if (parametersBuilder_ == null) {
        ensureParametersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_);
        onChanged();
      } else {
        parametersBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearParameters() {
      if (parametersBuilder_ == null) {
        parameters_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00008000);
        onChanged();
      } else {
        parametersBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder removeParameters(int index) {
      if (parametersBuilder_ == null) {
        ensureParametersIsMutable();
        parameters_.remove(index);
        onChanged();
      } else {
        parametersBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.Parameter.Builder getParametersBuilder(
        int index) {
      return getParametersFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.ParameterOrBuilder getParametersOrBuilder(
        int index) {
      if (parametersBuilder_ == null) {
        return parameters_.get(index);
      } else {
        return parametersBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.dialogflow.v2beta1.Intent.ParameterOrBuilder>
        getParametersOrBuilderList() {
      if (parametersBuilder_ != null) {
        return parametersBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(parameters_);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.Parameter.Builder addParametersBuilder() {
      return getParametersFieldBuilder()
          .addBuilder(com.google.cloud.dialogflow.v2beta1.Intent.Parameter.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.Parameter.Builder addParametersBuilder(
        int index) {
      return getParametersFieldBuilder()
          .addBuilder(
              index, com.google.cloud.dialogflow.v2beta1.Intent.Parameter.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of parameters associated with the intent.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Parameter.Builder>
        getParametersBuilderList() {
      return getParametersFieldBuilder().getBuilderList();
    }

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

    private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message> messages_ =
        java.util.Collections.emptyList();

    private void ensureMessagesIsMutable() {
      if (!((bitField0_ & 0x00010000) != 0)) {
        messages_ =
            new java.util.ArrayList<com.google.cloud.dialogflow.v2beta1.Intent.Message>(messages_);
        bitField0_ |= 0x00010000;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.dialogflow.v2beta1.Intent.Message,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder,
            com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder>
        messagesBuilder_;

    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message> getMessagesList() {
      if (messagesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(messages_);
      } else {
        return messagesBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public int getMessagesCount() {
      if (messagesBuilder_ == null) {
        return messages_.size();
      } else {
        return messagesBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.Message getMessages(int index) {
      if (messagesBuilder_ == null) {
        return messages_.get(index);
      } else {
        return messagesBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public Builder setMessages(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.Message value) {
      if (messagesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMessagesIsMutable();
        messages_.set(index, value);
        onChanged();
      } else {
        messagesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public Builder setMessages(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder builderForValue) {
      if (messagesBuilder_ == null) {
        ensureMessagesIsMutable();
        messages_.set(index, builderForValue.build());
        onChanged();
      } else {
        messagesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public Builder addMessages(com.google.cloud.dialogflow.v2beta1.Intent.Message value) {
      if (messagesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMessagesIsMutable();
        messages_.add(value);
        onChanged();
      } else {
        messagesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public Builder addMessages(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.Message value) {
      if (messagesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMessagesIsMutable();
        messages_.add(index, value);
        onChanged();
      } else {
        messagesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public Builder addMessages(
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder builderForValue) {
      if (messagesBuilder_ == null) {
        ensureMessagesIsMutable();
        messages_.add(builderForValue.build());
        onChanged();
      } else {
        messagesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public Builder addMessages(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder builderForValue) {
      if (messagesBuilder_ == null) {
        ensureMessagesIsMutable();
        messages_.add(index, builderForValue.build());
        onChanged();
      } else {
        messagesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public Builder addAllMessages(
        java.lang.Iterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message> values) {
      if (messagesBuilder_ == null) {
        ensureMessagesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_);
        onChanged();
      } else {
        messagesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public Builder clearMessages() {
      if (messagesBuilder_ == null) {
        messages_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00010000);
        onChanged();
      } else {
        messagesBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public Builder removeMessages(int index) {
      if (messagesBuilder_ == null) {
        ensureMessagesIsMutable();
        messages_.remove(index);
        onChanged();
      } else {
        messagesBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder getMessagesBuilder(
        int index) {
      return getMessagesFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder getMessagesOrBuilder(
        int index) {
      if (messagesBuilder_ == null) {
        return messages_.get(index);
      } else {
        return messagesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public java.util.List<? extends com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder>
        getMessagesOrBuilderList() {
      if (messagesBuilder_ != null) {
        return messagesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(messages_);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder addMessagesBuilder() {
      return getMessagesFieldBuilder()
          .addBuilder(com.google.cloud.dialogflow.v2beta1.Intent.Message.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder addMessagesBuilder(
        int index) {
      return getMessagesFieldBuilder()
          .addBuilder(
              index, com.google.cloud.dialogflow.v2beta1.Intent.Message.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional. The collection of rich messages corresponding to the
     * `Response` field in the Dialogflow console.
     * </pre>
     *
     * <code>repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;</code>
     */
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder>
        getMessagesBuilderList() {
      return getMessagesFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.dialogflow.v2beta1.Intent.Message,
            com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder,
            com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder>
        getMessagesFieldBuilder() {
      if (messagesBuilder_ == null) {
        messagesBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.Message,
                com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder>(
                messages_, ((bitField0_ & 0x00010000) != 0), getParentForChildren(), isClean());
        messages_ = null;
      }
      return messagesBuilder_;
    }

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

    private void ensureDefaultResponsePlatformsIsMutable() {
      if (!((bitField0_ & 0x00020000) != 0)) {
        defaultResponsePlatforms_ =
            new java.util.ArrayList<java.lang.Integer>(defaultResponsePlatforms_);
        bitField0_ |= 0x00020000;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return A list containing the defaultResponsePlatforms.
     */
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform>
        getDefaultResponsePlatformsList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform>(
          defaultResponsePlatforms_, defaultResponsePlatforms_converter_);
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The count of defaultResponsePlatforms.
     */
    public int getDefaultResponsePlatformsCount() {
      return defaultResponsePlatforms_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the element to return.
     * @return The defaultResponsePlatforms at the given index.
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getDefaultResponsePlatforms(
        int index) {
      return defaultResponsePlatforms_converter_.convert(defaultResponsePlatforms_.get(index));
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index to set the value at.
     * @param value The defaultResponsePlatforms to set.
     * @return This builder for chaining.
     */
    public Builder setDefaultResponsePlatforms(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureDefaultResponsePlatformsIsMutable();
      defaultResponsePlatforms_.set(index, value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The defaultResponsePlatforms to add.
     * @return This builder for chaining.
     */
    public Builder addDefaultResponsePlatforms(
        com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureDefaultResponsePlatformsIsMutable();
      defaultResponsePlatforms_.add(value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param values The defaultResponsePlatforms to add.
     * @return This builder for chaining.
     */
    public Builder addAllDefaultResponsePlatforms(
        java.lang.Iterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform>
            values) {
      ensureDefaultResponsePlatformsIsMutable();
      for (com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform value : values) {
        defaultResponsePlatforms_.add(value.getNumber());
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDefaultResponsePlatforms() {
      defaultResponsePlatforms_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00020000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return A list containing the enum numeric values on the wire for defaultResponsePlatforms.
     */
    public java.util.List<java.lang.Integer> getDefaultResponsePlatformsValueList() {
      return java.util.Collections.unmodifiableList(defaultResponsePlatforms_);
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of defaultResponsePlatforms at the given index.
     */
    public int getDefaultResponsePlatformsValue(int index) {
      return defaultResponsePlatforms_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index to set the value at.
     * @param value The enum numeric value on the wire for defaultResponsePlatforms to set.
     * @return This builder for chaining.
     */
    public Builder setDefaultResponsePlatformsValue(int index, int value) {
      ensureDefaultResponsePlatformsIsMutable();
      defaultResponsePlatforms_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The enum numeric value on the wire for defaultResponsePlatforms to add.
     * @return This builder for chaining.
     */
    public Builder addDefaultResponsePlatformsValue(int value) {
      ensureDefaultResponsePlatformsIsMutable();
      defaultResponsePlatforms_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The list of platforms for which the first responses will be
     * copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param values The enum numeric values on the wire for defaultResponsePlatforms to add.
     * @return This builder for chaining.
     */
    public Builder addAllDefaultResponsePlatformsValue(
        java.lang.Iterable<java.lang.Integer> values) {
      ensureDefaultResponsePlatformsIsMutable();
      for (int value : values) {
        defaultResponsePlatforms_.add(value);
      }
      onChanged();
      return this;
    }

    private java.lang.Object rootFollowupIntentName_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The unique identifier of the root intent in the chain of
     * followup intents. It identifies the correct followup intents chain for
     * this intent.
     *
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string root_followup_intent_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The rootFollowupIntentName.
     */
    public java.lang.String getRootFollowupIntentName() {
      java.lang.Object ref = rootFollowupIntentName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        rootFollowupIntentName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The unique identifier of the root intent in the chain of
     * followup intents. It identifies the correct followup intents chain for
     * this intent.
     *
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string root_followup_intent_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The bytes for rootFollowupIntentName.
     */
    public com.google.protobuf.ByteString getRootFollowupIntentNameBytes() {
      java.lang.Object ref = rootFollowupIntentName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        rootFollowupIntentName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The unique identifier of the root intent in the chain of
     * followup intents. It identifies the correct followup intents chain for
     * this intent.
     *
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string root_followup_intent_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The rootFollowupIntentName to set.
     * @return This builder for chaining.
     */
    public Builder setRootFollowupIntentName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      rootFollowupIntentName_ = value;
      bitField0_ |= 0x00040000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The unique identifier of the root intent in the chain of
     * followup intents. It identifies the correct followup intents chain for
     * this intent.
     *
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string root_followup_intent_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearRootFollowupIntentName() {
      rootFollowupIntentName_ = getDefaultInstance().getRootFollowupIntentName();
      bitField0_ = (bitField0_ & ~0x00040000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The unique identifier of the root intent in the chain of
     * followup intents. It identifies the correct followup intents chain for
     * this intent.
     *
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string root_followup_intent_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The bytes for rootFollowupIntentName to set.
     * @return This builder for chaining.
     */
    public Builder setRootFollowupIntentNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      rootFollowupIntentName_ = value;
      bitField0_ |= 0x00040000;
      onChanged();
      return this;
    }

    private java.lang.Object parentFollowupIntentName_ = "";
    /**
     *
     *
     * <pre>
     * Optional. The unique identifier of the parent intent in the
     * chain of followup intents. You can set this field when creating an intent,
     * for example with
     * [CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent] or
     * [BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents],
     * in order to make this intent a followup intent.
     *
     * It identifies the parent followup intent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string parent_followup_intent_name = 17 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The parentFollowupIntentName.
     */
    public java.lang.String getParentFollowupIntentName() {
      java.lang.Object ref = parentFollowupIntentName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        parentFollowupIntentName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The unique identifier of the parent intent in the
     * chain of followup intents. You can set this field when creating an intent,
     * for example with
     * [CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent] or
     * [BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents],
     * in order to make this intent a followup intent.
     *
     * It identifies the parent followup intent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string parent_followup_intent_name = 17 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The bytes for parentFollowupIntentName.
     */
    public com.google.protobuf.ByteString getParentFollowupIntentNameBytes() {
      java.lang.Object ref = parentFollowupIntentName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        parentFollowupIntentName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The unique identifier of the parent intent in the
     * chain of followup intents. You can set this field when creating an intent,
     * for example with
     * [CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent] or
     * [BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents],
     * in order to make this intent a followup intent.
     *
     * It identifies the parent followup intent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string parent_followup_intent_name = 17 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The parentFollowupIntentName to set.
     * @return This builder for chaining.
     */
    public Builder setParentFollowupIntentName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      parentFollowupIntentName_ = value;
      bitField0_ |= 0x00080000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The unique identifier of the parent intent in the
     * chain of followup intents. You can set this field when creating an intent,
     * for example with
     * [CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent] or
     * [BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents],
     * in order to make this intent a followup intent.
     *
     * It identifies the parent followup intent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string parent_followup_intent_name = 17 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearParentFollowupIntentName() {
      parentFollowupIntentName_ = getDefaultInstance().getParentFollowupIntentName();
      bitField0_ = (bitField0_ & ~0x00080000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The unique identifier of the parent intent in the
     * chain of followup intents. You can set this field when creating an intent,
     * for example with
     * [CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent] or
     * [BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents],
     * in order to make this intent a followup intent.
     *
     * It identifies the parent followup intent.
     * Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
     * </pre>
     *
     * <code>string parent_followup_intent_name = 17 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param value The bytes for parentFollowupIntentName to set.
     * @return This builder for chaining.
     */
    public Builder setParentFollowupIntentNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      parentFollowupIntentName_ = value;
      bitField0_ |= 0x00080000;
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo>
        followupIntentInfo_ = java.util.Collections.emptyList();

    private void ensureFollowupIntentInfoIsMutable() {
      if (!((bitField0_ & 0x00100000) != 0)) {
        followupIntentInfo_ =
            new java.util.ArrayList<com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo>(
                followupIntentInfo_);
        bitField0_ |= 0x00100000;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo,
            com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder,
            com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfoOrBuilder>
        followupIntentInfoBuilder_;

    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo>
        getFollowupIntentInfoList() {
      if (followupIntentInfoBuilder_ == null) {
        return java.util.Collections.unmodifiableList(followupIntentInfo_);
      } else {
        return followupIntentInfoBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public int getFollowupIntentInfoCount() {
      if (followupIntentInfoBuilder_ == null) {
        return followupIntentInfo_.size();
      } else {
        return followupIntentInfoBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo getFollowupIntentInfo(
        int index) {
      if (followupIntentInfoBuilder_ == null) {
        return followupIntentInfo_.get(index);
      } else {
        return followupIntentInfoBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setFollowupIntentInfo(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo value) {
      if (followupIntentInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFollowupIntentInfoIsMutable();
        followupIntentInfo_.set(index, value);
        onChanged();
      } else {
        followupIntentInfoBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setFollowupIntentInfo(
        int index,
        com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder builderForValue) {
      if (followupIntentInfoBuilder_ == null) {
        ensureFollowupIntentInfoIsMutable();
        followupIntentInfo_.set(index, builderForValue.build());
        onChanged();
      } else {
        followupIntentInfoBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addFollowupIntentInfo(
        com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo value) {
      if (followupIntentInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFollowupIntentInfoIsMutable();
        followupIntentInfo_.add(value);
        onChanged();
      } else {
        followupIntentInfoBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addFollowupIntentInfo(
        int index, com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo value) {
      if (followupIntentInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFollowupIntentInfoIsMutable();
        followupIntentInfo_.add(index, value);
        onChanged();
      } else {
        followupIntentInfoBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addFollowupIntentInfo(
        com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder builderForValue) {
      if (followupIntentInfoBuilder_ == null) {
        ensureFollowupIntentInfoIsMutable();
        followupIntentInfo_.add(builderForValue.build());
        onChanged();
      } else {
        followupIntentInfoBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addFollowupIntentInfo(
        int index,
        com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder builderForValue) {
      if (followupIntentInfoBuilder_ == null) {
        ensureFollowupIntentInfoIsMutable();
        followupIntentInfo_.add(index, builderForValue.build());
        onChanged();
      } else {
        followupIntentInfoBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addAllFollowupIntentInfo(
        java.lang.Iterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo>
            values) {
      if (followupIntentInfoBuilder_ == null) {
        ensureFollowupIntentInfoIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, followupIntentInfo_);
        onChanged();
      } else {
        followupIntentInfoBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearFollowupIntentInfo() {
      if (followupIntentInfoBuilder_ == null) {
        followupIntentInfo_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00100000);
        onChanged();
      } else {
        followupIntentInfoBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder removeFollowupIntentInfo(int index) {
      if (followupIntentInfoBuilder_ == null) {
        ensureFollowupIntentInfoIsMutable();
        followupIntentInfo_.remove(index);
        onChanged();
      } else {
        followupIntentInfoBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder
        getFollowupIntentInfoBuilder(int index) {
      return getFollowupIntentInfoFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfoOrBuilder
        getFollowupIntentInfoOrBuilder(int index) {
      if (followupIntentInfoBuilder_ == null) {
        return followupIntentInfo_.get(index);
      } else {
        return followupIntentInfoBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<
            ? extends com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfoOrBuilder>
        getFollowupIntentInfoOrBuilderList() {
      if (followupIntentInfoBuilder_ != null) {
        return followupIntentInfoBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(followupIntentInfo_);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder
        addFollowupIntentInfoBuilder() {
      return getFollowupIntentInfoFieldBuilder()
          .addBuilder(
              com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder
        addFollowupIntentInfoBuilder(int index) {
      return getFollowupIntentInfoFieldBuilder()
          .addBuilder(
              index,
              com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. Information about all followup intents that have this intent
     * as a direct or indirect parent. We populate this field only in the output.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder>
        getFollowupIntentInfoBuilderList() {
      return getFollowupIntentInfoFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo,
            com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder,
            com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfoOrBuilder>
        getFollowupIntentInfoFieldBuilder() {
      if (followupIntentInfoBuilder_ == null) {
        followupIntentInfoBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo,
                com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo.Builder,
                com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfoOrBuilder>(
                followupIntentInfo_,
                ((bitField0_ & 0x00100000) != 0),
                getParentForChildren(),
                isClean());
        followupIntentInfo_ = null;
      }
      return followupIntentInfoBuilder_;
    }

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

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

    // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent)
  private static final com.google.cloud.dialogflow.v2beta1.Intent DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent();
  }

  public static com.google.cloud.dialogflow.v2beta1.Intent getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.Intent getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
