public static final class Card.Section extends GeneratedMessage implements Card.SectionOrBuilder
A section contains a collection of widgets that are rendered
vertically in the order that they're specified.
Google Workspace add-ons and Chat
apps:
Protobuf type google.apps.card.v1.Card.Section
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
COLLAPSE_CONTROL_FIELD_NUMBER
public static final int COLLAPSE_CONTROL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
COLLAPSIBLE_FIELD_NUMBER
public static final int COLLAPSIBLE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int HEADER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int UNCOLLAPSIBLE_WIDGETS_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int WIDGETS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Card.Section getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Card.Section.Builder newBuilder()
newBuilder(Card.Section prototype)
public static Card.Section.Builder newBuilder(Card.Section prototype)
public static Card.Section parseDelimitedFrom(InputStream input)
public static Card.Section parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Card.Section parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Card.Section parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Card.Section parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Card.Section parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Card.Section parseFrom(CodedInputStream input)
public static Card.Section parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Card.Section parseFrom(InputStream input)
public static Card.Section parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Card.Section parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Card.Section parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Card.Section> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getCollapseControl()
public CollapseControl getCollapseControl()
Optional. Define the expand and collapse button of the section.
This button will be shown only if the section is collapsible.
If this field isn't set, the default button is used.
.google.apps.card.v1.CollapseControl collapse_control = 8;
getCollapseControlOrBuilder()
public CollapseControlOrBuilder getCollapseControlOrBuilder()
Optional. Define the expand and collapse button of the section.
This button will be shown only if the section is collapsible.
If this field isn't set, the default button is used.
.google.apps.card.v1.CollapseControl collapse_control = 8;
getCollapsible()
public boolean getCollapsible()
Indicates whether this section is collapsible.
Collapsible sections hide some or all widgets, but users can expand the
section to reveal the hidden widgets by clicking Show more. Users
can hide the widgets again by clicking Show less.
To determine which widgets are hidden, specify
uncollapsibleWidgetsCount.
bool collapsible = 5;
| Returns |
| Type |
Description |
boolean |
The collapsible.
|
getDefaultInstanceForType()
public Card.Section getDefaultInstanceForType()
public String getHeader()
| Returns |
| Type |
Description |
String |
The header.
|
public ByteString getHeaderBytes()
| Returns |
| Type |
Description |
ByteString |
The bytes for header.
|
getParserForType()
public Parser<Card.Section> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public int getUncollapsibleWidgetsCount()
The number of uncollapsible widgets which remain visible even when a
section is collapsed.
For example, when a section
contains five widgets and the uncollapsibleWidgetsCount is set to 2,
the first two widgets are always shown and the last three are collapsed
by default. The uncollapsibleWidgetsCount is taken into account only
when collapsible is true.
int32 uncollapsible_widgets_count = 6;
| Returns |
| Type |
Description |
int |
The uncollapsibleWidgetsCount.
|
public Widget getWidgets(int index)
All the widgets in the section.
Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
| Parameter |
| Name |
Description |
index |
int
|
| Returns |
| Type |
Description |
Widget |
|
public int getWidgetsCount()
All the widgets in the section.
Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
| Returns |
| Type |
Description |
int |
|
public List<Widget> getWidgetsList()
All the widgets in the section.
Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
public WidgetOrBuilder getWidgetsOrBuilder(int index)
All the widgets in the section.
Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
| Parameter |
| Name |
Description |
index |
int
|
public List<? extends WidgetOrBuilder> getWidgetsOrBuilderList()
All the widgets in the section.
Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
| Returns |
| Type |
Description |
List<? extends com.google.apps.card.v1.WidgetOrBuilder> |
|
hasCollapseControl()
public boolean hasCollapseControl()
Optional. Define the expand and collapse button of the section.
This button will be shown only if the section is collapsible.
If this field isn't set, the default button is used.
.google.apps.card.v1.CollapseControl collapse_control = 8;
| Returns |
| Type |
Description |
boolean |
Whether the collapseControl field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Card.Section.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Card.Section.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Card.Section.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides