Class GridLayout.Builder (2.32.0)

public static final class GridLayout.Builder extends GeneratedMessageV3.Builder<GridLayout.Builder> implements GridLayoutOrBuilder

A basic layout divides the available space into vertical columns of equal width and arranges a list of widgets using a row-first strategy.

Protobuf type google.monitoring.dashboard.v1.GridLayout

Implements

GridLayoutOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllWidgets(Iterable<? extends Widget> values)

public GridLayout.Builder addAllWidgets(Iterable<? extends Widget> values)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.monitoring.dashboard.v1.Widget>
Returns
TypeDescription
GridLayout.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GridLayout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GridLayout.Builder
Overrides

addWidgets(Widget value)

public GridLayout.Builder addWidgets(Widget value)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameter
NameDescription
valueWidget
Returns
TypeDescription
GridLayout.Builder

addWidgets(Widget.Builder builderForValue)

public GridLayout.Builder addWidgets(Widget.Builder builderForValue)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameter
NameDescription
builderForValueWidget.Builder
Returns
TypeDescription
GridLayout.Builder

addWidgets(int index, Widget value)

public GridLayout.Builder addWidgets(int index, Widget value)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameters
NameDescription
indexint
valueWidget
Returns
TypeDescription
GridLayout.Builder

addWidgets(int index, Widget.Builder builderForValue)

public GridLayout.Builder addWidgets(int index, Widget.Builder builderForValue)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameters
NameDescription
indexint
builderForValueWidget.Builder
Returns
TypeDescription
GridLayout.Builder

addWidgetsBuilder()

public Widget.Builder addWidgetsBuilder()

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Returns
TypeDescription
Widget.Builder

addWidgetsBuilder(int index)

public Widget.Builder addWidgetsBuilder(int index)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Widget.Builder

build()

public GridLayout build()
Returns
TypeDescription
GridLayout

buildPartial()

public GridLayout buildPartial()
Returns
TypeDescription
GridLayout

clear()

public GridLayout.Builder clear()
Returns
TypeDescription
GridLayout.Builder
Overrides

clearColumns()

public GridLayout.Builder clearColumns()

The number of columns into which the view's width is divided. If omitted or set to zero, a system default will be used while rendering.

int64 columns = 1;

Returns
TypeDescription
GridLayout.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GridLayout.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GridLayout.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWidgets()

public GridLayout.Builder clearWidgets()

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Returns
TypeDescription
GridLayout.Builder

clone()

public GridLayout.Builder clone()
Returns
TypeDescription
GridLayout.Builder
Overrides

getColumns()

public long getColumns()

The number of columns into which the view's width is divided. If omitted or set to zero, a system default will be used while rendering.

int64 columns = 1;

Returns
TypeDescription
long

The columns.

getDefaultInstanceForType()

public GridLayout getDefaultInstanceForType()
Returns
TypeDescription
GridLayout

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getWidgets(int index)

public Widget getWidgets(int index)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Widget

getWidgetsBuilder(int index)

public Widget.Builder getWidgetsBuilder(int index)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Widget.Builder

getWidgetsBuilderList()

public List<Widget.Builder> getWidgetsBuilderList()

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Returns
TypeDescription
List<Builder>

getWidgetsCount()

public int getWidgetsCount()

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Returns
TypeDescription
int

getWidgetsList()

public List<Widget> getWidgetsList()

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Returns
TypeDescription
List<Widget>

getWidgetsOrBuilder(int index)

public WidgetOrBuilder getWidgetsOrBuilder(int index)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
WidgetOrBuilder

getWidgetsOrBuilderList()

public List<? extends WidgetOrBuilder> getWidgetsOrBuilderList()

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Returns
TypeDescription
List<? extends com.google.monitoring.dashboard.v1.WidgetOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GridLayout other)

public GridLayout.Builder mergeFrom(GridLayout other)
Parameter
NameDescription
otherGridLayout
Returns
TypeDescription
GridLayout.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GridLayout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GridLayout.Builder
Overrides

removeWidgets(int index)

public GridLayout.Builder removeWidgets(int index)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
GridLayout.Builder

setColumns(long value)

public GridLayout.Builder setColumns(long value)

The number of columns into which the view's width is divided. If omitted or set to zero, a system default will be used while rendering.

int64 columns = 1;

Parameter
NameDescription
valuelong

The columns to set.

Returns
TypeDescription
GridLayout.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GridLayout.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GridLayout.Builder
Overrides

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

public GridLayout.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GridLayout.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GridLayout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GridLayout.Builder
Overrides

setWidgets(int index, Widget value)

public GridLayout.Builder setWidgets(int index, Widget value)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameters
NameDescription
indexint
valueWidget
Returns
TypeDescription
GridLayout.Builder

setWidgets(int index, Widget.Builder builderForValue)

public GridLayout.Builder setWidgets(int index, Widget.Builder builderForValue)

The informational elements that are arranged into the columns row-first.

repeated .google.monitoring.dashboard.v1.Widget widgets = 2;

Parameters
NameDescription
indexint
builderForValueWidget.Builder
Returns
TypeDescription
GridLayout.Builder