Class Card.CardFixedFooter (2.42.0)

public static final class Card.CardFixedFooter extends GeneratedMessageV3 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 Fields

PRIMARY_BUTTON_FIELD_NUMBER

public static final int PRIMARY_BUTTON_FIELD_NUMBER
Field Value
Type Description
int

SECONDARY_BUTTON_FIELD_NUMBER

public static final int SECONDARY_BUTTON_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Card.CardFixedFooter getDefaultInstance()
Returns
Type Description
Card.CardFixedFooter

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Card.CardFixedFooter.Builder newBuilder()
Returns
Type Description
Card.CardFixedFooter.Builder

newBuilder(Card.CardFixedFooter prototype)

public static Card.CardFixedFooter.Builder newBuilder(Card.CardFixedFooter prototype)
Parameter
Name Description
prototype Card.CardFixedFooter
Returns
Type Description
Card.CardFixedFooter.Builder

parseDelimitedFrom(InputStream input)

public static Card.CardFixedFooter parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Card.CardFixedFooter parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Card.CardFixedFooter parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Card.CardFixedFooter parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Card.CardFixedFooter parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Card.CardFixedFooter parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Card.CardFixedFooter
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Card.CardFixedFooter> parser()
Returns
Type Description
Parser<CardFixedFooter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<Card.CardFixedFooter> getParserForType()
Returns
Type Description
Parser<CardFixedFooter>
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.

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Card.CardFixedFooter.Builder newBuilderForType()
Returns
Type Description
Card.CardFixedFooter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Card.CardFixedFooter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Card.CardFixedFooter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Card.CardFixedFooter.Builder toBuilder()
Returns
Type Description
Card.CardFixedFooter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException