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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GridLayout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
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
Returns
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
Returns
public Widget.Builder addWidgetsBuilder()
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dashboard.v1.Widget widgets = 2;
Returns
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
Returns
build()
public GridLayout build()
Returns
buildPartial()
public GridLayout buildPartial()
Returns
clear()
public GridLayout.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public GridLayout.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GridLayout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public GridLayout.Builder clearWidgets()
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dashboard.v1.Widget widgets = 2;
Returns
clone()
public GridLayout.Builder clone()
Returns
Overrides
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Returns
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
Returns
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
public int getWidgetsCount()
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dashboard.v1.Widget widgets = 2;
Returns
public List<Widget> getWidgetsList()
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dashboard.v1.Widget widgets = 2;
Returns
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
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GridLayout other)
public GridLayout.Builder mergeFrom(GridLayout other)
Parameter
Returns
public GridLayout.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GridLayout.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GridLayout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public GridLayout.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GridLayout.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GridLayout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
Returns