Class CollapseControl (2.63.1)

public final class CollapseControl extends GeneratedMessageV3 implements CollapseControlOrBuilder

Represent an expand and collapse control.

Google Workspace add-ons and Chat apps:

Protobuf type google.apps.card.v1.CollapseControl

Static Fields

COLLAPSE_BUTTON_FIELD_NUMBER

public static final int COLLAPSE_BUTTON_FIELD_NUMBER
Field Value
Type Description
int

EXPAND_BUTTON_FIELD_NUMBER

public static final int EXPAND_BUTTON_FIELD_NUMBER
Field Value
Type Description
int

HORIZONTAL_ALIGNMENT_FIELD_NUMBER

public static final int HORIZONTAL_ALIGNMENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CollapseControl getDefaultInstance()
Returns
Type Description
CollapseControl

getDescriptor()

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

newBuilder()

public static CollapseControl.Builder newBuilder()
Returns
Type Description
CollapseControl.Builder

newBuilder(CollapseControl prototype)

public static CollapseControl.Builder newBuilder(CollapseControl prototype)
Parameter
Name Description
prototype CollapseControl
Returns
Type Description
CollapseControl.Builder

parseDelimitedFrom(InputStream input)

public static CollapseControl parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CollapseControl
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CollapseControl parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CollapseControl
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CollapseControl parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CollapseControl
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CollapseControl parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CollapseControl
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CollapseControl parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CollapseControl
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CollapseControl parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CollapseControl
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CollapseControl parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CollapseControl
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CollapseControl parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CollapseControl
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CollapseControl parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CollapseControl
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CollapseControl parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CollapseControl
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CollapseControl parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CollapseControl
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CollapseControl parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CollapseControl
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CollapseControl> parser()
Returns
Type Description
Parser<CollapseControl>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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.

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.

getParserForType()

public Parser<CollapseControl> getParserForType()
Returns
Type Description
Parser<CollapseControl>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CollapseControl.Builder newBuilderForType()
Returns
Type Description
CollapseControl.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CollapseControl.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CollapseControl.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CollapseControl.Builder toBuilder()
Returns
Type Description
CollapseControl.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException