Class WidgetMarkup.Button.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WidgetMarkup.Button build()
Returns
TypeDescription
WidgetMarkup.Button

buildPartial()

public WidgetMarkup.Button buildPartial()
Returns
TypeDescription
WidgetMarkup.Button

clear()

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

clearField(Descriptors.FieldDescriptor field)

public WidgetMarkup.Button.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
WidgetMarkup.Button.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public WidgetMarkup.Button.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
WidgetMarkup.Button.Builder

clearType()

public WidgetMarkup.Button.Builder clearType()
Returns
TypeDescription
WidgetMarkup.Button.Builder

clone()

public WidgetMarkup.Button.Builder clone()
Returns
TypeDescription
WidgetMarkup.Button.Builder
Overrides

getDefaultInstanceForType()

public WidgetMarkup.Button getDefaultInstanceForType()
Returns
TypeDescription
WidgetMarkup.Button

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImageButton()

public WidgetMarkup.ImageButton getImageButton()

A button with image and onclick action.

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

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

getImageButtonOrBuilder()

public WidgetMarkup.ImageButtonOrBuilder getImageButtonOrBuilder()

A button with image and onclick action.

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

Returns
TypeDescription
WidgetMarkup.ImageButtonOrBuilder

getTextButton()

public WidgetMarkup.TextButton getTextButton()

A button with text and onclick action.

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

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

getTextButtonOrBuilder()

public WidgetMarkup.TextButtonOrBuilder getTextButtonOrBuilder()

A button with text and onclick action.

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

Returns
TypeDescription
WidgetMarkup.TextButtonOrBuilder

getTypeCase()

public WidgetMarkup.Button.TypeCase getTypeCase()
Returns
TypeDescription
WidgetMarkup.Button.TypeCase

hasImageButton()

public boolean hasImageButton()

A button with image and onclick action.

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

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

Whether the textButton field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WidgetMarkup.Button other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public WidgetMarkup.Button.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueWidgetMarkup.ImageButton
Returns
TypeDescription
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
NameDescription
valueWidgetMarkup.TextButton
Returns
TypeDescription
WidgetMarkup.Button.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public WidgetMarkup.Button.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueWidgetMarkup.ImageButton
Returns
TypeDescription
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
NameDescription
builderForValueWidgetMarkup.ImageButton.Builder
Returns
TypeDescription
WidgetMarkup.Button.Builder

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

public WidgetMarkup.Button.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueWidgetMarkup.TextButton
Returns
TypeDescription
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
NameDescription
builderForValueWidgetMarkup.TextButton.Builder
Returns
TypeDescription
WidgetMarkup.Button.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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