public static final class ContextualAddOnMarkup.Card.Section.Builder extends GeneratedMessageV3.Builder<ContextualAddOnMarkup.Card.Section.Builder> implements ContextualAddOnMarkup.Card.SectionOrBuilder
A section contains a collection of widgets that are rendered
(vertically) in the order that they are specified. Across all platforms,
cards have a narrow fixed width, so
there's currently no need for layout properties (for example, float).
Protobuf type google.chat.v1.ContextualAddOnMarkup.Card.Section
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllWidgets(Iterable<? extends WidgetMarkup> values)
public ContextualAddOnMarkup.Card.Section.Builder addAllWidgets(Iterable<? extends WidgetMarkup> values)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.chat.v1.WidgetMarkup>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ContextualAddOnMarkup.Card.Section.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addWidgets(WidgetMarkup value)
public ContextualAddOnMarkup.Card.Section.Builder addWidgets(WidgetMarkup value)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
addWidgets(WidgetMarkup.Builder builderForValue)
public ContextualAddOnMarkup.Card.Section.Builder addWidgets(WidgetMarkup.Builder builderForValue)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
addWidgets(int index, WidgetMarkup value)
public ContextualAddOnMarkup.Card.Section.Builder addWidgets(int index, WidgetMarkup value)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
addWidgets(int index, WidgetMarkup.Builder builderForValue)
public ContextualAddOnMarkup.Card.Section.Builder addWidgets(int index, WidgetMarkup.Builder builderForValue)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
addWidgetsBuilder()
public WidgetMarkup.Builder addWidgetsBuilder()
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
addWidgetsBuilder(int index)
public WidgetMarkup.Builder addWidgetsBuilder(int index)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
Parameter |
Name |
Description |
index |
int
|
build()
public ContextualAddOnMarkup.Card.Section build()
buildPartial()
public ContextualAddOnMarkup.Card.Section buildPartial()
clear()
public ContextualAddOnMarkup.Card.Section.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ContextualAddOnMarkup.Card.Section.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ContextualAddOnMarkup.Card.Section.Builder clearHeader()
clearOneof(Descriptors.OneofDescriptor oneof)
public ContextualAddOnMarkup.Card.Section.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearWidgets()
public ContextualAddOnMarkup.Card.Section.Builder clearWidgets()
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
clone()
public ContextualAddOnMarkup.Card.Section.Builder clone()
Overrides
getDefaultInstanceForType()
public ContextualAddOnMarkup.Card.Section getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getHeader()
Returns |
Type |
Description |
String |
The header.
|
public ByteString getHeaderBytes()
Returns |
Type |
Description |
ByteString |
The bytes for header.
|
getWidgets(int index)
public WidgetMarkup getWidgets(int index)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
Parameter |
Name |
Description |
index |
int
|
getWidgetsBuilder(int index)
public WidgetMarkup.Builder getWidgetsBuilder(int index)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
Parameter |
Name |
Description |
index |
int
|
getWidgetsBuilderList()
public List<WidgetMarkup.Builder> getWidgetsBuilderList()
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
getWidgetsCount()
public int getWidgetsCount()
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
Returns |
Type |
Description |
int |
|
getWidgetsList()
public List<WidgetMarkup> getWidgetsList()
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
getWidgetsOrBuilder(int index)
public WidgetMarkupOrBuilder getWidgetsOrBuilder(int index)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
Parameter |
Name |
Description |
index |
int
|
getWidgetsOrBuilderList()
public List<? extends WidgetMarkupOrBuilder> getWidgetsOrBuilderList()
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
Returns |
Type |
Description |
List<? extends com.google.chat.v1.WidgetMarkupOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ContextualAddOnMarkup.Card.Section other)
public ContextualAddOnMarkup.Card.Section.Builder mergeFrom(ContextualAddOnMarkup.Card.Section other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ContextualAddOnMarkup.Card.Section.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ContextualAddOnMarkup.Card.Section.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ContextualAddOnMarkup.Card.Section.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeWidgets(int index)
public ContextualAddOnMarkup.Card.Section.Builder removeWidgets(int index)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ContextualAddOnMarkup.Card.Section.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ContextualAddOnMarkup.Card.Section.Builder setHeader(String value)
Parameter |
Name |
Description |
value |
String
The header to set.
|
public ContextualAddOnMarkup.Card.Section.Builder setHeaderBytes(ByteString value)
Parameter |
Name |
Description |
value |
ByteString
The bytes for header to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ContextualAddOnMarkup.Card.Section.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ContextualAddOnMarkup.Card.Section.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setWidgets(int index, WidgetMarkup value)
public ContextualAddOnMarkup.Card.Section.Builder setWidgets(int index, WidgetMarkup value)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;
setWidgets(int index, WidgetMarkup.Builder builderForValue)
public ContextualAddOnMarkup.Card.Section.Builder setWidgets(int index, WidgetMarkup.Builder builderForValue)
A section must contain at least one widget.
repeated .google.chat.v1.WidgetMarkup widgets = 2;