Class ContextualAddOnMarkup.Card.Section (0.3.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
TypeDescription
int

WIDGETS_FIELD_NUMBER

public static final int WIDGETS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(ContextualAddOnMarkup.Card.Section prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ContextualAddOnMarkup.Card.Section getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for header.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
WidgetMarkup

getWidgetsCount()

public int getWidgetsCount()

A section must contain at least one widget.

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

Returns
TypeDescription
int

getWidgetsList()

public List<WidgetMarkup> getWidgetsList()

A section must contain at least one widget.

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

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

getWidgetsOrBuilderList()

public List<? extends WidgetMarkupOrBuilder> getWidgetsOrBuilderList()

A section must contain at least one widget.

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

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

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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