Class ContextualAddOnMarkup.Card.Section (0.13.0)

public static final class ContextualAddOnMarkup.Card.Section extends GeneratedMessageV3 implements ContextualAddOnMarkup.Card.SectionOrBuilder

A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there's currently no need for layout properties (for example, float).

Protobuf type google.chat.v1.ContextualAddOnMarkup.Card.Section

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ContextualAddOnMarkup.Card.Section

Static Fields

HEADER_FIELD_NUMBER

public static final int HEADER_FIELD_NUMBER
Field Value
Type Description
int

WIDGETS_FIELD_NUMBER

public static final int WIDGETS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ContextualAddOnMarkup.Card.Section getDefaultInstance()
Returns
Type Description
ContextualAddOnMarkup.Card.Section

getDescriptor()

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

newBuilder()

public static ContextualAddOnMarkup.Card.Section.Builder newBuilder()
Returns
Type Description
ContextualAddOnMarkup.Card.Section.Builder

newBuilder(ContextualAddOnMarkup.Card.Section prototype)

public static ContextualAddOnMarkup.Card.Section.Builder newBuilder(ContextualAddOnMarkup.Card.Section prototype)
Parameter
Name Description
prototype ContextualAddOnMarkup.Card.Section
Returns
Type Description
ContextualAddOnMarkup.Card.Section.Builder

parseDelimitedFrom(InputStream input)

public static ContextualAddOnMarkup.Card.Section parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.Section parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ContextualAddOnMarkup.Card.Section parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.Section parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ContextualAddOnMarkup.Card.Section parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.Section parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ContextualAddOnMarkup.Card.Section parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.Section parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ContextualAddOnMarkup.Card.Section parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.Section parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ContextualAddOnMarkup.Card.Section parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.Section parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.Section
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ContextualAddOnMarkup.Card.Section> parser()
Returns
Type Description
Parser<Section>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getHeader()

public String getHeader()

The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.

string header = 1;

Returns
Type Description
String

The header.

getHeaderBytes()

public ByteString getHeaderBytes()

The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.

string header = 1;

Returns
Type Description
ByteString

The bytes for header.

getParserForType()

public Parser<ContextualAddOnMarkup.Card.Section> getParserForType()
Returns
Type Description
Parser<Section>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWidgets(int index)

public WidgetMarkup getWidgets(int index)

A section must contain at least one widget.

repeated .google.chat.v1.WidgetMarkup widgets = 2;

Parameter
Name Description
index int
Returns
Type Description
WidgetMarkup

getWidgetsCount()

public int getWidgetsCount()

A section must contain at least one widget.

repeated .google.chat.v1.WidgetMarkup widgets = 2;

Returns
Type Description
int

getWidgetsList()

public List<WidgetMarkup> getWidgetsList()

A section must contain at least one widget.

repeated .google.chat.v1.WidgetMarkup widgets = 2;

Returns
Type Description
List<WidgetMarkup>

getWidgetsOrBuilder(int index)

public WidgetMarkupOrBuilder getWidgetsOrBuilder(int index)

A section must contain at least one widget.

repeated .google.chat.v1.WidgetMarkup widgets = 2;

Parameter
Name Description
index int
Returns
Type Description
WidgetMarkupOrBuilder

getWidgetsOrBuilderList()

public List<? extends WidgetMarkupOrBuilder> getWidgetsOrBuilderList()

A section must contain at least one widget.

repeated .google.chat.v1.WidgetMarkup widgets = 2;

Returns
Type Description
List<? extends com.google.chat.v1.WidgetMarkupOrBuilder>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ContextualAddOnMarkup.Card.Section.Builder newBuilderForType()
Returns
Type Description
ContextualAddOnMarkup.Card.Section.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ContextualAddOnMarkup.Card.Section.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ContextualAddOnMarkup.Card.Section.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ContextualAddOnMarkup.Card.Section.Builder toBuilder()
Returns
Type Description
ContextualAddOnMarkup.Card.Section.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException