Class WidgetMarkup.Button (0.6.0)

public static final class WidgetMarkup.Button extends GeneratedMessageV3 implements WidgetMarkup.ButtonOrBuilder

A button. Can be a text button or an image button.

Protobuf type google.chat.v1.WidgetMarkup.Button

Static Fields

IMAGE_BUTTON_FIELD_NUMBER

public static final int IMAGE_BUTTON_FIELD_NUMBER
Field Value
Type Description
int

TEXT_BUTTON_FIELD_NUMBER

public static final int TEXT_BUTTON_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WidgetMarkup.Button getDefaultInstance()
Returns
Type Description
WidgetMarkup.Button

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static WidgetMarkup.Button.Builder newBuilder()
Returns
Type Description
WidgetMarkup.Button.Builder

newBuilder(WidgetMarkup.Button prototype)

public static WidgetMarkup.Button.Builder newBuilder(WidgetMarkup.Button prototype)
Parameter
Name Description
prototype WidgetMarkup.Button
Returns
Type Description
WidgetMarkup.Button.Builder

parseDelimitedFrom(InputStream input)

public static WidgetMarkup.Button parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Button parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WidgetMarkup.Button parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Button parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WidgetMarkup.Button parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Button parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WidgetMarkup.Button parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Button parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WidgetMarkup.Button parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Button parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WidgetMarkup.Button parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Button parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.Button
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WidgetMarkup.Button> parser()
Returns
Type Description
Parser<Button>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public WidgetMarkup.Button getDefaultInstanceForType()
Returns
Type Description
WidgetMarkup.Button

getImageButton()

public WidgetMarkup.ImageButton getImageButton()

A button with image and onclick action.

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

Returns
Type Description
WidgetMarkup.ImageButton

The imageButton.

getImageButtonOrBuilder()

public WidgetMarkup.ImageButtonOrBuilder getImageButtonOrBuilder()

A button with image and onclick action.

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

Returns
Type Description
WidgetMarkup.ImageButtonOrBuilder

getParserForType()

public Parser<WidgetMarkup.Button> getParserForType()
Returns
Type Description
Parser<Button>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTextButton()

public WidgetMarkup.TextButton getTextButton()

A button with text and onclick action.

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

Returns
Type Description
WidgetMarkup.TextButton

The textButton.

getTextButtonOrBuilder()

public WidgetMarkup.TextButtonOrBuilder getTextButtonOrBuilder()

A button with text and onclick action.

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

Returns
Type Description
WidgetMarkup.TextButtonOrBuilder

getTypeCase()

public WidgetMarkup.Button.TypeCase getTypeCase()
Returns
Type Description
WidgetMarkup.Button.TypeCase

hasImageButton()

public boolean hasImageButton()

A button with image and onclick action.

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

Returns
Type Description
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
Type Description
boolean

Whether the textButton field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WidgetMarkup.Button.Builder newBuilderForType()
Returns
Type Description
WidgetMarkup.Button.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WidgetMarkup.Button.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WidgetMarkup.Button.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public WidgetMarkup.Button.Builder toBuilder()
Returns
Type Description
WidgetMarkup.Button.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException