Class CollapseControl.Builder (2.63.1)

public static final class CollapseControl.Builder extends GeneratedMessageV3.Builder<CollapseControl.Builder> implements CollapseControlOrBuilder

Represent an expand and collapse control.

Google Workspace add-ons and Chat apps:

Protobuf type google.apps.card.v1.CollapseControl

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CollapseControl.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CollapseControl.Builder
Overrides

build()

public CollapseControl build()
Returns
Type Description
CollapseControl

buildPartial()

public CollapseControl buildPartial()
Returns
Type Description
CollapseControl

clear()

public CollapseControl.Builder clear()
Returns
Type Description
CollapseControl.Builder
Overrides

clearCollapseButton()

public CollapseControl.Builder clearCollapseButton()

Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button collapse_button = 3;

Returns
Type Description
CollapseControl.Builder

clearExpandButton()

public CollapseControl.Builder clearExpandButton()

Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button expand_button = 2;

Returns
Type Description
CollapseControl.Builder

clearField(Descriptors.FieldDescriptor field)

public CollapseControl.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CollapseControl.Builder
Overrides

clearHorizontalAlignment()

public CollapseControl.Builder clearHorizontalAlignment()

The horizontal alignment of the expand and collapse button.

.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1;

Returns
Type Description
CollapseControl.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CollapseControl.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CollapseControl.Builder
Overrides

clone()

public CollapseControl.Builder clone()
Returns
Type Description
CollapseControl.Builder
Overrides

getCollapseButton()

public Button getCollapseButton()

Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button collapse_button = 3;

Returns
Type Description
Button

The collapseButton.

getCollapseButtonBuilder()

public Button.Builder getCollapseButtonBuilder()

Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button collapse_button = 3;

Returns
Type Description
Button.Builder

getCollapseButtonOrBuilder()

public ButtonOrBuilder getCollapseButtonOrBuilder()

Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button collapse_button = 3;

Returns
Type Description
ButtonOrBuilder

getDefaultInstanceForType()

public CollapseControl getDefaultInstanceForType()
Returns
Type Description
CollapseControl

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExpandButton()

public Button getExpandButton()

Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button expand_button = 2;

Returns
Type Description
Button

The expandButton.

getExpandButtonBuilder()

public Button.Builder getExpandButtonBuilder()

Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button expand_button = 2;

Returns
Type Description
Button.Builder

getExpandButtonOrBuilder()

public ButtonOrBuilder getExpandButtonOrBuilder()

Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button expand_button = 2;

Returns
Type Description
ButtonOrBuilder

getHorizontalAlignment()

public Widget.HorizontalAlignment getHorizontalAlignment()

The horizontal alignment of the expand and collapse button.

.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1;

Returns
Type Description
Widget.HorizontalAlignment

The horizontalAlignment.

getHorizontalAlignmentValue()

public int getHorizontalAlignmentValue()

The horizontal alignment of the expand and collapse button.

.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1;

Returns
Type Description
int

The enum numeric value on the wire for horizontalAlignment.

hasCollapseButton()

public boolean hasCollapseButton()

Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button collapse_button = 3;

Returns
Type Description
boolean

Whether the collapseButton field is set.

hasExpandButton()

public boolean hasExpandButton()

Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button expand_button = 2;

Returns
Type Description
boolean

Whether the expandButton field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCollapseButton(Button value)

public CollapseControl.Builder mergeCollapseButton(Button value)

Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button collapse_button = 3;

Parameter
Name Description
value Button
Returns
Type Description
CollapseControl.Builder

mergeExpandButton(Button value)

public CollapseControl.Builder mergeExpandButton(Button value)

Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button expand_button = 2;

Parameter
Name Description
value Button
Returns
Type Description
CollapseControl.Builder

mergeFrom(CollapseControl other)

public CollapseControl.Builder mergeFrom(CollapseControl other)
Parameter
Name Description
other CollapseControl
Returns
Type Description
CollapseControl.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CollapseControl.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CollapseControl.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CollapseControl.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CollapseControl.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CollapseControl.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CollapseControl.Builder
Overrides

setCollapseButton(Button value)

public CollapseControl.Builder setCollapseButton(Button value)

Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button collapse_button = 3;

Parameter
Name Description
value Button
Returns
Type Description
CollapseControl.Builder

setCollapseButton(Button.Builder builderForValue)

public CollapseControl.Builder setCollapseButton(Button.Builder builderForValue)

Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button collapse_button = 3;

Parameter
Name Description
builderForValue Button.Builder
Returns
Type Description
CollapseControl.Builder

setExpandButton(Button value)

public CollapseControl.Builder setExpandButton(Button value)

Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button expand_button = 2;

Parameter
Name Description
value Button
Returns
Type Description
CollapseControl.Builder

setExpandButton(Button.Builder builderForValue)

public CollapseControl.Builder setExpandButton(Button.Builder builderForValue)

Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

.google.apps.card.v1.Button expand_button = 2;

Parameter
Name Description
builderForValue Button.Builder
Returns
Type Description
CollapseControl.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CollapseControl.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CollapseControl.Builder
Overrides

setHorizontalAlignment(Widget.HorizontalAlignment value)

public CollapseControl.Builder setHorizontalAlignment(Widget.HorizontalAlignment value)

The horizontal alignment of the expand and collapse button.

.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1;

Parameter
Name Description
value Widget.HorizontalAlignment

The horizontalAlignment to set.

Returns
Type Description
CollapseControl.Builder

This builder for chaining.

setHorizontalAlignmentValue(int value)

public CollapseControl.Builder setHorizontalAlignmentValue(int value)

The horizontal alignment of the expand and collapse button.

.google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for horizontalAlignment to set.

Returns
Type Description
CollapseControl.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CollapseControl.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CollapseControl.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CollapseControl.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CollapseControl.Builder
Overrides