Class WidgetMarkup.Button (0.1.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
TypeDescription
int

TEXT_BUTTON_FIELD_NUMBER

public static final int TEXT_BUTTON_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(WidgetMarkup.Button prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getImageButton()

public WidgetMarkup.ImageButton getImageButton()

A button with image and onclick action.

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

Returns
TypeDescription
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
TypeDescription
WidgetMarkup.ImageButtonOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTextButton()

public WidgetMarkup.TextButton getTextButton()

A button with text and onclick action.

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

Returns
TypeDescription
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
TypeDescription
WidgetMarkup.TextButtonOrBuilder

getTypeCase()

public WidgetMarkup.Button.TypeCase getTypeCase()
Returns
TypeDescription
WidgetMarkup.Button.TypeCase

hasImageButton()

public boolean hasImageButton()

A button with image and onclick action.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the textButton 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.Button.Builder newBuilderForType()
Returns
TypeDescription
WidgetMarkup.Button.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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