Class WidgetMarkup.TextButton (0.3.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
TypeDescription
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(WidgetMarkup.TextButton prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getOnClick()

public WidgetMarkup.OnClick getOnClick()

The onclick action of the button.

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

Returns
TypeDescription
WidgetMarkup.OnClick

The onClick.

getOnClickOrBuilder()

public WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()

The onclick action of the button.

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

Returns
TypeDescription
WidgetMarkup.OnClickOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getText()

public String getText()

The text of the button.

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

The text of the button.

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.

hasOnClick()

public boolean hasOnClick()

The onclick action of the button.

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

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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