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