Class Columns.Column.Builder (2.43.0)

public static final class Columns.Column.Builder extends GeneratedMessageV3.Builder<Columns.Column.Builder> implements Columns.ColumnOrBuilder

A column.

Google Workspace Add-ons and Chat apps: Columns for Google Workspace Add-ons are in Developer Preview.

Protobuf type google.apps.card.v1.Columns.Column

Static Methods

getDescriptor()

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

Methods

addAllWidgets(Iterable<? extends Columns.Column.Widgets> values)

public Columns.Column.Builder addAllWidgets(Iterable<? extends Columns.Column.Widgets> values)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameter
Name Description
values Iterable<? extends com.google.apps.card.v1.Columns.Column.Widgets>
Returns
Type Description
Columns.Column.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWidgets(Columns.Column.Widgets value)

public Columns.Column.Builder addWidgets(Columns.Column.Widgets value)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameter
Name Description
value Columns.Column.Widgets
Returns
Type Description
Columns.Column.Builder

addWidgets(Columns.Column.Widgets.Builder builderForValue)

public Columns.Column.Builder addWidgets(Columns.Column.Widgets.Builder builderForValue)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameter
Name Description
builderForValue Columns.Column.Widgets.Builder
Returns
Type Description
Columns.Column.Builder

addWidgets(int index, Columns.Column.Widgets value)

public Columns.Column.Builder addWidgets(int index, Columns.Column.Widgets value)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameters
Name Description
index int
value Columns.Column.Widgets
Returns
Type Description
Columns.Column.Builder

addWidgets(int index, Columns.Column.Widgets.Builder builderForValue)

public Columns.Column.Builder addWidgets(int index, Columns.Column.Widgets.Builder builderForValue)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameters
Name Description
index int
builderForValue Columns.Column.Widgets.Builder
Returns
Type Description
Columns.Column.Builder

addWidgetsBuilder()

public Columns.Column.Widgets.Builder addWidgetsBuilder()

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Returns
Type Description
Columns.Column.Widgets.Builder

addWidgetsBuilder(int index)

public Columns.Column.Widgets.Builder addWidgetsBuilder(int index)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameter
Name Description
index int
Returns
Type Description
Columns.Column.Widgets.Builder

build()

public Columns.Column build()
Returns
Type Description
Columns.Column

buildPartial()

public Columns.Column buildPartial()
Returns
Type Description
Columns.Column

clear()

public Columns.Column.Builder clear()
Returns
Type Description
Columns.Column.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearHorizontalAlignment()

public Columns.Column.Builder clearHorizontalAlignment()

Specifies whether widgets align to the left, right, or center of a column.

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

Returns
Type Description
Columns.Column.Builder

This builder for chaining.

clearHorizontalSizeStyle()

public Columns.Column.Builder clearHorizontalSizeStyle()

Specifies how a column fills the width of the card.

.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;

Returns
Type Description
Columns.Column.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVerticalAlignment()

public Columns.Column.Builder clearVerticalAlignment()

Specifies whether widgets align to the top, bottom, or center of a column.

.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;

Returns
Type Description
Columns.Column.Builder

This builder for chaining.

clearWidgets()

public Columns.Column.Builder clearWidgets()

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Returns
Type Description
Columns.Column.Builder

clone()

public Columns.Column.Builder clone()
Returns
Type Description
Columns.Column.Builder
Overrides

getDefaultInstanceForType()

public Columns.Column getDefaultInstanceForType()
Returns
Type Description
Columns.Column

getDescriptorForType()

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

getHorizontalAlignment()

public Widget.HorizontalAlignment getHorizontalAlignment()

Specifies whether widgets align to the left, right, or center of a column.

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

Returns
Type Description
Widget.HorizontalAlignment

The horizontalAlignment.

getHorizontalAlignmentValue()

public int getHorizontalAlignmentValue()

Specifies whether widgets align to the left, right, or center of a column.

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

Returns
Type Description
int

The enum numeric value on the wire for horizontalAlignment.

getHorizontalSizeStyle()

public Columns.Column.HorizontalSizeStyle getHorizontalSizeStyle()

Specifies how a column fills the width of the card.

.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;

Returns
Type Description
Columns.Column.HorizontalSizeStyle

The horizontalSizeStyle.

getHorizontalSizeStyleValue()

public int getHorizontalSizeStyleValue()

Specifies how a column fills the width of the card.

.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;

Returns
Type Description
int

The enum numeric value on the wire for horizontalSizeStyle.

getVerticalAlignment()

