/*
 * Copyright 2026 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!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/apps/card/v1/card.proto
// Protobuf Java Version: 4.33.2

package com.google.apps.card.v1;

/**
 *
 *
 * <pre>
 * The `Columns` widget displays up to 2 columns in a card or dialog. You can
 * add widgets to each column; the widgets appear in the order that they are
 * specified. For an example in Google Chat apps, see
 * [Display cards and dialogs in
 * columns](https://developers.google.com/workspace/chat/format-structure-card-dialog#display_cards_and_dialogs_in_columns).
 *
 * The height of each column is determined by the taller column. For example, if
 * the first column is taller than the second column, both columns have the
 * height of the first column. Because each column can contain a different
 * number of widgets, you can't define rows or align widgets between the
 * columns.
 *
 * Columns are displayed side-by-side. You can customize the width of each
 * column using the `HorizontalSizeStyle` field. If the user's
 * screen width is too narrow, the second column wraps below the first:
 *
 * * On web, the second column wraps if the screen width is less than or equal
 * to 480 pixels.
 * * On iOS devices, the second column wraps if the screen width is
 * less than or equal to 300 pt.
 * * On Android devices, the second column wraps if the screen width is
 * less than or equal to 320 dp.
 *
 * To include more than two columns, or to use rows, use the
 * [`Grid`][google.apps.card.v1.Grid] widget.
 *
 * [Google Workspace add-ons and Chat
 * apps](https://developers.google.com/workspace/extend):
 * The add-on UIs that support columns include:
 *
 * * The dialog displayed when users open the add-on from an email draft.
 * * The dialog displayed when users open the add-on from the
 * **Add attachment** menu in a Google Calendar event.
 * </pre>
 *
 * Protobuf type {@code google.apps.card.v1.Columns}
 */
@com.google.protobuf.Generated
public final class Columns extends com.google.protobuf.GeneratedMessage
    implements
    // @@protoc_insertion_point(message_implements:google.apps.card.v1.Columns)
    ColumnsOrBuilder {
  private static final long serialVersionUID = 0L;

  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 2,
        /* suffix= */ "",
        "Columns");
  }

  // Use Columns.newBuilder() to construct.
  private Columns(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
    super(builder);
  }

  private Columns() {
    columnItems_ = java.util.Collections.emptyList();
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.apps.card.v1.CardProto.internal_static_google_apps_card_v1_Columns_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.apps.card.v1.CardProto
        .internal_static_google_apps_card_v1_Columns_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.apps.card.v1.Columns.class, com.google.apps.card.v1.Columns.Builder.class);
  }

  public interface ColumnOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.apps.card.v1.Columns.Column)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Specifies how a column fills the width of the card.
     * </pre>
     *
     * <code>.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;
     * </code>
     *
     * @return The enum numeric value on the wire for horizontalSizeStyle.
     */
    int getHorizontalSizeStyleValue();

    /**
     *
     *
     * <pre>
     * Specifies how a column fills the width of the card.
     * </pre>
     *
     * <code>.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;
     * </code>
     *
     * @return The horizontalSizeStyle.
     */
    com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle getHorizontalSizeStyle();

    /**
     *
     *
     * <pre>
     * Specifies whether widgets align to the left, right, or center of a
     * column.
     * </pre>
     *
     * <code>.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2;</code>
     *
     * @return The enum numeric value on the wire for horizontalAlignment.
     */
    int getHorizontalAlignmentValue();

    /**
     *
     *
     * <pre>
     * Specifies whether widgets align to the left, right, or center of a
     * column.
     * </pre>
     *
     * <code>.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2;</code>
     *
     * @return The horizontalAlignment.
     */
    com.google.apps.card.v1.Widget.HorizontalAlignment getHorizontalAlignment();

    /**
     *
     *
     * <pre>
     * Specifies whether widgets align to the top, bottom, or center of a
     * column.
     * </pre>
     *
     * <code>.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;</code>
     *
     * @return The enum numeric value on the wire for verticalAlignment.
     */
    int getVerticalAlignmentValue();

    /**
     *
     *
     * <pre>
     * Specifies whether widgets align to the top, bottom, or center of a
     * column.
     * </pre>
     *
     * <code>.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;</code>
     *
     * @return The verticalAlignment.
     */
    com.google.apps.card.v1.Columns.Column.VerticalAlignment getVerticalAlignment();

    /**
     *
     *
     * <pre>
     * An array of widgets included in a column. Widgets appear in the order
     * that they are specified.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
     */
    java.util.List<com.google.apps.card.v1.Columns.Column.Widgets> getWidgetsList();

    /**
     *
     *
     * <pre>
     * An array of widgets included in a column. Widgets appear in the order
     * that they are specified.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
     */
    com.google.apps.card.v1.Columns.Column.Widgets getWidgets(int index);

    /**
     *
     *
     * <pre>
     * An array of widgets included in a column. Widgets appear in the order
     * that they are specified.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
     */
    int getWidgetsCount();

    /**
     *
     *
     * <pre>
     * An array of widgets included in a column. Widgets appear in the order
     * that they are specified.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
     */
    java.util.List<? extends com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder>
        getWidgetsOrBuilderList();

    /**
     *
     *
     * <pre>
     * An array of widgets included in a column. Widgets appear in the order
     * that they are specified.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
     */
    com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder getWidgetsOrBuilder(int index);
  }

  /**
   *
   *
   * <pre>
   * A column.
   *
   * [Google Workspace add-ons and Chat
   * apps](https://developers.google.com/workspace/extend)
   * </pre>
   *
   * Protobuf type {@code google.apps.card.v1.Columns.Column}
   */
  public static final class Column extends com.google.protobuf.GeneratedMessage
      implements
      // @@protoc_insertion_point(message_implements:google.apps.card.v1.Columns.Column)
      ColumnOrBuilder {
    private static final long serialVersionUID = 0L;

    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
          com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
          /* major= */ 4,
          /* minor= */ 33,
          /* patch= */ 2,
          /* suffix= */ "",
          "Column");
    }

    // Use Column.newBuilder() to construct.
    private Column(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }

    private Column() {
      horizontalSizeStyle_ = 0;
      horizontalAlignment_ = 0;
      verticalAlignment_ = 0;
      widgets_ = java.util.Collections.emptyList();
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.apps.card.v1.CardProto
          .internal_static_google_apps_card_v1_Columns_Column_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.apps.card.v1.CardProto
          .internal_static_google_apps_card_v1_Columns_Column_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.apps.card.v1.Columns.Column.class,
              com.google.apps.card.v1.Columns.Column.Builder.class);
    }

    /**
     *
     *
     * <pre>
     * Specifies how a column fills the width of the card. The width of each
     * column depends on both the `HorizontalSizeStyle` and the width of the
     * widgets within the column.
     *
     * [Google Workspace add-ons and Chat
     * apps](https://developers.google.com/workspace/extend)
     * </pre>
     *
     * Protobuf enum {@code google.apps.card.v1.Columns.Column.HorizontalSizeStyle}
     */
    public enum HorizontalSizeStyle implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * Don't use. Unspecified.
       * </pre>
       *
       * <code>HORIZONTAL_SIZE_STYLE_UNSPECIFIED = 0;</code>
       */
      HORIZONTAL_SIZE_STYLE_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * Default value. Column fills the available space, up to 70% of the
       * card's width. If both columns are set to `FILL_AVAILABLE_SPACE`, each
       * column fills 50% of the space.
       * </pre>
       *
       * <code>FILL_AVAILABLE_SPACE = 1;</code>
       */
      FILL_AVAILABLE_SPACE(1),
      /**
       *
       *
       * <pre>
       * Column fills the least amount of space possible and no more than 30% of
       * the card's width.
       * </pre>
       *
       * <code>FILL_MINIMUM_SPACE = 2;</code>
       */
      FILL_MINIMUM_SPACE(2),
      UNRECOGNIZED(-1),
      ;

      static {
        com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
            com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
            /* major= */ 4,
            /* minor= */ 33,
            /* patch= */ 2,
            /* suffix= */ "",
            "HorizontalSizeStyle");
      }

      /**
       *
       *
       * <pre>
       * Don't use. Unspecified.
       * </pre>
       *
       * <code>HORIZONTAL_SIZE_STYLE_UNSPECIFIED = 0;</code>
       */
      public static final int HORIZONTAL_SIZE_STYLE_UNSPECIFIED_VALUE = 0;

      /**
       *
       *
       * <pre>
       * Default value. Column fills the available space, up to 70% of the
       * card's width. If both columns are set to `FILL_AVAILABLE_SPACE`, each
       * column fills 50% of the space.
       * </pre>
       *
       * <code>FILL_AVAILABLE_SPACE = 1;</code>
       */
      public static final int FILL_AVAILABLE_SPACE_VALUE = 1;

      /**
       *
       *
       * <pre>
       * Column fills the least amount of space possible and no more than 30% of
       * the card's width.
       * </pre>
       *
       * <code>FILL_MINIMUM_SPACE = 2;</code>
       */
      public static final int FILL_MINIMUM_SPACE_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 HorizontalSizeStyle 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 HorizontalSizeStyle forNumber(int value) {
        switch (value) {
          case 0:
            return HORIZONTAL_SIZE_STYLE_UNSPECIFIED;
          case 1:
            return FILL_AVAILABLE_SPACE;
          case 2:
            return FILL_MINIMUM_SPACE;
          default:
            return null;
        }
      }

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

      private static final com.google.protobuf.Internal.EnumLiteMap<HorizontalSizeStyle>
          internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap<HorizontalSizeStyle>() {
                public HorizontalSizeStyle findValueByNumber(int number) {
                  return HorizontalSizeStyle.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
        return com.google.apps.card.v1.Columns.Column.getDescriptor().getEnumTypes().get(0);
      }

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

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

      // @@protoc_insertion_point(enum_scope:google.apps.card.v1.Columns.Column.HorizontalSizeStyle)
    }

    /**
     *
     *
     * <pre>
     * Specifies whether widgets align to the top, bottom, or center of a
     * column.
     *
     * [Google Workspace add-ons and Chat
     * apps](https://developers.google.com/workspace/extend)
     * </pre>
     *
     * Protobuf enum {@code google.apps.card.v1.Columns.Column.VerticalAlignment}
     */
    public enum VerticalAlignment implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * Don't use. Unspecified.
       * </pre>
       *
       * <code>VERTICAL_ALIGNMENT_UNSPECIFIED = 0;</code>
       */
      VERTICAL_ALIGNMENT_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * Default value. Aligns widgets to the center of a column.
       * </pre>
       *
       * <code>CENTER = 1;</code>
       */
      CENTER(1),
      /**
       *
       *
       * <pre>
       * Aligns widgets to the top of a column.
       * </pre>
       *
       * <code>TOP = 2;</code>
       */
      TOP(2),
      /**
       *
       *
       * <pre>
       * Aligns widgets to the bottom of a column.
       * </pre>
       *
       * <code>BOTTOM = 3;</code>
       */
      BOTTOM(3),
      UNRECOGNIZED(-1),
      ;

      static {
        com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
            com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
            /* major= */ 4,
            /* minor= */ 33,
            /* patch= */ 2,
            /* suffix= */ "",
            "VerticalAlignment");
      }

      /**
       *
       *
       * <pre>
       * Don't use. Unspecified.
       * </pre>
       *
       * <code>VERTICAL_ALIGNMENT_UNSPECIFIED = 0;</code>
       */
      public static final int VERTICAL_ALIGNMENT_UNSPECIFIED_VALUE = 0;

      /**
       *
       *
       * <pre>
       * Default value. Aligns widgets to the center of a column.
       * </pre>
       *
       * <code>CENTER = 1;</code>
       */
      public static final int CENTER_VALUE = 1;

      /**
       *
       *
       * <pre>
       * Aligns widgets to the top of a column.
       * </pre>
       *
       * <code>TOP = 2;</code>
       */
      public static final int TOP_VALUE = 2;

      /**
       *
       *
       * <pre>
       * Aligns widgets to the bottom of a column.
       * </pre>
       *
       * <code>BOTTOM = 3;</code>
       */
      public static final int BOTTOM_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 VerticalAlignment 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 VerticalAlignment forNumber(int value) {
        switch (value) {
          case 0:
            return VERTICAL_ALIGNMENT_UNSPECIFIED;
          case 1:
            return CENTER;
          case 2:
            return TOP;
          case 3:
            return BOTTOM;
          default:
            return null;
        }
      }

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

      private static final com.google.protobuf.Internal.EnumLiteMap<VerticalAlignment>
          internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap<VerticalAlignment>() {
                public VerticalAlignment findValueByNumber(int number) {
                  return VerticalAlignment.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
        return com.google.apps.card.v1.Columns.Column.getDescriptor().getEnumTypes().get(1);
      }

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

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

      // @@protoc_insertion_point(enum_scope:google.apps.card.v1.Columns.Column.VerticalAlignment)
    }

    public interface WidgetsOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:google.apps.card.v1.Columns.Column.Widgets)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * <pre>
       * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
       *
       * @return Whether the textParagraph field is set.
       */
      boolean hasTextParagraph();

      /**
       *
       *
       * <pre>
       * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
       *
       * @return The textParagraph.
       */
      com.google.apps.card.v1.TextParagraph getTextParagraph();

      /**
       *
       *
       * <pre>
       * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
       */
      com.google.apps.card.v1.TextParagraphOrBuilder getTextParagraphOrBuilder();

      /**
       *
       *
       * <pre>
       * [Image][google.apps.card.v1.Image] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.Image image = 2;</code>
       *
       * @return Whether the image field is set.
       */
      boolean hasImage();

      /**
       *
       *
       * <pre>
       * [Image][google.apps.card.v1.Image] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.Image image = 2;</code>
       *
       * @return The image.
       */
      com.google.apps.card.v1.Image getImage();

      /**
       *
       *
       * <pre>
       * [Image][google.apps.card.v1.Image] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.Image image = 2;</code>
       */
      com.google.apps.card.v1.ImageOrBuilder getImageOrBuilder();

      /**
       *
       *
       * <pre>
       * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
       *
       * @return Whether the decoratedText field is set.
       */
      boolean hasDecoratedText();

      /**
       *
       *
       * <pre>
       * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
       *
       * @return The decoratedText.
       */
      com.google.apps.card.v1.DecoratedText getDecoratedText();

      /**
       *
       *
       * <pre>
       * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
       */
      com.google.apps.card.v1.DecoratedTextOrBuilder getDecoratedTextOrBuilder();

      /**
       *
       *
       * <pre>
       * [ButtonList][google.apps.card.v1.ButtonList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
       *
       * @return Whether the buttonList field is set.
       */
      boolean hasButtonList();

      /**
       *
       *
       * <pre>
       * [ButtonList][google.apps.card.v1.ButtonList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
       *
       * @return The buttonList.
       */
      com.google.apps.card.v1.ButtonList getButtonList();

      /**
       *
       *
       * <pre>
       * [ButtonList][google.apps.card.v1.ButtonList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
       */
      com.google.apps.card.v1.ButtonListOrBuilder getButtonListOrBuilder();

      /**
       *
       *
       * <pre>
       * [TextInput][google.apps.card.v1.TextInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
       *
       * @return Whether the textInput field is set.
       */
      boolean hasTextInput();

      /**
       *
       *
       * <pre>
       * [TextInput][google.apps.card.v1.TextInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
       *
       * @return The textInput.
       */
      com.google.apps.card.v1.TextInput getTextInput();

      /**
       *
       *
       * <pre>
       * [TextInput][google.apps.card.v1.TextInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
       */
      com.google.apps.card.v1.TextInputOrBuilder getTextInputOrBuilder();

      /**
       *
       *
       * <pre>
       * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
       *
       * @return Whether the selectionInput field is set.
       */
      boolean hasSelectionInput();

      /**
       *
       *
       * <pre>
       * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
       *
       * @return The selectionInput.
       */
      com.google.apps.card.v1.SelectionInput getSelectionInput();

      /**
       *
       *
       * <pre>
       * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
       */
      com.google.apps.card.v1.SelectionInputOrBuilder getSelectionInputOrBuilder();

      /**
       *
       *
       * <pre>
       * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
       *
       * @return Whether the dateTimePicker field is set.
       */
      boolean hasDateTimePicker();

      /**
       *
       *
       * <pre>
       * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
       *
       * @return The dateTimePicker.
       */
      com.google.apps.card.v1.DateTimePicker getDateTimePicker();

      /**
       *
       *
       * <pre>
       * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
       */
      com.google.apps.card.v1.DateTimePickerOrBuilder getDateTimePickerOrBuilder();

      /**
       *
       *
       * <pre>
       * [ChipList][google.apps.card.v1.ChipList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
       *
       * @return Whether the chipList field is set.
       */
      boolean hasChipList();

      /**
       *
       *
       * <pre>
       * [ChipList][google.apps.card.v1.ChipList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
       *
       * @return The chipList.
       */
      com.google.apps.card.v1.ChipList getChipList();

      /**
       *
       *
       * <pre>
       * [ChipList][google.apps.card.v1.ChipList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
       */
      com.google.apps.card.v1.ChipListOrBuilder getChipListOrBuilder();

      com.google.apps.card.v1.Columns.Column.Widgets.DataCase getDataCase();
    }

    /**
     *
     *
     * <pre>
     * The supported widgets that you can include in a column.
     *
     * [Google Workspace add-ons and Chat
     * apps](https://developers.google.com/workspace/extend)
     * </pre>
     *
     * Protobuf type {@code google.apps.card.v1.Columns.Column.Widgets}
     */
    public static final class Widgets extends com.google.protobuf.GeneratedMessage
        implements
        // @@protoc_insertion_point(message_implements:google.apps.card.v1.Columns.Column.Widgets)
        WidgetsOrBuilder {
      private static final long serialVersionUID = 0L;

      static {
        com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
            com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
            /* major= */ 4,
            /* minor= */ 33,
            /* patch= */ 2,
            /* suffix= */ "",
            "Widgets");
      }

      // Use Widgets.newBuilder() to construct.
      private Widgets(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
        super(builder);
      }

      private Widgets() {}

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.apps.card.v1.CardProto
            .internal_static_google_apps_card_v1_Columns_Column_Widgets_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.apps.card.v1.CardProto
            .internal_static_google_apps_card_v1_Columns_Column_Widgets_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.apps.card.v1.Columns.Column.Widgets.class,
                com.google.apps.card.v1.Columns.Column.Widgets.Builder.class);
      }

      private int dataCase_ = 0;

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

      public enum DataCase
          implements
              com.google.protobuf.Internal.EnumLite,
              com.google.protobuf.AbstractMessage.InternalOneOfEnum {
        TEXT_PARAGRAPH(1),
        IMAGE(2),
        DECORATED_TEXT(3),
        BUTTON_LIST(4),
        TEXT_INPUT(5),
        SELECTION_INPUT(6),
        DATE_TIME_PICKER(7),
        CHIP_LIST(8),
        DATA_NOT_SET(0);
        private final int value;

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

        public static DataCase forNumber(int value) {
          switch (value) {
            case 1:
              return TEXT_PARAGRAPH;
            case 2:
              return IMAGE;
            case 3:
              return DECORATED_TEXT;
            case 4:
              return BUTTON_LIST;
            case 5:
              return TEXT_INPUT;
            case 6:
              return SELECTION_INPUT;
            case 7:
              return DATE_TIME_PICKER;
            case 8:
              return CHIP_LIST;
            case 0:
              return DATA_NOT_SET;
            default:
              return null;
          }
        }

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

      public DataCase getDataCase() {
        return DataCase.forNumber(dataCase_);
      }

      public static final int TEXT_PARAGRAPH_FIELD_NUMBER = 1;

      /**
       *
       *
       * <pre>
       * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
       *
       * @return Whether the textParagraph field is set.
       */
      @java.lang.Override
      public boolean hasTextParagraph() {
        return dataCase_ == 1;
      }

      /**
       *
       *
       * <pre>
       * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
       *
       * @return The textParagraph.
       */
      @java.lang.Override
      public com.google.apps.card.v1.TextParagraph getTextParagraph() {
        if (dataCase_ == 1) {
          return (com.google.apps.card.v1.TextParagraph) data_;
        }
        return com.google.apps.card.v1.TextParagraph.getDefaultInstance();
      }

      /**
       *
       *
       * <pre>
       * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
       */
      @java.lang.Override
      public com.google.apps.card.v1.TextParagraphOrBuilder getTextParagraphOrBuilder() {
        if (dataCase_ == 1) {
          return (com.google.apps.card.v1.TextParagraph) data_;
        }
        return com.google.apps.card.v1.TextParagraph.getDefaultInstance();
      }

      public static final int IMAGE_FIELD_NUMBER = 2;

      /**
       *
       *
       * <pre>
       * [Image][google.apps.card.v1.Image] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.Image image = 2;</code>
       *
       * @return Whether the image field is set.
       */
      @java.lang.Override
      public boolean hasImage() {
        return dataCase_ == 2;
      }

      /**
       *
       *
       * <pre>
       * [Image][google.apps.card.v1.Image] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.Image image = 2;</code>
       *
       * @return The image.
       */
      @java.lang.Override
      public com.google.apps.card.v1.Image getImage() {
        if (dataCase_ == 2) {
          return (com.google.apps.card.v1.Image) data_;
        }
        return com.google.apps.card.v1.Image.getDefaultInstance();
      }

      /**
       *
       *
       * <pre>
       * [Image][google.apps.card.v1.Image] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.Image image = 2;</code>
       */
      @java.lang.Override
      public com.google.apps.card.v1.ImageOrBuilder getImageOrBuilder() {
        if (dataCase_ == 2) {
          return (com.google.apps.card.v1.Image) data_;
        }
        return com.google.apps.card.v1.Image.getDefaultInstance();
      }

      public static final int DECORATED_TEXT_FIELD_NUMBER = 3;

      /**
       *
       *
       * <pre>
       * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
       *
       * @return Whether the decoratedText field is set.
       */
      @java.lang.Override
      public boolean hasDecoratedText() {
        return dataCase_ == 3;
      }

      /**
       *
       *
       * <pre>
       * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
       *
       * @return The decoratedText.
       */
      @java.lang.Override
      public com.google.apps.card.v1.DecoratedText getDecoratedText() {
        if (dataCase_ == 3) {
          return (com.google.apps.card.v1.DecoratedText) data_;
        }
        return com.google.apps.card.v1.DecoratedText.getDefaultInstance();
      }

      /**
       *
       *
       * <pre>
       * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
       */
      @java.lang.Override
      public com.google.apps.card.v1.DecoratedTextOrBuilder getDecoratedTextOrBuilder() {
        if (dataCase_ == 3) {
          return (com.google.apps.card.v1.DecoratedText) data_;
        }
        return com.google.apps.card.v1.DecoratedText.getDefaultInstance();
      }

      public static final int BUTTON_LIST_FIELD_NUMBER = 4;

      /**
       *
       *
       * <pre>
       * [ButtonList][google.apps.card.v1.ButtonList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
       *
       * @return Whether the buttonList field is set.
       */
      @java.lang.Override
      public boolean hasButtonList() {
        return dataCase_ == 4;
      }

      /**
       *
       *
       * <pre>
       * [ButtonList][google.apps.card.v1.ButtonList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
       *
       * @return The buttonList.
       */
      @java.lang.Override
      public com.google.apps.card.v1.ButtonList getButtonList() {
        if (dataCase_ == 4) {
          return (com.google.apps.card.v1.ButtonList) data_;
        }
        return com.google.apps.card.v1.ButtonList.getDefaultInstance();
      }

      /**
       *
       *
       * <pre>
       * [ButtonList][google.apps.card.v1.ButtonList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
       */
      @java.lang.Override
      public com.google.apps.card.v1.ButtonListOrBuilder getButtonListOrBuilder() {
        if (dataCase_ == 4) {
          return (com.google.apps.card.v1.ButtonList) data_;
        }
        return com.google.apps.card.v1.ButtonList.getDefaultInstance();
      }

      public static final int TEXT_INPUT_FIELD_NUMBER = 5;

      /**
       *
       *
       * <pre>
       * [TextInput][google.apps.card.v1.TextInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
       *
       * @return Whether the textInput field is set.
       */
      @java.lang.Override
      public boolean hasTextInput() {
        return dataCase_ == 5;
      }

      /**
       *
       *
       * <pre>
       * [TextInput][google.apps.card.v1.TextInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
       *
       * @return The textInput.
       */
      @java.lang.Override
      public com.google.apps.card.v1.TextInput getTextInput() {
        if (dataCase_ == 5) {
          return (com.google.apps.card.v1.TextInput) data_;
        }
        return com.google.apps.card.v1.TextInput.getDefaultInstance();
      }

      /**
       *
       *
       * <pre>
       * [TextInput][google.apps.card.v1.TextInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
       */
      @java.lang.Override
      public com.google.apps.card.v1.TextInputOrBuilder getTextInputOrBuilder() {
        if (dataCase_ == 5) {
          return (com.google.apps.card.v1.TextInput) data_;
        }
        return com.google.apps.card.v1.TextInput.getDefaultInstance();
      }

      public static final int SELECTION_INPUT_FIELD_NUMBER = 6;

      /**
       *
       *
       * <pre>
       * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
       *
       * @return Whether the selectionInput field is set.
       */
      @java.lang.Override
      public boolean hasSelectionInput() {
        return dataCase_ == 6;
      }

      /**
       *
       *
       * <pre>
       * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
       *
       * @return The selectionInput.
       */
      @java.lang.Override
      public com.google.apps.card.v1.SelectionInput getSelectionInput() {
        if (dataCase_ == 6) {
          return (com.google.apps.card.v1.SelectionInput) data_;
        }
        return com.google.apps.card.v1.SelectionInput.getDefaultInstance();
      }

      /**
       *
       *
       * <pre>
       * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
       */
      @java.lang.Override
      public com.google.apps.card.v1.SelectionInputOrBuilder getSelectionInputOrBuilder() {
        if (dataCase_ == 6) {
          return (com.google.apps.card.v1.SelectionInput) data_;
        }
        return com.google.apps.card.v1.SelectionInput.getDefaultInstance();
      }

      public static final int DATE_TIME_PICKER_FIELD_NUMBER = 7;

      /**
       *
       *
       * <pre>
       * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
       *
       * @return Whether the dateTimePicker field is set.
       */
      @java.lang.Override
      public boolean hasDateTimePicker() {
        return dataCase_ == 7;
      }

      /**
       *
       *
       * <pre>
       * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
       *
       * @return The dateTimePicker.
       */
      @java.lang.Override
      public com.google.apps.card.v1.DateTimePicker getDateTimePicker() {
        if (dataCase_ == 7) {
          return (com.google.apps.card.v1.DateTimePicker) data_;
        }
        return com.google.apps.card.v1.DateTimePicker.getDefaultInstance();
      }

      /**
       *
       *
       * <pre>
       * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
       */
      @java.lang.Override
      public com.google.apps.card.v1.DateTimePickerOrBuilder getDateTimePickerOrBuilder() {
        if (dataCase_ == 7) {
          return (com.google.apps.card.v1.DateTimePicker) data_;
        }
        return com.google.apps.card.v1.DateTimePicker.getDefaultInstance();
      }

      public static final int CHIP_LIST_FIELD_NUMBER = 8;

      /**
       *
       *
       * <pre>
       * [ChipList][google.apps.card.v1.ChipList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
       *
       * @return Whether the chipList field is set.
       */
      @java.lang.Override
      public boolean hasChipList() {
        return dataCase_ == 8;
      }

      /**
       *
       *
       * <pre>
       * [ChipList][google.apps.card.v1.ChipList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
       *
       * @return The chipList.
       */
      @java.lang.Override
      public com.google.apps.card.v1.ChipList getChipList() {
        if (dataCase_ == 8) {
          return (com.google.apps.card.v1.ChipList) data_;
        }
        return com.google.apps.card.v1.ChipList.getDefaultInstance();
      }

      /**
       *
       *
       * <pre>
       * [ChipList][google.apps.card.v1.ChipList] widget.
       * </pre>
       *
       * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
       */
      @java.lang.Override
      public com.google.apps.card.v1.ChipListOrBuilder getChipListOrBuilder() {
        if (dataCase_ == 8) {
          return (com.google.apps.card.v1.ChipList) data_;
        }
        return com.google.apps.card.v1.ChipList.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 (dataCase_ == 1) {
          output.writeMessage(1, (com.google.apps.card.v1.TextParagraph) data_);
        }
        if (dataCase_ == 2) {
          output.writeMessage(2, (com.google.apps.card.v1.Image) data_);
        }
        if (dataCase_ == 3) {
          output.writeMessage(3, (com.google.apps.card.v1.DecoratedText) data_);
        }
        if (dataCase_ == 4) {
          output.writeMessage(4, (com.google.apps.card.v1.ButtonList) data_);
        }
        if (dataCase_ == 5) {
          output.writeMessage(5, (com.google.apps.card.v1.TextInput) data_);
        }
        if (dataCase_ == 6) {
          output.writeMessage(6, (com.google.apps.card.v1.SelectionInput) data_);
        }
        if (dataCase_ == 7) {
          output.writeMessage(7, (com.google.apps.card.v1.DateTimePicker) data_);
        }
        if (dataCase_ == 8) {
          output.writeMessage(8, (com.google.apps.card.v1.ChipList) data_);
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        if (dataCase_ == 1) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  1, (com.google.apps.card.v1.TextParagraph) data_);
        }
        if (dataCase_ == 2) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  2, (com.google.apps.card.v1.Image) data_);
        }
        if (dataCase_ == 3) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  3, (com.google.apps.card.v1.DecoratedText) data_);
        }
        if (dataCase_ == 4) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  4, (com.google.apps.card.v1.ButtonList) data_);
        }
        if (dataCase_ == 5) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  5, (com.google.apps.card.v1.TextInput) data_);
        }
        if (dataCase_ == 6) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  6, (com.google.apps.card.v1.SelectionInput) data_);
        }
        if (dataCase_ == 7) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  7, (com.google.apps.card.v1.DateTimePicker) data_);
        }
        if (dataCase_ == 8) {
          size +=
              com.google.protobuf.CodedOutputStream.computeMessageSize(
                  8, (com.google.apps.card.v1.ChipList) data_);
        }
        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.apps.card.v1.Columns.Column.Widgets)) {
          return super.equals(obj);
        }
        com.google.apps.card.v1.Columns.Column.Widgets other =
            (com.google.apps.card.v1.Columns.Column.Widgets) obj;

        if (!getDataCase().equals(other.getDataCase())) return false;
        switch (dataCase_) {
          case 1:
            if (!getTextParagraph().equals(other.getTextParagraph())) return false;
            break;
          case 2:
            if (!getImage().equals(other.getImage())) return false;
            break;
          case 3:
            if (!getDecoratedText().equals(other.getDecoratedText())) return false;
            break;
          case 4:
            if (!getButtonList().equals(other.getButtonList())) return false;
            break;
          case 5:
            if (!getTextInput().equals(other.getTextInput())) return false;
            break;
          case 6:
            if (!getSelectionInput().equals(other.getSelectionInput())) return false;
            break;
          case 7:
            if (!getDateTimePicker().equals(other.getDateTimePicker())) return false;
            break;
          case 8:
            if (!getChipList().equals(other.getChipList())) 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 (dataCase_) {
          case 1:
            hash = (37 * hash) + TEXT_PARAGRAPH_FIELD_NUMBER;
            hash = (53 * hash) + getTextParagraph().hashCode();
            break;
          case 2:
            hash = (37 * hash) + IMAGE_FIELD_NUMBER;
            hash = (53 * hash) + getImage().hashCode();
            break;
          case 3:
            hash = (37 * hash) + DECORATED_TEXT_FIELD_NUMBER;
            hash = (53 * hash) + getDecoratedText().hashCode();
            break;
          case 4:
            hash = (37 * hash) + BUTTON_LIST_FIELD_NUMBER;
            hash = (53 * hash) + getButtonList().hashCode();
            break;
          case 5:
            hash = (37 * hash) + TEXT_INPUT_FIELD_NUMBER;
            hash = (53 * hash) + getTextInput().hashCode();
            break;
          case 6:
            hash = (37 * hash) + SELECTION_INPUT_FIELD_NUMBER;
            hash = (53 * hash) + getSelectionInput().hashCode();
            break;
          case 7:
            hash = (37 * hash) + DATE_TIME_PICKER_FIELD_NUMBER;
            hash = (53 * hash) + getDateTimePicker().hashCode();
            break;
          case 8:
            hash = (37 * hash) + CHIP_LIST_FIELD_NUMBER;
            hash = (53 * hash) + getChipList().hashCode();
            break;
          case 0:
          default:
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets parseFrom(
          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets parseFrom(
          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets 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.apps.card.v1.Columns.Column.Widgets parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets parseFrom(
          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets parseFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets parseFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessage.parseWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets parseDelimitedFrom(
          java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets parseDelimitedFrom(
          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
            PARSER, input, extensionRegistry);
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets parseFrom(
          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessage.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.apps.card.v1.Columns.Column.Widgets 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.GeneratedMessage.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }

      /**
       *
       *
       * <pre>
       * The supported widgets that you can include in a column.
       *
       * [Google Workspace add-ons and Chat
       * apps](https://developers.google.com/workspace/extend)
       * </pre>
       *
       * Protobuf type {@code google.apps.card.v1.Columns.Column.Widgets}
       */
      public static final class Builder
          extends com.google.protobuf.GeneratedMessage.Builder<Builder>
          implements
          // @@protoc_insertion_point(builder_implements:google.apps.card.v1.Columns.Column.Widgets)
          com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          return com.google.apps.card.v1.CardProto
              .internal_static_google_apps_card_v1_Columns_Column_Widgets_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.google.apps.card.v1.CardProto
              .internal_static_google_apps_card_v1_Columns_Column_Widgets_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.google.apps.card.v1.Columns.Column.Widgets.class,
                  com.google.apps.card.v1.Columns.Column.Widgets.Builder.class);
        }

        // Construct using com.google.apps.card.v1.Columns.Column.Widgets.newBuilder()
        private Builder() {}

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

        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          if (textParagraphBuilder_ != null) {
            textParagraphBuilder_.clear();
          }
          if (imageBuilder_ != null) {
            imageBuilder_.clear();
          }
          if (decoratedTextBuilder_ != null) {
            decoratedTextBuilder_.clear();
          }
          if (buttonListBuilder_ != null) {
            buttonListBuilder_.clear();
          }
          if (textInputBuilder_ != null) {
            textInputBuilder_.clear();
          }
          if (selectionInputBuilder_ != null) {
            selectionInputBuilder_.clear();
          }
          if (dateTimePickerBuilder_ != null) {
            dateTimePickerBuilder_.clear();
          }
          if (chipListBuilder_ != null) {
            chipListBuilder_.clear();
          }
          dataCase_ = 0;
          data_ = null;
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          return com.google.apps.card.v1.CardProto
              .internal_static_google_apps_card_v1_Columns_Column_Widgets_descriptor;
        }

        @java.lang.Override
        public com.google.apps.card.v1.Columns.Column.Widgets getDefaultInstanceForType() {
          return com.google.apps.card.v1.Columns.Column.Widgets.getDefaultInstance();
        }

        @java.lang.Override
        public com.google.apps.card.v1.Columns.Column.Widgets build() {
          com.google.apps.card.v1.Columns.Column.Widgets result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.google.apps.card.v1.Columns.Column.Widgets buildPartial() {
          com.google.apps.card.v1.Columns.Column.Widgets result =
              new com.google.apps.card.v1.Columns.Column.Widgets(this);
          if (bitField0_ != 0) {
            buildPartial0(result);
          }
          buildPartialOneofs(result);
          onBuilt();
          return result;
        }

        private void buildPartial0(com.google.apps.card.v1.Columns.Column.Widgets result) {
          int from_bitField0_ = bitField0_;
        }

        private void buildPartialOneofs(com.google.apps.card.v1.Columns.Column.Widgets result) {
          result.dataCase_ = dataCase_;
          result.data_ = this.data_;
          if (dataCase_ == 1 && textParagraphBuilder_ != null) {
            result.data_ = textParagraphBuilder_.build();
          }
          if (dataCase_ == 2 && imageBuilder_ != null) {
            result.data_ = imageBuilder_.build();
          }
          if (dataCase_ == 3 && decoratedTextBuilder_ != null) {
            result.data_ = decoratedTextBuilder_.build();
          }
          if (dataCase_ == 4 && buttonListBuilder_ != null) {
            result.data_ = buttonListBuilder_.build();
          }
          if (dataCase_ == 5 && textInputBuilder_ != null) {
            result.data_ = textInputBuilder_.build();
          }
          if (dataCase_ == 6 && selectionInputBuilder_ != null) {
            result.data_ = selectionInputBuilder_.build();
          }
          if (dataCase_ == 7 && dateTimePickerBuilder_ != null) {
            result.data_ = dateTimePickerBuilder_.build();
          }
          if (dataCase_ == 8 && chipListBuilder_ != null) {
            result.data_ = chipListBuilder_.build();
          }
        }

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.apps.card.v1.Columns.Column.Widgets) {
            return mergeFrom((com.google.apps.card.v1.Columns.Column.Widgets) other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(com.google.apps.card.v1.Columns.Column.Widgets other) {
          if (other == com.google.apps.card.v1.Columns.Column.Widgets.getDefaultInstance())
            return this;
          switch (other.getDataCase()) {
            case TEXT_PARAGRAPH:
              {
                mergeTextParagraph(other.getTextParagraph());
                break;
              }
            case IMAGE:
              {
                mergeImage(other.getImage());
                break;
              }
            case DECORATED_TEXT:
              {
                mergeDecoratedText(other.getDecoratedText());
                break;
              }
            case BUTTON_LIST:
              {
                mergeButtonList(other.getButtonList());
                break;
              }
            case TEXT_INPUT:
              {
                mergeTextInput(other.getTextInput());
                break;
              }
            case SELECTION_INPUT:
              {
                mergeSelectionInput(other.getSelectionInput());
                break;
              }
            case DATE_TIME_PICKER:
              {
                mergeDateTimePicker(other.getDateTimePicker());
                break;
              }
            case CHIP_LIST:
              {
                mergeChipList(other.getChipList());
                break;
              }
            case DATA_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(
                        internalGetTextParagraphFieldBuilder().getBuilder(), extensionRegistry);
                    dataCase_ = 1;
                    break;
                  } // case 10
                case 18:
                  {
                    input.readMessage(
                        internalGetImageFieldBuilder().getBuilder(), extensionRegistry);
                    dataCase_ = 2;
                    break;
                  } // case 18
                case 26:
                  {
                    input.readMessage(
                        internalGetDecoratedTextFieldBuilder().getBuilder(), extensionRegistry);
                    dataCase_ = 3;
                    break;
                  } // case 26
                case 34:
                  {
                    input.readMessage(
                        internalGetButtonListFieldBuilder().getBuilder(), extensionRegistry);
                    dataCase_ = 4;
                    break;
                  } // case 34
                case 42:
                  {
                    input.readMessage(
                        internalGetTextInputFieldBuilder().getBuilder(), extensionRegistry);
                    dataCase_ = 5;
                    break;
                  } // case 42
                case 50:
                  {
                    input.readMessage(
                        internalGetSelectionInputFieldBuilder().getBuilder(), extensionRegistry);
                    dataCase_ = 6;
                    break;
                  } // case 50
                case 58:
                  {
                    input.readMessage(
                        internalGetDateTimePickerFieldBuilder().getBuilder(), extensionRegistry);
                    dataCase_ = 7;
                    break;
                  } // case 58
                case 66:
                  {
                    input.readMessage(
                        internalGetChipListFieldBuilder().getBuilder(), extensionRegistry);
                    dataCase_ = 8;
                    break;
                  } // case 66
                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 dataCase_ = 0;
        private java.lang.Object data_;

        public DataCase getDataCase() {
          return DataCase.forNumber(dataCase_);
        }

        public Builder clearData() {
          dataCase_ = 0;
          data_ = null;
          onChanged();
          return this;
        }

        private int bitField0_;

        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.TextParagraph,
                com.google.apps.card.v1.TextParagraph.Builder,
                com.google.apps.card.v1.TextParagraphOrBuilder>
            textParagraphBuilder_;

        /**
         *
         *
         * <pre>
         * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
         *
         * @return Whether the textParagraph field is set.
         */
        @java.lang.Override
        public boolean hasTextParagraph() {
          return dataCase_ == 1;
        }

        /**
         *
         *
         * <pre>
         * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
         *
         * @return The textParagraph.
         */
        @java.lang.Override
        public com.google.apps.card.v1.TextParagraph getTextParagraph() {
          if (textParagraphBuilder_ == null) {
            if (dataCase_ == 1) {
              return (com.google.apps.card.v1.TextParagraph) data_;
            }
            return com.google.apps.card.v1.TextParagraph.getDefaultInstance();
          } else {
            if (dataCase_ == 1) {
              return textParagraphBuilder_.getMessage();
            }
            return com.google.apps.card.v1.TextParagraph.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
         */
        public Builder setTextParagraph(com.google.apps.card.v1.TextParagraph value) {
          if (textParagraphBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            data_ = value;
            onChanged();
          } else {
            textParagraphBuilder_.setMessage(value);
          }
          dataCase_ = 1;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
         */
        public Builder setTextParagraph(
            com.google.apps.card.v1.TextParagraph.Builder builderForValue) {
          if (textParagraphBuilder_ == null) {
            data_ = builderForValue.build();
            onChanged();
          } else {
            textParagraphBuilder_.setMessage(builderForValue.build());
          }
          dataCase_ = 1;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
         */
        public Builder mergeTextParagraph(com.google.apps.card.v1.TextParagraph value) {
          if (textParagraphBuilder_ == null) {
            if (dataCase_ == 1
                && data_ != com.google.apps.card.v1.TextParagraph.getDefaultInstance()) {
              data_ =
                  com.google.apps.card.v1.TextParagraph.newBuilder(
                          (com.google.apps.card.v1.TextParagraph) data_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              data_ = value;
            }
            onChanged();
          } else {
            if (dataCase_ == 1) {
              textParagraphBuilder_.mergeFrom(value);
            } else {
              textParagraphBuilder_.setMessage(value);
            }
          }
          dataCase_ = 1;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
         */
        public Builder clearTextParagraph() {
          if (textParagraphBuilder_ == null) {
            if (dataCase_ == 1) {
              dataCase_ = 0;
              data_ = null;
              onChanged();
            }
          } else {
            if (dataCase_ == 1) {
              dataCase_ = 0;
              data_ = null;
            }
            textParagraphBuilder_.clear();
          }
          return this;
        }

        /**
         *
         *
         * <pre>
         * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
         */
        public com.google.apps.card.v1.TextParagraph.Builder getTextParagraphBuilder() {
          return internalGetTextParagraphFieldBuilder().getBuilder();
        }

        /**
         *
         *
         * <pre>
         * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
         */
        @java.lang.Override
        public com.google.apps.card.v1.TextParagraphOrBuilder getTextParagraphOrBuilder() {
          if ((dataCase_ == 1) && (textParagraphBuilder_ != null)) {
            return textParagraphBuilder_.getMessageOrBuilder();
          } else {
            if (dataCase_ == 1) {
              return (com.google.apps.card.v1.TextParagraph) data_;
            }
            return com.google.apps.card.v1.TextParagraph.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [TextParagraph][google.apps.card.v1.TextParagraph] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextParagraph text_paragraph = 1;</code>
         */
        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.TextParagraph,
                com.google.apps.card.v1.TextParagraph.Builder,
                com.google.apps.card.v1.TextParagraphOrBuilder>
            internalGetTextParagraphFieldBuilder() {
          if (textParagraphBuilder_ == null) {
            if (!(dataCase_ == 1)) {
              data_ = com.google.apps.card.v1.TextParagraph.getDefaultInstance();
            }
            textParagraphBuilder_ =
                new com.google.protobuf.SingleFieldBuilder<
                    com.google.apps.card.v1.TextParagraph,
                    com.google.apps.card.v1.TextParagraph.Builder,
                    com.google.apps.card.v1.TextParagraphOrBuilder>(
                    (com.google.apps.card.v1.TextParagraph) data_,
                    getParentForChildren(),
                    isClean());
            data_ = null;
          }
          dataCase_ = 1;
          onChanged();
          return textParagraphBuilder_;
        }

        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.Image,
                com.google.apps.card.v1.Image.Builder,
                com.google.apps.card.v1.ImageOrBuilder>
            imageBuilder_;

        /**
         *
         *
         * <pre>
         * [Image][google.apps.card.v1.Image] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.Image image = 2;</code>
         *
         * @return Whether the image field is set.
         */
        @java.lang.Override
        public boolean hasImage() {
          return dataCase_ == 2;
        }

        /**
         *
         *
         * <pre>
         * [Image][google.apps.card.v1.Image] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.Image image = 2;</code>
         *
         * @return The image.
         */
        @java.lang.Override
        public com.google.apps.card.v1.Image getImage() {
          if (imageBuilder_ == null) {
            if (dataCase_ == 2) {
              return (com.google.apps.card.v1.Image) data_;
            }
            return com.google.apps.card.v1.Image.getDefaultInstance();
          } else {
            if (dataCase_ == 2) {
              return imageBuilder_.getMessage();
            }
            return com.google.apps.card.v1.Image.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [Image][google.apps.card.v1.Image] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.Image image = 2;</code>
         */
        public Builder setImage(com.google.apps.card.v1.Image value) {
          if (imageBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            data_ = value;
            onChanged();
          } else {
            imageBuilder_.setMessage(value);
          }
          dataCase_ = 2;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [Image][google.apps.card.v1.Image] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.Image image = 2;</code>
         */
        public Builder setImage(com.google.apps.card.v1.Image.Builder builderForValue) {
          if (imageBuilder_ == null) {
            data_ = builderForValue.build();
            onChanged();
          } else {
            imageBuilder_.setMessage(builderForValue.build());
          }
          dataCase_ = 2;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [Image][google.apps.card.v1.Image] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.Image image = 2;</code>
         */
        public Builder mergeImage(com.google.apps.card.v1.Image value) {
          if (imageBuilder_ == null) {
            if (dataCase_ == 2 && data_ != com.google.apps.card.v1.Image.getDefaultInstance()) {
              data_ =
                  com.google.apps.card.v1.Image.newBuilder((com.google.apps.card.v1.Image) data_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              data_ = value;
            }
            onChanged();
          } else {
            if (dataCase_ == 2) {
              imageBuilder_.mergeFrom(value);
            } else {
              imageBuilder_.setMessage(value);
            }
          }
          dataCase_ = 2;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [Image][google.apps.card.v1.Image] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.Image image = 2;</code>
         */
        public Builder clearImage() {
          if (imageBuilder_ == null) {
            if (dataCase_ == 2) {
              dataCase_ = 0;
              data_ = null;
              onChanged();
            }
          } else {
            if (dataCase_ == 2) {
              dataCase_ = 0;
              data_ = null;
            }
            imageBuilder_.clear();
          }
          return this;
        }

        /**
         *
         *
         * <pre>
         * [Image][google.apps.card.v1.Image] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.Image image = 2;</code>
         */
        public com.google.apps.card.v1.Image.Builder getImageBuilder() {
          return internalGetImageFieldBuilder().getBuilder();
        }

        /**
         *
         *
         * <pre>
         * [Image][google.apps.card.v1.Image] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.Image image = 2;</code>
         */
        @java.lang.Override
        public com.google.apps.card.v1.ImageOrBuilder getImageOrBuilder() {
          if ((dataCase_ == 2) && (imageBuilder_ != null)) {
            return imageBuilder_.getMessageOrBuilder();
          } else {
            if (dataCase_ == 2) {
              return (com.google.apps.card.v1.Image) data_;
            }
            return com.google.apps.card.v1.Image.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [Image][google.apps.card.v1.Image] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.Image image = 2;</code>
         */
        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.Image,
                com.google.apps.card.v1.Image.Builder,
                com.google.apps.card.v1.ImageOrBuilder>
            internalGetImageFieldBuilder() {
          if (imageBuilder_ == null) {
            if (!(dataCase_ == 2)) {
              data_ = com.google.apps.card.v1.Image.getDefaultInstance();
            }
            imageBuilder_ =
                new com.google.protobuf.SingleFieldBuilder<
                    com.google.apps.card.v1.Image,
                    com.google.apps.card.v1.Image.Builder,
                    com.google.apps.card.v1.ImageOrBuilder>(
                    (com.google.apps.card.v1.Image) data_, getParentForChildren(), isClean());
            data_ = null;
          }
          dataCase_ = 2;
          onChanged();
          return imageBuilder_;
        }

        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.DecoratedText,
                com.google.apps.card.v1.DecoratedText.Builder,
                com.google.apps.card.v1.DecoratedTextOrBuilder>
            decoratedTextBuilder_;

        /**
         *
         *
         * <pre>
         * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
         *
         * @return Whether the decoratedText field is set.
         */
        @java.lang.Override
        public boolean hasDecoratedText() {
          return dataCase_ == 3;
        }

        /**
         *
         *
         * <pre>
         * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
         *
         * @return The decoratedText.
         */
        @java.lang.Override
        public com.google.apps.card.v1.DecoratedText getDecoratedText() {
          if (decoratedTextBuilder_ == null) {
            if (dataCase_ == 3) {
              return (com.google.apps.card.v1.DecoratedText) data_;
            }
            return com.google.apps.card.v1.DecoratedText.getDefaultInstance();
          } else {
            if (dataCase_ == 3) {
              return decoratedTextBuilder_.getMessage();
            }
            return com.google.apps.card.v1.DecoratedText.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
         */
        public Builder setDecoratedText(com.google.apps.card.v1.DecoratedText value) {
          if (decoratedTextBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            data_ = value;
            onChanged();
          } else {
            decoratedTextBuilder_.setMessage(value);
          }
          dataCase_ = 3;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
         */
        public Builder setDecoratedText(
            com.google.apps.card.v1.DecoratedText.Builder builderForValue) {
          if (decoratedTextBuilder_ == null) {
            data_ = builderForValue.build();
            onChanged();
          } else {
            decoratedTextBuilder_.setMessage(builderForValue.build());
          }
          dataCase_ = 3;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
         */
        public Builder mergeDecoratedText(com.google.apps.card.v1.DecoratedText value) {
          if (decoratedTextBuilder_ == null) {
            if (dataCase_ == 3
                && data_ != com.google.apps.card.v1.DecoratedText.getDefaultInstance()) {
              data_ =
                  com.google.apps.card.v1.DecoratedText.newBuilder(
                          (com.google.apps.card.v1.DecoratedText) data_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              data_ = value;
            }
            onChanged();
          } else {
            if (dataCase_ == 3) {
              decoratedTextBuilder_.mergeFrom(value);
            } else {
              decoratedTextBuilder_.setMessage(value);
            }
          }
          dataCase_ = 3;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
         */
        public Builder clearDecoratedText() {
          if (decoratedTextBuilder_ == null) {
            if (dataCase_ == 3) {
              dataCase_ = 0;
              data_ = null;
              onChanged();
            }
          } else {
            if (dataCase_ == 3) {
              dataCase_ = 0;
              data_ = null;
            }
            decoratedTextBuilder_.clear();
          }
          return this;
        }

        /**
         *
         *
         * <pre>
         * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
         */
        public com.google.apps.card.v1.DecoratedText.Builder getDecoratedTextBuilder() {
          return internalGetDecoratedTextFieldBuilder().getBuilder();
        }

        /**
         *
         *
         * <pre>
         * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
         */
        @java.lang.Override
        public com.google.apps.card.v1.DecoratedTextOrBuilder getDecoratedTextOrBuilder() {
          if ((dataCase_ == 3) && (decoratedTextBuilder_ != null)) {
            return decoratedTextBuilder_.getMessageOrBuilder();
          } else {
            if (dataCase_ == 3) {
              return (com.google.apps.card.v1.DecoratedText) data_;
            }
            return com.google.apps.card.v1.DecoratedText.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [DecoratedText][google.apps.card.v1.DecoratedText] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DecoratedText decorated_text = 3;</code>
         */
        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.DecoratedText,
                com.google.apps.card.v1.DecoratedText.Builder,
                com.google.apps.card.v1.DecoratedTextOrBuilder>
            internalGetDecoratedTextFieldBuilder() {
          if (decoratedTextBuilder_ == null) {
            if (!(dataCase_ == 3)) {
              data_ = com.google.apps.card.v1.DecoratedText.getDefaultInstance();
            }
            decoratedTextBuilder_ =
                new com.google.protobuf.SingleFieldBuilder<
                    com.google.apps.card.v1.DecoratedText,
                    com.google.apps.card.v1.DecoratedText.Builder,
                    com.google.apps.card.v1.DecoratedTextOrBuilder>(
                    (com.google.apps.card.v1.DecoratedText) data_,
                    getParentForChildren(),
                    isClean());
            data_ = null;
          }
          dataCase_ = 3;
          onChanged();
          return decoratedTextBuilder_;
        }

        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.ButtonList,
                com.google.apps.card.v1.ButtonList.Builder,
                com.google.apps.card.v1.ButtonListOrBuilder>
            buttonListBuilder_;

        /**
         *
         *
         * <pre>
         * [ButtonList][google.apps.card.v1.ButtonList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
         *
         * @return Whether the buttonList field is set.
         */
        @java.lang.Override
        public boolean hasButtonList() {
          return dataCase_ == 4;
        }

        /**
         *
         *
         * <pre>
         * [ButtonList][google.apps.card.v1.ButtonList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
         *
         * @return The buttonList.
         */
        @java.lang.Override
        public com.google.apps.card.v1.ButtonList getButtonList() {
          if (buttonListBuilder_ == null) {
            if (dataCase_ == 4) {
              return (com.google.apps.card.v1.ButtonList) data_;
            }
            return com.google.apps.card.v1.ButtonList.getDefaultInstance();
          } else {
            if (dataCase_ == 4) {
              return buttonListBuilder_.getMessage();
            }
            return com.google.apps.card.v1.ButtonList.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [ButtonList][google.apps.card.v1.ButtonList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
         */
        public Builder setButtonList(com.google.apps.card.v1.ButtonList value) {
          if (buttonListBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            data_ = value;
            onChanged();
          } else {
            buttonListBuilder_.setMessage(value);
          }
          dataCase_ = 4;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [ButtonList][google.apps.card.v1.ButtonList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
         */
        public Builder setButtonList(com.google.apps.card.v1.ButtonList.Builder builderForValue) {
          if (buttonListBuilder_ == null) {
            data_ = builderForValue.build();
            onChanged();
          } else {
            buttonListBuilder_.setMessage(builderForValue.build());
          }
          dataCase_ = 4;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [ButtonList][google.apps.card.v1.ButtonList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
         */
        public Builder mergeButtonList(com.google.apps.card.v1.ButtonList value) {
          if (buttonListBuilder_ == null) {
            if (dataCase_ == 4
                && data_ != com.google.apps.card.v1.ButtonList.getDefaultInstance()) {
              data_ =
                  com.google.apps.card.v1.ButtonList.newBuilder(
                          (com.google.apps.card.v1.ButtonList) data_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              data_ = value;
            }
            onChanged();
          } else {
            if (dataCase_ == 4) {
              buttonListBuilder_.mergeFrom(value);
            } else {
              buttonListBuilder_.setMessage(value);
            }
          }
          dataCase_ = 4;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [ButtonList][google.apps.card.v1.ButtonList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
         */
        public Builder clearButtonList() {
          if (buttonListBuilder_ == null) {
            if (dataCase_ == 4) {
              dataCase_ = 0;
              data_ = null;
              onChanged();
            }
          } else {
            if (dataCase_ == 4) {
              dataCase_ = 0;
              data_ = null;
            }
            buttonListBuilder_.clear();
          }
          return this;
        }

        /**
         *
         *
         * <pre>
         * [ButtonList][google.apps.card.v1.ButtonList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
         */
        public com.google.apps.card.v1.ButtonList.Builder getButtonListBuilder() {
          return internalGetButtonListFieldBuilder().getBuilder();
        }

        /**
         *
         *
         * <pre>
         * [ButtonList][google.apps.card.v1.ButtonList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
         */
        @java.lang.Override
        public com.google.apps.card.v1.ButtonListOrBuilder getButtonListOrBuilder() {
          if ((dataCase_ == 4) && (buttonListBuilder_ != null)) {
            return buttonListBuilder_.getMessageOrBuilder();
          } else {
            if (dataCase_ == 4) {
              return (com.google.apps.card.v1.ButtonList) data_;
            }
            return com.google.apps.card.v1.ButtonList.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [ButtonList][google.apps.card.v1.ButtonList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ButtonList button_list = 4;</code>
         */
        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.ButtonList,
                com.google.apps.card.v1.ButtonList.Builder,
                com.google.apps.card.v1.ButtonListOrBuilder>
            internalGetButtonListFieldBuilder() {
          if (buttonListBuilder_ == null) {
            if (!(dataCase_ == 4)) {
              data_ = com.google.apps.card.v1.ButtonList.getDefaultInstance();
            }
            buttonListBuilder_ =
                new com.google.protobuf.SingleFieldBuilder<
                    com.google.apps.card.v1.ButtonList,
                    com.google.apps.card.v1.ButtonList.Builder,
                    com.google.apps.card.v1.ButtonListOrBuilder>(
                    (com.google.apps.card.v1.ButtonList) data_, getParentForChildren(), isClean());
            data_ = null;
          }
          dataCase_ = 4;
          onChanged();
          return buttonListBuilder_;
        }

        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.TextInput,
                com.google.apps.card.v1.TextInput.Builder,
                com.google.apps.card.v1.TextInputOrBuilder>
            textInputBuilder_;

        /**
         *
         *
         * <pre>
         * [TextInput][google.apps.card.v1.TextInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
         *
         * @return Whether the textInput field is set.
         */
        @java.lang.Override
        public boolean hasTextInput() {
          return dataCase_ == 5;
        }

        /**
         *
         *
         * <pre>
         * [TextInput][google.apps.card.v1.TextInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
         *
         * @return The textInput.
         */
        @java.lang.Override
        public com.google.apps.card.v1.TextInput getTextInput() {
          if (textInputBuilder_ == null) {
            if (dataCase_ == 5) {
              return (com.google.apps.card.v1.TextInput) data_;
            }
            return com.google.apps.card.v1.TextInput.getDefaultInstance();
          } else {
            if (dataCase_ == 5) {
              return textInputBuilder_.getMessage();
            }
            return com.google.apps.card.v1.TextInput.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [TextInput][google.apps.card.v1.TextInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
         */
        public Builder setTextInput(com.google.apps.card.v1.TextInput value) {
          if (textInputBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            data_ = value;
            onChanged();
          } else {
            textInputBuilder_.setMessage(value);
          }
          dataCase_ = 5;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [TextInput][google.apps.card.v1.TextInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
         */
        public Builder setTextInput(com.google.apps.card.v1.TextInput.Builder builderForValue) {
          if (textInputBuilder_ == null) {
            data_ = builderForValue.build();
            onChanged();
          } else {
            textInputBuilder_.setMessage(builderForValue.build());
          }
          dataCase_ = 5;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [TextInput][google.apps.card.v1.TextInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
         */
        public Builder mergeTextInput(com.google.apps.card.v1.TextInput value) {
          if (textInputBuilder_ == null) {
            if (dataCase_ == 5 && data_ != com.google.apps.card.v1.TextInput.getDefaultInstance()) {
              data_ =
                  com.google.apps.card.v1.TextInput.newBuilder(
                          (com.google.apps.card.v1.TextInput) data_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              data_ = value;
            }
            onChanged();
          } else {
            if (dataCase_ == 5) {
              textInputBuilder_.mergeFrom(value);
            } else {
              textInputBuilder_.setMessage(value);
            }
          }
          dataCase_ = 5;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [TextInput][google.apps.card.v1.TextInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
         */
        public Builder clearTextInput() {
          if (textInputBuilder_ == null) {
            if (dataCase_ == 5) {
              dataCase_ = 0;
              data_ = null;
              onChanged();
            }
          } else {
            if (dataCase_ == 5) {
              dataCase_ = 0;
              data_ = null;
            }
            textInputBuilder_.clear();
          }
          return this;
        }

        /**
         *
         *
         * <pre>
         * [TextInput][google.apps.card.v1.TextInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
         */
        public com.google.apps.card.v1.TextInput.Builder getTextInputBuilder() {
          return internalGetTextInputFieldBuilder().getBuilder();
        }

        /**
         *
         *
         * <pre>
         * [TextInput][google.apps.card.v1.TextInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
         */
        @java.lang.Override
        public com.google.apps.card.v1.TextInputOrBuilder getTextInputOrBuilder() {
          if ((dataCase_ == 5) && (textInputBuilder_ != null)) {
            return textInputBuilder_.getMessageOrBuilder();
          } else {
            if (dataCase_ == 5) {
              return (com.google.apps.card.v1.TextInput) data_;
            }
            return com.google.apps.card.v1.TextInput.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [TextInput][google.apps.card.v1.TextInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.TextInput text_input = 5;</code>
         */
        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.TextInput,
                com.google.apps.card.v1.TextInput.Builder,
                com.google.apps.card.v1.TextInputOrBuilder>
            internalGetTextInputFieldBuilder() {
          if (textInputBuilder_ == null) {
            if (!(dataCase_ == 5)) {
              data_ = com.google.apps.card.v1.TextInput.getDefaultInstance();
            }
            textInputBuilder_ =
                new com.google.protobuf.SingleFieldBuilder<
                    com.google.apps.card.v1.TextInput,
                    com.google.apps.card.v1.TextInput.Builder,
                    com.google.apps.card.v1.TextInputOrBuilder>(
                    (com.google.apps.card.v1.TextInput) data_, getParentForChildren(), isClean());
            data_ = null;
          }
          dataCase_ = 5;
          onChanged();
          return textInputBuilder_;
        }

        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.SelectionInput,
                com.google.apps.card.v1.SelectionInput.Builder,
                com.google.apps.card.v1.SelectionInputOrBuilder>
            selectionInputBuilder_;

        /**
         *
         *
         * <pre>
         * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
         *
         * @return Whether the selectionInput field is set.
         */
        @java.lang.Override
        public boolean hasSelectionInput() {
          return dataCase_ == 6;
        }

        /**
         *
         *
         * <pre>
         * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
         *
         * @return The selectionInput.
         */
        @java.lang.Override
        public com.google.apps.card.v1.SelectionInput getSelectionInput() {
          if (selectionInputBuilder_ == null) {
            if (dataCase_ == 6) {
              return (com.google.apps.card.v1.SelectionInput) data_;
            }
            return com.google.apps.card.v1.SelectionInput.getDefaultInstance();
          } else {
            if (dataCase_ == 6) {
              return selectionInputBuilder_.getMessage();
            }
            return com.google.apps.card.v1.SelectionInput.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
         */
        public Builder setSelectionInput(com.google.apps.card.v1.SelectionInput value) {
          if (selectionInputBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            data_ = value;
            onChanged();
          } else {
            selectionInputBuilder_.setMessage(value);
          }
          dataCase_ = 6;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
         */
        public Builder setSelectionInput(
            com.google.apps.card.v1.SelectionInput.Builder builderForValue) {
          if (selectionInputBuilder_ == null) {
            data_ = builderForValue.build();
            onChanged();
          } else {
            selectionInputBuilder_.setMessage(builderForValue.build());
          }
          dataCase_ = 6;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
         */
        public Builder mergeSelectionInput(com.google.apps.card.v1.SelectionInput value) {
          if (selectionInputBuilder_ == null) {
            if (dataCase_ == 6
                && data_ != com.google.apps.card.v1.SelectionInput.getDefaultInstance()) {
              data_ =
                  com.google.apps.card.v1.SelectionInput.newBuilder(
                          (com.google.apps.card.v1.SelectionInput) data_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              data_ = value;
            }
            onChanged();
          } else {
            if (dataCase_ == 6) {
              selectionInputBuilder_.mergeFrom(value);
            } else {
              selectionInputBuilder_.setMessage(value);
            }
          }
          dataCase_ = 6;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
         */
        public Builder clearSelectionInput() {
          if (selectionInputBuilder_ == null) {
            if (dataCase_ == 6) {
              dataCase_ = 0;
              data_ = null;
              onChanged();
            }
          } else {
            if (dataCase_ == 6) {
              dataCase_ = 0;
              data_ = null;
            }
            selectionInputBuilder_.clear();
          }
          return this;
        }

        /**
         *
         *
         * <pre>
         * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
         */
        public com.google.apps.card.v1.SelectionInput.Builder getSelectionInputBuilder() {
          return internalGetSelectionInputFieldBuilder().getBuilder();
        }

        /**
         *
         *
         * <pre>
         * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
         */
        @java.lang.Override
        public com.google.apps.card.v1.SelectionInputOrBuilder getSelectionInputOrBuilder() {
          if ((dataCase_ == 6) && (selectionInputBuilder_ != null)) {
            return selectionInputBuilder_.getMessageOrBuilder();
          } else {
            if (dataCase_ == 6) {
              return (com.google.apps.card.v1.SelectionInput) data_;
            }
            return com.google.apps.card.v1.SelectionInput.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [SelectionInput][google.apps.card.v1.SelectionInput] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.SelectionInput selection_input = 6;</code>
         */
        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.SelectionInput,
                com.google.apps.card.v1.SelectionInput.Builder,
                com.google.apps.card.v1.SelectionInputOrBuilder>
            internalGetSelectionInputFieldBuilder() {
          if (selectionInputBuilder_ == null) {
            if (!(dataCase_ == 6)) {
              data_ = com.google.apps.card.v1.SelectionInput.getDefaultInstance();
            }
            selectionInputBuilder_ =
                new com.google.protobuf.SingleFieldBuilder<
                    com.google.apps.card.v1.SelectionInput,
                    com.google.apps.card.v1.SelectionInput.Builder,
                    com.google.apps.card.v1.SelectionInputOrBuilder>(
                    (com.google.apps.card.v1.SelectionInput) data_,
                    getParentForChildren(),
                    isClean());
            data_ = null;
          }
          dataCase_ = 6;
          onChanged();
          return selectionInputBuilder_;
        }

        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.DateTimePicker,
                com.google.apps.card.v1.DateTimePicker.Builder,
                com.google.apps.card.v1.DateTimePickerOrBuilder>
            dateTimePickerBuilder_;

        /**
         *
         *
         * <pre>
         * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
         *
         * @return Whether the dateTimePicker field is set.
         */
        @java.lang.Override
        public boolean hasDateTimePicker() {
          return dataCase_ == 7;
        }

        /**
         *
         *
         * <pre>
         * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
         *
         * @return The dateTimePicker.
         */
        @java.lang.Override
        public com.google.apps.card.v1.DateTimePicker getDateTimePicker() {
          if (dateTimePickerBuilder_ == null) {
            if (dataCase_ == 7) {
              return (com.google.apps.card.v1.DateTimePicker) data_;
            }
            return com.google.apps.card.v1.DateTimePicker.getDefaultInstance();
          } else {
            if (dataCase_ == 7) {
              return dateTimePickerBuilder_.getMessage();
            }
            return com.google.apps.card.v1.DateTimePicker.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
         */
        public Builder setDateTimePicker(com.google.apps.card.v1.DateTimePicker value) {
          if (dateTimePickerBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            data_ = value;
            onChanged();
          } else {
            dateTimePickerBuilder_.setMessage(value);
          }
          dataCase_ = 7;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
         */
        public Builder setDateTimePicker(
            com.google.apps.card.v1.DateTimePicker.Builder builderForValue) {
          if (dateTimePickerBuilder_ == null) {
            data_ = builderForValue.build();
            onChanged();
          } else {
            dateTimePickerBuilder_.setMessage(builderForValue.build());
          }
          dataCase_ = 7;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
         */
        public Builder mergeDateTimePicker(com.google.apps.card.v1.DateTimePicker value) {
          if (dateTimePickerBuilder_ == null) {
            if (dataCase_ == 7
                && data_ != com.google.apps.card.v1.DateTimePicker.getDefaultInstance()) {
              data_ =
                  com.google.apps.card.v1.DateTimePicker.newBuilder(
                          (com.google.apps.card.v1.DateTimePicker) data_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              data_ = value;
            }
            onChanged();
          } else {
            if (dataCase_ == 7) {
              dateTimePickerBuilder_.mergeFrom(value);
            } else {
              dateTimePickerBuilder_.setMessage(value);
            }
          }
          dataCase_ = 7;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
         */
        public Builder clearDateTimePicker() {
          if (dateTimePickerBuilder_ == null) {
            if (dataCase_ == 7) {
              dataCase_ = 0;
              data_ = null;
              onChanged();
            }
          } else {
            if (dataCase_ == 7) {
              dataCase_ = 0;
              data_ = null;
            }
            dateTimePickerBuilder_.clear();
          }
          return this;
        }

        /**
         *
         *
         * <pre>
         * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
         */
        public com.google.apps.card.v1.DateTimePicker.Builder getDateTimePickerBuilder() {
          return internalGetDateTimePickerFieldBuilder().getBuilder();
        }

        /**
         *
         *
         * <pre>
         * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
         */
        @java.lang.Override
        public com.google.apps.card.v1.DateTimePickerOrBuilder getDateTimePickerOrBuilder() {
          if ((dataCase_ == 7) && (dateTimePickerBuilder_ != null)) {
            return dateTimePickerBuilder_.getMessageOrBuilder();
          } else {
            if (dataCase_ == 7) {
              return (com.google.apps.card.v1.DateTimePicker) data_;
            }
            return com.google.apps.card.v1.DateTimePicker.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.DateTimePicker date_time_picker = 7;</code>
         */
        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.DateTimePicker,
                com.google.apps.card.v1.DateTimePicker.Builder,
                com.google.apps.card.v1.DateTimePickerOrBuilder>
            internalGetDateTimePickerFieldBuilder() {
          if (dateTimePickerBuilder_ == null) {
            if (!(dataCase_ == 7)) {
              data_ = com.google.apps.card.v1.DateTimePicker.getDefaultInstance();
            }
            dateTimePickerBuilder_ =
                new com.google.protobuf.SingleFieldBuilder<
                    com.google.apps.card.v1.DateTimePicker,
                    com.google.apps.card.v1.DateTimePicker.Builder,
                    com.google.apps.card.v1.DateTimePickerOrBuilder>(
                    (com.google.apps.card.v1.DateTimePicker) data_,
                    getParentForChildren(),
                    isClean());
            data_ = null;
          }
          dataCase_ = 7;
          onChanged();
          return dateTimePickerBuilder_;
        }

        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.ChipList,
                com.google.apps.card.v1.ChipList.Builder,
                com.google.apps.card.v1.ChipListOrBuilder>
            chipListBuilder_;

        /**
         *
         *
         * <pre>
         * [ChipList][google.apps.card.v1.ChipList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
         *
         * @return Whether the chipList field is set.
         */
        @java.lang.Override
        public boolean hasChipList() {
          return dataCase_ == 8;
        }

        /**
         *
         *
         * <pre>
         * [ChipList][google.apps.card.v1.ChipList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
         *
         * @return The chipList.
         */
        @java.lang.Override
        public com.google.apps.card.v1.ChipList getChipList() {
          if (chipListBuilder_ == null) {
            if (dataCase_ == 8) {
              return (com.google.apps.card.v1.ChipList) data_;
            }
            return com.google.apps.card.v1.ChipList.getDefaultInstance();
          } else {
            if (dataCase_ == 8) {
              return chipListBuilder_.getMessage();
            }
            return com.google.apps.card.v1.ChipList.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [ChipList][google.apps.card.v1.ChipList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
         */
        public Builder setChipList(com.google.apps.card.v1.ChipList value) {
          if (chipListBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            data_ = value;
            onChanged();
          } else {
            chipListBuilder_.setMessage(value);
          }
          dataCase_ = 8;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [ChipList][google.apps.card.v1.ChipList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
         */
        public Builder setChipList(com.google.apps.card.v1.ChipList.Builder builderForValue) {
          if (chipListBuilder_ == null) {
            data_ = builderForValue.build();
            onChanged();
          } else {
            chipListBuilder_.setMessage(builderForValue.build());
          }
          dataCase_ = 8;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [ChipList][google.apps.card.v1.ChipList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
         */
        public Builder mergeChipList(com.google.apps.card.v1.ChipList value) {
          if (chipListBuilder_ == null) {
            if (dataCase_ == 8 && data_ != com.google.apps.card.v1.ChipList.getDefaultInstance()) {
              data_ =
                  com.google.apps.card.v1.ChipList.newBuilder(
                          (com.google.apps.card.v1.ChipList) data_)
                      .mergeFrom(value)
                      .buildPartial();
            } else {
              data_ = value;
            }
            onChanged();
          } else {
            if (dataCase_ == 8) {
              chipListBuilder_.mergeFrom(value);
            } else {
              chipListBuilder_.setMessage(value);
            }
          }
          dataCase_ = 8;
          return this;
        }

        /**
         *
         *
         * <pre>
         * [ChipList][google.apps.card.v1.ChipList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
         */
        public Builder clearChipList() {
          if (chipListBuilder_ == null) {
            if (dataCase_ == 8) {
              dataCase_ = 0;
              data_ = null;
              onChanged();
            }
          } else {
            if (dataCase_ == 8) {
              dataCase_ = 0;
              data_ = null;
            }
            chipListBuilder_.clear();
          }
          return this;
        }

        /**
         *
         *
         * <pre>
         * [ChipList][google.apps.card.v1.ChipList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
         */
        public com.google.apps.card.v1.ChipList.Builder getChipListBuilder() {
          return internalGetChipListFieldBuilder().getBuilder();
        }

        /**
         *
         *
         * <pre>
         * [ChipList][google.apps.card.v1.ChipList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
         */
        @java.lang.Override
        public com.google.apps.card.v1.ChipListOrBuilder getChipListOrBuilder() {
          if ((dataCase_ == 8) && (chipListBuilder_ != null)) {
            return chipListBuilder_.getMessageOrBuilder();
          } else {
            if (dataCase_ == 8) {
              return (com.google.apps.card.v1.ChipList) data_;
            }
            return com.google.apps.card.v1.ChipList.getDefaultInstance();
          }
        }

        /**
         *
         *
         * <pre>
         * [ChipList][google.apps.card.v1.ChipList] widget.
         * </pre>
         *
         * <code>.google.apps.card.v1.ChipList chip_list = 8;</code>
         */
        private com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.ChipList,
                com.google.apps.card.v1.ChipList.Builder,
                com.google.apps.card.v1.ChipListOrBuilder>
            internalGetChipListFieldBuilder() {
          if (chipListBuilder_ == null) {
            if (!(dataCase_ == 8)) {
              data_ = com.google.apps.card.v1.ChipList.getDefaultInstance();
            }
            chipListBuilder_ =
                new com.google.protobuf.SingleFieldBuilder<
                    com.google.apps.card.v1.ChipList,
                    com.google.apps.card.v1.ChipList.Builder,
                    com.google.apps.card.v1.ChipListOrBuilder>(
                    (com.google.apps.card.v1.ChipList) data_, getParentForChildren(), isClean());
            data_ = null;
          }
          dataCase_ = 8;
          onChanged();
          return chipListBuilder_;
        }

        // @@protoc_insertion_point(builder_scope:google.apps.card.v1.Columns.Column.Widgets)
      }

      // @@protoc_insertion_point(class_scope:google.apps.card.v1.Columns.Column.Widgets)
      private static final com.google.apps.card.v1.Columns.Column.Widgets DEFAULT_INSTANCE;

      static {
        DEFAULT_INSTANCE = new com.google.apps.card.v1.Columns.Column.Widgets();
      }

      public static com.google.apps.card.v1.Columns.Column.Widgets getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

      @java.lang.Override
      public com.google.apps.card.v1.Columns.Column.Widgets getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
    }

    public static final int HORIZONTAL_SIZE_STYLE_FIELD_NUMBER = 1;
    private int horizontalSizeStyle_ = 0;

    /**
     *
     *
     * <pre>
     * Specifies how a column fills the width of the card.
     * </pre>
     *
     * <code>.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;
     * </code>
     *
     * @return The enum numeric value on the wire for horizontalSizeStyle.
     */
    @java.lang.Override
    public int getHorizontalSizeStyleValue() {
      return horizontalSizeStyle_;
    }

    /**
     *
     *
     * <pre>
     * Specifies how a column fills the width of the card.
     * </pre>
     *
     * <code>.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;
     * </code>
     *
     * @return The horizontalSizeStyle.
     */
    @java.lang.Override
    public com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle getHorizontalSizeStyle() {
      com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle result =
          com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle.forNumber(
              horizontalSizeStyle_);
      return result == null
          ? com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle.UNRECOGNIZED
          : result;
    }

    public static final int HORIZONTAL_ALIGNMENT_FIELD_NUMBER = 2;
    private int horizontalAlignment_ = 0;

    /**
     *
     *
     * <pre>
     * Specifies whether widgets align to the left, right, or center of a
     * column.
     * </pre>
     *
     * <code>.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2;</code>
     *
     * @return The enum numeric value on the wire for horizontalAlignment.
     */
    @java.lang.Override
    public int getHorizontalAlignmentValue() {
      return horizontalAlignment_;
    }

    /**
     *
     *
     * <pre>
     * Specifies whether widgets align to the left, right, or center of a
     * column.
     * </pre>
     *
     * <code>.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2;</code>
     *
     * @return The horizontalAlignment.
     */
    @java.lang.Override
    public com.google.apps.card.v1.Widget.HorizontalAlignment getHorizontalAlignment() {
      com.google.apps.card.v1.Widget.HorizontalAlignment result =
          com.google.apps.card.v1.Widget.HorizontalAlignment.forNumber(horizontalAlignment_);
      return result == null
          ? com.google.apps.card.v1.Widget.HorizontalAlignment.UNRECOGNIZED
          : result;
    }

    public static final int VERTICAL_ALIGNMENT_FIELD_NUMBER = 3;
    private int verticalAlignment_ = 0;

    /**
     *
     *
     * <pre>
     * Specifies whether widgets align to the top, bottom, or center of a
     * column.
     * </pre>
     *
     * <code>.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;</code>
     *
     * @return The enum numeric value on the wire for verticalAlignment.
     */
    @java.lang.Override
    public int getVerticalAlignmentValue() {
      return verticalAlignment_;
    }

    /**
     *
     *
     * <pre>
     * Specifies whether widgets align to the top, bottom, or center of a
     * column.
     * </pre>
     *
     * <code>.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;</code>
     *
     * @return The verticalAlignment.
     */
    @java.lang.Override
    public com.google.apps.card.v1.Columns.Column.VerticalAlignment getVerticalAlignment() {
      com.google.apps.card.v1.Columns.Column.VerticalAlignment result =
          com.google.apps.card.v1.Columns.Column.VerticalAlignment.forNumber(verticalAlignment_);
      return result == null
          ? com.google.apps.card.v1.Columns.Column.VerticalAlignment.UNRECOGNIZED
          : result;
    }

    public static final int WIDGETS_FIELD_NUMBER = 4;

    @SuppressWarnings("serial")
    private java.util.List<com.google.apps.card.v1.Columns.Column.Widgets> widgets_;

    /**
     *
     *
     * <pre>
     * An array of widgets included in a column. Widgets appear in the order
     * that they are specified.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
     */
    @java.lang.Override
    public java.util.List<com.google.apps.card.v1.Columns.Column.Widgets> getWidgetsList() {
      return widgets_;
    }

    /**
     *
     *
     * <pre>
     * An array of widgets included in a column. Widgets appear in the order
     * that they are specified.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
     */
    @java.lang.Override
    public java.util.List<? extends com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder>
        getWidgetsOrBuilderList() {
      return widgets_;
    }

    /**
     *
     *
     * <pre>
     * An array of widgets included in a column. Widgets appear in the order
     * that they are specified.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
     */
    @java.lang.Override
    public int getWidgetsCount() {
      return widgets_.size();
    }

    /**
     *
     *
     * <pre>
     * An array of widgets included in a column. Widgets appear in the order
     * that they are specified.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
     */
    @java.lang.Override
    public com.google.apps.card.v1.Columns.Column.Widgets getWidgets(int index) {
      return widgets_.get(index);
    }

    /**
     *
     *
     * <pre>
     * An array of widgets included in a column. Widgets appear in the order
     * that they are specified.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
     */
    @java.lang.Override
    public com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder getWidgetsOrBuilder(int index) {
      return widgets_.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 (horizontalSizeStyle_
          != com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle
              .HORIZONTAL_SIZE_STYLE_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(1, horizontalSizeStyle_);
      }
      if (horizontalAlignment_
          != com.google.apps.card.v1.Widget.HorizontalAlignment.HORIZONTAL_ALIGNMENT_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(2, horizontalAlignment_);
      }
      if (verticalAlignment_
          != com.google.apps.card.v1.Columns.Column.VerticalAlignment.VERTICAL_ALIGNMENT_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(3, verticalAlignment_);
      }
      for (int i = 0; i < widgets_.size(); i++) {
        output.writeMessage(4, widgets_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (horizontalSizeStyle_
          != com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle
              .HORIZONTAL_SIZE_STYLE_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, horizontalSizeStyle_);
      }
      if (horizontalAlignment_
          != com.google.apps.card.v1.Widget.HorizontalAlignment.HORIZONTAL_ALIGNMENT_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, horizontalAlignment_);
      }
      if (verticalAlignment_
          != com.google.apps.card.v1.Columns.Column.VerticalAlignment.VERTICAL_ALIGNMENT_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, verticalAlignment_);
      }
      for (int i = 0; i < widgets_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, widgets_.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.apps.card.v1.Columns.Column)) {
        return super.equals(obj);
      }
      com.google.apps.card.v1.Columns.Column other = (com.google.apps.card.v1.Columns.Column) obj;

      if (horizontalSizeStyle_ != other.horizontalSizeStyle_) return false;
      if (horizontalAlignment_ != other.horizontalAlignment_) return false;
      if (verticalAlignment_ != other.verticalAlignment_) return false;
      if (!getWidgetsList().equals(other.getWidgetsList())) 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) + HORIZONTAL_SIZE_STYLE_FIELD_NUMBER;
      hash = (53 * hash) + horizontalSizeStyle_;
      hash = (37 * hash) + HORIZONTAL_ALIGNMENT_FIELD_NUMBER;
      hash = (53 * hash) + horizontalAlignment_;
      hash = (37 * hash) + VERTICAL_ALIGNMENT_FIELD_NUMBER;
      hash = (53 * hash) + verticalAlignment_;
      if (getWidgetsCount() > 0) {
        hash = (37 * hash) + WIDGETS_FIELD_NUMBER;
        hash = (53 * hash) + getWidgetsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.apps.card.v1.Columns.Column parseFrom(java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.apps.card.v1.Columns.Column parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.apps.card.v1.Columns.Column parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

    public static com.google.apps.card.v1.Columns.Column parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.apps.card.v1.Columns.Column parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
    }

    public static com.google.apps.card.v1.Columns.Column parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.apps.card.v1.Columns.Column parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.apps.card.v1.Columns.Column parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.apps.card.v1.Columns.Column parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
    }

    public static com.google.apps.card.v1.Columns.Column parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.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.apps.card.v1.Columns.Column 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.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }

    /**
     *
     *
     * <pre>
     * A column.
     *
     * [Google Workspace add-ons and Chat
     * apps](https://developers.google.com/workspace/extend)
     * </pre>
     *
     * Protobuf type {@code google.apps.card.v1.Columns.Column}
     */
    public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.apps.card.v1.Columns.Column)
        com.google.apps.card.v1.Columns.ColumnOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.apps.card.v1.CardProto
            .internal_static_google_apps_card_v1_Columns_Column_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.apps.card.v1.CardProto
            .internal_static_google_apps_card_v1_Columns_Column_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.apps.card.v1.Columns.Column.class,
                com.google.apps.card.v1.Columns.Column.Builder.class);
      }

      // Construct using com.google.apps.card.v1.Columns.Column.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        horizontalSizeStyle_ = 0;
        horizontalAlignment_ = 0;
        verticalAlignment_ = 0;
        if (widgetsBuilder_ == null) {
          widgets_ = java.util.Collections.emptyList();
        } else {
          widgets_ = null;
          widgetsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.apps.card.v1.CardProto
            .internal_static_google_apps_card_v1_Columns_Column_descriptor;
      }

      @java.lang.Override
      public com.google.apps.card.v1.Columns.Column getDefaultInstanceForType() {
        return com.google.apps.card.v1.Columns.Column.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.apps.card.v1.Columns.Column build() {
        com.google.apps.card.v1.Columns.Column result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.apps.card.v1.Columns.Column buildPartial() {
        com.google.apps.card.v1.Columns.Column result =
            new com.google.apps.card.v1.Columns.Column(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(com.google.apps.card.v1.Columns.Column result) {
        if (widgetsBuilder_ == null) {
          if (((bitField0_ & 0x00000008) != 0)) {
            widgets_ = java.util.Collections.unmodifiableList(widgets_);
            bitField0_ = (bitField0_ & ~0x00000008);
          }
          result.widgets_ = widgets_;
        } else {
          result.widgets_ = widgetsBuilder_.build();
        }
      }

      private void buildPartial0(com.google.apps.card.v1.Columns.Column result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.horizontalSizeStyle_ = horizontalSizeStyle_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.horizontalAlignment_ = horizontalAlignment_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.verticalAlignment_ = verticalAlignment_;
        }
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.apps.card.v1.Columns.Column) {
          return mergeFrom((com.google.apps.card.v1.Columns.Column) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.apps.card.v1.Columns.Column other) {
        if (other == com.google.apps.card.v1.Columns.Column.getDefaultInstance()) return this;
        if (other.horizontalSizeStyle_ != 0) {
          setHorizontalSizeStyleValue(other.getHorizontalSizeStyleValue());
        }
        if (other.horizontalAlignment_ != 0) {
          setHorizontalAlignmentValue(other.getHorizontalAlignmentValue());
        }
        if (other.verticalAlignment_ != 0) {
          setVerticalAlignmentValue(other.getVerticalAlignmentValue());
        }
        if (widgetsBuilder_ == null) {
          if (!other.widgets_.isEmpty()) {
            if (widgets_.isEmpty()) {
              widgets_ = other.widgets_;
              bitField0_ = (bitField0_ & ~0x00000008);
            } else {
              ensureWidgetsIsMutable();
              widgets_.addAll(other.widgets_);
            }
            onChanged();
          }
        } else {
          if (!other.widgets_.isEmpty()) {
            if (widgetsBuilder_.isEmpty()) {
              widgetsBuilder_.dispose();
              widgetsBuilder_ = null;
              widgets_ = other.widgets_;
              bitField0_ = (bitField0_ & ~0x00000008);
              widgetsBuilder_ =
                  com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
                      ? internalGetWidgetsFieldBuilder()
                      : null;
            } else {
              widgetsBuilder_.addAllMessages(other.widgets_);
            }
          }
        }
        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:
                {
                  horizontalSizeStyle_ = input.readEnum();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
              case 16:
                {
                  horizontalAlignment_ = input.readEnum();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 16
              case 24:
                {
                  verticalAlignment_ = input.readEnum();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 24
              case 34:
                {
                  com.google.apps.card.v1.Columns.Column.Widgets m =
                      input.readMessage(
                          com.google.apps.card.v1.Columns.Column.Widgets.parser(),
                          extensionRegistry);
                  if (widgetsBuilder_ == null) {
                    ensureWidgetsIsMutable();
                    widgets_.add(m);
                  } else {
                    widgetsBuilder_.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 int horizontalSizeStyle_ = 0;

      /**
       *
       *
       * <pre>
       * Specifies how a column fills the width of the card.
       * </pre>
       *
       * <code>.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;
       * </code>
       *
       * @return The enum numeric value on the wire for horizontalSizeStyle.
       */
      @java.lang.Override
      public int getHorizontalSizeStyleValue() {
        return horizontalSizeStyle_;
      }

      /**
       *
       *
       * <pre>
       * Specifies how a column fills the width of the card.
       * </pre>
       *
       * <code>.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;
       * </code>
       *
       * @param value The enum numeric value on the wire for horizontalSizeStyle to set.
       * @return This builder for chaining.
       */
      public Builder setHorizontalSizeStyleValue(int value) {
        horizontalSizeStyle_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * Specifies how a column fills the width of the card.
       * </pre>
       *
       * <code>.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;
       * </code>
       *
       * @return The horizontalSizeStyle.
       */
      @java.lang.Override
      public com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle getHorizontalSizeStyle() {
        com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle result =
            com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle.forNumber(
                horizontalSizeStyle_);
        return result == null
            ? com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle.UNRECOGNIZED
            : result;
      }

      /**
       *
       *
       * <pre>
       * Specifies how a column fills the width of the card.
       * </pre>
       *
       * <code>.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;
       * </code>
       *
       * @param value The horizontalSizeStyle to set.
       * @return This builder for chaining.
       */
      public Builder setHorizontalSizeStyle(
          com.google.apps.card.v1.Columns.Column.HorizontalSizeStyle value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        horizontalSizeStyle_ = value.getNumber();
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * Specifies how a column fills the width of the card.
       * </pre>
       *
       * <code>.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearHorizontalSizeStyle() {
        bitField0_ = (bitField0_ & ~0x00000001);
        horizontalSizeStyle_ = 0;
        onChanged();
        return this;
      }

      private int horizontalAlignment_ = 0;

      /**
       *
       *
       * <pre>
       * Specifies whether widgets align to the left, right, or center of a
       * column.
       * </pre>
       *
       * <code>.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2;</code>
       *
       * @return The enum numeric value on the wire for horizontalAlignment.
       */
      @java.lang.Override
      public int getHorizontalAlignmentValue() {
        return horizontalAlignment_;
      }

      /**
       *
       *
       * <pre>
       * Specifies whether widgets align to the left, right, or center of a
       * column.
       * </pre>
       *
       * <code>.google.apps.card.v1.Widget.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>
       * Specifies whether widgets align to the left, right, or center of a
       * column.
       * </pre>
       *
       * <code>.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2;</code>
       *
       * @return The horizontalAlignment.
       */
      @java.lang.Override
      public com.google.apps.card.v1.Widget.HorizontalAlignment getHorizontalAlignment() {
        com.google.apps.card.v1.Widget.HorizontalAlignment result =
            com.google.apps.card.v1.Widget.HorizontalAlignment.forNumber(horizontalAlignment_);
        return result == null
            ? com.google.apps.card.v1.Widget.HorizontalAlignment.UNRECOGNIZED
            : result;
      }

      /**
       *
       *
       * <pre>
       * Specifies whether widgets align to the left, right, or center of a
       * column.
       * </pre>
       *
       * <code>.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2;</code>
       *
       * @param value The horizontalAlignment to set.
       * @return This builder for chaining.
       */
      public Builder setHorizontalAlignment(
          com.google.apps.card.v1.Widget.HorizontalAlignment value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        horizontalAlignment_ = value.getNumber();
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * Specifies whether widgets align to the left, right, or center of a
       * column.
       * </pre>
       *
       * <code>.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearHorizontalAlignment() {
        bitField0_ = (bitField0_ & ~0x00000002);
        horizontalAlignment_ = 0;
        onChanged();
        return this;
      }

      private int verticalAlignment_ = 0;

      /**
       *
       *
       * <pre>
       * Specifies whether widgets align to the top, bottom, or center of a
       * column.
       * </pre>
       *
       * <code>.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;</code>
       *
       * @return The enum numeric value on the wire for verticalAlignment.
       */
      @java.lang.Override
      public int getVerticalAlignmentValue() {
        return verticalAlignment_;
      }

      /**
       *
       *
       * <pre>
       * Specifies whether widgets align to the top, bottom, or center of a
       * column.
       * </pre>
       *
       * <code>.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;</code>
       *
       * @param value The enum numeric value on the wire for verticalAlignment to set.
       * @return This builder for chaining.
       */
      public Builder setVerticalAlignmentValue(int value) {
        verticalAlignment_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * Specifies whether widgets align to the top, bottom, or center of a
       * column.
       * </pre>
       *
       * <code>.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;</code>
       *
       * @return The verticalAlignment.
       */
      @java.lang.Override
      public com.google.apps.card.v1.Columns.Column.VerticalAlignment getVerticalAlignment() {
        com.google.apps.card.v1.Columns.Column.VerticalAlignment result =
            com.google.apps.card.v1.Columns.Column.VerticalAlignment.forNumber(verticalAlignment_);
        return result == null
            ? com.google.apps.card.v1.Columns.Column.VerticalAlignment.UNRECOGNIZED
            : result;
      }

      /**
       *
       *
       * <pre>
       * Specifies whether widgets align to the top, bottom, or center of a
       * column.
       * </pre>
       *
       * <code>.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;</code>
       *
       * @param value The verticalAlignment to set.
       * @return This builder for chaining.
       */
      public Builder setVerticalAlignment(
          com.google.apps.card.v1.Columns.Column.VerticalAlignment value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000004;
        verticalAlignment_ = value.getNumber();
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * Specifies whether widgets align to the top, bottom, or center of a
       * column.
       * </pre>
       *
       * <code>.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearVerticalAlignment() {
        bitField0_ = (bitField0_ & ~0x00000004);
        verticalAlignment_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<com.google.apps.card.v1.Columns.Column.Widgets> widgets_ =
          java.util.Collections.emptyList();

      private void ensureWidgetsIsMutable() {
        if (!((bitField0_ & 0x00000008) != 0)) {
          widgets_ =
              new java.util.ArrayList<com.google.apps.card.v1.Columns.Column.Widgets>(widgets_);
          bitField0_ |= 0x00000008;
        }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
              com.google.apps.card.v1.Columns.Column.Widgets,
              com.google.apps.card.v1.Columns.Column.Widgets.Builder,
              com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder>
          widgetsBuilder_;

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public java.util.List<com.google.apps.card.v1.Columns.Column.Widgets> getWidgetsList() {
        if (widgetsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(widgets_);
        } else {
          return widgetsBuilder_.getMessageList();
        }
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public int getWidgetsCount() {
        if (widgetsBuilder_ == null) {
          return widgets_.size();
        } else {
          return widgetsBuilder_.getCount();
        }
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public com.google.apps.card.v1.Columns.Column.Widgets getWidgets(int index) {
        if (widgetsBuilder_ == null) {
          return widgets_.get(index);
        } else {
          return widgetsBuilder_.getMessage(index);
        }
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public Builder setWidgets(int index, com.google.apps.card.v1.Columns.Column.Widgets value) {
        if (widgetsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureWidgetsIsMutable();
          widgets_.set(index, value);
          onChanged();
        } else {
          widgetsBuilder_.setMessage(index, value);
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public Builder setWidgets(
          int index, com.google.apps.card.v1.Columns.Column.Widgets.Builder builderForValue) {
        if (widgetsBuilder_ == null) {
          ensureWidgetsIsMutable();
          widgets_.set(index, builderForValue.build());
          onChanged();
        } else {
          widgetsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public Builder addWidgets(com.google.apps.card.v1.Columns.Column.Widgets value) {
        if (widgetsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureWidgetsIsMutable();
          widgets_.add(value);
          onChanged();
        } else {
          widgetsBuilder_.addMessage(value);
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public Builder addWidgets(int index, com.google.apps.card.v1.Columns.Column.Widgets value) {
        if (widgetsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureWidgetsIsMutable();
          widgets_.add(index, value);
          onChanged();
        } else {
          widgetsBuilder_.addMessage(index, value);
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public Builder addWidgets(
          com.google.apps.card.v1.Columns.Column.Widgets.Builder builderForValue) {
        if (widgetsBuilder_ == null) {
          ensureWidgetsIsMutable();
          widgets_.add(builderForValue.build());
          onChanged();
        } else {
          widgetsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public Builder addWidgets(
          int index, com.google.apps.card.v1.Columns.Column.Widgets.Builder builderForValue) {
        if (widgetsBuilder_ == null) {
          ensureWidgetsIsMutable();
          widgets_.add(index, builderForValue.build());
          onChanged();
        } else {
          widgetsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public Builder addAllWidgets(
          java.lang.Iterable<? extends com.google.apps.card.v1.Columns.Column.Widgets> values) {
        if (widgetsBuilder_ == null) {
          ensureWidgetsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, widgets_);
          onChanged();
        } else {
          widgetsBuilder_.addAllMessages(values);
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public Builder clearWidgets() {
        if (widgetsBuilder_ == null) {
          widgets_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
        } else {
          widgetsBuilder_.clear();
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public Builder removeWidgets(int index) {
        if (widgetsBuilder_ == null) {
          ensureWidgetsIsMutable();
          widgets_.remove(index);
          onChanged();
        } else {
          widgetsBuilder_.remove(index);
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public com.google.apps.card.v1.Columns.Column.Widgets.Builder getWidgetsBuilder(int index) {
        return internalGetWidgetsFieldBuilder().getBuilder(index);
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder getWidgetsOrBuilder(
          int index) {
        if (widgetsBuilder_ == null) {
          return widgets_.get(index);
        } else {
          return widgetsBuilder_.getMessageOrBuilder(index);
        }
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public java.util.List<? extends com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder>
          getWidgetsOrBuilderList() {
        if (widgetsBuilder_ != null) {
          return widgetsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(widgets_);
        }
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public com.google.apps.card.v1.Columns.Column.Widgets.Builder addWidgetsBuilder() {
        return internalGetWidgetsFieldBuilder()
            .addBuilder(com.google.apps.card.v1.Columns.Column.Widgets.getDefaultInstance());
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public com.google.apps.card.v1.Columns.Column.Widgets.Builder addWidgetsBuilder(int index) {
        return internalGetWidgetsFieldBuilder()
            .addBuilder(index, com.google.apps.card.v1.Columns.Column.Widgets.getDefaultInstance());
      }

      /**
       *
       *
       * <pre>
       * An array of widgets included in a column. Widgets appear in the order
       * that they are specified.
       * </pre>
       *
       * <code>repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;</code>
       */
      public java.util.List<com.google.apps.card.v1.Columns.Column.Widgets.Builder>
          getWidgetsBuilderList() {
        return internalGetWidgetsFieldBuilder().getBuilderList();
      }

      private com.google.protobuf.RepeatedFieldBuilder<
              com.google.apps.card.v1.Columns.Column.Widgets,
              com.google.apps.card.v1.Columns.Column.Widgets.Builder,
              com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder>
          internalGetWidgetsFieldBuilder() {
        if (widgetsBuilder_ == null) {
          widgetsBuilder_ =
              new com.google.protobuf.RepeatedFieldBuilder<
                  com.google.apps.card.v1.Columns.Column.Widgets,
                  com.google.apps.card.v1.Columns.Column.Widgets.Builder,
                  com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder>(
                  widgets_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
          widgets_ = null;
        }
        return widgetsBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:google.apps.card.v1.Columns.Column)
    }

    // @@protoc_insertion_point(class_scope:google.apps.card.v1.Columns.Column)
    private static final com.google.apps.card.v1.Columns.Column DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.apps.card.v1.Columns.Column();
    }

    public static com.google.apps.card.v1.Columns.Column getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.apps.card.v1.Columns.Column getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int COLUMN_ITEMS_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private java.util.List<com.google.apps.card.v1.Columns.Column> columnItems_;

  /**
   *
   *
   * <pre>
   * An array of columns. You can include up to 2 columns in a card or dialog.
   * </pre>
   *
   * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.apps.card.v1.Columns.Column> getColumnItemsList() {
    return columnItems_;
  }

  /**
   *
   *
   * <pre>
   * An array of columns. You can include up to 2 columns in a card or dialog.
   * </pre>
   *
   * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.apps.card.v1.Columns.ColumnOrBuilder>
      getColumnItemsOrBuilderList() {
    return columnItems_;
  }

  /**
   *
   *
   * <pre>
   * An array of columns. You can include up to 2 columns in a card or dialog.
   * </pre>
   *
   * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
   */
  @java.lang.Override
  public int getColumnItemsCount() {
    return columnItems_.size();
  }

  /**
   *
   *
   * <pre>
   * An array of columns. You can include up to 2 columns in a card or dialog.
   * </pre>
   *
   * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
   */
  @java.lang.Override
  public com.google.apps.card.v1.Columns.Column getColumnItems(int index) {
    return columnItems_.get(index);
  }

  /**
   *
   *
   * <pre>
   * An array of columns. You can include up to 2 columns in a card or dialog.
   * </pre>
   *
   * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
   */
  @java.lang.Override
  public com.google.apps.card.v1.Columns.ColumnOrBuilder getColumnItemsOrBuilder(int index) {
    return columnItems_.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 < columnItems_.size(); i++) {
      output.writeMessage(2, columnItems_.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 < columnItems_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, columnItems_.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.apps.card.v1.Columns)) {
      return super.equals(obj);
    }
    com.google.apps.card.v1.Columns other = (com.google.apps.card.v1.Columns) obj;

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

  public static com.google.apps.card.v1.Columns parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

  public static com.google.apps.card.v1.Columns parseFrom(com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

  public static com.google.apps.card.v1.Columns parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
  }

  public static com.google.apps.card.v1.Columns parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.apps.card.v1.Columns parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.apps.card.v1.Columns parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.apps.card.v1.Columns parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
  }

  public static com.google.apps.card.v1.Columns parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.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.apps.card.v1.Columns 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.GeneratedMessage.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }

  /**
   *
   *
   * <pre>
   * The `Columns` widget displays up to 2 columns in a card or dialog. You can
   * add widgets to each column; the widgets appear in the order that they are
   * specified. For an example in Google Chat apps, see
   * [Display cards and dialogs in
   * columns](https://developers.google.com/workspace/chat/format-structure-card-dialog#display_cards_and_dialogs_in_columns).
   *
   * The height of each column is determined by the taller column. For example, if
   * the first column is taller than the second column, both columns have the
   * height of the first column. Because each column can contain a different
   * number of widgets, you can't define rows or align widgets between the
   * columns.
   *
   * Columns are displayed side-by-side. You can customize the width of each
   * column using the `HorizontalSizeStyle` field. If the user's
   * screen width is too narrow, the second column wraps below the first:
   *
   * * On web, the second column wraps if the screen width is less than or equal
   * to 480 pixels.
   * * On iOS devices, the second column wraps if the screen width is
   * less than or equal to 300 pt.
   * * On Android devices, the second column wraps if the screen width is
   * less than or equal to 320 dp.
   *
   * To include more than two columns, or to use rows, use the
   * [`Grid`][google.apps.card.v1.Grid] widget.
   *
   * [Google Workspace add-ons and Chat
   * apps](https://developers.google.com/workspace/extend):
   * The add-on UIs that support columns include:
   *
   * * The dialog displayed when users open the add-on from an email draft.
   * * The dialog displayed when users open the add-on from the
   * **Add attachment** menu in a Google Calendar event.
   * </pre>
   *
   * Protobuf type {@code google.apps.card.v1.Columns}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.apps.card.v1.Columns)
      com.google.apps.card.v1.ColumnsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.apps.card.v1.CardProto
          .internal_static_google_apps_card_v1_Columns_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.apps.card.v1.CardProto
          .internal_static_google_apps_card_v1_Columns_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.apps.card.v1.Columns.class, com.google.apps.card.v1.Columns.Builder.class);
    }

    // Construct using com.google.apps.card.v1.Columns.newBuilder()
    private Builder() {}

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

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

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.apps.card.v1.CardProto
          .internal_static_google_apps_card_v1_Columns_descriptor;
    }

    @java.lang.Override
    public com.google.apps.card.v1.Columns getDefaultInstanceForType() {
      return com.google.apps.card.v1.Columns.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.google.apps.card.v1.Columns buildPartial() {
      com.google.apps.card.v1.Columns result = new com.google.apps.card.v1.Columns(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(com.google.apps.card.v1.Columns result) {
      if (columnItemsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          columnItems_ = java.util.Collections.unmodifiableList(columnItems_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.columnItems_ = columnItems_;
      } else {
        result.columnItems_ = columnItemsBuilder_.build();
      }
    }

    private void buildPartial0(com.google.apps.card.v1.Columns result) {
      int from_bitField0_ = bitField0_;
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.apps.card.v1.Columns) {
        return mergeFrom((com.google.apps.card.v1.Columns) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.apps.card.v1.Columns other) {
      if (other == com.google.apps.card.v1.Columns.getDefaultInstance()) return this;
      if (columnItemsBuilder_ == null) {
        if (!other.columnItems_.isEmpty()) {
          if (columnItems_.isEmpty()) {
            columnItems_ = other.columnItems_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureColumnItemsIsMutable();
            columnItems_.addAll(other.columnItems_);
          }
          onChanged();
        }
      } else {
        if (!other.columnItems_.isEmpty()) {
          if (columnItemsBuilder_.isEmpty()) {
            columnItemsBuilder_.dispose();
            columnItemsBuilder_ = null;
            columnItems_ = other.columnItems_;
            bitField0_ = (bitField0_ & ~0x00000001);
            columnItemsBuilder_ =
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
                    ? internalGetColumnItemsFieldBuilder()
                    : null;
          } else {
            columnItemsBuilder_.addAllMessages(other.columnItems_);
          }
        }
      }
      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 18:
              {
                com.google.apps.card.v1.Columns.Column m =
                    input.readMessage(
                        com.google.apps.card.v1.Columns.Column.parser(), extensionRegistry);
                if (columnItemsBuilder_ == null) {
                  ensureColumnItemsIsMutable();
                  columnItems_.add(m);
                } else {
                  columnItemsBuilder_.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.util.List<com.google.apps.card.v1.Columns.Column> columnItems_ =
        java.util.Collections.emptyList();

    private void ensureColumnItemsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        columnItems_ =
            new java.util.ArrayList<com.google.apps.card.v1.Columns.Column>(columnItems_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilder<
            com.google.apps.card.v1.Columns.Column,
            com.google.apps.card.v1.Columns.Column.Builder,
            com.google.apps.card.v1.Columns.ColumnOrBuilder>
        columnItemsBuilder_;

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public java.util.List<com.google.apps.card.v1.Columns.Column> getColumnItemsList() {
      if (columnItemsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(columnItems_);
      } else {
        return columnItemsBuilder_.getMessageList();
      }
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public int getColumnItemsCount() {
      if (columnItemsBuilder_ == null) {
        return columnItems_.size();
      } else {
        return columnItemsBuilder_.getCount();
      }
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public com.google.apps.card.v1.Columns.Column getColumnItems(int index) {
      if (columnItemsBuilder_ == null) {
        return columnItems_.get(index);
      } else {
        return columnItemsBuilder_.getMessage(index);
      }
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public Builder setColumnItems(int index, com.google.apps.card.v1.Columns.Column value) {
      if (columnItemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureColumnItemsIsMutable();
        columnItems_.set(index, value);
        onChanged();
      } else {
        columnItemsBuilder_.setMessage(index, value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public Builder setColumnItems(
        int index, com.google.apps.card.v1.Columns.Column.Builder builderForValue) {
      if (columnItemsBuilder_ == null) {
        ensureColumnItemsIsMutable();
        columnItems_.set(index, builderForValue.build());
        onChanged();
      } else {
        columnItemsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public Builder addColumnItems(com.google.apps.card.v1.Columns.Column value) {
      if (columnItemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureColumnItemsIsMutable();
        columnItems_.add(value);
        onChanged();
      } else {
        columnItemsBuilder_.addMessage(value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public Builder addColumnItems(int index, com.google.apps.card.v1.Columns.Column value) {
      if (columnItemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureColumnItemsIsMutable();
        columnItems_.add(index, value);
        onChanged();
      } else {
        columnItemsBuilder_.addMessage(index, value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public Builder addColumnItems(com.google.apps.card.v1.Columns.Column.Builder builderForValue) {
      if (columnItemsBuilder_ == null) {
        ensureColumnItemsIsMutable();
        columnItems_.add(builderForValue.build());
        onChanged();
      } else {
        columnItemsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public Builder addColumnItems(
        int index, com.google.apps.card.v1.Columns.Column.Builder builderForValue) {
      if (columnItemsBuilder_ == null) {
        ensureColumnItemsIsMutable();
        columnItems_.add(index, builderForValue.build());
        onChanged();
      } else {
        columnItemsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public Builder addAllColumnItems(
        java.lang.Iterable<? extends com.google.apps.card.v1.Columns.Column> values) {
      if (columnItemsBuilder_ == null) {
        ensureColumnItemsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnItems_);
        onChanged();
      } else {
        columnItemsBuilder_.addAllMessages(values);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public Builder clearColumnItems() {
      if (columnItemsBuilder_ == null) {
        columnItems_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        columnItemsBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public Builder removeColumnItems(int index) {
      if (columnItemsBuilder_ == null) {
        ensureColumnItemsIsMutable();
        columnItems_.remove(index);
        onChanged();
      } else {
        columnItemsBuilder_.remove(index);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public com.google.apps.card.v1.Columns.Column.Builder getColumnItemsBuilder(int index) {
      return internalGetColumnItemsFieldBuilder().getBuilder(index);
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public com.google.apps.card.v1.Columns.ColumnOrBuilder getColumnItemsOrBuilder(int index) {
      if (columnItemsBuilder_ == null) {
        return columnItems_.get(index);
      } else {
        return columnItemsBuilder_.getMessageOrBuilder(index);
      }
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public java.util.List<? extends com.google.apps.card.v1.Columns.ColumnOrBuilder>
        getColumnItemsOrBuilderList() {
      if (columnItemsBuilder_ != null) {
        return columnItemsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(columnItems_);
      }
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public com.google.apps.card.v1.Columns.Column.Builder addColumnItemsBuilder() {
      return internalGetColumnItemsFieldBuilder()
          .addBuilder(com.google.apps.card.v1.Columns.Column.getDefaultInstance());
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public com.google.apps.card.v1.Columns.Column.Builder addColumnItemsBuilder(int index) {
      return internalGetColumnItemsFieldBuilder()
          .addBuilder(index, com.google.apps.card.v1.Columns.Column.getDefaultInstance());
    }

    /**
     *
     *
     * <pre>
     * An array of columns. You can include up to 2 columns in a card or dialog.
     * </pre>
     *
     * <code>repeated .google.apps.card.v1.Columns.Column column_items = 2;</code>
     */
    public java.util.List<com.google.apps.card.v1.Columns.Column.Builder>
        getColumnItemsBuilderList() {
      return internalGetColumnItemsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilder<
            com.google.apps.card.v1.Columns.Column,
            com.google.apps.card.v1.Columns.Column.Builder,
            com.google.apps.card.v1.Columns.ColumnOrBuilder>
        internalGetColumnItemsFieldBuilder() {
      if (columnItemsBuilder_ == null) {
        columnItemsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilder<
                com.google.apps.card.v1.Columns.Column,
                com.google.apps.card.v1.Columns.Column.Builder,
                com.google.apps.card.v1.Columns.ColumnOrBuilder>(
                columnItems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        columnItems_ = null;
      }
      return columnItemsBuilder_;
    }

    // @@protoc_insertion_point(builder_scope:google.apps.card.v1.Columns)
  }

  // @@protoc_insertion_point(class_scope:google.apps.card.v1.Columns)
  private static final com.google.apps.card.v1.Columns DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.apps.card.v1.Columns();
  }

  public static com.google.apps.card.v1.Columns getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

  @java.lang.Override
  public com.google.apps.card.v1.Columns getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
