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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WidgetMarkup.ImageButton.BuilderImplements
WidgetMarkup.ImageButtonOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WidgetMarkup.ImageButton.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
build()
public WidgetMarkup.ImageButton build()
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
buildPartial()
public WidgetMarkup.ImageButton buildPartial()
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
clear()
public WidgetMarkup.ImageButton.Builder clear()
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
clearField(Descriptors.FieldDescriptor field)
public WidgetMarkup.ImageButton.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
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 | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder | This builder for chaining. |
clearIconUrl()
public WidgetMarkup.ImageButton.Builder clearIconUrl()
The icon specified by a URL.
string icon_url = 3;
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder | This builder for chaining. |
clearIcons()
public WidgetMarkup.ImageButton.Builder clearIcons()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public WidgetMarkup.ImageButton.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
clone()
public WidgetMarkup.ImageButton.Builder clone()
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
getDefaultInstanceForType()
public WidgetMarkup.ImageButton getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |
getOnClickBuilder()
public WidgetMarkup.OnClick.Builder getOnClickBuilder()
The onclick
action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
Returns | |
---|---|
Type | Description |
WidgetMarkup.OnClick.Builder |
getOnClickOrBuilder()
public WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()
The onclick
action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(WidgetMarkup.ImageButton other)
public WidgetMarkup.ImageButton.Builder mergeFrom(WidgetMarkup.ImageButton other)
Parameter | |
---|---|
Name | Description |
other | WidgetMarkup.ImageButton |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WidgetMarkup.ImageButton.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public WidgetMarkup.ImageButton.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
mergeOnClick(WidgetMarkup.OnClick value)
public WidgetMarkup.ImageButton.Builder mergeOnClick(WidgetMarkup.OnClick value)
The onclick
action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
Parameter | |
---|---|
Name | Description |
value | WidgetMarkup.OnClick |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WidgetMarkup.ImageButton.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public WidgetMarkup.ImageButton.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
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 | |
---|---|
Name | Description |
value | WidgetMarkup.Icon The icon to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The iconUrl to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for iconUrl to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for icon to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | WidgetMarkup.OnClick |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | WidgetMarkup.OnClick.Builder |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WidgetMarkup.ImageButton.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final WidgetMarkup.ImageButton.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WidgetMarkup.ImageButton.Builder |