Send feedback
Class GridLayout.Builder (2.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.0 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]