Class WidgetMarkup.ImageButton (0.4.0)

public static final class WidgetMarkup.ImageButton extends GeneratedMessageV3 implements WidgetMarkup.ImageButtonOrBuilder

An image button with an onclick action.

Protobuf type google.chat.v1.WidgetMarkup.ImageButton

Static Fields

ICON_FIELD_NUMBER

public static final int ICON_FIELD_NUMBER
Field Value
TypeDescription
int

ICON_URL_FIELD_NUMBER

public static final int ICON_URL_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ON_CLICK_FIELD_NUMBER

public static final int ON_CLICK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WidgetMarkup.ImageButton getDefaultInstance()
Returns
TypeDescription
WidgetMarkup.ImageButton

getDescriptor()

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

newBuilder()

public static WidgetMarkup.ImageButton.Builder newBuilder()
Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

newBuilder(WidgetMarkup.ImageButton prototype)

public static WidgetMarkup.ImageButton.Builder newBuilder(WidgetMarkup.ImageButton prototype)
Parameter
NameDescription
prototypeWidgetMarkup.ImageButton
Returns
TypeDescription
WidgetMarkup.ImageButton.Builder

parseDelimitedFrom(InputStream input)

public static WidgetMarkup.ImageButton parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.ImageButton parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static WidgetMarkup.ImageButton parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.ImageButton parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WidgetMarkup.ImageButton parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.ImageButton parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WidgetMarkup.ImageButton parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.ImageButton parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static WidgetMarkup.ImageButton parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.ImageButton parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static WidgetMarkup.ImageButton parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.ImageButton parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.ImageButton
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<WidgetMarkup.ImageButton> parser()
Returns
TypeDescription
Parser<ImageButton>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

getOnClickOrBuilder()

public WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()

The onclick action.

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

Returns
TypeDescription
WidgetMarkup.OnClickOrBuilder

getParserForType()

public Parser<WidgetMarkup.ImageButton> getParserForType()
Returns
TypeDescription
Parser<ImageButton>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WidgetMarkup.ImageButton.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
WidgetMarkup.ImageButton.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException