Class Card.CardFixedFooter (0.1.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 Card 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
TypeDescription
int

SECONDARY_BUTTON_FIELD_NUMBER

public static final int SECONDARY_BUTTON_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Card.CardFixedFooter getDefaultInstance()
Returns
TypeDescription
Card.CardFixedFooter

getDescriptor()

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

newBuilder()

public static Card.CardFixedFooter.Builder newBuilder()
Returns
TypeDescription
Card.CardFixedFooter.Builder

newBuilder(Card.CardFixedFooter prototype)

public static Card.CardFixedFooter.Builder newBuilder(Card.CardFixedFooter prototype)
Parameter
NameDescription
prototypeCard.CardFixedFooter
Returns
TypeDescription
Card.CardFixedFooter.Builder

parseDelimitedFrom(InputStream input)

public static Card.CardFixedFooter parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Card.CardFixedFooter parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Card.CardFixedFooter parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Card.CardFixedFooter parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Card.CardFixedFooter parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Card.CardFixedFooter parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Card.CardFixedFooter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardFixedFooter
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

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

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Card.CardFixedFooter.Builder newBuilderForType()
Returns
TypeDescription
Card.CardFixedFooter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Card.CardFixedFooter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Card.CardFixedFooter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Card.CardFixedFooter.Builder toBuilder()
Returns
TypeDescription
Card.CardFixedFooter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException