Send feedback
Class WidgetMarkup.Button.Builder (0.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.7.0 keyboard_arrow_down
public static final class WidgetMarkup . Button . Builder extends GeneratedMessageV3 . Builder<WidgetMarkup . Button . Builder > implements WidgetMarkup . ButtonOrBuilder
A button. Can be a text button or an image button.
Protobuf type google.chat.v1.WidgetMarkup.Button
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
public static final Descriptors . Descriptor getDescriptor ()
Methods
public WidgetMarkup . Button . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public WidgetMarkup . Button build ()
public WidgetMarkup . Button buildPartial ()
public WidgetMarkup . Button . Builder clear ()
Overrides
public WidgetMarkup . Button . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public WidgetMarkup . Button . Builder clearImageButton ()
A button with image and onclick
action.
.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;
public WidgetMarkup . Button . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearTextButton()
public WidgetMarkup . Button . Builder clearTextButton ()
A button with text and onclick
action.
.google.chat.v1.WidgetMarkup.TextButton text_button = 1;
public WidgetMarkup . Button . Builder clearType ()
public WidgetMarkup . Button . Builder clone ()
Overrides
public WidgetMarkup . Button getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public WidgetMarkup . ImageButton getImageButton ()
A button with image and onclick
action.
.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;
public WidgetMarkup . ImageButton . Builder getImageButtonBuilder ()
A button with image and onclick
action.
.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;
public WidgetMarkup . ImageButtonOrBuilder getImageButtonOrBuilder ()
A button with image and onclick
action.
.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;
getTextButton()
public WidgetMarkup . TextButton getTextButton ()
A button with text and onclick
action.
.google.chat.v1.WidgetMarkup.TextButton text_button = 1;
getTextButtonBuilder()
public WidgetMarkup . TextButton . Builder getTextButtonBuilder ()
A button with text and onclick
action.
.google.chat.v1.WidgetMarkup.TextButton text_button = 1;
getTextButtonOrBuilder()
public WidgetMarkup . TextButtonOrBuilder getTextButtonOrBuilder ()
A button with text and onclick
action.
.google.chat.v1.WidgetMarkup.TextButton text_button = 1;
public WidgetMarkup . Button . TypeCase getTypeCase ()
public boolean hasImageButton ()
A button with image and onclick
action.
.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;
Returns
Type
Description
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
Type
Description
boolean
Whether the textButton field is set.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public WidgetMarkup . Button . Builder mergeFrom ( WidgetMarkup . Button other )
public WidgetMarkup . Button . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public WidgetMarkup . Button . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public WidgetMarkup . Button . Builder mergeImageButton ( WidgetMarkup . ImageButton value )
A button with image and onclick
action.
.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;
mergeTextButton(WidgetMarkup.TextButton value)
public WidgetMarkup . Button . Builder mergeTextButton ( WidgetMarkup . TextButton value )
A button with text and onclick
action.
.google.chat.v1.WidgetMarkup.TextButton text_button = 1;
public final WidgetMarkup . Button . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public WidgetMarkup . Button . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public WidgetMarkup . Button . Builder setImageButton ( WidgetMarkup . ImageButton value )
A button with image and onclick
action.
.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;
public WidgetMarkup . Button . Builder setImageButton ( WidgetMarkup . ImageButton . Builder builderForValue )
A button with image and onclick
action.
.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;
public WidgetMarkup . Button . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setTextButton(WidgetMarkup.TextButton value)
public WidgetMarkup . Button . Builder setTextButton ( WidgetMarkup . TextButton value )
A button with text and onclick
action.
.google.chat.v1.WidgetMarkup.TextButton text_button = 1;
setTextButton(WidgetMarkup.TextButton.Builder builderForValue)
public WidgetMarkup . Button . Builder setTextButton ( WidgetMarkup . TextButton . Builder builderForValue )
A button with text and onclick
action.
.google.chat.v1.WidgetMarkup.TextButton text_button = 1;
public final WidgetMarkup . Button . 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."],[],[]]