Class Columns.Column.Builder (2.37.1)

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

A column.

Google Chat apps:

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.apps.card.v1.Columns.Column.Widgets>
Returns
TypeDescription
Columns.Column.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Columns.Column.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueColumns.Column.Widgets
Returns
TypeDescription
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
NameDescription
builderForValueColumns.Column.Widgets.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueColumns.Column.Widgets
Returns
TypeDescription
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
NameDescription
indexint
builderForValueColumns.Column.Widgets.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Columns.Column.Widgets.Builder

build()

public Columns.Column build()
Returns
TypeDescription
Columns.Column

buildPartial()

public Columns.Column buildPartial()
Returns
TypeDescription
Columns.Column

clear()

public Columns.Column.Builder clear()
Returns
TypeDescription
Columns.Column.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Columns.Column.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Columns.Column.Builder

This builder for chaining.

clearHorizontalSizeStyle()

public Columns.Column.Builder clearHorizontalSizeStyle()

Specifies how a column fills the width of the card.

Google Chat apps:

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

Returns
TypeDescription
Columns.Column.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Columns.Column.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Columns.Column.Builder
Overrides

clearVerticalAlignment()

public Columns.Column.Builder clearVerticalAlignment()

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

Google Chat apps:

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

Returns
TypeDescription
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
TypeDescription
Columns.Column.Builder

clone()

public Columns.Column.Builder clone()
Returns
TypeDescription
Columns.Column.Builder
Overrides

getDefaultInstanceForType()

public Columns.Column getDefaultInstanceForType()
Returns
TypeDescription
Columns.Column

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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 Chat apps:

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

Returns
TypeDescription
Columns.Column.HorizontalSizeStyle

The horizontalSizeStyle.

getHorizontalSizeStyleValue()

public int getHorizontalSizeStyleValue()

Specifies how a column fills the width of the card.

Google Chat apps:

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

Returns
TypeDescription
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 Chat apps:

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

Returns
TypeDescription
Columns.Column.VerticalAlignment

The verticalAlignment.

getVerticalAlignmentValue()

public int getVerticalAlignmentValue()

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

Google Chat apps:

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.apps.card.v1.Columns.Column.WidgetsOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Columns.Column other)

public Columns.Column.Builder mergeFrom(Columns.Column other)
Parameter
NameDescription
otherColumns.Column
Returns
TypeDescription
Columns.Column.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Columns.Column.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Columns.Column.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Columns.Column.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Columns.Column.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Columns.Column.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Columns.Column.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Columns.Column.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueWidget.HorizontalAlignment

The horizontalAlignment to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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 Chat apps:

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

Parameter
NameDescription
valueColumns.Column.HorizontalSizeStyle

The horizontalSizeStyle to set.

Returns
TypeDescription
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 Chat apps:

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Columns.Column.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Columns.Column.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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 Chat apps:

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

Parameter
NameDescription
valueColumns.Column.VerticalAlignment

The verticalAlignment to set.

Returns
TypeDescription
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 Chat apps:

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
indexint
valueColumns.Column.Widgets
Returns
TypeDescription
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
NameDescription
indexint
builderForValueColumns.Column.Widgets.Builder
Returns
TypeDescription
Columns.Column.Builder