Class ContextualAddOnMarkup.Card.Builder (0.19.0)

public static final class ContextualAddOnMarkup.Card.Builder extends GeneratedMessageV3.Builder<ContextualAddOnMarkup.Card.Builder> implements ContextualAddOnMarkup.CardOrBuilder

A card is a UI element that can contain UI widgets such as text and images.

Protobuf type google.chat.v1.ContextualAddOnMarkup.Card

Static Methods

getDescriptor()

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

Methods

addAllCardActions(Iterable<? extends ContextualAddOnMarkup.Card.CardAction> values)

public ContextualAddOnMarkup.Card.Builder addAllCardActions(Iterable<? extends ContextualAddOnMarkup.Card.CardAction> values)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameter
Name Description
values Iterable<? extends com.google.chat.v1.ContextualAddOnMarkup.Card.CardAction>
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

addAllSections(Iterable<? extends ContextualAddOnMarkup.Card.Section> values)

public ContextualAddOnMarkup.Card.Builder addAllSections(Iterable<? extends ContextualAddOnMarkup.Card.Section> values)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameter
Name Description
values Iterable<? extends com.google.chat.v1.ContextualAddOnMarkup.Card.Section>
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

addCardActions(ContextualAddOnMarkup.Card.CardAction value)

public ContextualAddOnMarkup.Card.Builder addCardActions(ContextualAddOnMarkup.Card.CardAction value)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameter
Name Description
value ContextualAddOnMarkup.Card.CardAction
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

addCardActions(ContextualAddOnMarkup.Card.CardAction.Builder builderForValue)

public ContextualAddOnMarkup.Card.Builder addCardActions(ContextualAddOnMarkup.Card.CardAction.Builder builderForValue)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameter
Name Description
builderForValue ContextualAddOnMarkup.Card.CardAction.Builder
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

addCardActions(int index, ContextualAddOnMarkup.Card.CardAction value)

public ContextualAddOnMarkup.Card.Builder addCardActions(int index, ContextualAddOnMarkup.Card.CardAction value)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameters
Name Description
index int
value ContextualAddOnMarkup.Card.CardAction
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

addCardActions(int index, ContextualAddOnMarkup.Card.CardAction.Builder builderForValue)

public ContextualAddOnMarkup.Card.Builder addCardActions(int index, ContextualAddOnMarkup.Card.CardAction.Builder builderForValue)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameters
Name Description
index int
builderForValue ContextualAddOnMarkup.Card.CardAction.Builder
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

addCardActionsBuilder()

public ContextualAddOnMarkup.Card.CardAction.Builder addCardActionsBuilder()

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Returns
Type Description
ContextualAddOnMarkup.Card.CardAction.Builder

addCardActionsBuilder(int index)

public ContextualAddOnMarkup.Card.CardAction.Builder addCardActionsBuilder(int index)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameter
Name Description
index int
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSections(ContextualAddOnMarkup.Card.Section value)

public ContextualAddOnMarkup.Card.Builder addSections(ContextualAddOnMarkup.Card.Section value)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameter
Name Description
value ContextualAddOnMarkup.Card.Section
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

addSections(ContextualAddOnMarkup.Card.Section.Builder builderForValue)

public ContextualAddOnMarkup.Card.Builder addSections(ContextualAddOnMarkup.Card.Section.Builder builderForValue)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameter
Name Description
builderForValue ContextualAddOnMarkup.Card.Section.Builder
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

addSections(int index, ContextualAddOnMarkup.Card.Section value)

public ContextualAddOnMarkup.Card.Builder addSections(int index, ContextualAddOnMarkup.Card.Section value)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameters
Name Description
index int
value ContextualAddOnMarkup.Card.Section
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

addSections(int index, ContextualAddOnMarkup.Card.Section.Builder builderForValue)

public ContextualAddOnMarkup.Card.Builder addSections(int index, ContextualAddOnMarkup.Card.Section.Builder builderForValue)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameters
Name Description
index int
builderForValue ContextualAddOnMarkup.Card.Section.Builder
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

addSectionsBuilder()

