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