public Columns.Column.VerticalAlignment getVerticalAlignment()

Specifies whether widgets align to the top, bottom, or center of a column.

.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;

Returns
Type Description
Columns.Column.VerticalAlignment

The verticalAlignment.

getVerticalAlignmentValue()

public int getVerticalAlignmentValue()

Specifies whether widgets align to the top, bottom, or center of a column.

.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;

Returns
Type Description
int

The enum numeric value on the wire for verticalAlignment.

getWidgets(int index)

public Columns.Column.Widgets getWidgets(int index)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameter
Name Description
index int
Returns
Type Description
Columns.Column.Widgets

getWidgetsBuilder(int index)

public Columns.Column.Widgets.Builder getWidgetsBuilder(int index)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameter
Name Description
index int
Returns
Type Description
Columns.Column.Widgets.Builder

getWidgetsBuilderList()

public List<Columns.Column.Widgets.Builder> getWidgetsBuilderList()

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Returns
Type Description
List<Builder>

getWidgetsCount()

public int getWidgetsCount()

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Returns
Type Description
int

getWidgetsList()

public List<Columns.Column.Widgets> getWidgetsList()

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Returns
Type Description
List<Widgets>

getWidgetsOrBuilder(int index)

public Columns.Column.WidgetsOrBuilder getWidgetsOrBuilder(int index)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameter
Name Description
index int
Returns
Type Description
Columns.Column.WidgetsOrBuilder

getWidgetsOrBuilderList()

public List<? extends Columns.Column.WidgetsOrBuilder> getWidgetsOrBuilderList()

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Returns
Type Description
List<? extends com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Columns.Column other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeWidgets(int index)

public Columns.Column.Builder removeWidgets(int index)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameter
Name Description
index int
Returns
Type Description
Columns.Column.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHorizontalAlignment(Widget.HorizontalAlignment value)

public Columns.Column.Builder setHorizontalAlignment(Widget.HorizontalAlignment value)

Specifies whether widgets align to the left, right, or center of a column.

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

Parameter
Name Description
value Widget.HorizontalAlignment

The horizontalAlignment to set.

Returns
Type Description
Columns.Column.Builder

This builder for chaining.

setHorizontalAlignmentValue(int value)

public Columns.Column.Builder setHorizontalAlignmentValue(int value)

Specifies whether widgets align to the left, right, or center of a column.

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

Parameter
Name Description
value int

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

Returns
Type Description
Columns.Column.Builder

This builder for chaining.

setHorizontalSizeStyle(Columns.Column.HorizontalSizeStyle value)

public Columns.Column.Builder setHorizontalSizeStyle(Columns.Column.HorizontalSizeStyle value)

Specifies how a column fills the width of the card.

.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;

Parameter
Name Description
value Columns.Column.HorizontalSizeStyle

The horizontalSizeStyle to set.

Returns
Type Description
Columns.Column.Builder

This builder for chaining.

setHorizontalSizeStyleValue(int value)

public Columns.Column.Builder setHorizontalSizeStyleValue(int value)

Specifies how a column fills the width of the card.

.google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1;

Parameter
Name Description
value int

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

Returns
Type Description
Columns.Column.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVerticalAlignment(Columns.Column.VerticalAlignment value)

public Columns.Column.Builder setVerticalAlignment(Columns.Column.VerticalAlignment value)

Specifies whether widgets align to the top, bottom, or center of a column.

.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;

Parameter
Name Description
value Columns.Column.VerticalAlignment

The verticalAlignment to set.

Returns
Type Description
Columns.Column.Builder

This builder for chaining.

setVerticalAlignmentValue(int value)

public Columns.Column.Builder setVerticalAlignmentValue(int value)

Specifies whether widgets align to the top, bottom, or center of a column.

.google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3;

Parameter
Name Description
value int

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

Returns
Type Description
Columns.Column.Builder

This builder for chaining.

setWidgets(int index, Columns.Column.Widgets value)

public Columns.Column.Builder setWidgets(int index, Columns.Column.Widgets value)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameters
Name Description
index int
value Columns.Column.Widgets
Returns
Type Description
Columns.Column.Builder

setWidgets(int index, Columns.Column.Widgets.Builder builderForValue)

public Columns.Column.Builder setWidgets(int index, Columns.Column.Widgets.Builder builderForValue)

An array of widgets included in a column. Widgets appear in the order that they are specified.

repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4;

Parameters
Name Description
index int
builderForValue Columns.Column.Widgets.Builder
Returns
Type Description
Columns.Column.Builder