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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > WidgetMarkup.ImageButtonImplements
WidgetMarkup.ImageButtonOrBuilderStatic Fields
ICON_FIELD_NUMBER
public static final int ICON_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
ICON_URL_FIELD_NUMBER
public static final int ICON_URL_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
ON_CLICK_FIELD_NUMBER
public static final int ON_CLICK_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static WidgetMarkup.ImageButton getDefaultInstance()
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static WidgetMarkup.ImageButton.Builder newBuilder()
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
newBuilder(WidgetMarkup.ImageButton prototype)
public static WidgetMarkup.ImageButton.Builder newBuilder(WidgetMarkup.ImageButton prototype)
Parameter | |
---|---|
Name | Description |
prototype | WidgetMarkup.ImageButton |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
parseDelimitedFrom(InputStream input)
public static WidgetMarkup.ImageButton parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetMarkup.ImageButton parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static WidgetMarkup.ImageButton parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data | byte[] |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WidgetMarkup.ImageButton parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static WidgetMarkup.ImageButton parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data | ByteString |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WidgetMarkup.ImageButton parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static WidgetMarkup.ImageButton parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input | CodedInputStream |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetMarkup.ImageButton parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static WidgetMarkup.ImageButton parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetMarkup.ImageButton parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static WidgetMarkup.ImageButton parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data | ByteBuffer |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WidgetMarkup.ImageButton parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<WidgetMarkup.ImageButton> parser()
Returns | |
---|---|
Type | Description |
Parser<ImageButton> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj | Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public WidgetMarkup.ImageButton getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
WidgetMarkup.Icon | The icon. |
getIconUrl()
public String getIconUrl()
The icon specified by a URL.
string icon_url = 3;
Returns | |
---|---|
Type | Description |
String | The iconUrl. |
getIconUrlBytes()
public ByteString getIconUrlBytes()
The icon specified by a URL.
string icon_url = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
int | The enum numeric value on the wire for icon. |
getIconsCase()
public WidgetMarkup.ImageButton.IconsCase getIconsCase()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getOnClick()
public WidgetMarkup.OnClick getOnClick()
The onclick
action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
Returns | |
---|---|
Type | Description |
WidgetMarkup.OnClick | The onClick. |
getOnClickOrBuilder()
public WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()
The onclick
action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
Returns | |
---|---|
Type | Description |
WidgetMarkup.OnClickOrBuilder |
getParserForType()
public Parser<WidgetMarkup.ImageButton> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<ImageButton> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
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 | |
---|---|
Type | Description |
boolean | Whether the icon field is set. |
hasIconUrl()
public boolean hasIconUrl()
The icon specified by a URL.
string icon_url = 3;
Returns | |
---|---|
Type | Description |
boolean | Whether the iconUrl field is set. |
hasOnClick()
public boolean hasOnClick()
The onclick
action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
Returns | |
---|---|
Type | Description |
boolean | Whether the onClick field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public WidgetMarkup.ImageButton.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WidgetMarkup.ImageButton.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent | BuilderParent |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused | UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public WidgetMarkup.ImageButton.Builder toBuilder()
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output | CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |