Class WidgetMarkup.Button.Builder (0.19.0)

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

A button. Can be a text button or an image button.

Protobuf type google.chat.v1.WidgetMarkup.Button

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WidgetMarkup.Button.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides

build()

public WidgetMarkup.Button build()
Returns
Type Description
WidgetMarkup.Button

buildPartial()

public WidgetMarkup.Button buildPartial()
Returns
Type Description
WidgetMarkup.Button

clear()

public WidgetMarkup.Button.Builder clear()
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WidgetMarkup.Button.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides

clearImageButton()

public WidgetMarkup.Button.Builder clearImageButton()

A button with image and onclick action.

.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;

Returns
Type Description
WidgetMarkup.Button.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public WidgetMarkup.Button.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides

clearTextButton()

public WidgetMarkup.Button.Builder clearTextButton()

A button with text and onclick action.

.google.chat.v1.WidgetMarkup.TextButton text_button = 1;

Returns
Type Description
WidgetMarkup.Button.Builder

clearType()

public WidgetMarkup.Button.Builder clearType()
Returns
Type Description
WidgetMarkup.Button.Builder

clone()

public WidgetMarkup.Button.Builder clone()
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides

getDefaultInstanceForType()

public WidgetMarkup.Button getDefaultInstanceForType()
Returns
Type Description
WidgetMarkup.Button

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getImageButton()

public WidgetMarkup.ImageButton getImageButton()

A button with image and onclick action.

.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;

Returns
Type Description
WidgetMarkup.ImageButton

The imageButton.

getImageButtonBuilder()

public WidgetMarkup.ImageButton.Builder getImageButtonBuilder()

A button with image and onclick action.

.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;

Returns
Type Description
WidgetMarkup.ImageButton.Builder

getImageButtonOrBuilder()

public WidgetMarkup.ImageButtonOrBuilder getImageButtonOrBuilder()

A button with image and onclick action.

.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;

Returns
Type Description
WidgetMarkup.ImageButtonOrBuilder

getTextButton()

public WidgetMarkup.TextButton getTextButton()

A button with text and onclick action.

.google.chat.v1.WidgetMarkup.TextButton text_button = 1;

Returns
Type Description
WidgetMarkup.TextButton

The textButton.

getTextButtonBuilder()

public WidgetMarkup.TextButton.Builder getTextButtonBuilder()

A button with text and onclick action.

.google.chat.v1.WidgetMarkup.TextButton text_button = 1;

Returns
Type Description
WidgetMarkup.TextButton.Builder

getTextButtonOrBuilder()

public WidgetMarkup.TextButtonOrBuilder getTextButtonOrBuilder()

A button with text and onclick action.

.google.chat.v1.WidgetMarkup.TextButton text_button = 1;

Returns
Type Description
WidgetMarkup.TextButtonOrBuilder

getTypeCase()

public WidgetMarkup.Button.TypeCase getTypeCase()
Returns
Type Description
WidgetMarkup.Button.TypeCase

hasImageButton()

public boolean hasImageButton()

A button with image and onclick action.

.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;

Returns
Type Description
boolean

Whether the imageButton field is set.

hasTextButton()

public boolean hasTextButton()

A button with text and onclick action.

.google.chat.v1.WidgetMarkup.TextButton text_button = 1;

Returns
Type Description
boolean

Whether the textButton field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WidgetMarkup.Button other)

public WidgetMarkup.Button.Builder mergeFrom(WidgetMarkup.Button other)
Parameter
Name Description
other WidgetMarkup.Button
Returns
Type Description
WidgetMarkup.Button.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WidgetMarkup.Button.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WidgetMarkup.Button.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides

mergeImageButton(WidgetMarkup.ImageButton value)

public WidgetMarkup.Button.Builder mergeImageButton(WidgetMarkup.ImageButton value)

A button with image and onclick action.

.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;

Parameter
Name Description
value WidgetMarkup.ImageButton
Returns
Type Description
WidgetMarkup.Button.Builder

mergeTextButton(WidgetMarkup.TextButton value)

public WidgetMarkup.Button.Builder mergeTextButton(WidgetMarkup.TextButton value)

A button with text and onclick action.

.google.chat.v1.WidgetMarkup.TextButton text_button = 1;

Parameter
Name Description
value WidgetMarkup.TextButton
Returns
Type Description
WidgetMarkup.Button.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WidgetMarkup.Button.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public WidgetMarkup.Button.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides

setImageButton(WidgetMarkup.ImageButton value)

public WidgetMarkup.Button.Builder setImageButton(WidgetMarkup.ImageButton value)

A button with image and onclick action.

.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;

Parameter
Name Description
value WidgetMarkup.ImageButton
Returns
Type Description
WidgetMarkup.Button.Builder

setImageButton(WidgetMarkup.ImageButton.Builder builderForValue)

public WidgetMarkup.Button.Builder setImageButton(WidgetMarkup.ImageButton.Builder builderForValue)

A button with image and onclick action.

.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;

Parameter
Name Description
builderForValue WidgetMarkup.ImageButton.Builder
Returns
Type Description
WidgetMarkup.Button.Builder

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

public WidgetMarkup.Button.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides

setTextButton(WidgetMarkup.TextButton value)

public WidgetMarkup.Button.Builder setTextButton(WidgetMarkup.TextButton value)

A button with text and onclick action.

.google.chat.v1.WidgetMarkup.TextButton text_button = 1;

Parameter
Name Description
value WidgetMarkup.TextButton
Returns
Type Description
WidgetMarkup.Button.Builder

setTextButton(WidgetMarkup.TextButton.Builder builderForValue)

public WidgetMarkup.Button.Builder setTextButton(WidgetMarkup.TextButton.Builder builderForValue)

A button with text and onclick action.

.google.chat.v1.WidgetMarkup.TextButton text_button = 1;

Parameter
Name Description
builderForValue WidgetMarkup.TextButton.Builder
Returns
Type Description
WidgetMarkup.Button.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final WidgetMarkup.Button.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides