Class Card.CardFixedFooter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Card.CardFixedFooter.Builder>
com.google.protobuf.GeneratedMessage.Builder<Card.CardFixedFooter.Builder>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Card.CardFixedFooter.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder>
com.google.apps.card.v1.Card.CardFixedFooter.Builder
All Implemented Interfaces:
Card.CardFixedFooterOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Card.CardFixedFooter

public static final class Card.CardFixedFooter.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder> implements Card.CardFixedFooterOrBuilder
 A persistent (sticky) footer that that appears at the bottom of the card.

 Setting `fixedFooter` without specifying a `primaryButton` or a
 `secondaryButton` causes an error.

 For Chat apps, you can use fixed footers in
 [dialogs](https://developers.google.com/workspace/chat/dialogs), but not
 [card
 messages](https://developers.google.com/workspace/chat/create-messages#create).
 For an example in Google Chat apps, see [Add a persistent
 footer](https://developers.google.com/workspace/chat/design-components-card-dialog#add_a_persistent_footer).

 [Google Workspace Add-ons and Chat
 apps](https://developers.google.com/workspace/extend):
 
Protobuf type google.apps.card.v1.Card.CardFixedFooter
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Card.CardFixedFooter.Builder>
    • getDefaultInstanceForType

      public Card.CardFixedFooter getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Card.CardFixedFooter build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Card.CardFixedFooter buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder>
    • setField

      public Card.CardFixedFooter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder>
    • clearField

      public Card.CardFixedFooter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder>
    • clearOneof

      public Card.CardFixedFooter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder>
    • setRepeatedField

      public Card.CardFixedFooter.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder>
    • addRepeatedField

      public Card.CardFixedFooter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder>
    • mergeFrom

      public Card.CardFixedFooter.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Card.CardFixedFooter.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Card.CardFixedFooter.Builder>
    • mergeFrom

      public Card.CardFixedFooter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Card.CardFixedFooter.Builder>
      Throws:
      IOException
    • hasPrimaryButton

      public boolean hasPrimaryButton()
       The primary button of the fixed footer. The button must be a text button
       with text and color set.
       
      .google.apps.card.v1.Button primary_button = 1;
      Specified by:
      hasPrimaryButton in interface Card.CardFixedFooterOrBuilder
      Returns:
      Whether the primaryButton field is set.
    • getPrimaryButton

      public Button getPrimaryButton()
       The primary button of the fixed footer. The button must be a text button
       with text and color set.
       
      .google.apps.card.v1.Button primary_button = 1;
      Specified by:
      getPrimaryButton in interface Card.CardFixedFooterOrBuilder
      Returns:
      The primaryButton.
    • setPrimaryButton

      public Card.CardFixedFooter.Builder setPrimaryButton(Button value)
       The primary button of the fixed footer. The button must be a text button
       with text and color set.
       
      .google.apps.card.v1.Button primary_button = 1;
    • setPrimaryButton

      public Card.CardFixedFooter.Builder setPrimaryButton(Button.Builder builderForValue)
       The primary button of the fixed footer. The button must be a text button
       with text and color set.
       
      .google.apps.card.v1.Button primary_button = 1;
    • mergePrimaryButton

      public Card.CardFixedFooter.Builder mergePrimaryButton(Button value)
       The primary button of the fixed footer. The button must be a text button
       with text and color set.
       
      .google.apps.card.v1.Button primary_button = 1;
    • clearPrimaryButton

      public Card.CardFixedFooter.Builder clearPrimaryButton()
       The primary button of the fixed footer. The button must be a text button
       with text and color set.
       
      .google.apps.card.v1.Button primary_button = 1;
    • getPrimaryButtonBuilder

      public Button.Builder getPrimaryButtonBuilder()
       The primary button of the fixed footer. The button must be a text button
       with text and color set.
       
      .google.apps.card.v1.Button primary_button = 1;
    • getPrimaryButtonOrBuilder

      public ButtonOrBuilder getPrimaryButtonOrBuilder()
       The primary button of the fixed footer. The button must be a text button
       with text and color set.
       
      .google.apps.card.v1.Button primary_button = 1;
      Specified by:
      getPrimaryButtonOrBuilder in interface Card.CardFixedFooterOrBuilder
    • hasSecondaryButton

      public boolean hasSecondaryButton()
       The secondary button of the fixed footer.  The button must be a text
       button with text and color set.
       If `secondaryButton` is set, you must also set `primaryButton`.
       
      .google.apps.card.v1.Button secondary_button = 2;
      Specified by:
      hasSecondaryButton in interface Card.CardFixedFooterOrBuilder
      Returns:
      Whether the secondaryButton field is set.
    • getSecondaryButton

      public Button getSecondaryButton()
       The secondary button of the fixed footer.  The button must be a text
       button with text and color set.
       If `secondaryButton` is set, you must also set `primaryButton`.
       
      .google.apps.card.v1.Button secondary_button = 2;
      Specified by:
      getSecondaryButton in interface Card.CardFixedFooterOrBuilder
      Returns:
      The secondaryButton.
    • setSecondaryButton

      public Card.CardFixedFooter.Builder setSecondaryButton(Button value)
       The secondary button of the fixed footer.  The button must be a text
       button with text and color set.
       If `secondaryButton` is set, you must also set `primaryButton`.
       
      .google.apps.card.v1.Button secondary_button = 2;
    • setSecondaryButton

      public Card.CardFixedFooter.Builder setSecondaryButton(Button.Builder builderForValue)
       The secondary button of the fixed footer.  The button must be a text
       button with text and color set.
       If `secondaryButton` is set, you must also set `primaryButton`.
       
      .google.apps.card.v1.Button secondary_button = 2;
    • mergeSecondaryButton

      public Card.CardFixedFooter.Builder mergeSecondaryButton(Button value)
       The secondary button of the fixed footer.  The button must be a text
       button with text and color set.
       If `secondaryButton` is set, you must also set `primaryButton`.
       
      .google.apps.card.v1.Button secondary_button = 2;
    • clearSecondaryButton

      public Card.CardFixedFooter.Builder clearSecondaryButton()
       The secondary button of the fixed footer.  The button must be a text
       button with text and color set.
       If `secondaryButton` is set, you must also set `primaryButton`.
       
      .google.apps.card.v1.Button secondary_button = 2;
    • getSecondaryButtonBuilder

      public Button.Builder getSecondaryButtonBuilder()
       The secondary button of the fixed footer.  The button must be a text
       button with text and color set.
       If `secondaryButton` is set, you must also set `primaryButton`.
       
      .google.apps.card.v1.Button secondary_button = 2;
    • getSecondaryButtonOrBuilder

      public ButtonOrBuilder getSecondaryButtonOrBuilder()
       The secondary button of the fixed footer.  The button must be a text
       button with text and color set.
       If `secondaryButton` is set, you must also set `primaryButton`.
       
      .google.apps.card.v1.Button secondary_button = 2;
      Specified by:
      getSecondaryButtonOrBuilder in interface Card.CardFixedFooterOrBuilder
    • setUnknownFields

      public final Card.CardFixedFooter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder>
    • mergeUnknownFields

      public final Card.CardFixedFooter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Card.CardFixedFooter.Builder>