public static final class Card.Section extends GeneratedMessageV3 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.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
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
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> |
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Card.Section.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Card.Section.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Card.Section.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides