/*
 * 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>
 * A widget that displays text with optional decorations such as a label above
 * or below the text, an icon in front of the text, a selection widget, or a
 * button after the text. For an example in
 * Google Chat apps, see [Display text with decorative
 * text](https://developers.google.com/workspace/chat/add-text-image-card-dialog#display_text_with_decorative_elements).
 *
 * [Google Workspace add-ons and Chat
 * apps](https://developers.google.com/workspace/extend):
 * </pre>
 *
 * Protobuf type {@code google.apps.card.v1.DecoratedText}
 */
@com.google.protobuf.Generated
public final class DecoratedText extends com.google.protobuf.GeneratedMessage
    implements
    // @@protoc_insertion_point(message_implements:google.apps.card.v1.DecoratedText)
    DecoratedTextOrBuilder {
  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= */ "",
        "DecoratedText");
  }

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

  private DecoratedText() {
    startIconVerticalAlignment_ = 0;
    topLabel_ = "";
    text_ = "";
    bottomLabel_ = "";
  }

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

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

  public interface SwitchControlOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.apps.card.v1.DecoratedText.SwitchControl)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The name by which the switch widget is identified in a form input event.
     *
     * For details about working with form inputs, see [Receive form
     * data](https://developers.google.com/workspace/chat/read-form-data).
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    java.lang.String getName();

    /**
     *
     *
     * <pre>
     * The name by which the switch widget is identified in a form input event.
     *
     * For details about working with form inputs, see [Receive form
     * data](https://developers.google.com/workspace/chat/read-form-data).
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString getNameBytes();

    /**
     *
     *
     * <pre>
     * The value entered by a user, returned as part of a form input event.
     *
     * For details about working with form inputs, see [Receive form
     * data](https://developers.google.com/workspace/chat/read-form-data).
     * </pre>
     *
     * <code>string value = 2;</code>
     *
     * @return The value.
     */
    java.lang.String getValue();

    /**
     *
     *
     * <pre>
     * The value entered by a user, returned as part of a form input event.
     *
     * For details about working with form inputs, see [Receive form
     * data](https://developers.google.com/workspace/chat/read-form-data).
     * </pre>
     *
     * <code>string value = 2;</code>
     *
     * @return The bytes for value.
     */
    com.google.protobuf.ByteString getValueBytes();

    /**
     *
     *
     * <pre>
     * When `true`, the switch is selected.
     * </pre>
     *
     * <code>bool selected = 3;</code>
     *
     * @return The selected.
     */
    boolean getSelected();

    /**
     *
     *
     * <pre>
     * The action to perform when the switch state is changed, such as what
     * function to run.
     * </pre>
     *
     * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
     *
     * @return Whether the onChangeAction field is set.
     */
    boolean hasOnChangeAction();

    /**
     *
     *
     * <pre>
     * The action to perform when the switch state is changed, such as what
     * function to run.
     * </pre>
     *
     * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
     *
     * @return The onChangeAction.
     */
    com.google.apps.card.v1.Action getOnChangeAction();

    /**
     *
     *
     * <pre>
     * The action to perform when the switch state is changed, such as what
     * function to run.
     * </pre>
     *
     * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
     */
    com.google.apps.card.v1.ActionOrBuilder getOnChangeActionOrBuilder();

    /**
     *
     *
     * <pre>
     * How the switch appears in the user interface.
     *
     * [Google Workspace add-ons
     * and Chat apps](https://developers.google.com/workspace/extend):
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;</code>
     *
     * @return The enum numeric value on the wire for controlType.
     */
    int getControlTypeValue();

    /**
     *
     *
     * <pre>
     * How the switch appears in the user interface.
     *
     * [Google Workspace add-ons
     * and Chat apps](https://developers.google.com/workspace/extend):
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;</code>
     *
     * @return The controlType.
     */
    com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType getControlType();
  }

  /**
   *
   *
   * <pre>
   * Either a toggle-style switch or a checkbox inside a `decoratedText` widget.
   *
   * [Google Workspace add-ons and Chat
   * apps](https://developers.google.com/workspace/extend):
   *
   * Only supported in the `decoratedText` widget.
   * </pre>
   *
   * Protobuf type {@code google.apps.card.v1.DecoratedText.SwitchControl}
   */
  public static final class SwitchControl extends com.google.protobuf.GeneratedMessage
      implements
      // @@protoc_insertion_point(message_implements:google.apps.card.v1.DecoratedText.SwitchControl)
      SwitchControlOrBuilder {
    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= */ "",
          "SwitchControl");
    }

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

    private SwitchControl() {
      name_ = "";
      value_ = "";
      controlType_ = 0;
    }

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

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

    /**
     *
     *
     * <pre>
     * How the switch appears in the user interface.
     *
     * [Google Workspace add-ons
     * and Chat apps](https://developers.google.com/workspace/extend):
     * </pre>
     *
     * Protobuf enum {@code google.apps.card.v1.DecoratedText.SwitchControl.ControlType}
     */
    public enum ControlType implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * A toggle-style switch.
       * </pre>
       *
       * <code>SWITCH = 0;</code>
       */
      SWITCH(0),
      /**
       *
       *
       * <pre>
       * Deprecated in favor of `CHECK_BOX`.
       * </pre>
       *
       * <code>CHECKBOX = 1;</code>
       */
      CHECKBOX(1),
      /**
       *
       *
       * <pre>
       * A checkbox.
       * </pre>
       *
       * <code>CHECK_BOX = 2;</code>
       */
      CHECK_BOX(2),
      UNRECOGNIZED(-1),
      ;

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

      /**
       *
       *
       * <pre>
       * A toggle-style switch.
       * </pre>
       *
       * <code>SWITCH = 0;</code>
       */
      public static final int SWITCH_VALUE = 0;

      /**
       *
       *
       * <pre>
       * Deprecated in favor of `CHECK_BOX`.
       * </pre>
       *
       * <code>CHECKBOX = 1;</code>
       */
      public static final int CHECKBOX_VALUE = 1;

      /**
       *
       *
       * <pre>
       * A checkbox.
       * </pre>
       *
       * <code>CHECK_BOX = 2;</code>
       */
      public static final int CHECK_BOX_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 ControlType 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 ControlType forNumber(int value) {
        switch (value) {
          case 0:
            return SWITCH;
          case 1:
            return CHECKBOX;
          case 2:
            return CHECK_BOX;
          default:
            return null;
        }
      }

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

      private static final com.google.protobuf.Internal.EnumLiteMap<ControlType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<ControlType>() {
            public ControlType findValueByNumber(int number) {
              return ControlType.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.DecoratedText.SwitchControl.getDescriptor()
            .getEnumTypes()
            .get(0);
      }

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

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

      // @@protoc_insertion_point(enum_scope:google.apps.card.v1.DecoratedText.SwitchControl.ControlType)
    }

    private int bitField0_;
    public static final int NAME_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object name_ = "";

    /**
     *
     *
     * <pre>
     * The name by which the switch widget is identified in a form input event.
     *
     * For details about working with form inputs, see [Receive form
     * data](https://developers.google.com/workspace/chat/read-form-data).
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      }
    }

    /**
     *
     *
     * <pre>
     * The name by which the switch widget is identified in a form input event.
     *
     * For details about working with form inputs, see [Receive form
     * data](https://developers.google.com/workspace/chat/read-form-data).
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int VALUE_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object value_ = "";

    /**
     *
     *
     * <pre>
     * The value entered by a user, returned as part of a form input event.
     *
     * For details about working with form inputs, see [Receive form
     * data](https://developers.google.com/workspace/chat/read-form-data).
     * </pre>
     *
     * <code>string value = 2;</code>
     *
     * @return The value.
     */
    @java.lang.Override
    public java.lang.String getValue() {
      java.lang.Object ref = value_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        value_ = s;
        return s;
      }
    }

    /**
     *
     *
     * <pre>
     * The value entered by a user, returned as part of a form input event.
     *
     * For details about working with form inputs, see [Receive form
     * data](https://developers.google.com/workspace/chat/read-form-data).
     * </pre>
     *
     * <code>string value = 2;</code>
     *
     * @return The bytes for value.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getValueBytes() {
      java.lang.Object ref = value_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        value_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int SELECTED_FIELD_NUMBER = 3;
    private boolean selected_ = false;

    /**
     *
     *
     * <pre>
     * When `true`, the switch is selected.
     * </pre>
     *
     * <code>bool selected = 3;</code>
     *
     * @return The selected.
     */
    @java.lang.Override
    public boolean getSelected() {
      return selected_;
    }

    public static final int ON_CHANGE_ACTION_FIELD_NUMBER = 4;
    private com.google.apps.card.v1.Action onChangeAction_;

    /**
     *
     *
     * <pre>
     * The action to perform when the switch state is changed, such as what
     * function to run.
     * </pre>
     *
     * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
     *
     * @return Whether the onChangeAction field is set.
     */
    @java.lang.Override
    public boolean hasOnChangeAction() {
      return ((bitField0_ & 0x00000001) != 0);
    }

    /**
     *
     *
     * <pre>
     * The action to perform when the switch state is changed, such as what
     * function to run.
     * </pre>
     *
     * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
     *
     * @return The onChangeAction.
     */
    @java.lang.Override
    public com.google.apps.card.v1.Action getOnChangeAction() {
      return onChangeAction_ == null
          ? com.google.apps.card.v1.Action.getDefaultInstance()
          : onChangeAction_;
    }

    /**
     *
     *
     * <pre>
     * The action to perform when the switch state is changed, such as what
     * function to run.
     * </pre>
     *
     * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
     */
    @java.lang.Override
    public com.google.apps.card.v1.ActionOrBuilder getOnChangeActionOrBuilder() {
      return onChangeAction_ == null
          ? com.google.apps.card.v1.Action.getDefaultInstance()
          : onChangeAction_;
    }

    public static final int CONTROL_TYPE_FIELD_NUMBER = 5;
    private int controlType_ = 0;

    /**
     *
     *
     * <pre>
     * How the switch appears in the user interface.
     *
     * [Google Workspace add-ons
     * and Chat apps](https://developers.google.com/workspace/extend):
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;</code>
     *
     * @return The enum numeric value on the wire for controlType.
     */
    @java.lang.Override
    public int getControlTypeValue() {
      return controlType_;
    }

    /**
     *
     *
     * <pre>
     * How the switch appears in the user interface.
     *
     * [Google Workspace add-ons
     * and Chat apps](https://developers.google.com/workspace/extend):
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;</code>
     *
     * @return The controlType.
     */
    @java.lang.Override
    public com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType getControlType() {
      com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType result =
          com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType.forNumber(controlType_);
      return result == null
          ? com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType.UNRECOGNIZED
          : result;
    }

    private byte memoizedIsInitialized = -1;

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
        com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
      }
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
        com.google.protobuf.GeneratedMessage.writeString(output, 2, value_);
      }
      if (selected_ != false) {
        output.writeBool(3, selected_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(4, getOnChangeAction());
      }
      if (controlType_
          != com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType.SWITCH.getNumber()) {
        output.writeEnum(5, controlType_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
      }
      if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_);
      }
      if (selected_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, selected_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOnChangeAction());
      }
      if (controlType_
          != com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType.SWITCH.getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, controlType_);
      }
      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.DecoratedText.SwitchControl)) {
        return super.equals(obj);
      }
      com.google.apps.card.v1.DecoratedText.SwitchControl other =
          (com.google.apps.card.v1.DecoratedText.SwitchControl) obj;

      if (!getName().equals(other.getName())) return false;
      if (!getValue().equals(other.getValue())) return false;
      if (getSelected() != other.getSelected()) return false;
      if (hasOnChangeAction() != other.hasOnChangeAction()) return false;
      if (hasOnChangeAction()) {
        if (!getOnChangeAction().equals(other.getOnChangeAction())) return false;
      }
      if (controlType_ != other.controlType_) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getValue().hashCode();
      hash = (37 * hash) + SELECTED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSelected());
      if (hasOnChangeAction()) {
        hash = (37 * hash) + ON_CHANGE_ACTION_FIELD_NUMBER;
        hash = (53 * hash) + getOnChangeAction().hashCode();
      }
      hash = (37 * hash) + CONTROL_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + controlType_;
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

    public static com.google.apps.card.v1.DecoratedText.SwitchControl 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.DecoratedText.SwitchControl parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
    }

    public static com.google.apps.card.v1.DecoratedText.SwitchControl 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.DecoratedText.SwitchControl parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.apps.card.v1.DecoratedText.SwitchControl 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.DecoratedText.SwitchControl 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.DecoratedText.SwitchControl 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.DecoratedText.SwitchControl 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>
     * Either a toggle-style switch or a checkbox inside a `decoratedText` widget.
     *
     * [Google Workspace add-ons and Chat
     * apps](https://developers.google.com/workspace/extend):
     *
     * Only supported in the `decoratedText` widget.
     * </pre>
     *
     * Protobuf type {@code google.apps.card.v1.DecoratedText.SwitchControl}
     */
    public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.apps.card.v1.DecoratedText.SwitchControl)
        com.google.apps.card.v1.DecoratedText.SwitchControlOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.apps.card.v1.CardProto
            .internal_static_google_apps_card_v1_DecoratedText_SwitchControl_descriptor;
      }

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

      // Construct using com.google.apps.card.v1.DecoratedText.SwitchControl.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          internalGetOnChangeActionFieldBuilder();
        }
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        name_ = "";
        value_ = "";
        selected_ = false;
        onChangeAction_ = null;
        if (onChangeActionBuilder_ != null) {
          onChangeActionBuilder_.dispose();
          onChangeActionBuilder_ = null;
        }
        controlType_ = 0;
        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_DecoratedText_SwitchControl_descriptor;
      }

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

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

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

      private void buildPartial0(com.google.apps.card.v1.DecoratedText.SwitchControl result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.name_ = name_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.value_ = value_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.selected_ = selected_;
        }
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.onChangeAction_ =
              onChangeActionBuilder_ == null ? onChangeAction_ : onChangeActionBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.controlType_ = controlType_;
        }
        result.bitField0_ |= to_bitField0_;
      }

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

      public Builder mergeFrom(com.google.apps.card.v1.DecoratedText.SwitchControl other) {
        if (other == com.google.apps.card.v1.DecoratedText.SwitchControl.getDefaultInstance())
          return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getValue().isEmpty()) {
          value_ = other.value_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        if (other.getSelected() != false) {
          setSelected(other.getSelected());
        }
        if (other.hasOnChangeAction()) {
          mergeOnChangeAction(other.getOnChangeAction());
        }
        if (other.controlType_ != 0) {
          setControlTypeValue(other.getControlTypeValue());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

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

      private int bitField0_;

      private java.lang.Object name_ = "";

      /**
       *
       *
       * <pre>
       * The name by which the switch widget is identified in a form input event.
       *
       * For details about working with form inputs, see [Receive form
       * data](https://developers.google.com/workspace/chat/read-form-data).
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }

      /**
       *
       *
       * <pre>
       * The name by which the switch widget is identified in a form input event.
       *
       * For details about working with form inputs, see [Receive form
       * data](https://developers.google.com/workspace/chat/read-form-data).
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      /**
       *
       *
       * <pre>
       * The name by which the switch widget is identified in a form input event.
       *
       * For details about working with form inputs, see [Receive form
       * data](https://developers.google.com/workspace/chat/read-form-data).
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The name by which the switch widget is identified in a form input event.
       *
       * For details about working with form inputs, see [Receive form
       * data](https://developers.google.com/workspace/chat/read-form-data).
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearName() {
        name_ = getDefaultInstance().getName();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The name by which the switch widget is identified in a form input event.
       *
       * For details about working with form inputs, see [Receive form
       * data](https://developers.google.com/workspace/chat/read-form-data).
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object value_ = "";

      /**
       *
       *
       * <pre>
       * The value entered by a user, returned as part of a form input event.
       *
       * For details about working with form inputs, see [Receive form
       * data](https://developers.google.com/workspace/chat/read-form-data).
       * </pre>
       *
       * <code>string value = 2;</code>
       *
       * @return The value.
       */
      public java.lang.String getValue() {
        java.lang.Object ref = value_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          value_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }

      /**
       *
       *
       * <pre>
       * The value entered by a user, returned as part of a form input event.
       *
       * For details about working with form inputs, see [Receive form
       * data](https://developers.google.com/workspace/chat/read-form-data).
       * </pre>
       *
       * <code>string value = 2;</code>
       *
       * @return The bytes for value.
       */
      public com.google.protobuf.ByteString getValueBytes() {
        java.lang.Object ref = value_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          value_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      /**
       *
       *
       * <pre>
       * The value entered by a user, returned as part of a form input event.
       *
       * For details about working with form inputs, see [Receive form
       * data](https://developers.google.com/workspace/chat/read-form-data).
       * </pre>
       *
       * <code>string value = 2;</code>
       *
       * @param value The value to set.
       * @return This builder for chaining.
       */
      public Builder setValue(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        value_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The value entered by a user, returned as part of a form input event.
       *
       * For details about working with form inputs, see [Receive form
       * data](https://developers.google.com/workspace/chat/read-form-data).
       * </pre>
       *
       * <code>string value = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearValue() {
        value_ = getDefaultInstance().getValue();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The value entered by a user, returned as part of a form input event.
       *
       * For details about working with form inputs, see [Receive form
       * data](https://developers.google.com/workspace/chat/read-form-data).
       * </pre>
       *
       * <code>string value = 2;</code>
       *
       * @param value The bytes for value to set.
       * @return This builder for chaining.
       */
      public Builder setValueBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        value_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      private boolean selected_;

      /**
       *
       *
       * <pre>
       * When `true`, the switch is selected.
       * </pre>
       *
       * <code>bool selected = 3;</code>
       *
       * @return The selected.
       */
      @java.lang.Override
      public boolean getSelected() {
        return selected_;
      }

      /**
       *
       *
       * <pre>
       * When `true`, the switch is selected.
       * </pre>
       *
       * <code>bool selected = 3;</code>
       *
       * @param value The selected to set.
       * @return This builder for chaining.
       */
      public Builder setSelected(boolean value) {

        selected_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * When `true`, the switch is selected.
       * </pre>
       *
       * <code>bool selected = 3;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearSelected() {
        bitField0_ = (bitField0_ & ~0x00000004);
        selected_ = false;
        onChanged();
        return this;
      }

      private com.google.apps.card.v1.Action onChangeAction_;
      private com.google.protobuf.SingleFieldBuilder<
              com.google.apps.card.v1.Action,
              com.google.apps.card.v1.Action.Builder,
              com.google.apps.card.v1.ActionOrBuilder>
          onChangeActionBuilder_;

      /**
       *
       *
       * <pre>
       * The action to perform when the switch state is changed, such as what
       * function to run.
       * </pre>
       *
       * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
       *
       * @return Whether the onChangeAction field is set.
       */
      public boolean hasOnChangeAction() {
        return ((bitField0_ & 0x00000008) != 0);
      }

      /**
       *
       *
       * <pre>
       * The action to perform when the switch state is changed, such as what
       * function to run.
       * </pre>
       *
       * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
       *
       * @return The onChangeAction.
       */
      public com.google.apps.card.v1.Action getOnChangeAction() {
        if (onChangeActionBuilder_ == null) {
          return onChangeAction_ == null
              ? com.google.apps.card.v1.Action.getDefaultInstance()
              : onChangeAction_;
        } else {
          return onChangeActionBuilder_.getMessage();
        }
      }

      /**
       *
       *
       * <pre>
       * The action to perform when the switch state is changed, such as what
       * function to run.
       * </pre>
       *
       * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
       */
      public Builder setOnChangeAction(com.google.apps.card.v1.Action value) {
        if (onChangeActionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          onChangeAction_ = value;
        } else {
          onChangeActionBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The action to perform when the switch state is changed, such as what
       * function to run.
       * </pre>
       *
       * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
       */
      public Builder setOnChangeAction(com.google.apps.card.v1.Action.Builder builderForValue) {
        if (onChangeActionBuilder_ == null) {
          onChangeAction_ = builderForValue.build();
        } else {
          onChangeActionBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The action to perform when the switch state is changed, such as what
       * function to run.
       * </pre>
       *
       * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
       */
      public Builder mergeOnChangeAction(com.google.apps.card.v1.Action value) {
        if (onChangeActionBuilder_ == null) {
          if (((bitField0_ & 0x00000008) != 0)
              && onChangeAction_ != null
              && onChangeAction_ != com.google.apps.card.v1.Action.getDefaultInstance()) {
            getOnChangeActionBuilder().mergeFrom(value);
          } else {
            onChangeAction_ = value;
          }
        } else {
          onChangeActionBuilder_.mergeFrom(value);
        }
        if (onChangeAction_ != null) {
          bitField0_ |= 0x00000008;
          onChanged();
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * The action to perform when the switch state is changed, such as what
       * function to run.
       * </pre>
       *
       * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
       */
      public Builder clearOnChangeAction() {
        bitField0_ = (bitField0_ & ~0x00000008);
        onChangeAction_ = null;
        if (onChangeActionBuilder_ != null) {
          onChangeActionBuilder_.dispose();
          onChangeActionBuilder_ = null;
        }
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The action to perform when the switch state is changed, such as what
       * function to run.
       * </pre>
       *
       * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
       */
      public com.google.apps.card.v1.Action.Builder getOnChangeActionBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return internalGetOnChangeActionFieldBuilder().getBuilder();
      }

      /**
       *
       *
       * <pre>
       * The action to perform when the switch state is changed, such as what
       * function to run.
       * </pre>
       *
       * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
       */
      public com.google.apps.card.v1.ActionOrBuilder getOnChangeActionOrBuilder() {
        if (onChangeActionBuilder_ != null) {
          return onChangeActionBuilder_.getMessageOrBuilder();
        } else {
          return onChangeAction_ == null
              ? com.google.apps.card.v1.Action.getDefaultInstance()
              : onChangeAction_;
        }
      }

      /**
       *
       *
       * <pre>
       * The action to perform when the switch state is changed, such as what
       * function to run.
       * </pre>
       *
       * <code>.google.apps.card.v1.Action on_change_action = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
              com.google.apps.card.v1.Action,
              com.google.apps.card.v1.Action.Builder,
              com.google.apps.card.v1.ActionOrBuilder>
          internalGetOnChangeActionFieldBuilder() {
        if (onChangeActionBuilder_ == null) {
          onChangeActionBuilder_ =
              new com.google.protobuf.SingleFieldBuilder<
                  com.google.apps.card.v1.Action,
                  com.google.apps.card.v1.Action.Builder,
                  com.google.apps.card.v1.ActionOrBuilder>(
                  getOnChangeAction(), getParentForChildren(), isClean());
          onChangeAction_ = null;
        }
        return onChangeActionBuilder_;
      }

      private int controlType_ = 0;

      /**
       *
       *
       * <pre>
       * How the switch appears in the user interface.
       *
       * [Google Workspace add-ons
       * and Chat apps](https://developers.google.com/workspace/extend):
       * </pre>
       *
       * <code>.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;</code>
       *
       * @return The enum numeric value on the wire for controlType.
       */
      @java.lang.Override
      public int getControlTypeValue() {
        return controlType_;
      }

      /**
       *
       *
       * <pre>
       * How the switch appears in the user interface.
       *
       * [Google Workspace add-ons
       * and Chat apps](https://developers.google.com/workspace/extend):
       * </pre>
       *
       * <code>.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;</code>
       *
       * @param value The enum numeric value on the wire for controlType to set.
       * @return This builder for chaining.
       */
      public Builder setControlTypeValue(int value) {
        controlType_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * How the switch appears in the user interface.
       *
       * [Google Workspace add-ons
       * and Chat apps](https://developers.google.com/workspace/extend):
       * </pre>
       *
       * <code>.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;</code>
       *
       * @return The controlType.
       */
      @java.lang.Override
      public com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType getControlType() {
        com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType result =
            com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType.forNumber(controlType_);
        return result == null
            ? com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType.UNRECOGNIZED
            : result;
      }

      /**
       *
       *
       * <pre>
       * How the switch appears in the user interface.
       *
       * [Google Workspace add-ons
       * and Chat apps](https://developers.google.com/workspace/extend):
       * </pre>
       *
       * <code>.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;</code>
       *
       * @param value The controlType to set.
       * @return This builder for chaining.
       */
      public Builder setControlType(
          com.google.apps.card.v1.DecoratedText.SwitchControl.ControlType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000010;
        controlType_ = value.getNumber();
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * How the switch appears in the user interface.
       *
       * [Google Workspace add-ons
       * and Chat apps](https://developers.google.com/workspace/extend):
       * </pre>
       *
       * <code>.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearControlType() {
        bitField0_ = (bitField0_ & ~0x00000010);
        controlType_ = 0;
        onChanged();
        return this;
      }

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

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

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

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

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

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

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

  private int bitField0_;
  private int controlCase_ = 0;

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

  public enum ControlCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    BUTTON(8),
    SWITCH_CONTROL(9),
    END_ICON(11),
    CONTROL_NOT_SET(0);
    private final int value;

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

    public static ControlCase forNumber(int value) {
      switch (value) {
        case 8:
          return BUTTON;
        case 9:
          return SWITCH_CONTROL;
        case 11:
          return END_ICON;
        case 0:
          return CONTROL_NOT_SET;
        default:
          return null;
      }
    }

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

  public ControlCase getControlCase() {
    return ControlCase.forNumber(controlCase_);
  }

  public static final int ICON_FIELD_NUMBER = 1;
  private com.google.apps.card.v1.Icon icon_;

  /**
   *
   *
   * <pre>
   * Deprecated in favor of `startIcon`.
   * </pre>
   *
   * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
   *
   * @deprecated google.apps.card.v1.DecoratedText.icon is deprecated. See
   *     google/apps/card/v1/card.proto;l=915
   * @return Whether the icon field is set.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public boolean hasIcon() {
    return ((bitField0_ & 0x00000001) != 0);
  }

  /**
   *
   *
   * <pre>
   * Deprecated in favor of `startIcon`.
   * </pre>
   *
   * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
   *
   * @deprecated google.apps.card.v1.DecoratedText.icon is deprecated. See
   *     google/apps/card/v1/card.proto;l=915
   * @return The icon.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public com.google.apps.card.v1.Icon getIcon() {
    return icon_ == null ? com.google.apps.card.v1.Icon.getDefaultInstance() : icon_;
  }

  /**
   *
   *
   * <pre>
   * Deprecated in favor of `startIcon`.
   * </pre>
   *
   * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
   */
  @java.lang.Override
  @java.lang.Deprecated
  public com.google.apps.card.v1.IconOrBuilder getIconOrBuilder() {
    return icon_ == null ? com.google.apps.card.v1.Icon.getDefaultInstance() : icon_;
  }

  public static final int START_ICON_FIELD_NUMBER = 12;
  private com.google.apps.card.v1.Icon startIcon_;

  /**
   *
   *
   * <pre>
   * The icon displayed in front of the text.
   * </pre>
   *
   * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
   *
   * @return Whether the startIcon field is set.
   */
  @java.lang.Override
  public boolean hasStartIcon() {
    return ((bitField0_ & 0x00000002) != 0);
  }

  /**
   *
   *
   * <pre>
   * The icon displayed in front of the text.
   * </pre>
   *
   * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
   *
   * @return The startIcon.
   */
  @java.lang.Override
  public com.google.apps.card.v1.Icon getStartIcon() {
    return startIcon_ == null ? com.google.apps.card.v1.Icon.getDefaultInstance() : startIcon_;
  }

  /**
   *
   *
   * <pre>
   * The icon displayed in front of the text.
   * </pre>
   *
   * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
   */
  @java.lang.Override
  public com.google.apps.card.v1.IconOrBuilder getStartIconOrBuilder() {
    return startIcon_ == null ? com.google.apps.card.v1.Icon.getDefaultInstance() : startIcon_;
  }

  public static final int START_ICON_VERTICAL_ALIGNMENT_FIELD_NUMBER = 13;
  private int startIconVerticalAlignment_ = 0;

  /**
   *
   *
   * <pre>
   * Optional. Vertical alignment of the start icon. If not set, the icon
   * will be vertically centered.
   *
   * [Google Chat apps](https://developers.google.com/workspace/chat):
   * </pre>
   *
   * <code>.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;</code>
   *
   * @return The enum numeric value on the wire for startIconVerticalAlignment.
   */
  @java.lang.Override
  public int getStartIconVerticalAlignmentValue() {
    return startIconVerticalAlignment_;
  }

  /**
   *
   *
   * <pre>
   * Optional. Vertical alignment of the start icon. If not set, the icon
   * will be vertically centered.
   *
   * [Google Chat apps](https://developers.google.com/workspace/chat):
   * </pre>
   *
   * <code>.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;</code>
   *
   * @return The startIconVerticalAlignment.
   */
  @java.lang.Override
  public com.google.apps.card.v1.Widget.VerticalAlignment getStartIconVerticalAlignment() {
    com.google.apps.card.v1.Widget.VerticalAlignment result =
        com.google.apps.card.v1.Widget.VerticalAlignment.forNumber(startIconVerticalAlignment_);
    return result == null ? com.google.apps.card.v1.Widget.VerticalAlignment.UNRECOGNIZED : result;
  }

  public static final int TOP_LABEL_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object topLabel_ = "";

  /**
   *
   *
   * <pre>
   * The text that appears above `text`. Always truncates.
   * </pre>
   *
   * <code>string top_label = 3;</code>
   *
   * @return The topLabel.
   */
  @java.lang.Override
  public java.lang.String getTopLabel() {
    java.lang.Object ref = topLabel_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      topLabel_ = s;
      return s;
    }
  }

  /**
   *
   *
   * <pre>
   * The text that appears above `text`. Always truncates.
   * </pre>
   *
   * <code>string top_label = 3;</code>
   *
   * @return The bytes for topLabel.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getTopLabelBytes() {
    java.lang.Object ref = topLabel_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      topLabel_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOP_LABEL_TEXT_FIELD_NUMBER = 17;
  private com.google.apps.card.v1.TextParagraph topLabelText_;

  /**
   *
   *
   * <pre>
   * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
   * more complex formatting than `top_label`.
   *
   * [Google Chat apps](https://developers.google.com/workspace/chat):
   * </pre>
   *
   * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</code>
   *
   * @return Whether the topLabelText field is set.
   */
  @java.lang.Override
  public boolean hasTopLabelText() {
    return ((bitField0_ & 0x00000004) != 0);
  }

  /**
   *
   *
   * <pre>
   * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
   * more complex formatting than `top_label`.
   *
   * [Google Chat apps](https://developers.google.com/workspace/chat):
   * </pre>
   *
   * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</code>
   *
   * @return The topLabelText.
   */
  @java.lang.Override
  public com.google.apps.card.v1.TextParagraph getTopLabelText() {
    return topLabelText_ == null
        ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
        : topLabelText_;
  }

  /**
   *
   *
   * <pre>
   * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
   * more complex formatting than `top_label`.
   *
   * [Google Chat apps](https://developers.google.com/workspace/chat):
   * </pre>
   *
   * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</code>
   */
  @java.lang.Override
  public com.google.apps.card.v1.TextParagraphOrBuilder getTopLabelTextOrBuilder() {
    return topLabelText_ == null
        ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
        : topLabelText_;
  }

  public static final int TEXT_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private volatile java.lang.Object text_ = "";

  /**
   *
   *
   * <pre>
   * Required. The primary text.
   *
   * Supports simple formatting. For more information
   * about formatting text, see
   * [Formatting text in Google Chat
   * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
   * and
   * [Formatting
   * text in Google Workspace
   * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
   * </pre>
   *
   * <code>string text = 4;</code>
   *
   * @return The text.
   */
  @java.lang.Override
  public java.lang.String getText() {
    java.lang.Object ref = text_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      text_ = s;
      return s;
    }
  }

  /**
   *
   *
   * <pre>
   * Required. The primary text.
   *
   * Supports simple formatting. For more information
   * about formatting text, see
   * [Formatting text in Google Chat
   * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
   * and
   * [Formatting
   * text in Google Workspace
   * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
   * </pre>
   *
   * <code>string text = 4;</code>
   *
   * @return The bytes for text.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getTextBytes() {
    java.lang.Object ref = text_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      text_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CONTENT_TEXT_FIELD_NUMBER = 18;
  private com.google.apps.card.v1.TextParagraph contentText_;

  /**
   *
   *
   * <pre>
   * `TextParagraph` equivalent of `text`. Allows for more complex formatting
   * than `text`.
   *
   * [Google Chat apps](https://developers.google.com/workspace/chat):
   * </pre>
   *
   * <code>.google.apps.card.v1.TextParagraph content_text = 18;</code>
   *
   * @return Whether the contentText field is set.
   */
  @java.lang.Override
  public boolean hasContentText() {
    return ((bitField0_ & 0x00000008) != 0);
  }

  /**
   *
   *
   * <pre>
   * `TextParagraph` equivalent of `text`. Allows for more complex formatting
   * than `text`.
   *
   * [Google Chat apps](https://developers.google.com/workspace/chat):
   * </pre>
   *
   * <code>.google.apps.card.v1.TextParagraph content_text = 18;</code>
   *
   * @return The contentText.
   */
  @java.lang.Override
  public com.google.apps.card.v1.TextParagraph getContentText() {
    return contentText_ == null
        ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
        : contentText_;
  }

  /**
   *
   *
   * <pre>
   * `TextParagraph` equivalent of `text`. Allows for more complex formatting
   * than `text`.
   *
   * [Google Chat apps](https://developers.google.com/workspace/chat):
   * </pre>
   *
   * <code>.google.apps.card.v1.TextParagraph content_text = 18;</code>
   */
  @java.lang.Override
  public com.google.apps.card.v1.TextParagraphOrBuilder getContentTextOrBuilder() {
    return contentText_ == null
        ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
        : contentText_;
  }

  public static final int WRAP_TEXT_FIELD_NUMBER = 5;
  private boolean wrapText_ = false;

  /**
   *
   *
   * <pre>
   * The wrap text setting. If `true`, the text wraps and displays on
   * multiple lines. Otherwise, the text is truncated.
   *
   * Only applies to `text`, not `topLabel` and `bottomLabel`.
   * </pre>
   *
   * <code>bool wrap_text = 5;</code>
   *
   * @return The wrapText.
   */
  @java.lang.Override
  public boolean getWrapText() {
    return wrapText_;
  }

  public static final int BOTTOM_LABEL_FIELD_NUMBER = 6;

  @SuppressWarnings("serial")
  private volatile java.lang.Object bottomLabel_ = "";

  /**
   *
   *
   * <pre>
   * The text that appears below `text`. Always wraps.
   * </pre>
   *
   * <code>string bottom_label = 6;</code>
   *
   * @return The bottomLabel.
   */
  @java.lang.Override
  public java.lang.String getBottomLabel() {
    java.lang.Object ref = bottomLabel_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      bottomLabel_ = s;
      return s;
    }
  }

  /**
   *
   *
   * <pre>
   * The text that appears below `text`. Always wraps.
   * </pre>
   *
   * <code>string bottom_label = 6;</code>
   *
   * @return The bytes for bottomLabel.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getBottomLabelBytes() {
    java.lang.Object ref = bottomLabel_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      bottomLabel_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BOTTOM_LABEL_TEXT_FIELD_NUMBER = 19;
  private com.google.apps.card.v1.TextParagraph bottomLabelText_;

  /**
   *
   *
   * <pre>
   * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
   * more complex formatting than `bottom_label`.
   *
   * [Google Chat apps](https://developers.google.com/workspace/chat):
   * </pre>
   *
   * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</code>
   *
   * @return Whether the bottomLabelText field is set.
   */
  @java.lang.Override
  public boolean hasBottomLabelText() {
    return ((bitField0_ & 0x00000010) != 0);
  }

  /**
   *
   *
   * <pre>
   * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
   * more complex formatting than `bottom_label`.
   *
   * [Google Chat apps](https://developers.google.com/workspace/chat):
   * </pre>
   *
   * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</code>
   *
   * @return The bottomLabelText.
   */
  @java.lang.Override
  public com.google.apps.card.v1.TextParagraph getBottomLabelText() {
    return bottomLabelText_ == null
        ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
        : bottomLabelText_;
  }

  /**
   *
   *
   * <pre>
   * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
   * more complex formatting than `bottom_label`.
   *
   * [Google Chat apps](https://developers.google.com/workspace/chat):
   * </pre>
   *
   * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</code>
   */
  @java.lang.Override
  public com.google.apps.card.v1.TextParagraphOrBuilder getBottomLabelTextOrBuilder() {
    return bottomLabelText_ == null
        ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
        : bottomLabelText_;
  }

  public static final int ON_CLICK_FIELD_NUMBER = 7;
  private com.google.apps.card.v1.OnClick onClick_;

  /**
   *
   *
   * <pre>
   * This action is triggered when users click `topLabel` or `bottomLabel`.
   * </pre>
   *
   * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
   *
   * @return Whether the onClick field is set.
   */
  @java.lang.Override
  public boolean hasOnClick() {
    return ((bitField0_ & 0x00000020) != 0);
  }

  /**
   *
   *
   * <pre>
   * This action is triggered when users click `topLabel` or `bottomLabel`.
   * </pre>
   *
   * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
   *
   * @return The onClick.
   */
  @java.lang.Override
  public com.google.apps.card.v1.OnClick getOnClick() {
    return onClick_ == null ? com.google.apps.card.v1.OnClick.getDefaultInstance() : onClick_;
  }

  /**
   *
   *
   * <pre>
   * This action is triggered when users click `topLabel` or `bottomLabel`.
   * </pre>
   *
   * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
   */
  @java.lang.Override
  public com.google.apps.card.v1.OnClickOrBuilder getOnClickOrBuilder() {
    return onClick_ == null ? com.google.apps.card.v1.OnClick.getDefaultInstance() : onClick_;
  }

  public static final int BUTTON_FIELD_NUMBER = 8;

  /**
   *
   *
   * <pre>
   * A button that a user can click to trigger an action.
   * </pre>
   *
   * <code>.google.apps.card.v1.Button button = 8;</code>
   *
   * @return Whether the button field is set.
   */
  @java.lang.Override
  public boolean hasButton() {
    return controlCase_ == 8;
  }

  /**
   *
   *
   * <pre>
   * A button that a user can click to trigger an action.
   * </pre>
   *
   * <code>.google.apps.card.v1.Button button = 8;</code>
   *
   * @return The button.
   */
  @java.lang.Override
  public com.google.apps.card.v1.Button getButton() {
    if (controlCase_ == 8) {
      return (com.google.apps.card.v1.Button) control_;
    }
    return com.google.apps.card.v1.Button.getDefaultInstance();
  }

  /**
   *
   *
   * <pre>
   * A button that a user can click to trigger an action.
   * </pre>
   *
   * <code>.google.apps.card.v1.Button button = 8;</code>
   */
  @java.lang.Override
  public com.google.apps.card.v1.ButtonOrBuilder getButtonOrBuilder() {
    if (controlCase_ == 8) {
      return (com.google.apps.card.v1.Button) control_;
    }
    return com.google.apps.card.v1.Button.getDefaultInstance();
  }

  public static final int SWITCH_CONTROL_FIELD_NUMBER = 9;

  /**
   *
   *
   * <pre>
   * A switch widget that a user can click to change its state and trigger an
   * action.
   * </pre>
   *
   * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
   *
   * @return Whether the switchControl field is set.
   */
  @java.lang.Override
  public boolean hasSwitchControl() {
    return controlCase_ == 9;
  }

  /**
   *
   *
   * <pre>
   * A switch widget that a user can click to change its state and trigger an
   * action.
   * </pre>
   *
   * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
   *
   * @return The switchControl.
   */
  @java.lang.Override
  public com.google.apps.card.v1.DecoratedText.SwitchControl getSwitchControl() {
    if (controlCase_ == 9) {
      return (com.google.apps.card.v1.DecoratedText.SwitchControl) control_;
    }
    return com.google.apps.card.v1.DecoratedText.SwitchControl.getDefaultInstance();
  }

  /**
   *
   *
   * <pre>
   * A switch widget that a user can click to change its state and trigger an
   * action.
   * </pre>
   *
   * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
   */
  @java.lang.Override
  public com.google.apps.card.v1.DecoratedText.SwitchControlOrBuilder getSwitchControlOrBuilder() {
    if (controlCase_ == 9) {
      return (com.google.apps.card.v1.DecoratedText.SwitchControl) control_;
    }
    return com.google.apps.card.v1.DecoratedText.SwitchControl.getDefaultInstance();
  }

  public static final int END_ICON_FIELD_NUMBER = 11;

  /**
   *
   *
   * <pre>
   * An icon displayed after the text.
   *
   * Supports
   * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
   * and
   * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
   * icons.
   * </pre>
   *
   * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
   *
   * @return Whether the endIcon field is set.
   */
  @java.lang.Override
  public boolean hasEndIcon() {
    return controlCase_ == 11;
  }

  /**
   *
   *
   * <pre>
   * An icon displayed after the text.
   *
   * Supports
   * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
   * and
   * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
   * icons.
   * </pre>
   *
   * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
   *
   * @return The endIcon.
   */
  @java.lang.Override
  public com.google.apps.card.v1.Icon getEndIcon() {
    if (controlCase_ == 11) {
      return (com.google.apps.card.v1.Icon) control_;
    }
    return com.google.apps.card.v1.Icon.getDefaultInstance();
  }

  /**
   *
   *
   * <pre>
   * An icon displayed after the text.
   *
   * Supports
   * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
   * and
   * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
   * icons.
   * </pre>
   *
   * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
   */
  @java.lang.Override
  public com.google.apps.card.v1.IconOrBuilder getEndIconOrBuilder() {
    if (controlCase_ == 11) {
      return (com.google.apps.card.v1.Icon) control_;
    }
    return com.google.apps.card.v1.Icon.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 (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getIcon());
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topLabel_)) {
      com.google.protobuf.GeneratedMessage.writeString(output, 3, topLabel_);
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) {
      com.google.protobuf.GeneratedMessage.writeString(output, 4, text_);
    }
    if (wrapText_ != false) {
      output.writeBool(5, wrapText_);
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bottomLabel_)) {
      com.google.protobuf.GeneratedMessage.writeString(output, 6, bottomLabel_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeMessage(7, getOnClick());
    }
    if (controlCase_ == 8) {
      output.writeMessage(8, (com.google.apps.card.v1.Button) control_);
    }
    if (controlCase_ == 9) {
      output.writeMessage(9, (com.google.apps.card.v1.DecoratedText.SwitchControl) control_);
    }
    if (controlCase_ == 11) {
      output.writeMessage(11, (com.google.apps.card.v1.Icon) control_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(12, getStartIcon());
    }
    if (startIconVerticalAlignment_
        != com.google.apps.card.v1.Widget.VerticalAlignment.VERTICAL_ALIGNMENT_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(13, startIconVerticalAlignment_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(17, getTopLabelText());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(18, getContentText());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(19, getBottomLabelText());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIcon());
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topLabel_)) {
      size += com.google.protobuf.GeneratedMessage.computeStringSize(3, topLabel_);
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) {
      size += com.google.protobuf.GeneratedMessage.computeStringSize(4, text_);
    }
    if (wrapText_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, wrapText_);
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bottomLabel_)) {
      size += com.google.protobuf.GeneratedMessage.computeStringSize(6, bottomLabel_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOnClick());
    }
    if (controlCase_ == 8) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              8, (com.google.apps.card.v1.Button) control_);
    }
    if (controlCase_ == 9) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              9, (com.google.apps.card.v1.DecoratedText.SwitchControl) control_);
    }
    if (controlCase_ == 11) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              11, (com.google.apps.card.v1.Icon) control_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getStartIcon());
    }
    if (startIconVerticalAlignment_
        != com.google.apps.card.v1.Widget.VerticalAlignment.VERTICAL_ALIGNMENT_UNSPECIFIED
            .getNumber()) {
      size +=
          com.google.protobuf.CodedOutputStream.computeEnumSize(13, startIconVerticalAlignment_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getTopLabelText());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getContentText());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getBottomLabelText());
    }
    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.DecoratedText)) {
      return super.equals(obj);
    }
    com.google.apps.card.v1.DecoratedText other = (com.google.apps.card.v1.DecoratedText) obj;

    if (hasIcon() != other.hasIcon()) return false;
    if (hasIcon()) {
      if (!getIcon().equals(other.getIcon())) return false;
    }
    if (hasStartIcon() != other.hasStartIcon()) return false;
    if (hasStartIcon()) {
      if (!getStartIcon().equals(other.getStartIcon())) return false;
    }
    if (startIconVerticalAlignment_ != other.startIconVerticalAlignment_) return false;
    if (!getTopLabel().equals(other.getTopLabel())) return false;
    if (hasTopLabelText() != other.hasTopLabelText()) return false;
    if (hasTopLabelText()) {
      if (!getTopLabelText().equals(other.getTopLabelText())) return false;
    }
    if (!getText().equals(other.getText())) return false;
    if (hasContentText() != other.hasContentText()) return false;
    if (hasContentText()) {
      if (!getContentText().equals(other.getContentText())) return false;
    }
    if (getWrapText() != other.getWrapText()) return false;
    if (!getBottomLabel().equals(other.getBottomLabel())) return false;
    if (hasBottomLabelText() != other.hasBottomLabelText()) return false;
    if (hasBottomLabelText()) {
      if (!getBottomLabelText().equals(other.getBottomLabelText())) return false;
    }
    if (hasOnClick() != other.hasOnClick()) return false;
    if (hasOnClick()) {
      if (!getOnClick().equals(other.getOnClick())) return false;
    }
    if (!getControlCase().equals(other.getControlCase())) return false;
    switch (controlCase_) {
      case 8:
        if (!getButton().equals(other.getButton())) return false;
        break;
      case 9:
        if (!getSwitchControl().equals(other.getSwitchControl())) return false;
        break;
      case 11:
        if (!getEndIcon().equals(other.getEndIcon())) 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();
    if (hasIcon()) {
      hash = (37 * hash) + ICON_FIELD_NUMBER;
      hash = (53 * hash) + getIcon().hashCode();
    }
    if (hasStartIcon()) {
      hash = (37 * hash) + START_ICON_FIELD_NUMBER;
      hash = (53 * hash) + getStartIcon().hashCode();
    }
    hash = (37 * hash) + START_ICON_VERTICAL_ALIGNMENT_FIELD_NUMBER;
    hash = (53 * hash) + startIconVerticalAlignment_;
    hash = (37 * hash) + TOP_LABEL_FIELD_NUMBER;
    hash = (53 * hash) + getTopLabel().hashCode();
    if (hasTopLabelText()) {
      hash = (37 * hash) + TOP_LABEL_TEXT_FIELD_NUMBER;
      hash = (53 * hash) + getTopLabelText().hashCode();
    }
    hash = (37 * hash) + TEXT_FIELD_NUMBER;
    hash = (53 * hash) + getText().hashCode();
    if (hasContentText()) {
      hash = (37 * hash) + CONTENT_TEXT_FIELD_NUMBER;
      hash = (53 * hash) + getContentText().hashCode();
    }
    hash = (37 * hash) + WRAP_TEXT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWrapText());
    hash = (37 * hash) + BOTTOM_LABEL_FIELD_NUMBER;
    hash = (53 * hash) + getBottomLabel().hashCode();
    if (hasBottomLabelText()) {
      hash = (37 * hash) + BOTTOM_LABEL_TEXT_FIELD_NUMBER;
      hash = (53 * hash) + getBottomLabelText().hashCode();
    }
    if (hasOnClick()) {
      hash = (37 * hash) + ON_CLICK_FIELD_NUMBER;
      hash = (53 * hash) + getOnClick().hashCode();
    }
    switch (controlCase_) {
      case 8:
        hash = (37 * hash) + BUTTON_FIELD_NUMBER;
        hash = (53 * hash) + getButton().hashCode();
        break;
      case 9:
        hash = (37 * hash) + SWITCH_CONTROL_FIELD_NUMBER;
        hash = (53 * hash) + getSwitchControl().hashCode();
        break;
      case 11:
        hash = (37 * hash) + END_ICON_FIELD_NUMBER;
        hash = (53 * hash) + getEndIcon().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

  public static com.google.apps.card.v1.DecoratedText 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.DecoratedText parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
  }

  public static com.google.apps.card.v1.DecoratedText 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.DecoratedText parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.apps.card.v1.DecoratedText 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.DecoratedText 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.DecoratedText 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.DecoratedText 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 widget that displays text with optional decorations such as a label above
   * or below the text, an icon in front of the text, a selection widget, or a
   * button after the text. For an example in
   * Google Chat apps, see [Display text with decorative
   * text](https://developers.google.com/workspace/chat/add-text-image-card-dialog#display_text_with_decorative_elements).
   *
   * [Google Workspace add-ons and Chat
   * apps](https://developers.google.com/workspace/extend):
   * </pre>
   *
   * Protobuf type {@code google.apps.card.v1.DecoratedText}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.apps.card.v1.DecoratedText)
      com.google.apps.card.v1.DecoratedTextOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.apps.card.v1.CardProto
          .internal_static_google_apps_card_v1_DecoratedText_descriptor;
    }

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

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

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

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        internalGetIconFieldBuilder();
        internalGetStartIconFieldBuilder();
        internalGetTopLabelTextFieldBuilder();
        internalGetContentTextFieldBuilder();
        internalGetBottomLabelTextFieldBuilder();
        internalGetOnClickFieldBuilder();
      }
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      icon_ = null;
      if (iconBuilder_ != null) {
        iconBuilder_.dispose();
        iconBuilder_ = null;
      }
      startIcon_ = null;
      if (startIconBuilder_ != null) {
        startIconBuilder_.dispose();
        startIconBuilder_ = null;
      }
      startIconVerticalAlignment_ = 0;
      topLabel_ = "";
      topLabelText_ = null;
      if (topLabelTextBuilder_ != null) {
        topLabelTextBuilder_.dispose();
        topLabelTextBuilder_ = null;
      }
      text_ = "";
      contentText_ = null;
      if (contentTextBuilder_ != null) {
        contentTextBuilder_.dispose();
        contentTextBuilder_ = null;
      }
      wrapText_ = false;
      bottomLabel_ = "";
      bottomLabelText_ = null;
      if (bottomLabelTextBuilder_ != null) {
        bottomLabelTextBuilder_.dispose();
        bottomLabelTextBuilder_ = null;
      }
      onClick_ = null;
      if (onClickBuilder_ != null) {
        onClickBuilder_.dispose();
        onClickBuilder_ = null;
      }
      if (buttonBuilder_ != null) {
        buttonBuilder_.clear();
      }
      if (switchControlBuilder_ != null) {
        switchControlBuilder_.clear();
      }
      if (endIconBuilder_ != null) {
        endIconBuilder_.clear();
      }
      controlCase_ = 0;
      control_ = 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_DecoratedText_descriptor;
    }

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

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

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

    private void buildPartial0(com.google.apps.card.v1.DecoratedText result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.icon_ = iconBuilder_ == null ? icon_ : iconBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.startIcon_ = startIconBuilder_ == null ? startIcon_ : startIconBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.startIconVerticalAlignment_ = startIconVerticalAlignment_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.topLabel_ = topLabel_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.topLabelText_ =
            topLabelTextBuilder_ == null ? topLabelText_ : topLabelTextBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.text_ = text_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.contentText_ =
            contentTextBuilder_ == null ? contentText_ : contentTextBuilder_.build();
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.wrapText_ = wrapText_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.bottomLabel_ = bottomLabel_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.bottomLabelText_ =
            bottomLabelTextBuilder_ == null ? bottomLabelText_ : bottomLabelTextBuilder_.build();
        to_bitField0_ |= 0x00000010;
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.onClick_ = onClickBuilder_ == null ? onClick_ : onClickBuilder_.build();
        to_bitField0_ |= 0x00000020;
      }
      result.bitField0_ |= to_bitField0_;
    }

    private void buildPartialOneofs(com.google.apps.card.v1.DecoratedText result) {
      result.controlCase_ = controlCase_;
      result.control_ = this.control_;
      if (controlCase_ == 8 && buttonBuilder_ != null) {
        result.control_ = buttonBuilder_.build();
      }
      if (controlCase_ == 9 && switchControlBuilder_ != null) {
        result.control_ = switchControlBuilder_.build();
      }
      if (controlCase_ == 11 && endIconBuilder_ != null) {
        result.control_ = endIconBuilder_.build();
      }
    }

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

    public Builder mergeFrom(com.google.apps.card.v1.DecoratedText other) {
      if (other == com.google.apps.card.v1.DecoratedText.getDefaultInstance()) return this;
      if (other.hasIcon()) {
        mergeIcon(other.getIcon());
      }
      if (other.hasStartIcon()) {
        mergeStartIcon(other.getStartIcon());
      }
      if (other.startIconVerticalAlignment_ != 0) {
        setStartIconVerticalAlignmentValue(other.getStartIconVerticalAlignmentValue());
      }
      if (!other.getTopLabel().isEmpty()) {
        topLabel_ = other.topLabel_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (other.hasTopLabelText()) {
        mergeTopLabelText(other.getTopLabelText());
      }
      if (!other.getText().isEmpty()) {
        text_ = other.text_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (other.hasContentText()) {
        mergeContentText(other.getContentText());
      }
      if (other.getWrapText() != false) {
        setWrapText(other.getWrapText());
      }
      if (!other.getBottomLabel().isEmpty()) {
        bottomLabel_ = other.bottomLabel_;
        bitField0_ |= 0x00000100;
        onChanged();
      }
      if (other.hasBottomLabelText()) {
        mergeBottomLabelText(other.getBottomLabelText());
      }
      if (other.hasOnClick()) {
        mergeOnClick(other.getOnClick());
      }
      switch (other.getControlCase()) {
        case BUTTON:
          {
            mergeButton(other.getButton());
            break;
          }
        case SWITCH_CONTROL:
          {
            mergeSwitchControl(other.getSwitchControl());
            break;
          }
        case END_ICON:
          {
            mergeEndIcon(other.getEndIcon());
            break;
          }
        case CONTROL_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(internalGetIconFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 26:
              {
                topLabel_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 26
            case 34:
              {
                text_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 34
            case 40:
              {
                wrapText_ = input.readBool();
                bitField0_ |= 0x00000080;
                break;
              } // case 40
            case 50:
              {
                bottomLabel_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000100;
                break;
              } // case 50
            case 58:
              {
                input.readMessage(internalGetOnClickFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000400;
                break;
              } // case 58
            case 66:
              {
                input.readMessage(internalGetButtonFieldBuilder().getBuilder(), extensionRegistry);
                controlCase_ = 8;
                break;
              } // case 66
            case 74:
              {
                input.readMessage(
                    internalGetSwitchControlFieldBuilder().getBuilder(), extensionRegistry);
                controlCase_ = 9;
                break;
              } // case 74
            case 90:
              {
                input.readMessage(internalGetEndIconFieldBuilder().getBuilder(), extensionRegistry);
                controlCase_ = 11;
                break;
              } // case 90
            case 98:
              {
                input.readMessage(
                    internalGetStartIconFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 98
            case 104:
              {
                startIconVerticalAlignment_ = input.readEnum();
                bitField0_ |= 0x00000004;
                break;
              } // case 104
            case 138:
              {
                input.readMessage(
                    internalGetTopLabelTextFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 138
            case 146:
              {
                input.readMessage(
                    internalGetContentTextFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 146
            case 154:
              {
                input.readMessage(
                    internalGetBottomLabelTextFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000200;
                break;
              } // case 154
            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 controlCase_ = 0;
    private java.lang.Object control_;

    public ControlCase getControlCase() {
      return ControlCase.forNumber(controlCase_);
    }

    public Builder clearControl() {
      controlCase_ = 0;
      control_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.apps.card.v1.Icon icon_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.Icon,
            com.google.apps.card.v1.Icon.Builder,
            com.google.apps.card.v1.IconOrBuilder>
        iconBuilder_;

    /**
     *
     *
     * <pre>
     * Deprecated in favor of `startIcon`.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
     *
     * @deprecated google.apps.card.v1.DecoratedText.icon is deprecated. See
     *     google/apps/card/v1/card.proto;l=915
     * @return Whether the icon field is set.
     */
    @java.lang.Deprecated
    public boolean hasIcon() {
      return ((bitField0_ & 0x00000001) != 0);
    }

    /**
     *
     *
     * <pre>
     * Deprecated in favor of `startIcon`.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
     *
     * @deprecated google.apps.card.v1.DecoratedText.icon is deprecated. See
     *     google/apps/card/v1/card.proto;l=915
     * @return The icon.
     */
    @java.lang.Deprecated
    public com.google.apps.card.v1.Icon getIcon() {
      if (iconBuilder_ == null) {
        return icon_ == null ? com.google.apps.card.v1.Icon.getDefaultInstance() : icon_;
      } else {
        return iconBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * Deprecated in favor of `startIcon`.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
     */
    @java.lang.Deprecated
    public Builder setIcon(com.google.apps.card.v1.Icon value) {
      if (iconBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        icon_ = value;
      } else {
        iconBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Deprecated in favor of `startIcon`.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
     */
    @java.lang.Deprecated
    public Builder setIcon(com.google.apps.card.v1.Icon.Builder builderForValue) {
      if (iconBuilder_ == null) {
        icon_ = builderForValue.build();
      } else {
        iconBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Deprecated in favor of `startIcon`.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
     */
    @java.lang.Deprecated
    public Builder mergeIcon(com.google.apps.card.v1.Icon value) {
      if (iconBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)
            && icon_ != null
            && icon_ != com.google.apps.card.v1.Icon.getDefaultInstance()) {
          getIconBuilder().mergeFrom(value);
        } else {
          icon_ = value;
        }
      } else {
        iconBuilder_.mergeFrom(value);
      }
      if (icon_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Deprecated in favor of `startIcon`.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
     */
    @java.lang.Deprecated
    public Builder clearIcon() {
      bitField0_ = (bitField0_ & ~0x00000001);
      icon_ = null;
      if (iconBuilder_ != null) {
        iconBuilder_.dispose();
        iconBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Deprecated in favor of `startIcon`.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
     */
    @java.lang.Deprecated
    public com.google.apps.card.v1.Icon.Builder getIconBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return internalGetIconFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * Deprecated in favor of `startIcon`.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
     */
    @java.lang.Deprecated
    public com.google.apps.card.v1.IconOrBuilder getIconOrBuilder() {
      if (iconBuilder_ != null) {
        return iconBuilder_.getMessageOrBuilder();
      } else {
        return icon_ == null ? com.google.apps.card.v1.Icon.getDefaultInstance() : icon_;
      }
    }

    /**
     *
     *
     * <pre>
     * Deprecated in favor of `startIcon`.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon icon = 1 [deprecated = true];</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.Icon,
            com.google.apps.card.v1.Icon.Builder,
            com.google.apps.card.v1.IconOrBuilder>
        internalGetIconFieldBuilder() {
      if (iconBuilder_ == null) {
        iconBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.Icon,
                com.google.apps.card.v1.Icon.Builder,
                com.google.apps.card.v1.IconOrBuilder>(
                getIcon(), getParentForChildren(), isClean());
        icon_ = null;
      }
      return iconBuilder_;
    }

    private com.google.apps.card.v1.Icon startIcon_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.Icon,
            com.google.apps.card.v1.Icon.Builder,
            com.google.apps.card.v1.IconOrBuilder>
        startIconBuilder_;

    /**
     *
     *
     * <pre>
     * The icon displayed in front of the text.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
     *
     * @return Whether the startIcon field is set.
     */
    public boolean hasStartIcon() {
      return ((bitField0_ & 0x00000002) != 0);
    }

    /**
     *
     *
     * <pre>
     * The icon displayed in front of the text.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
     *
     * @return The startIcon.
     */
    public com.google.apps.card.v1.Icon getStartIcon() {
      if (startIconBuilder_ == null) {
        return startIcon_ == null ? com.google.apps.card.v1.Icon.getDefaultInstance() : startIcon_;
      } else {
        return startIconBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * The icon displayed in front of the text.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
     */
    public Builder setStartIcon(com.google.apps.card.v1.Icon value) {
      if (startIconBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        startIcon_ = value;
      } else {
        startIconBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The icon displayed in front of the text.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
     */
    public Builder setStartIcon(com.google.apps.card.v1.Icon.Builder builderForValue) {
      if (startIconBuilder_ == null) {
        startIcon_ = builderForValue.build();
      } else {
        startIconBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The icon displayed in front of the text.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
     */
    public Builder mergeStartIcon(com.google.apps.card.v1.Icon value) {
      if (startIconBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && startIcon_ != null
            && startIcon_ != com.google.apps.card.v1.Icon.getDefaultInstance()) {
          getStartIconBuilder().mergeFrom(value);
        } else {
          startIcon_ = value;
        }
      } else {
        startIconBuilder_.mergeFrom(value);
      }
      if (startIcon_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The icon displayed in front of the text.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
     */
    public Builder clearStartIcon() {
      bitField0_ = (bitField0_ & ~0x00000002);
      startIcon_ = null;
      if (startIconBuilder_ != null) {
        startIconBuilder_.dispose();
        startIconBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The icon displayed in front of the text.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
     */
    public com.google.apps.card.v1.Icon.Builder getStartIconBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return internalGetStartIconFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * The icon displayed in front of the text.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
     */
    public com.google.apps.card.v1.IconOrBuilder getStartIconOrBuilder() {
      if (startIconBuilder_ != null) {
        return startIconBuilder_.getMessageOrBuilder();
      } else {
        return startIcon_ == null ? com.google.apps.card.v1.Icon.getDefaultInstance() : startIcon_;
      }
    }

    /**
     *
     *
     * <pre>
     * The icon displayed in front of the text.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon start_icon = 12;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.Icon,
            com.google.apps.card.v1.Icon.Builder,
            com.google.apps.card.v1.IconOrBuilder>
        internalGetStartIconFieldBuilder() {
      if (startIconBuilder_ == null) {
        startIconBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.Icon,
                com.google.apps.card.v1.Icon.Builder,
                com.google.apps.card.v1.IconOrBuilder>(
                getStartIcon(), getParentForChildren(), isClean());
        startIcon_ = null;
      }
      return startIconBuilder_;
    }

    private int startIconVerticalAlignment_ = 0;

    /**
     *
     *
     * <pre>
     * Optional. Vertical alignment of the start icon. If not set, the icon
     * will be vertically centered.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;
     * </code>
     *
     * @return The enum numeric value on the wire for startIconVerticalAlignment.
     */
    @java.lang.Override
    public int getStartIconVerticalAlignmentValue() {
      return startIconVerticalAlignment_;
    }

    /**
     *
     *
     * <pre>
     * Optional. Vertical alignment of the start icon. If not set, the icon
     * will be vertically centered.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;
     * </code>
     *
     * @param value The enum numeric value on the wire for startIconVerticalAlignment to set.
     * @return This builder for chaining.
     */
    public Builder setStartIconVerticalAlignmentValue(int value) {
      startIconVerticalAlignment_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Optional. Vertical alignment of the start icon. If not set, the icon
     * will be vertically centered.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;
     * </code>
     *
     * @return The startIconVerticalAlignment.
     */
    @java.lang.Override
    public com.google.apps.card.v1.Widget.VerticalAlignment getStartIconVerticalAlignment() {
      com.google.apps.card.v1.Widget.VerticalAlignment result =
          com.google.apps.card.v1.Widget.VerticalAlignment.forNumber(startIconVerticalAlignment_);
      return result == null
          ? com.google.apps.card.v1.Widget.VerticalAlignment.UNRECOGNIZED
          : result;
    }

    /**
     *
     *
     * <pre>
     * Optional. Vertical alignment of the start icon. If not set, the icon
     * will be vertically centered.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;
     * </code>
     *
     * @param value The startIconVerticalAlignment to set.
     * @return This builder for chaining.
     */
    public Builder setStartIconVerticalAlignment(
        com.google.apps.card.v1.Widget.VerticalAlignment value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000004;
      startIconVerticalAlignment_ = value.getNumber();
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Optional. Vertical alignment of the start icon. If not set, the icon
     * will be vertically centered.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13;
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearStartIconVerticalAlignment() {
      bitField0_ = (bitField0_ & ~0x00000004);
      startIconVerticalAlignment_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object topLabel_ = "";

    /**
     *
     *
     * <pre>
     * The text that appears above `text`. Always truncates.
     * </pre>
     *
     * <code>string top_label = 3;</code>
     *
     * @return The topLabel.
     */
    public java.lang.String getTopLabel() {
      java.lang.Object ref = topLabel_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        topLabel_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * The text that appears above `text`. Always truncates.
     * </pre>
     *
     * <code>string top_label = 3;</code>
     *
     * @return The bytes for topLabel.
     */
    public com.google.protobuf.ByteString getTopLabelBytes() {
      java.lang.Object ref = topLabel_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        topLabel_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * The text that appears above `text`. Always truncates.
     * </pre>
     *
     * <code>string top_label = 3;</code>
     *
     * @param value The topLabel to set.
     * @return This builder for chaining.
     */
    public Builder setTopLabel(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      topLabel_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The text that appears above `text`. Always truncates.
     * </pre>
     *
     * <code>string top_label = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearTopLabel() {
      topLabel_ = getDefaultInstance().getTopLabel();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The text that appears above `text`. Always truncates.
     * </pre>
     *
     * <code>string top_label = 3;</code>
     *
     * @param value The bytes for topLabel to set.
     * @return This builder for chaining.
     */
    public Builder setTopLabelBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      topLabel_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

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

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
     * more complex formatting than `top_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</code>
     *
     * @return Whether the topLabelText field is set.
     */
    public boolean hasTopLabelText() {
      return ((bitField0_ & 0x00000010) != 0);
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
     * more complex formatting than `top_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</code>
     *
     * @return The topLabelText.
     */
    public com.google.apps.card.v1.TextParagraph getTopLabelText() {
      if (topLabelTextBuilder_ == null) {
        return topLabelText_ == null
            ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
            : topLabelText_;
      } else {
        return topLabelTextBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
     * more complex formatting than `top_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</code>
     */
    public Builder setTopLabelText(com.google.apps.card.v1.TextParagraph value) {
      if (topLabelTextBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        topLabelText_ = value;
      } else {
        topLabelTextBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
     * more complex formatting than `top_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</code>
     */
    public Builder setTopLabelText(com.google.apps.card.v1.TextParagraph.Builder builderForValue) {
      if (topLabelTextBuilder_ == null) {
        topLabelText_ = builderForValue.build();
      } else {
        topLabelTextBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
     * more complex formatting than `top_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</code>
     */
    public Builder mergeTopLabelText(com.google.apps.card.v1.TextParagraph value) {
      if (topLabelTextBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)
            && topLabelText_ != null
            && topLabelText_ != com.google.apps.card.v1.TextParagraph.getDefaultInstance()) {
          getTopLabelTextBuilder().mergeFrom(value);
        } else {
          topLabelText_ = value;
        }
      } else {
        topLabelTextBuilder_.mergeFrom(value);
      }
      if (topLabelText_ != null) {
        bitField0_ |= 0x00000010;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
     * more complex formatting than `top_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</code>
     */
    public Builder clearTopLabelText() {
      bitField0_ = (bitField0_ & ~0x00000010);
      topLabelText_ = null;
      if (topLabelTextBuilder_ != null) {
        topLabelTextBuilder_.dispose();
        topLabelTextBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
     * more complex formatting than `top_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</code>
     */
    public com.google.apps.card.v1.TextParagraph.Builder getTopLabelTextBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return internalGetTopLabelTextFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
     * more complex formatting than `top_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</code>
     */
    public com.google.apps.card.v1.TextParagraphOrBuilder getTopLabelTextOrBuilder() {
      if (topLabelTextBuilder_ != null) {
        return topLabelTextBuilder_.getMessageOrBuilder();
      } else {
        return topLabelText_ == null
            ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
            : topLabelText_;
      }
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for
     * more complex formatting than `top_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph top_label_text = 17;</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>
        internalGetTopLabelTextFieldBuilder() {
      if (topLabelTextBuilder_ == null) {
        topLabelTextBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.TextParagraph,
                com.google.apps.card.v1.TextParagraph.Builder,
                com.google.apps.card.v1.TextParagraphOrBuilder>(
                getTopLabelText(), getParentForChildren(), isClean());
        topLabelText_ = null;
      }
      return topLabelTextBuilder_;
    }

    private java.lang.Object text_ = "";

    /**
     *
     *
     * <pre>
     * Required. The primary text.
     *
     * Supports simple formatting. For more information
     * about formatting text, see
     * [Formatting text in Google Chat
     * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
     * and
     * [Formatting
     * text in Google Workspace
     * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
     * </pre>
     *
     * <code>string text = 4;</code>
     *
     * @return The text.
     */
    public java.lang.String getText() {
      java.lang.Object ref = text_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        text_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * Required. The primary text.
     *
     * Supports simple formatting. For more information
     * about formatting text, see
     * [Formatting text in Google Chat
     * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
     * and
     * [Formatting
     * text in Google Workspace
     * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
     * </pre>
     *
     * <code>string text = 4;</code>
     *
     * @return The bytes for text.
     */
    public com.google.protobuf.ByteString getTextBytes() {
      java.lang.Object ref = text_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        text_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * Required. The primary text.
     *
     * Supports simple formatting. For more information
     * about formatting text, see
     * [Formatting text in Google Chat
     * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
     * and
     * [Formatting
     * text in Google Workspace
     * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
     * </pre>
     *
     * <code>string text = 4;</code>
     *
     * @param value The text to set.
     * @return This builder for chaining.
     */
    public Builder setText(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      text_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Required. The primary text.
     *
     * Supports simple formatting. For more information
     * about formatting text, see
     * [Formatting text in Google Chat
     * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
     * and
     * [Formatting
     * text in Google Workspace
     * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
     * </pre>
     *
     * <code>string text = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearText() {
      text_ = getDefaultInstance().getText();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Required. The primary text.
     *
     * Supports simple formatting. For more information
     * about formatting text, see
     * [Formatting text in Google Chat
     * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
     * and
     * [Formatting
     * text in Google Workspace
     * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
     * </pre>
     *
     * <code>string text = 4;</code>
     *
     * @param value The bytes for text to set.
     * @return This builder for chaining.
     */
    public Builder setTextBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      text_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

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

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `text`. Allows for more complex formatting
     * than `text`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph content_text = 18;</code>
     *
     * @return Whether the contentText field is set.
     */
    public boolean hasContentText() {
      return ((bitField0_ & 0x00000040) != 0);
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `text`. Allows for more complex formatting
     * than `text`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph content_text = 18;</code>
     *
     * @return The contentText.
     */
    public com.google.apps.card.v1.TextParagraph getContentText() {
      if (contentTextBuilder_ == null) {
        return contentText_ == null
            ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
            : contentText_;
      } else {
        return contentTextBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `text`. Allows for more complex formatting
     * than `text`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph content_text = 18;</code>
     */
    public Builder setContentText(com.google.apps.card.v1.TextParagraph value) {
      if (contentTextBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        contentText_ = value;
      } else {
        contentTextBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `text`. Allows for more complex formatting
     * than `text`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph content_text = 18;</code>
     */
    public Builder setContentText(com.google.apps.card.v1.TextParagraph.Builder builderForValue) {
      if (contentTextBuilder_ == null) {
        contentText_ = builderForValue.build();
      } else {
        contentTextBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `text`. Allows for more complex formatting
     * than `text`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph content_text = 18;</code>
     */
    public Builder mergeContentText(com.google.apps.card.v1.TextParagraph value) {
      if (contentTextBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && contentText_ != null
            && contentText_ != com.google.apps.card.v1.TextParagraph.getDefaultInstance()) {
          getContentTextBuilder().mergeFrom(value);
        } else {
          contentText_ = value;
        }
      } else {
        contentTextBuilder_.mergeFrom(value);
      }
      if (contentText_ != null) {
        bitField0_ |= 0x00000040;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `text`. Allows for more complex formatting
     * than `text`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph content_text = 18;</code>
     */
    public Builder clearContentText() {
      bitField0_ = (bitField0_ & ~0x00000040);
      contentText_ = null;
      if (contentTextBuilder_ != null) {
        contentTextBuilder_.dispose();
        contentTextBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `text`. Allows for more complex formatting
     * than `text`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph content_text = 18;</code>
     */
    public com.google.apps.card.v1.TextParagraph.Builder getContentTextBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return internalGetContentTextFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `text`. Allows for more complex formatting
     * than `text`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph content_text = 18;</code>
     */
    public com.google.apps.card.v1.TextParagraphOrBuilder getContentTextOrBuilder() {
      if (contentTextBuilder_ != null) {
        return contentTextBuilder_.getMessageOrBuilder();
      } else {
        return contentText_ == null
            ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
            : contentText_;
      }
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `text`. Allows for more complex formatting
     * than `text`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph content_text = 18;</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>
        internalGetContentTextFieldBuilder() {
      if (contentTextBuilder_ == null) {
        contentTextBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.TextParagraph,
                com.google.apps.card.v1.TextParagraph.Builder,
                com.google.apps.card.v1.TextParagraphOrBuilder>(
                getContentText(), getParentForChildren(), isClean());
        contentText_ = null;
      }
      return contentTextBuilder_;
    }

    private boolean wrapText_;

    /**
     *
     *
     * <pre>
     * The wrap text setting. If `true`, the text wraps and displays on
     * multiple lines. Otherwise, the text is truncated.
     *
     * Only applies to `text`, not `topLabel` and `bottomLabel`.
     * </pre>
     *
     * <code>bool wrap_text = 5;</code>
     *
     * @return The wrapText.
     */
    @java.lang.Override
    public boolean getWrapText() {
      return wrapText_;
    }

    /**
     *
     *
     * <pre>
     * The wrap text setting. If `true`, the text wraps and displays on
     * multiple lines. Otherwise, the text is truncated.
     *
     * Only applies to `text`, not `topLabel` and `bottomLabel`.
     * </pre>
     *
     * <code>bool wrap_text = 5;</code>
     *
     * @param value The wrapText to set.
     * @return This builder for chaining.
     */
    public Builder setWrapText(boolean value) {

      wrapText_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The wrap text setting. If `true`, the text wraps and displays on
     * multiple lines. Otherwise, the text is truncated.
     *
     * Only applies to `text`, not `topLabel` and `bottomLabel`.
     * </pre>
     *
     * <code>bool wrap_text = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearWrapText() {
      bitField0_ = (bitField0_ & ~0x00000080);
      wrapText_ = false;
      onChanged();
      return this;
    }

    private java.lang.Object bottomLabel_ = "";

    /**
     *
     *
     * <pre>
     * The text that appears below `text`. Always wraps.
     * </pre>
     *
     * <code>string bottom_label = 6;</code>
     *
     * @return The bottomLabel.
     */
    public java.lang.String getBottomLabel() {
      java.lang.Object ref = bottomLabel_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        bottomLabel_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * The text that appears below `text`. Always wraps.
     * </pre>
     *
     * <code>string bottom_label = 6;</code>
     *
     * @return The bytes for bottomLabel.
     */
    public com.google.protobuf.ByteString getBottomLabelBytes() {
      java.lang.Object ref = bottomLabel_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        bottomLabel_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * The text that appears below `text`. Always wraps.
     * </pre>
     *
     * <code>string bottom_label = 6;</code>
     *
     * @param value The bottomLabel to set.
     * @return This builder for chaining.
     */
    public Builder setBottomLabel(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bottomLabel_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The text that appears below `text`. Always wraps.
     * </pre>
     *
     * <code>string bottom_label = 6;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearBottomLabel() {
      bottomLabel_ = getDefaultInstance().getBottomLabel();
      bitField0_ = (bitField0_ & ~0x00000100);
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The text that appears below `text`. Always wraps.
     * </pre>
     *
     * <code>string bottom_label = 6;</code>
     *
     * @param value The bytes for bottomLabel to set.
     * @return This builder for chaining.
     */
    public Builder setBottomLabelBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      bottomLabel_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }

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

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
     * more complex formatting than `bottom_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</code>
     *
     * @return Whether the bottomLabelText field is set.
     */
    public boolean hasBottomLabelText() {
      return ((bitField0_ & 0x00000200) != 0);
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
     * more complex formatting than `bottom_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</code>
     *
     * @return The bottomLabelText.
     */
    public com.google.apps.card.v1.TextParagraph getBottomLabelText() {
      if (bottomLabelTextBuilder_ == null) {
        return bottomLabelText_ == null
            ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
            : bottomLabelText_;
      } else {
        return bottomLabelTextBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
     * more complex formatting than `bottom_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</code>
     */
    public Builder setBottomLabelText(com.google.apps.card.v1.TextParagraph value) {
      if (bottomLabelTextBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        bottomLabelText_ = value;
      } else {
        bottomLabelTextBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
     * more complex formatting than `bottom_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</code>
     */
    public Builder setBottomLabelText(
        com.google.apps.card.v1.TextParagraph.Builder builderForValue) {
      if (bottomLabelTextBuilder_ == null) {
        bottomLabelText_ = builderForValue.build();
      } else {
        bottomLabelTextBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
     * more complex formatting than `bottom_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</code>
     */
    public Builder mergeBottomLabelText(com.google.apps.card.v1.TextParagraph value) {
      if (bottomLabelTextBuilder_ == null) {
        if (((bitField0_ & 0x00000200) != 0)
            && bottomLabelText_ != null
            && bottomLabelText_ != com.google.apps.card.v1.TextParagraph.getDefaultInstance()) {
          getBottomLabelTextBuilder().mergeFrom(value);
        } else {
          bottomLabelText_ = value;
        }
      } else {
        bottomLabelTextBuilder_.mergeFrom(value);
      }
      if (bottomLabelText_ != null) {
        bitField0_ |= 0x00000200;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
     * more complex formatting than `bottom_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</code>
     */
    public Builder clearBottomLabelText() {
      bitField0_ = (bitField0_ & ~0x00000200);
      bottomLabelText_ = null;
      if (bottomLabelTextBuilder_ != null) {
        bottomLabelTextBuilder_.dispose();
        bottomLabelTextBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
     * more complex formatting than `bottom_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</code>
     */
    public com.google.apps.card.v1.TextParagraph.Builder getBottomLabelTextBuilder() {
      bitField0_ |= 0x00000200;
      onChanged();
      return internalGetBottomLabelTextFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
     * more complex formatting than `bottom_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</code>
     */
    public com.google.apps.card.v1.TextParagraphOrBuilder getBottomLabelTextOrBuilder() {
      if (bottomLabelTextBuilder_ != null) {
        return bottomLabelTextBuilder_.getMessageOrBuilder();
      } else {
        return bottomLabelText_ == null
            ? com.google.apps.card.v1.TextParagraph.getDefaultInstance()
            : bottomLabelText_;
      }
    }

    /**
     *
     *
     * <pre>
     * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for
     * more complex formatting than `bottom_label`.
     *
     * [Google Chat apps](https://developers.google.com/workspace/chat):
     * </pre>
     *
     * <code>.google.apps.card.v1.TextParagraph bottom_label_text = 19;</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>
        internalGetBottomLabelTextFieldBuilder() {
      if (bottomLabelTextBuilder_ == null) {
        bottomLabelTextBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.TextParagraph,
                com.google.apps.card.v1.TextParagraph.Builder,
                com.google.apps.card.v1.TextParagraphOrBuilder>(
                getBottomLabelText(), getParentForChildren(), isClean());
        bottomLabelText_ = null;
      }
      return bottomLabelTextBuilder_;
    }

    private com.google.apps.card.v1.OnClick onClick_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.OnClick,
            com.google.apps.card.v1.OnClick.Builder,
            com.google.apps.card.v1.OnClickOrBuilder>
        onClickBuilder_;

    /**
     *
     *
     * <pre>
     * This action is triggered when users click `topLabel` or `bottomLabel`.
     * </pre>
     *
     * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
     *
     * @return Whether the onClick field is set.
     */
    public boolean hasOnClick() {
      return ((bitField0_ & 0x00000400) != 0);
    }

    /**
     *
     *
     * <pre>
     * This action is triggered when users click `topLabel` or `bottomLabel`.
     * </pre>
     *
     * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
     *
     * @return The onClick.
     */
    public com.google.apps.card.v1.OnClick getOnClick() {
      if (onClickBuilder_ == null) {
        return onClick_ == null ? com.google.apps.card.v1.OnClick.getDefaultInstance() : onClick_;
      } else {
        return onClickBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * This action is triggered when users click `topLabel` or `bottomLabel`.
     * </pre>
     *
     * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
     */
    public Builder setOnClick(com.google.apps.card.v1.OnClick value) {
      if (onClickBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        onClick_ = value;
      } else {
        onClickBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * This action is triggered when users click `topLabel` or `bottomLabel`.
     * </pre>
     *
     * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
     */
    public Builder setOnClick(com.google.apps.card.v1.OnClick.Builder builderForValue) {
      if (onClickBuilder_ == null) {
        onClick_ = builderForValue.build();
      } else {
        onClickBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * This action is triggered when users click `topLabel` or `bottomLabel`.
     * </pre>
     *
     * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
     */
    public Builder mergeOnClick(com.google.apps.card.v1.OnClick value) {
      if (onClickBuilder_ == null) {
        if (((bitField0_ & 0x00000400) != 0)
            && onClick_ != null
            && onClick_ != com.google.apps.card.v1.OnClick.getDefaultInstance()) {
          getOnClickBuilder().mergeFrom(value);
        } else {
          onClick_ = value;
        }
      } else {
        onClickBuilder_.mergeFrom(value);
      }
      if (onClick_ != null) {
        bitField0_ |= 0x00000400;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * This action is triggered when users click `topLabel` or `bottomLabel`.
     * </pre>
     *
     * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
     */
    public Builder clearOnClick() {
      bitField0_ = (bitField0_ & ~0x00000400);
      onClick_ = null;
      if (onClickBuilder_ != null) {
        onClickBuilder_.dispose();
        onClickBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * This action is triggered when users click `topLabel` or `bottomLabel`.
     * </pre>
     *
     * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
     */
    public com.google.apps.card.v1.OnClick.Builder getOnClickBuilder() {
      bitField0_ |= 0x00000400;
      onChanged();
      return internalGetOnClickFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * This action is triggered when users click `topLabel` or `bottomLabel`.
     * </pre>
     *
     * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
     */
    public com.google.apps.card.v1.OnClickOrBuilder getOnClickOrBuilder() {
      if (onClickBuilder_ != null) {
        return onClickBuilder_.getMessageOrBuilder();
      } else {
        return onClick_ == null ? com.google.apps.card.v1.OnClick.getDefaultInstance() : onClick_;
      }
    }

    /**
     *
     *
     * <pre>
     * This action is triggered when users click `topLabel` or `bottomLabel`.
     * </pre>
     *
     * <code>.google.apps.card.v1.OnClick on_click = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.OnClick,
            com.google.apps.card.v1.OnClick.Builder,
            com.google.apps.card.v1.OnClickOrBuilder>
        internalGetOnClickFieldBuilder() {
      if (onClickBuilder_ == null) {
        onClickBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.OnClick,
                com.google.apps.card.v1.OnClick.Builder,
                com.google.apps.card.v1.OnClickOrBuilder>(
                getOnClick(), getParentForChildren(), isClean());
        onClick_ = null;
      }
      return onClickBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.Button,
            com.google.apps.card.v1.Button.Builder,
            com.google.apps.card.v1.ButtonOrBuilder>
        buttonBuilder_;

    /**
     *
     *
     * <pre>
     * A button that a user can click to trigger an action.
     * </pre>
     *
     * <code>.google.apps.card.v1.Button button = 8;</code>
     *
     * @return Whether the button field is set.
     */
    @java.lang.Override
    public boolean hasButton() {
      return controlCase_ == 8;
    }

    /**
     *
     *
     * <pre>
     * A button that a user can click to trigger an action.
     * </pre>
     *
     * <code>.google.apps.card.v1.Button button = 8;</code>
     *
     * @return The button.
     */
    @java.lang.Override
    public com.google.apps.card.v1.Button getButton() {
      if (buttonBuilder_ == null) {
        if (controlCase_ == 8) {
          return (com.google.apps.card.v1.Button) control_;
        }
        return com.google.apps.card.v1.Button.getDefaultInstance();
      } else {
        if (controlCase_ == 8) {
          return buttonBuilder_.getMessage();
        }
        return com.google.apps.card.v1.Button.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * A button that a user can click to trigger an action.
     * </pre>
     *
     * <code>.google.apps.card.v1.Button button = 8;</code>
     */
    public Builder setButton(com.google.apps.card.v1.Button value) {
      if (buttonBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        control_ = value;
        onChanged();
      } else {
        buttonBuilder_.setMessage(value);
      }
      controlCase_ = 8;
      return this;
    }

    /**
     *
     *
     * <pre>
     * A button that a user can click to trigger an action.
     * </pre>
     *
     * <code>.google.apps.card.v1.Button button = 8;</code>
     */
    public Builder setButton(com.google.apps.card.v1.Button.Builder builderForValue) {
      if (buttonBuilder_ == null) {
        control_ = builderForValue.build();
        onChanged();
      } else {
        buttonBuilder_.setMessage(builderForValue.build());
      }
      controlCase_ = 8;
      return this;
    }

    /**
     *
     *
     * <pre>
     * A button that a user can click to trigger an action.
     * </pre>
     *
     * <code>.google.apps.card.v1.Button button = 8;</code>
     */
    public Builder mergeButton(com.google.apps.card.v1.Button value) {
      if (buttonBuilder_ == null) {
        if (controlCase_ == 8 && control_ != com.google.apps.card.v1.Button.getDefaultInstance()) {
          control_ =
              com.google.apps.card.v1.Button.newBuilder((com.google.apps.card.v1.Button) control_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          control_ = value;
        }
        onChanged();
      } else {
        if (controlCase_ == 8) {
          buttonBuilder_.mergeFrom(value);
        } else {
          buttonBuilder_.setMessage(value);
        }
      }
      controlCase_ = 8;
      return this;
    }

    /**
     *
     *
     * <pre>
     * A button that a user can click to trigger an action.
     * </pre>
     *
     * <code>.google.apps.card.v1.Button button = 8;</code>
     */
    public Builder clearButton() {
      if (buttonBuilder_ == null) {
        if (controlCase_ == 8) {
          controlCase_ = 0;
          control_ = null;
          onChanged();
        }
      } else {
        if (controlCase_ == 8) {
          controlCase_ = 0;
          control_ = null;
        }
        buttonBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A button that a user can click to trigger an action.
     * </pre>
     *
     * <code>.google.apps.card.v1.Button button = 8;</code>
     */
    public com.google.apps.card.v1.Button.Builder getButtonBuilder() {
      return internalGetButtonFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * A button that a user can click to trigger an action.
     * </pre>
     *
     * <code>.google.apps.card.v1.Button button = 8;</code>
     */
    @java.lang.Override
    public com.google.apps.card.v1.ButtonOrBuilder getButtonOrBuilder() {
      if ((controlCase_ == 8) && (buttonBuilder_ != null)) {
        return buttonBuilder_.getMessageOrBuilder();
      } else {
        if (controlCase_ == 8) {
          return (com.google.apps.card.v1.Button) control_;
        }
        return com.google.apps.card.v1.Button.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * A button that a user can click to trigger an action.
     * </pre>
     *
     * <code>.google.apps.card.v1.Button button = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.Button,
            com.google.apps.card.v1.Button.Builder,
            com.google.apps.card.v1.ButtonOrBuilder>
        internalGetButtonFieldBuilder() {
      if (buttonBuilder_ == null) {
        if (!(controlCase_ == 8)) {
          control_ = com.google.apps.card.v1.Button.getDefaultInstance();
        }
        buttonBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.Button,
                com.google.apps.card.v1.Button.Builder,
                com.google.apps.card.v1.ButtonOrBuilder>(
                (com.google.apps.card.v1.Button) control_, getParentForChildren(), isClean());
        control_ = null;
      }
      controlCase_ = 8;
      onChanged();
      return buttonBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.DecoratedText.SwitchControl,
            com.google.apps.card.v1.DecoratedText.SwitchControl.Builder,
            com.google.apps.card.v1.DecoratedText.SwitchControlOrBuilder>
        switchControlBuilder_;

    /**
     *
     *
     * <pre>
     * A switch widget that a user can click to change its state and trigger an
     * action.
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
     *
     * @return Whether the switchControl field is set.
     */
    @java.lang.Override
    public boolean hasSwitchControl() {
      return controlCase_ == 9;
    }

    /**
     *
     *
     * <pre>
     * A switch widget that a user can click to change its state and trigger an
     * action.
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
     *
     * @return The switchControl.
     */
    @java.lang.Override
    public com.google.apps.card.v1.DecoratedText.SwitchControl getSwitchControl() {
      if (switchControlBuilder_ == null) {
        if (controlCase_ == 9) {
          return (com.google.apps.card.v1.DecoratedText.SwitchControl) control_;
        }
        return com.google.apps.card.v1.DecoratedText.SwitchControl.getDefaultInstance();
      } else {
        if (controlCase_ == 9) {
          return switchControlBuilder_.getMessage();
        }
        return com.google.apps.card.v1.DecoratedText.SwitchControl.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * A switch widget that a user can click to change its state and trigger an
     * action.
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
     */
    public Builder setSwitchControl(com.google.apps.card.v1.DecoratedText.SwitchControl value) {
      if (switchControlBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        control_ = value;
        onChanged();
      } else {
        switchControlBuilder_.setMessage(value);
      }
      controlCase_ = 9;
      return this;
    }

    /**
     *
     *
     * <pre>
     * A switch widget that a user can click to change its state and trigger an
     * action.
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
     */
    public Builder setSwitchControl(
        com.google.apps.card.v1.DecoratedText.SwitchControl.Builder builderForValue) {
      if (switchControlBuilder_ == null) {
        control_ = builderForValue.build();
        onChanged();
      } else {
        switchControlBuilder_.setMessage(builderForValue.build());
      }
      controlCase_ = 9;
      return this;
    }

    /**
     *
     *
     * <pre>
     * A switch widget that a user can click to change its state and trigger an
     * action.
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
     */
    public Builder mergeSwitchControl(com.google.apps.card.v1.DecoratedText.SwitchControl value) {
      if (switchControlBuilder_ == null) {
        if (controlCase_ == 9
            && control_
                != com.google.apps.card.v1.DecoratedText.SwitchControl.getDefaultInstance()) {
          control_ =
              com.google.apps.card.v1.DecoratedText.SwitchControl.newBuilder(
                      (com.google.apps.card.v1.DecoratedText.SwitchControl) control_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          control_ = value;
        }
        onChanged();
      } else {
        if (controlCase_ == 9) {
          switchControlBuilder_.mergeFrom(value);
        } else {
          switchControlBuilder_.setMessage(value);
        }
      }
      controlCase_ = 9;
      return this;
    }

    /**
     *
     *
     * <pre>
     * A switch widget that a user can click to change its state and trigger an
     * action.
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
     */
    public Builder clearSwitchControl() {
      if (switchControlBuilder_ == null) {
        if (controlCase_ == 9) {
          controlCase_ = 0;
          control_ = null;
          onChanged();
        }
      } else {
        if (controlCase_ == 9) {
          controlCase_ = 0;
          control_ = null;
        }
        switchControlBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A switch widget that a user can click to change its state and trigger an
     * action.
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
     */
    public com.google.apps.card.v1.DecoratedText.SwitchControl.Builder getSwitchControlBuilder() {
      return internalGetSwitchControlFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * A switch widget that a user can click to change its state and trigger an
     * action.
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
     */
    @java.lang.Override
    public com.google.apps.card.v1.DecoratedText.SwitchControlOrBuilder
        getSwitchControlOrBuilder() {
      if ((controlCase_ == 9) && (switchControlBuilder_ != null)) {
        return switchControlBuilder_.getMessageOrBuilder();
      } else {
        if (controlCase_ == 9) {
          return (com.google.apps.card.v1.DecoratedText.SwitchControl) control_;
        }
        return com.google.apps.card.v1.DecoratedText.SwitchControl.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * A switch widget that a user can click to change its state and trigger an
     * action.
     * </pre>
     *
     * <code>.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.DecoratedText.SwitchControl,
            com.google.apps.card.v1.DecoratedText.SwitchControl.Builder,
            com.google.apps.card.v1.DecoratedText.SwitchControlOrBuilder>
        internalGetSwitchControlFieldBuilder() {
      if (switchControlBuilder_ == null) {
        if (!(controlCase_ == 9)) {
          control_ = com.google.apps.card.v1.DecoratedText.SwitchControl.getDefaultInstance();
        }
        switchControlBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.DecoratedText.SwitchControl,
                com.google.apps.card.v1.DecoratedText.SwitchControl.Builder,
                com.google.apps.card.v1.DecoratedText.SwitchControlOrBuilder>(
                (com.google.apps.card.v1.DecoratedText.SwitchControl) control_,
                getParentForChildren(),
                isClean());
        control_ = null;
      }
      controlCase_ = 9;
      onChanged();
      return switchControlBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.Icon,
            com.google.apps.card.v1.Icon.Builder,
            com.google.apps.card.v1.IconOrBuilder>
        endIconBuilder_;

    /**
     *
     *
     * <pre>
     * An icon displayed after the text.
     *
     * Supports
     * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
     * and
     * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
     * icons.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
     *
     * @return Whether the endIcon field is set.
     */
    @java.lang.Override
    public boolean hasEndIcon() {
      return controlCase_ == 11;
    }

    /**
     *
     *
     * <pre>
     * An icon displayed after the text.
     *
     * Supports
     * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
     * and
     * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
     * icons.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
     *
     * @return The endIcon.
     */
    @java.lang.Override
    public com.google.apps.card.v1.Icon getEndIcon() {
      if (endIconBuilder_ == null) {
        if (controlCase_ == 11) {
          return (com.google.apps.card.v1.Icon) control_;
        }
        return com.google.apps.card.v1.Icon.getDefaultInstance();
      } else {
        if (controlCase_ == 11) {
          return endIconBuilder_.getMessage();
        }
        return com.google.apps.card.v1.Icon.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * An icon displayed after the text.
     *
     * Supports
     * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
     * and
     * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
     * icons.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
     */
    public Builder setEndIcon(com.google.apps.card.v1.Icon value) {
      if (endIconBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        control_ = value;
        onChanged();
      } else {
        endIconBuilder_.setMessage(value);
      }
      controlCase_ = 11;
      return this;
    }

    /**
     *
     *
     * <pre>
     * An icon displayed after the text.
     *
     * Supports
     * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
     * and
     * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
     * icons.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
     */
    public Builder setEndIcon(com.google.apps.card.v1.Icon.Builder builderForValue) {
      if (endIconBuilder_ == null) {
        control_ = builderForValue.build();
        onChanged();
      } else {
        endIconBuilder_.setMessage(builderForValue.build());
      }
      controlCase_ = 11;
      return this;
    }

    /**
     *
     *
     * <pre>
     * An icon displayed after the text.
     *
     * Supports
     * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
     * and
     * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
     * icons.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
     */
    public Builder mergeEndIcon(com.google.apps.card.v1.Icon value) {
      if (endIconBuilder_ == null) {
        if (controlCase_ == 11 && control_ != com.google.apps.card.v1.Icon.getDefaultInstance()) {
          control_ =
              com.google.apps.card.v1.Icon.newBuilder((com.google.apps.card.v1.Icon) control_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          control_ = value;
        }
        onChanged();
      } else {
        if (controlCase_ == 11) {
          endIconBuilder_.mergeFrom(value);
        } else {
          endIconBuilder_.setMessage(value);
        }
      }
      controlCase_ = 11;
      return this;
    }

    /**
     *
     *
     * <pre>
     * An icon displayed after the text.
     *
     * Supports
     * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
     * and
     * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
     * icons.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
     */
    public Builder clearEndIcon() {
      if (endIconBuilder_ == null) {
        if (controlCase_ == 11) {
          controlCase_ = 0;
          control_ = null;
          onChanged();
        }
      } else {
        if (controlCase_ == 11) {
          controlCase_ = 0;
          control_ = null;
        }
        endIconBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * An icon displayed after the text.
     *
     * Supports
     * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
     * and
     * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
     * icons.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
     */
    public com.google.apps.card.v1.Icon.Builder getEndIconBuilder() {
      return internalGetEndIconFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * An icon displayed after the text.
     *
     * Supports
     * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
     * and
     * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
     * icons.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
     */
    @java.lang.Override
    public com.google.apps.card.v1.IconOrBuilder getEndIconOrBuilder() {
      if ((controlCase_ == 11) && (endIconBuilder_ != null)) {
        return endIconBuilder_.getMessageOrBuilder();
      } else {
        if (controlCase_ == 11) {
          return (com.google.apps.card.v1.Icon) control_;
        }
        return com.google.apps.card.v1.Icon.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * An icon displayed after the text.
     *
     * Supports
     * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons)
     * and
     * [custom](https://developers.google.com/workspace/chat/format-messages#customicons)
     * icons.
     * </pre>
     *
     * <code>.google.apps.card.v1.Icon end_icon = 11;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.apps.card.v1.Icon,
            com.google.apps.card.v1.Icon.Builder,
            com.google.apps.card.v1.IconOrBuilder>
        internalGetEndIconFieldBuilder() {
      if (endIconBuilder_ == null) {
        if (!(controlCase_ == 11)) {
          control_ = com.google.apps.card.v1.Icon.getDefaultInstance();
        }
        endIconBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.apps.card.v1.Icon,
                com.google.apps.card.v1.Icon.Builder,
                com.google.apps.card.v1.IconOrBuilder>(
                (com.google.apps.card.v1.Icon) control_, getParentForChildren(), isClean());
        control_ = null;
      }
      controlCase_ = 11;
      onChanged();
      return endIconBuilder_;
    }

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

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

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

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

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

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

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