Class GridLayout.Builder (2.49.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
Type Description
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
Name Description
values Iterable<? extends com.google.monitoring.dashboard.v1.Widget>
Returns
Type Description
GridLayout.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GridLayout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Widget
Returns
Type Description
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
Name Description
builderForValue Widget.Builder
Returns
Type Description
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
Name Description
index int
value Widget
Returns
Type Description
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
Name Description
index int
builderForValue Widget.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
Widget.Builder

build()

public GridLayout build()
Returns
Type Description
GridLayout

buildPartial()

public GridLayout buildPartial()
Returns
Type Description
GridLayout

clear()

public GridLayout.Builder clear()
Returns
Type Description
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
Type Description
GridLayout.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public GridLayout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
GridLayout.Builder

clone()

public GridLayout.Builder clone()
Returns
Type Description
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
Type Description
long

The columns.

getDefaultInstanceForType()

public GridLayout getDefaultInstanceForType()
Returns
Type Description
GridLayout

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.monitoring.dashboard.v1.WidgetOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GridLayout other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GridLayout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value long

The columns to set.

Returns
Type Description
GridLayout.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final GridLayout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
value Widget
Returns
Type Description
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
Name Description
index int
builderForValue Widget.Builder
Returns
Type Description
GridLayout.Builder