Class RowLayout.Row.Builder (2.45.0)

public static final class RowLayout.Row.Builder extends GeneratedMessageV3.Builder<RowLayout.Row.Builder> implements RowLayout.RowOrBuilder

Defines the layout properties and content for a row.

Protobuf type google.monitoring.dashboard.v1.RowLayout.Row

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllWidgets(Iterable<? extends Widget> values)

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

The display widgets arranged horizontally in this row.

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

Parameter
Name Description
values Iterable<? extends com.google.monitoring.dashboard.v1.Widget>
Returns
Type Description
RowLayout.Row.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RowLayout.Row.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RowLayout.Row.Builder
Overrides

addWidgets(Widget value)

public RowLayout.Row.Builder addWidgets(Widget value)

The display widgets arranged horizontally in this row.

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

Parameter
Name Description
value Widget
Returns
Type Description
RowLayout.Row.Builder

addWidgets(Widget.Builder builderForValue)

public RowLayout.Row.Builder addWidgets(Widget.Builder builderForValue)

The display widgets arranged horizontally in this row.

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

Parameter
Name Description
builderForValue Widget.Builder
Returns
Type Description
RowLayout.Row.Builder

addWidgets(int index, Widget value)

public RowLayout.Row.Builder addWidgets(int index, Widget value)

The display widgets arranged horizontally in this row.

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

Parameters
Name Description
index int
value Widget
Returns
Type Description
RowLayout.Row.Builder

addWidgets(int index, Widget.Builder builderForValue)

public RowLayout.Row.Builder addWidgets(int index, Widget.Builder builderForValue)

The display widgets arranged horizontally in this row.

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

Parameters
Name Description
index int
builderForValue Widget.Builder
Returns
Type Description
RowLayout.Row.Builder

addWidgetsBuilder()

public Widget.Builder addWidgetsBuilder()

The display widgets arranged horizontally in this row.

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

Returns
Type Description
Widget.Builder

addWidgetsBuilder(int index)

public Widget.Builder addWidgetsBuilder(int index)

The display widgets arranged horizontally in this row.

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

Parameter
Name Description
index int
Returns
Type Description
Widget.Builder

build()

public RowLayout.Row build()
Returns
Type Description
RowLayout.Row

buildPartial()

public RowLayout.Row buildPartial()
Returns
Type Description
RowLayout.Row

clear()

public RowLayout.Row.Builder clear()
Returns
Type Description
RowLayout.Row.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RowLayout.Row.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RowLayout.Row.Builder
Overrides

clearWeight()

public RowLayout.Row.Builder clearWeight()

The relative weight of this row. The row weight is used to adjust the height of rows on the screen (relative to peers). Greater the weight, greater the height of the row on the screen. If omitted, a value of 1 is used while rendering.

int64 weight = 1;

Returns
Type Description
RowLayout.Row.Builder

This builder for chaining.

clearWidgets()

public RowLayout.Row.Builder clearWidgets()

The display widgets arranged horizontally in this row.

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

Returns
Type Description
RowLayout.Row.Builder

clone()

public RowLayout.Row.Builder clone()
Returns
Type Description
RowLayout.Row.Builder
Overrides

getDefaultInstanceForType()

public RowLayout.Row getDefaultInstanceForType()
Returns
Type Description
RowLayout.Row

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getWeight()

public long getWeight()

The relative weight of this row. The row weight is used to adjust the height of rows on the screen (relative to peers). Greater the weight, greater the height of the row on the screen. If omitted, a value of 1 is used while rendering.

int64 weight = 1;

Returns
Type Description
long

The weight.

getWidgets(int index)

public Widget getWidgets(int index)

The display widgets arranged horizontally in this row.

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 display widgets arranged horizontally in this row.

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 display widgets arranged horizontally in this row.

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

Returns
Type Description
List<Builder>

getWidgetsCount()

public int getWidgetsCount()

The display widgets arranged horizontally in this row.

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

Returns
Type Description
int

getWidgetsList()

public List<Widget> getWidgetsList()

The display widgets arranged horizontally in this row.

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

Returns
Type Description
List<Widget>

getWidgetsOrBuilder(int index)

public WidgetOrBuilder getWidgetsOrBuilder(int index)

The display widgets arranged horizontally in this row.

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

Parameter
Name Description
index int
Returns
Type Description
WidgetOrBuilder

getWidgetsOrBuilderList()

public List<? extends WidgetOrBuilder> getWidgetsOrBuilderList()

The display widgets arranged horizontally in this row.

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(RowLayout.Row other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RowLayout.Row.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RowLayout.Row.Builder
Overrides

removeWidgets(int index)

public RowLayout.Row.Builder removeWidgets(int index)

The display widgets arranged horizontally in this row.

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

Parameter
Name Description
index int
Returns
Type Description
RowLayout.Row.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final RowLayout.Row.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RowLayout.Row.Builder
Overrides

setWeight(long value)

public RowLayout.Row.Builder setWeight(long value)

The relative weight of this row. The row weight is used to adjust the height of rows on the screen (relative to peers). Greater the weight, greater the height of the row on the screen. If omitted, a value of 1 is used while rendering.

int64 weight = 1;

Parameter
Name Description
value long

The weight to set.

Returns
Type Description
RowLayout.Row.Builder

This builder for chaining.

setWidgets(int index, Widget value)

public RowLayout.Row.Builder setWidgets(int index, Widget value)

The display widgets arranged horizontally in this row.

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

Parameters
Name Description
index int
value Widget
Returns
Type Description
RowLayout.Row.Builder

setWidgets(int index, Widget.Builder builderForValue)

public RowLayout.Row.Builder setWidgets(int index, Widget.Builder builderForValue)

The display widgets arranged horizontally in this row.

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

Parameters
Name Description
index int
builderForValue Widget.Builder
Returns
Type Description
RowLayout.Row.Builder