Class Card.CardFixedFooter.Builder (0.1.0)

public static final class Card.CardFixedFooter.Builder extends 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, but not card messages. For an example in Google Chat apps, see Card footer.

Google Workspace Add-ons and Chat apps:

Protobuf type google.apps.card.v1.Card.CardFixedFooter

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Card.CardFixedFooter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides

build()

public Card.CardFixedFooter build()
Returns
TypeDescription
Card.CardFixedFooter

buildPartial()

public Card.CardFixedFooter buildPartial()
Returns
TypeDescription
Card.CardFixedFooter

clear()

public Card.CardFixedFooter.Builder clear()
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Card.CardFixedFooter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Card.CardFixedFooter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides

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;

Returns
TypeDescription
Card.CardFixedFooter.Builder

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;

Returns
TypeDescription
Card.CardFixedFooter.Builder

clone()

public Card.CardFixedFooter.Builder clone()
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides

getDefaultInstanceForType()

public Card.CardFixedFooter getDefaultInstanceForType()
Returns
TypeDescription
Card.CardFixedFooter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
Button

The primaryButton.

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;

Returns
TypeDescription
Button.Builder

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;

Returns
TypeDescription
ButtonOrBuilder

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;

Returns
TypeDescription
Button

The secondaryButton.

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;

Returns
TypeDescription
Button.Builder

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;

Returns
TypeDescription
ButtonOrBuilder

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;

Returns
TypeDescription
boolean

Whether the primaryButton field is set.

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;

Returns
TypeDescription
boolean

Whether the secondaryButton field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Card.CardFixedFooter other)

public Card.CardFixedFooter.Builder mergeFrom(Card.CardFixedFooter other)
Parameter
NameDescription
otherCard.CardFixedFooter
Returns
TypeDescription
Card.CardFixedFooter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Card.CardFixedFooter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Card.CardFixedFooter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides

mergePrimaryButton(Button value)

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;

Parameter
NameDescription
valueButton
Returns
TypeDescription
Card.CardFixedFooter.Builder

mergeSecondaryButton(Button value)

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;

Parameter
NameDescription
valueButton
Returns
TypeDescription
Card.CardFixedFooter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Card.CardFixedFooter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Card.CardFixedFooter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides

setPrimaryButton(Button value)

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;

Parameter
NameDescription
valueButton
Returns
TypeDescription
Card.CardFixedFooter.Builder

setPrimaryButton(Button.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueButton.Builder
Returns
TypeDescription
Card.CardFixedFooter.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Card.CardFixedFooter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides

setSecondaryButton(Button value)

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;

Parameter
NameDescription
valueButton
Returns
TypeDescription
Card.CardFixedFooter.Builder

setSecondaryButton(Button.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueButton.Builder
Returns
TypeDescription
Card.CardFixedFooter.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Card.CardFixedFooter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides