Class WidgetMarkup.ImageButton.Builder (0.4.0)

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

An image button with an onclick action.

Protobuf type google.chat.v1.WidgetMarkup.ImageButton

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIcon()

public WidgetMarkup.ImageButton.Builder clearIcon()

The icon specified by an enum that indices to an icon provided by Chat API.

.google.chat.v1.WidgetMarkup.Icon icon = 1;

Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

This builder for chaining.

clearIconUrl()

public WidgetMarkup.ImageButton.Builder clearIconUrl()

The icon specified by a URL.

string icon_url = 3;

Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

This builder for chaining.

clearIcons()

public WidgetMarkup.ImageButton.Builder clearIcons()
Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

clearName()

public WidgetMarkup.ImageButton.Builder clearName()

The name of this image_button that's used for accessibility. Default value is provided if this name isn't specified.

string name = 4;

Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

This builder for chaining.

clearOnClick()

public WidgetMarkup.ImageButton.Builder clearOnClick()

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIcon()

public WidgetMarkup.Icon getIcon()

The icon specified by an enum that indices to an icon provided by Chat API.

.google.chat.v1.WidgetMarkup.Icon icon = 1;

Returns
TypeDescription
WidgetMarkup.Icon

The icon.

getIconUrl()

public String getIconUrl()

The icon specified by a URL.

string icon_url = 3;

Returns
TypeDescription
String

The iconUrl.

getIconUrlBytes()

public ByteString getIconUrlBytes()

The icon specified by a URL.

string icon_url = 3;

Returns
TypeDescription
ByteString

The bytes for iconUrl.

getIconValue()

public int getIconValue()

The icon specified by an enum that indices to an icon provided by Chat API.

.google.chat.v1.WidgetMarkup.Icon icon = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for icon.

getIconsCase()

public WidgetMarkup.ImageButton.IconsCase getIconsCase()
Returns
TypeDescription
WidgetMarkup.ImageButton.IconsCase

getName()

public String getName()

The name of this image_button that's used for accessibility. Default value is provided if this name isn't specified.

string name = 4;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of this image_button that's used for accessibility. Default value is provided if this name isn't specified.

string name = 4;

Returns
TypeDescription
ByteString

The bytes for name.

getOnClick()

public WidgetMarkup.OnClick getOnClick()

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
TypeDescription
WidgetMarkup.OnClick

The onClick.

getOnClickBuilder()

public WidgetMarkup.OnClick.Builder getOnClickBuilder()

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
TypeDescription
WidgetMarkup.OnClick.Builder

getOnClickOrBuilder()

public WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
TypeDescription
WidgetMarkup.OnClickOrBuilder

hasIcon()

public boolean hasIcon()

The icon specified by an enum that indices to an icon provided by Chat API.

.google.chat.v1.WidgetMarkup.Icon icon = 1;

Returns
TypeDescription
boolean

Whether the icon field is set.

hasIconUrl()

public boolean hasIconUrl()

The icon specified by a URL.

string icon_url = 3;

Returns
TypeDescription
boolean

Whether the iconUrl field is set.

hasOnClick()

public boolean hasOnClick()

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
TypeDescription
boolean

Whether the onClick field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WidgetMarkup.ImageButton other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOnClick(WidgetMarkup.OnClick value)

public WidgetMarkup.ImageButton.Builder mergeOnClick(WidgetMarkup.OnClick value)

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Parameter
NameDescription
valueWidgetMarkup.OnClick
Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIcon(WidgetMarkup.Icon value)

public WidgetMarkup.ImageButton.Builder setIcon(WidgetMarkup.Icon value)

The icon specified by an enum that indices to an icon provided by Chat API.

.google.chat.v1.WidgetMarkup.Icon icon = 1;

Parameter
NameDescription
valueWidgetMarkup.Icon

The icon to set.

Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

This builder for chaining.

setIconUrl(String value)

public WidgetMarkup.ImageButton.Builder setIconUrl(String value)

The icon specified by a URL.

string icon_url = 3;

Parameter
NameDescription
valueString

The iconUrl to set.

Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

This builder for chaining.

setIconUrlBytes(ByteString value)

public WidgetMarkup.ImageButton.Builder setIconUrlBytes(ByteString value)

The icon specified by a URL.

string icon_url = 3;

Parameter
NameDescription
valueByteString

The bytes for iconUrl to set.

Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

This builder for chaining.

setIconValue(int value)

public WidgetMarkup.ImageButton.Builder setIconValue(int value)

The icon specified by an enum that indices to an icon provided by Chat API.

.google.chat.v1.WidgetMarkup.Icon icon = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for icon to set.

Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

This builder for chaining.

setName(String value)

public WidgetMarkup.ImageButton.Builder setName(String value)

The name of this image_button that's used for accessibility. Default value is provided if this name isn't specified.

string name = 4;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

This builder for chaining.

setNameBytes(ByteString value)

public WidgetMarkup.ImageButton.Builder setNameBytes(ByteString value)

The name of this image_button that's used for accessibility. Default value is provided if this name isn't specified.

string name = 4;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

This builder for chaining.

setOnClick(WidgetMarkup.OnClick value)

public WidgetMarkup.ImageButton.Builder setOnClick(WidgetMarkup.OnClick value)

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Parameter
NameDescription
valueWidgetMarkup.OnClick
Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

setOnClick(WidgetMarkup.OnClick.Builder builderForValue)

public WidgetMarkup.ImageButton.Builder setOnClick(WidgetMarkup.OnClick.Builder builderForValue)

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Parameter
NameDescription
builderForValueWidgetMarkup.OnClick.Builder
Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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