Class WidgetMarkup.Builder (0.3.0)

public static final class WidgetMarkup.Builder extends GeneratedMessageV3.Builder<WidgetMarkup.Builder> implements WidgetMarkupOrBuilder

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

Protobuf type google.chat.v1.WidgetMarkup

Static Methods

getDescriptor()

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

Methods

addAllButtons(Iterable<? extends WidgetMarkup.Button> values)

public WidgetMarkup.Builder addAllButtons(Iterable<? extends WidgetMarkup.Button> values)

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
NameDescription
valuesIterable<? extends com.google.chat.v1.WidgetMarkup.Button>
Returns
TypeDescription
WidgetMarkup.Builder

addButtons(WidgetMarkup.Button value)

public WidgetMarkup.Builder addButtons(WidgetMarkup.Button value)

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
NameDescription
valueWidgetMarkup.Button
Returns
TypeDescription
WidgetMarkup.Builder

addButtons(WidgetMarkup.Button.Builder builderForValue)

public WidgetMarkup.Builder addButtons(WidgetMarkup.Button.Builder builderForValue)

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
NameDescription
builderForValueWidgetMarkup.Button.Builder
Returns
TypeDescription
WidgetMarkup.Builder

addButtons(int index, WidgetMarkup.Button value)

public WidgetMarkup.Builder addButtons(int index, WidgetMarkup.Button value)

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;

Parameters
NameDescription
indexint
valueWidgetMarkup.Button
Returns
TypeDescription
WidgetMarkup.Builder

addButtons(int index, WidgetMarkup.Button.Builder builderForValue)

