Class ContextualAddOnMarkup.Card (0.1.0)

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

CARD_ACTIONS_FIELD_NUMBER

public static final int CARD_ACTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

HEADER_FIELD_NUMBER

public static final int HEADER_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SECTIONS_FIELD_NUMBER

public static final int SECTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(ContextualAddOnMarkup.Card prototype)

public static ContextualAddOnMarkup.Card.Builder newBuilder(ContextualAddOnMarkup.Card prototype)
Parameter
NameDescription
prototypeContextualAddOnMarkup.Card
Returns
TypeDescription
ContextualAddOnMarkup.Card.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

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.

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.

getParserForType()

public Parser<ContextualAddOnMarkup.Card> getParserForType()
Returns
TypeDescription
Parser<Card>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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