public ContextualAddOnMarkup.Card.Section.Builder addSectionsBuilder()

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Returns
Type Description
ContextualAddOnMarkup.Card.Section.Builder

addSectionsBuilder(int index)

public ContextualAddOnMarkup.Card.Section.Builder addSectionsBuilder(int index)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameter
Name Description
index int
Returns
Type Description
ContextualAddOnMarkup.Card.Section.Builder

build()

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

buildPartial()

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

clear()

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

clearCardActions()

public ContextualAddOnMarkup.Card.Builder clearCardActions()

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Returns
Type Description
ContextualAddOnMarkup.Card.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHeader()

public ContextualAddOnMarkup.Card.Builder clearHeader()

The header of the card. A header usually contains a title and an image.

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1;

Returns
Type Description
ContextualAddOnMarkup.Card.Builder

clearName()

public ContextualAddOnMarkup.Card.Builder clearName()

Name of the card.

string name = 4;

Returns
Type Description
ContextualAddOnMarkup.Card.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ContextualAddOnMarkup.Card.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ContextualAddOnMarkup.Card.Builder
Overrides

clearSections()

public ContextualAddOnMarkup.Card.Builder clearSections()

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Returns
Type Description
ContextualAddOnMarkup.Card.Builder

clone()

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

getCardActions(int index)

public ContextualAddOnMarkup.Card.CardAction getCardActions(int index)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameter
Name Description
index int
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction

getCardActionsBuilder(int index)

public ContextualAddOnMarkup.Card.CardAction.Builder getCardActionsBuilder(int index)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameter
Name Description
index int
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction.Builder

getCardActionsBuilderList()

public List<ContextualAddOnMarkup.Card.CardAction.Builder> getCardActionsBuilderList()

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Returns
Type Description
List<Builder>

getCardActionsCount()

public int getCardActionsCount()

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Returns
Type Description
int

getCardActionsList()

public List<ContextualAddOnMarkup.Card.CardAction> getCardActionsList()

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Returns
Type Description
List<CardAction>

getCardActionsOrBuilder(int index)

public ContextualAddOnMarkup.Card.CardActionOrBuilder getCardActionsOrBuilder(int index)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameter
Name Description
index int
Returns
Type Description
ContextualAddOnMarkup.Card.CardActionOrBuilder

getCardActionsOrBuilderList()

public List<? extends ContextualAddOnMarkup.Card.CardActionOrBuilder> getCardActionsOrBuilderList()

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Returns
Type Description
List<? extends com.google.chat.v1.ContextualAddOnMarkup.Card.CardActionOrBuilder>

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHeader()

public ContextualAddOnMarkup.Card.CardHeader getHeader()

The header of the card. A header usually contains a title and an image.

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1;

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader

The header.

getHeaderBuilder()

public ContextualAddOnMarkup.Card.CardHeader.Builder getHeaderBuilder()

The header of the card. A header usually contains a title and an image.

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1;

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

getHeaderOrBuilder()

public ContextualAddOnMarkup.Card.CardHeaderOrBuilder getHeaderOrBuilder()

The header of the card. A header usually contains a title and an image.

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1;

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeaderOrBuilder

getName()

public String getName()

Name of the card.

string name = 4;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the card.

string name = 4;

Returns
Type Description
ByteString

The bytes for name.

getSections(int index)

public ContextualAddOnMarkup.Card.Section getSections(int index)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameter
Name Description
index int
Returns
Type Description
ContextualAddOnMarkup.Card.Section

getSectionsBuilder(int index)

public ContextualAddOnMarkup.Card.Section.Builder getSectionsBuilder(int index)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameter
Name Description
index int
Returns
Type Description
ContextualAddOnMarkup.Card.Section.Builder

getSectionsBuilderList()

public List<ContextualAddOnMarkup.Card.Section.Builder> getSectionsBuilderList()

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Returns
Type Description
List<Builder>

getSectionsCount()

public int getSectionsCount()

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Returns
Type Description
int

getSectionsList()

public List<ContextualAddOnMarkup.Card.Section> getSectionsList()

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Returns
Type Description
List<Section>

getSectionsOrBuilder(int index)

public ContextualAddOnMarkup.Card.SectionOrBuilder getSectionsOrBuilder(int index)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameter
Name Description
index int
Returns
Type Description
ContextualAddOnMarkup.Card.SectionOrBuilder

getSectionsOrBuilderList()

public List<? extends ContextualAddOnMarkup.Card.SectionOrBuilder> getSectionsOrBuilderList()

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Returns
Type Description
List<? extends com.google.chat.v1.ContextualAddOnMarkup.Card.SectionOrBuilder>

hasHeader()

public boolean hasHeader()

The header of the card. A header usually contains a title and an image.

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1;

Returns
Type Description
boolean

Whether the header field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContextualAddOnMarkup.Card other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ContextualAddOnMarkup.Card.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ContextualAddOnMarkup.Card.Builder
Overrides

mergeHeader(ContextualAddOnMarkup.Card.CardHeader value)

public ContextualAddOnMarkup.Card.Builder mergeHeader(ContextualAddOnMarkup.Card.CardHeader value)

The header of the card. A header usually contains a title and an image.

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1;

Parameter
Name Description
value ContextualAddOnMarkup.Card.CardHeader
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCardActions(int index)

public ContextualAddOnMarkup.Card.Builder removeCardActions(int index)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameter
Name Description
index int
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

removeSections(int index)

public ContextualAddOnMarkup.Card.Builder removeSections(int index)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameter
Name Description
index int
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

setCardActions(int index, ContextualAddOnMarkup.Card.CardAction value)

public ContextualAddOnMarkup.Card.Builder setCardActions(int index, ContextualAddOnMarkup.Card.CardAction value)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameters
Name Description
index int
value ContextualAddOnMarkup.Card.CardAction
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

setCardActions(int index, ContextualAddOnMarkup.Card.CardAction.Builder builderForValue)

public ContextualAddOnMarkup.Card.Builder setCardActions(int index, ContextualAddOnMarkup.Card.CardAction.Builder builderForValue)

The actions of this card.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3;

Parameters
Name Description
index int
builderForValue ContextualAddOnMarkup.Card.CardAction.Builder
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHeader(ContextualAddOnMarkup.Card.CardHeader value)

public ContextualAddOnMarkup.Card.Builder setHeader(ContextualAddOnMarkup.Card.CardHeader value)

The header of the card. A header usually contains a title and an image.

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1;

Parameter
Name Description
value ContextualAddOnMarkup.Card.CardHeader
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

setHeader(ContextualAddOnMarkup.Card.CardHeader.Builder builderForValue)

public ContextualAddOnMarkup.Card.Builder setHeader(ContextualAddOnMarkup.Card.CardHeader.Builder builderForValue)

The header of the card. A header usually contains a title and an image.

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1;

Parameter
Name Description
builderForValue ContextualAddOnMarkup.Card.CardHeader.Builder
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

setName(String value)

public ContextualAddOnMarkup.Card.Builder setName(String value)

Name of the card.

string name = 4;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ContextualAddOnMarkup.Card.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ContextualAddOnMarkup.Card.Builder setNameBytes(ByteString value)

Name of the card.

string name = 4;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ContextualAddOnMarkup.Card.Builder

This builder for chaining.

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

public ContextualAddOnMarkup.Card.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ContextualAddOnMarkup.Card.Builder
Overrides

setSections(int index, ContextualAddOnMarkup.Card.Section value)

public ContextualAddOnMarkup.Card.Builder setSections(int index, ContextualAddOnMarkup.Card.Section value)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameters
Name Description
index int
value ContextualAddOnMarkup.Card.Section
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

setSections(int index, ContextualAddOnMarkup.Card.Section.Builder builderForValue)

public ContextualAddOnMarkup.Card.Builder setSections(int index, ContextualAddOnMarkup.Card.Section.Builder builderForValue)

Sections are separated by a line divider.

repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2;

Parameters
Name Description
index int
builderForValue ContextualAddOnMarkup.Card.Section.Builder
Returns
Type Description
ContextualAddOnMarkup.Card.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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