public WidgetMarkup.Builder addButtons(int index, WidgetMarkup.Button.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueWidgetMarkup.Button.Builder
Returns
TypeDescription
WidgetMarkup.Builder

addButtonsBuilder()

public WidgetMarkup.Button.Builder addButtonsBuilder()

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
TypeDescription
WidgetMarkup.Button.Builder

addButtonsBuilder(int index)

public WidgetMarkup.Button.Builder addButtonsBuilder(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
NameDescription
indexint
Returns
TypeDescription
WidgetMarkup.Button.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WidgetMarkup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WidgetMarkup.Builder
Overrides

build()

public WidgetMarkup build()
Returns
TypeDescription
WidgetMarkup

buildPartial()

public WidgetMarkup buildPartial()
Returns
TypeDescription
WidgetMarkup

clear()

public WidgetMarkup.Builder clear()
Returns
TypeDescription
WidgetMarkup.Builder
Overrides

clearButtons()

public WidgetMarkup.Builder clearButtons()

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
TypeDescription
WidgetMarkup.Builder

clearData()

public WidgetMarkup.Builder clearData()
Returns
TypeDescription
WidgetMarkup.Builder

clearField(Descriptors.FieldDescriptor field)

public WidgetMarkup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WidgetMarkup.Builder
Overrides

clearImage()

public WidgetMarkup.Builder clearImage()

Display an image in this widget.

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

Returns
TypeDescription
WidgetMarkup.Builder

clearKeyValue()

public WidgetMarkup.Builder clearKeyValue()

Display a key value item in this widget.

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

Returns
TypeDescription
WidgetMarkup.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public WidgetMarkup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WidgetMarkup.Builder
Overrides

clearTextParagraph()

public WidgetMarkup.Builder clearTextParagraph()

Display a text paragraph in this widget.

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

Returns
TypeDescription
WidgetMarkup.Builder

clone()

public WidgetMarkup.Builder clone()
Returns
TypeDescription
WidgetMarkup.Builder
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
NameDescription
indexint
Returns
TypeDescription
WidgetMarkup.Button

getButtonsBuilder(int index)

public WidgetMarkup.Button.Builder getButtonsBuilder(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
NameDescription
indexint
Returns
TypeDescription
WidgetMarkup.Button.Builder

getButtonsBuilderList()

public List<WidgetMarkup.Button.Builder> getButtonsBuilderList()

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
TypeDescription
List<Builder>

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

getDataCase()

public WidgetMarkup.DataCase getDataCase()
Returns
TypeDescription
WidgetMarkup.DataCase

getDefaultInstanceForType()

public WidgetMarkup getDefaultInstanceForType()
Returns
TypeDescription
WidgetMarkup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImage()

public WidgetMarkup.Image getImage()

Display an image in this widget.

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

Returns
TypeDescription
WidgetMarkup.Image

The image.

getImageBuilder()

public WidgetMarkup.Image.Builder getImageBuilder()

Display an image in this widget.

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

Returns
TypeDescription
WidgetMarkup.Image.Builder

getImageOrBuilder()

public WidgetMarkup.ImageOrBuilder getImageOrBuilder()

Display an image in this widget.

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

Returns
TypeDescription
WidgetMarkup.ImageOrBuilder

getKeyValue()

public WidgetMarkup.KeyValue getKeyValue()

Display a key value item in this widget.

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

Returns
TypeDescription
WidgetMarkup.KeyValue

The keyValue.

getKeyValueBuilder()

public WidgetMarkup.KeyValue.Builder getKeyValueBuilder()

Display a key value item in this widget.

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

Returns
TypeDescription
WidgetMarkup.KeyValue.Builder

getKeyValueOrBuilder()

public WidgetMarkup.KeyValueOrBuilder getKeyValueOrBuilder()

Display a key value item in this widget.

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

Returns
TypeDescription
WidgetMarkup.KeyValueOrBuilder

getTextParagraph()

public WidgetMarkup.TextParagraph getTextParagraph()

Display a text paragraph in this widget.

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

Returns
TypeDescription
WidgetMarkup.TextParagraph

The textParagraph.

getTextParagraphBuilder()

public WidgetMarkup.TextParagraph.Builder getTextParagraphBuilder()

Display a text paragraph in this widget.

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

Returns
TypeDescription
WidgetMarkup.TextParagraph.Builder

getTextParagraphOrBuilder()

public WidgetMarkup.TextParagraphOrBuilder getTextParagraphOrBuilder()

Display a text paragraph in this widget.

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

Returns
TypeDescription
WidgetMarkup.TextParagraphOrBuilder

hasImage()

public boolean hasImage()

Display an image in this widget.

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

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

Whether the textParagraph field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WidgetMarkup other)

public WidgetMarkup.Builder mergeFrom(WidgetMarkup other)
Parameter
NameDescription
otherWidgetMarkup
Returns
TypeDescription
WidgetMarkup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public WidgetMarkup.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WidgetMarkup.Builder
Overrides

mergeImage(WidgetMarkup.Image value)

public WidgetMarkup.Builder mergeImage(WidgetMarkup.Image value)

Display an image in this widget.

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

Parameter
NameDescription
valueWidgetMarkup.Image
Returns
TypeDescription
WidgetMarkup.Builder

mergeKeyValue(WidgetMarkup.KeyValue value)

public WidgetMarkup.Builder mergeKeyValue(WidgetMarkup.KeyValue value)

Display a key value item in this widget.

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

Parameter
NameDescription
valueWidgetMarkup.KeyValue
Returns
TypeDescription
WidgetMarkup.Builder

mergeTextParagraph(WidgetMarkup.TextParagraph value)

public WidgetMarkup.Builder mergeTextParagraph(WidgetMarkup.TextParagraph value)

Display a text paragraph in this widget.

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

Parameter
NameDescription
valueWidgetMarkup.TextParagraph
Returns
TypeDescription
WidgetMarkup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WidgetMarkup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WidgetMarkup.Builder
Overrides

removeButtons(int index)

public WidgetMarkup.Builder removeButtons(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
NameDescription
indexint
Returns
TypeDescription
WidgetMarkup.Builder

setButtons(int index, WidgetMarkup.Button value)

public WidgetMarkup.Builder setButtons(int index, WidgetMarkup.Button value)

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;

Parameters
NameDescription
indexint
valueWidgetMarkup.Button
Returns
TypeDescription
WidgetMarkup.Builder

setButtons(int index, WidgetMarkup.Button.Builder builderForValue)

public WidgetMarkup.Builder setButtons(int index, WidgetMarkup.Button.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueWidgetMarkup.Button.Builder
Returns
TypeDescription
WidgetMarkup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public WidgetMarkup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WidgetMarkup.Builder
Overrides

setImage(WidgetMarkup.Image value)

public WidgetMarkup.Builder setImage(WidgetMarkup.Image value)

Display an image in this widget.

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

Parameter
NameDescription
valueWidgetMarkup.Image
Returns
TypeDescription
WidgetMarkup.Builder

setImage(WidgetMarkup.Image.Builder builderForValue)

public WidgetMarkup.Builder setImage(WidgetMarkup.Image.Builder builderForValue)

Display an image in this widget.

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

Parameter
NameDescription
builderForValueWidgetMarkup.Image.Builder
Returns
TypeDescription
WidgetMarkup.Builder

setKeyValue(WidgetMarkup.KeyValue value)

public WidgetMarkup.Builder setKeyValue(WidgetMarkup.KeyValue value)

Display a key value item in this widget.

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

Parameter
NameDescription
valueWidgetMarkup.KeyValue
Returns
TypeDescription
WidgetMarkup.Builder

setKeyValue(WidgetMarkup.KeyValue.Builder builderForValue)

public WidgetMarkup.Builder setKeyValue(WidgetMarkup.KeyValue.Builder builderForValue)

Display a key value item in this widget.

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

Parameter
NameDescription
builderForValueWidgetMarkup.KeyValue.Builder
Returns
TypeDescription
WidgetMarkup.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public WidgetMarkup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WidgetMarkup.Builder
Overrides

setTextParagraph(WidgetMarkup.TextParagraph value)

public WidgetMarkup.Builder setTextParagraph(WidgetMarkup.TextParagraph value)

Display a text paragraph in this widget.

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

Parameter
NameDescription
valueWidgetMarkup.TextParagraph
Returns
TypeDescription
WidgetMarkup.Builder

setTextParagraph(WidgetMarkup.TextParagraph.Builder builderForValue)

public WidgetMarkup.Builder setTextParagraph(WidgetMarkup.TextParagraph.Builder builderForValue)

Display a text paragraph in this widget.

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

Parameter
NameDescription
builderForValueWidgetMarkup.TextParagraph.Builder
Returns
TypeDescription
WidgetMarkup.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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