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.dasard.v1.GridLayout
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
public GridLayout.Builder addAllWidgets(Iterable<? extends Widget> values)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.monitoring.dasard.v1.Widget>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GridLayout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overridespublic GridLayout.Builder addWidgets(Widget value)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
Parameter |
---|
Name | Description |
value | Widget
|
public GridLayout.Builder addWidgets(Widget.Builder builderForValue)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
public GridLayout.Builder addWidgets(int index, Widget value)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
public GridLayout.Builder addWidgets(int index, Widget.Builder builderForValue)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
public Widget.Builder addWidgetsBuilder()
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
public Widget.Builder addWidgetsBuilder(int index)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
Parameter |
---|
Name | Description |
index | int
|
build()
public GridLayout build()
buildPartial()
public GridLayout buildPartial()
clear()
public GridLayout.Builder clear()
OverridesclearColumns()
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;
clearField(Descriptors.FieldDescriptor field)
public GridLayout.Builder clearField(Descriptors.FieldDescriptor field)
OverridesclearOneof(Descriptors.OneofDescriptor oneof)
public GridLayout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overridespublic GridLayout.Builder clearWidgets()
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
clone()
public GridLayout.Builder clone()
OverridesgetColumns()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overridespublic Widget getWidgets(int index)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
Parameter |
---|
Name | Description |
index | int
|
public Widget.Builder getWidgetsBuilder(int index)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
Parameter |
---|
Name | Description |
index | int
|
public List<Widget.Builder> getWidgetsBuilderList()
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
public int getWidgetsCount()
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
Returns |
---|
Type | Description |
int | |
public List<Widget> getWidgetsList()
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
public WidgetOrBuilder getWidgetsOrBuilder(int index)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends WidgetOrBuilder> getWidgetsOrBuilderList()
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
Returns |
---|
Type | Description |
List<? extends com.google.monitoring.dasard.v1.WidgetOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
OverridesisInitialized()
public final boolean isInitialized()
OverridesmergeFrom(GridLayout other)
public GridLayout.Builder mergeFrom(GridLayout other)
public GridLayout.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
OverridesmergeFrom(Message other)
public GridLayout.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
OverridesmergeUnknownFields(UnknownFieldSet unknownFields)
public final GridLayout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overridespublic GridLayout.Builder removeWidgets(int index)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
Parameter |
---|
Name | Description |
index | int
|
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. |
setField(Descriptors.FieldDescriptor field, Object value)
public GridLayout.Builder setField(Descriptors.FieldDescriptor field, Object value)
OverridessetRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GridLayout.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
OverridessetUnknownFields(UnknownFieldSet unknownFields)
public final GridLayout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overridespublic GridLayout.Builder setWidgets(int index, Widget value)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;
public GridLayout.Builder setWidgets(int index, Widget.Builder builderForValue)
The informational elements that are arranged into the columns row-first.
repeated .google.monitoring.dasard.v1.Widget widgets = 2;