Class Card.CardFixedFooter.Builder (2.43.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 Add a persistent 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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Card.CardFixedFooter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Card.CardFixedFooter.Builder
Overrides

build()

public Card.CardFixedFooter build()
Returns
Type Description
Card.CardFixedFooter

buildPartial()

public Card.CardFixedFooter buildPartial()
Returns
Type Description
Card.CardFixedFooter

clear()

public Card.CardFixedFooter.Builder clear()
Returns
Type Description
Card.CardFixedFooter.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Card.CardFixedFooter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Card.CardFixedFooter.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Card.CardFixedFooter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
Card.CardFixedFooter.Builder

clone()

public Card.CardFixedFooter.Builder clone()
Returns
Type Description
Card.CardFixedFooter.Builder
Overrides

getDefaultInstanceForType()

public Card.CardFixedFooter getDefaultInstanceForType()
Returns
Type Description
Card.CardFixedFooter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the secondaryButton field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Card.CardFixedFooter other)

public Card.CardFixedFooter.Builder mergeFrom(Card.CardFixedFooter other)
Parameter
Name Description
other Card.CardFixedFooter
Returns
Type Description
Card.CardFixedFooter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Card.CardFixedFooter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Card.CardFixedFooter.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Card.CardFixedFooter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Button
Returns
Type Description
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
Name Description
value Button
Returns
Type Description
Card.CardFixedFooter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Card.CardFixedFooter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Card.CardFixedFooter.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Card.CardFixedFooter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Button
Returns
Type Description
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
Name Description
builderForValue Button.Builder
Returns
Type Description
Card.CardFixedFooter.Builder

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

public Card.CardFixedFooter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Button
Returns
Type Description
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
Name Description
builderForValue Button.Builder
Returns
Type Description
Card.CardFixedFooter.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Card.CardFixedFooter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Card.CardFixedFooter.Builder
Overrides