Class WidgetMarkup.TextButton (0.8.0)

public static final class WidgetMarkup.TextButton extends GeneratedMessageV3 implements WidgetMarkup.TextButtonOrBuilder

A button with text and onclick action.

Protobuf type google.chat.v1.WidgetMarkup.TextButton

Static Fields

ON_CLICK_FIELD_NUMBER

public static final int ON_CLICK_FIELD_NUMBER
Field Value
Type Description
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(WidgetMarkup.TextButton prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getOnClick()

public WidgetMarkup.OnClick getOnClick()

The onclick action of the button.

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

Returns
Type Description
WidgetMarkup.OnClick

The onClick.

getOnClickOrBuilder()

public WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()

The onclick action of the button.

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

Returns
Type Description
WidgetMarkup.OnClickOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getText()

public String getText()

The text of the button.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

The text of the button.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

hasOnClick()

public boolean hasOnClick()

The onclick action of the button.

.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
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WidgetMarkup.TextButton.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WidgetMarkup.TextButton.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.TextButton.Builder toBuilder()
Returns
Type Description
WidgetMarkup.TextButton.Builder

writeTo(CodedOutputStream output)

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