Class WidgetMarkup (0.19.0)

public final class WidgetMarkup extends GeneratedMessageV3 implements WidgetMarkupOrBuilder

A widget is a UI element that presents text and images.

Protobuf type google.chat.v1.WidgetMarkup

Static Fields

BUTTONS_FIELD_NUMBER

public static final int BUTTONS_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_FIELD_NUMBER

public static final int IMAGE_FIELD_NUMBER
Field Value
Type Description
int

KEY_VALUE_FIELD_NUMBER

public static final int KEY_VALUE_FIELD_NUMBER
Field Value
Type Description
int

TEXT_PARAGRAPH_FIELD_NUMBER

public static final int TEXT_PARAGRAPH_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WidgetMarkup getDefaultInstance()
Returns
Type Description
WidgetMarkup

getDescriptor()

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

newBuilder()

public static WidgetMarkup.Builder newBuilder()
Returns
Type Description
WidgetMarkup.Builder

newBuilder(WidgetMarkup prototype)

public static WidgetMarkup.Builder newBuilder(WidgetMarkup prototype)
Parameter
Name Description
prototype WidgetMarkup
Returns
Type Description
WidgetMarkup.Builder

parseDelimitedFrom(InputStream input)

public static WidgetMarkup parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WidgetMarkup parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WidgetMarkup parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WidgetMarkup parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WidgetMarkup parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WidgetMarkup parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WidgetMarkup> parser()
Returns
Type Description
Parser<WidgetMarkup>

Methods

equals(Object obj)

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

getButtons(int index)

public WidgetMarkup.Button getButtons(int index)

A list of buttons. Buttons is also oneof data and only one of these fields should be set.

repeated .google.chat.v1.WidgetMarkup.Button buttons = 6;

Parameter
Name Description
index int
Returns
Type Description
WidgetMarkup.Button

getButtonsCount()

public int getButtonsCount()

A list of buttons. Buttons is also oneof data and only one of these fields should be set.

repeated .google.chat.v1.WidgetMarkup.Button buttons = 6;

Returns
Type Description
int

getButtonsList()

public List<WidgetMarkup.Button> getButtonsList()

A list of buttons. Buttons is also oneof data and only one of these fields should be set.

repeated .google.chat.v1.WidgetMarkup.Button buttons = 6;

Returns
Type Description
List<Button>

getButtonsOrBuilder(int index)

public WidgetMarkup.ButtonOrBuilder getButtonsOrBuilder(int index)

A list of buttons. Buttons is also oneof data and only one of these fields should be set.

repeated .google.chat.v1.WidgetMarkup.Button buttons = 6;

Parameter
Name Description
index int
Returns
Type Description
WidgetMarkup.ButtonOrBuilder

getButtonsOrBuilderList()

public List<? extends WidgetMarkup.ButtonOrBuilder> getButtonsOrBuilderList()

A list of buttons. Buttons is also oneof data and only one of these fields should be set.

repeated .google.chat.v1.WidgetMarkup.Button buttons = 6;

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

getDataCase()

public WidgetMarkup.DataCase getDataCase()
Returns
Type Description
WidgetMarkup.DataCase

getDefaultInstanceForType()

public WidgetMarkup getDefaultInstanceForType()
Returns
Type Description
WidgetMarkup

getImage()

public WidgetMarkup.Image getImage()

Display an image in this widget.

.google.chat.v1.WidgetMarkup.Image image = 2;

Returns
Type Description
WidgetMarkup.Image

The image.

getImageOrBuilder()

public WidgetMarkup.ImageOrBuilder getImageOrBuilder()

Display an image in this widget.

.google.chat.v1.WidgetMarkup.Image image = 2;

Returns
Type Description
WidgetMarkup.ImageOrBuilder

getKeyValue()

public WidgetMarkup.KeyValue getKeyValue()

Display a key value item in this widget.

.google.chat.v1.WidgetMarkup.KeyValue key_value = 3;

Returns
Type Description
WidgetMarkup.KeyValue

The keyValue.

getKeyValueOrBuilder()

public WidgetMarkup.KeyValueOrBuilder getKeyValueOrBuilder()

Display a key value item in this widget.

.google.chat.v1.WidgetMarkup.KeyValue key_value = 3;

Returns
Type Description
WidgetMarkup.KeyValueOrBuilder

getParserForType()

public Parser<WidgetMarkup> getParserForType()
Returns
Type Description
Parser<WidgetMarkup>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTextParagraph()

public WidgetMarkup.TextParagraph getTextParagraph()

Display a text paragraph in this widget.

.google.chat.v1.WidgetMarkup.TextParagraph text_paragraph = 1;

Returns
Type Description
WidgetMarkup.TextParagraph

The textParagraph.

getTextParagraphOrBuilder()

public WidgetMarkup.TextParagraphOrBuilder getTextParagraphOrBuilder()

Display a text paragraph in this widget.

.google.chat.v1.WidgetMarkup.TextParagraph text_paragraph = 1;

Returns
Type Description
WidgetMarkup.TextParagraphOrBuilder

hasImage()

public boolean hasImage()

Display an image in this widget.

.google.chat.v1.WidgetMarkup.Image image = 2;

Returns
Type Description
boolean

Whether the image field is set.

hasKeyValue()

public boolean hasKeyValue()

Display a key value item in this widget.

.google.chat.v1.WidgetMarkup.KeyValue key_value = 3;

Returns
Type Description
boolean

Whether the keyValue field is set.

hasTextParagraph()

public boolean hasTextParagraph()

Display a text paragraph in this widget.

.google.chat.v1.WidgetMarkup.TextParagraph text_paragraph = 1;

Returns
Type Description
boolean

Whether the textParagraph field is set.

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 WidgetMarkup.Builder newBuilderForType()
Returns
Type Description
WidgetMarkup.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WidgetMarkup.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WidgetMarkup.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public WidgetMarkup.Builder toBuilder()
Returns
Type Description
WidgetMarkup.Builder

writeTo(CodedOutputStream output)

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