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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public Card.CardFixedFooter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Card.CardFixedFooter build()
public Card.CardFixedFooter buildPartial()
public Card.CardFixedFooter.Builder clear()
Overrides
public Card.CardFixedFooter.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Card.CardFixedFooter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
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;
public Card.CardFixedFooter.Builder clone()
Overrides
public Card.CardFixedFooter getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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;
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;
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.
|
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;
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;
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Card.CardFixedFooter.Builder mergeFrom(Card.CardFixedFooter other)
public Card.CardFixedFooter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Card.CardFixedFooter.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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
|
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
|
public final Card.CardFixedFooter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public Card.CardFixedFooter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
|
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;
public Card.CardFixedFooter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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
|
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;
public final Card.CardFixedFooter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides