Class ContextualAddOnMarkup.Card.Builder (0.3.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.chat.v1.ContextualAddOnMarkup.Card.CardAction>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.chat.v1.ContextualAddOnMarkup.Card.Section>
Returns
TypeDescription
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
NameDescription
valueContextualAddOnMarkup.Card.CardAction
Returns
TypeDescription
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
NameDescription
builderForValueContextualAddOnMarkup.Card.CardAction.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueContextualAddOnMarkup.Card.CardAction
Returns
TypeDescription
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
NameDescription
indexint
builderForValueContextualAddOnMarkup.Card.CardAction.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardAction.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContextualAddOnMarkup.Card.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueContextualAddOnMarkup.Card.Section
Returns
TypeDescription
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
NameDescription
builderForValueContextualAddOnMarkup.Card.Section.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueContextualAddOnMarkup.Card.Section
Returns
TypeDescription
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
NameDescription
indexint
builderForValueContextualAddOnMarkup.Card.Section.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ContextualAddOnMarkup.Card.Section.Builder

build()

public ContextualAddOnMarkup.Card build()
Returns
TypeDescription
ContextualAddOnMarkup.Card

buildPartial()

public ContextualAddOnMarkup.Card buildPartial()
Returns
TypeDescription
ContextualAddOnMarkup.Card

clear()

public ContextualAddOnMarkup.Card.Builder clear()
Returns
TypeDescription
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
TypeDescription
ContextualAddOnMarkup.Card.Builder

clearField(Descriptors.FieldDescriptor field)

public ContextualAddOnMarkup.Card.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ContextualAddOnMarkup.Card.Builder

clearName()

public ContextualAddOnMarkup.Card.Builder clearName()

Name of the card.

string name = 4;

Returns
TypeDescription
ContextualAddOnMarkup.Card.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ContextualAddOnMarkup.Card.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ContextualAddOnMarkup.Card.Builder

clone()

public ContextualAddOnMarkup.Card.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getCardActionsCount()

public int getCardActionsCount()

The actions of this card.

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

Returns
TypeDescription
int

getCardActionsList()

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

The actions of this card.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.chat.v1.ContextualAddOnMarkup.Card.CardActionOrBuilder>

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ContextualAddOnMarkup.Card.CardHeaderOrBuilder

getName()

public String getName()

Name of the card.

string name = 4;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the card.

string name = 4;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getSectionsCount()

public int getSectionsCount()

Sections are separated by a line divider.

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the header field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ContextualAddOnMarkup.Card other)

public ContextualAddOnMarkup.Card.Builder mergeFrom(ContextualAddOnMarkup.Card other)
Parameter
NameDescription
otherContextualAddOnMarkup.Card
Returns
TypeDescription
ContextualAddOnMarkup.Card.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContextualAddOnMarkup.Card.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContextualAddOnMarkup.Card.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ContextualAddOnMarkup.Card.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueContextualAddOnMarkup.Card.CardHeader
Returns
TypeDescription
ContextualAddOnMarkup.Card.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContextualAddOnMarkup.Card.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueContextualAddOnMarkup.Card.CardAction
Returns
TypeDescription
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
NameDescription
indexint
builderForValueContextualAddOnMarkup.Card.CardAction.Builder
Returns
TypeDescription
ContextualAddOnMarkup.Card.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ContextualAddOnMarkup.Card.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueContextualAddOnMarkup.Card.CardHeader
Returns
TypeDescription
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
NameDescription
builderForValueContextualAddOnMarkup.Card.CardHeader.Builder
Returns
TypeDescription
ContextualAddOnMarkup.Card.Builder

setName(String value)

public ContextualAddOnMarkup.Card.Builder setName(String value)

Name of the card.

string name = 4;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueContextualAddOnMarkup.Card.Section
Returns
TypeDescription
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
NameDescription
indexint
builderForValueContextualAddOnMarkup.Card.Section.Builder
Returns
TypeDescription
ContextualAddOnMarkup.Card.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ContextualAddOnMarkup.Card.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContextualAddOnMarkup.Card.Builder
Overrides