Send feedback
Class WidgetMarkup.TextButton.Builder (0.17.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.17.0 keyboard_arrow_down
public static final class WidgetMarkup . TextButton . Builder extends GeneratedMessageV3 . Builder<WidgetMarkup . TextButton . Builder > implements WidgetMarkup . TextButtonOrBuilder
A button with text and onclick
action.
Protobuf type google.chat.v1.WidgetMarkup.TextButton
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WidgetMarkup . TextButton . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public WidgetMarkup . TextButton build ()
buildPartial()
public WidgetMarkup . TextButton buildPartial ()
clear()
public WidgetMarkup . TextButton . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public WidgetMarkup . TextButton . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOnClick()
public WidgetMarkup . TextButton . Builder clearOnClick ()
The onclick
action of the button.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public WidgetMarkup . TextButton . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearText()
public WidgetMarkup . TextButton . Builder clearText ()
The text of the button.
string text = 1;
clone()
public WidgetMarkup . TextButton . Builder clone ()
Overrides
getDefaultInstanceForType()
public WidgetMarkup . TextButton getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getOnClick()
public WidgetMarkup . OnClick getOnClick ()
The onclick
action of the button.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
getOnClickBuilder()
public WidgetMarkup . OnClick . Builder getOnClickBuilder ()
The onclick
action of the button.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
getOnClickOrBuilder()
public WidgetMarkup . OnClickOrBuilder getOnClickOrBuilder ()
The onclick
action of the button.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
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.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(WidgetMarkup.TextButton other)
public WidgetMarkup . TextButton . Builder mergeFrom ( WidgetMarkup . TextButton other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WidgetMarkup . TextButton . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public WidgetMarkup . TextButton . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeOnClick(WidgetMarkup.OnClick value)
public WidgetMarkup . TextButton . Builder mergeOnClick ( WidgetMarkup . OnClick value )
The onclick
action of the button.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WidgetMarkup . TextButton . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public WidgetMarkup . TextButton . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setOnClick(WidgetMarkup.OnClick value)
public WidgetMarkup . TextButton . Builder setOnClick ( WidgetMarkup . OnClick value )
The onclick
action of the button.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
setOnClick(WidgetMarkup.OnClick.Builder builderForValue)
public WidgetMarkup . TextButton . Builder setOnClick ( WidgetMarkup . OnClick . Builder builderForValue )
The onclick
action of the button.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WidgetMarkup . TextButton . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setText(String value)
public WidgetMarkup . TextButton . Builder setText ( String value )
The text of the button.
string text = 1;
Parameter
Name
Description
value
String
The text to set.
setTextBytes(ByteString value)
public WidgetMarkup . TextButton . Builder setTextBytes ( ByteString value )
The text of the button.
string text = 1;
Parameter
Name
Description
value
ByteString
The bytes for text to set.
setUnknownFields(UnknownFieldSet unknownFields)
public final WidgetMarkup . TextButton . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]