Class MosaicLayout.Builder (2.47.0)

public static final class MosaicLayout.Builder extends GeneratedMessageV3.Builder<MosaicLayout.Builder> implements MosaicLayoutOrBuilder

A mosaic layout divides the available space into a grid of blocks, and overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid blocks and can be placed at arbitrary locations in the grid.

Protobuf type google.monitoring.dashboard.v1.MosaicLayout

Static Methods

getDescriptor()

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

Methods

addAllTiles(Iterable<? extends MosaicLayout.Tile> values)

public MosaicLayout.Builder addAllTiles(Iterable<? extends MosaicLayout.Tile> values)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameter
Name Description
values Iterable<? extends com.google.monitoring.dashboard.v1.MosaicLayout.Tile>
Returns
Type Description
MosaicLayout.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTiles(MosaicLayout.Tile value)

public MosaicLayout.Builder addTiles(MosaicLayout.Tile value)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameter
Name Description
value MosaicLayout.Tile
Returns
Type Description
MosaicLayout.Builder

addTiles(MosaicLayout.Tile.Builder builderForValue)

public MosaicLayout.Builder addTiles(MosaicLayout.Tile.Builder builderForValue)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameter
Name Description
builderForValue MosaicLayout.Tile.Builder
Returns
Type Description
MosaicLayout.Builder

addTiles(int index, MosaicLayout.Tile value)

public MosaicLayout.Builder addTiles(int index, MosaicLayout.Tile value)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameters
Name Description
index int
value MosaicLayout.Tile
Returns
Type Description
MosaicLayout.Builder

addTiles(int index, MosaicLayout.Tile.Builder builderForValue)

public MosaicLayout.Builder addTiles(int index, MosaicLayout.Tile.Builder builderForValue)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameters
Name Description
index int
builderForValue MosaicLayout.Tile.Builder
Returns
Type Description
MosaicLayout.Builder

addTilesBuilder()

public MosaicLayout.Tile.Builder addTilesBuilder()

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Returns
Type Description
MosaicLayout.Tile.Builder

addTilesBuilder(int index)

public MosaicLayout.Tile.Builder addTilesBuilder(int index)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameter
Name Description
index int
Returns
Type Description
MosaicLayout.Tile.Builder

build()

public MosaicLayout build()
Returns
Type Description
MosaicLayout

buildPartial()

public MosaicLayout buildPartial()
Returns
Type Description
MosaicLayout

clear()

public MosaicLayout.Builder clear()
Returns
Type Description
MosaicLayout.Builder
Overrides

clearColumns()

public MosaicLayout.Builder clearColumns()

The number of columns in the mosaic grid. The number of columns must be between 1 and 12, inclusive.

int32 columns = 1;

Returns
Type Description
MosaicLayout.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTiles()

public MosaicLayout.Builder clearTiles()

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Returns
Type Description
MosaicLayout.Builder

clone()

public MosaicLayout.Builder clone()
Returns
Type Description
MosaicLayout.Builder
Overrides

getColumns()

public int getColumns()

The number of columns in the mosaic grid. The number of columns must be between 1 and 12, inclusive.

int32 columns = 1;

Returns
Type Description
int

The columns.

getDefaultInstanceForType()

public MosaicLayout getDefaultInstanceForType()
Returns
Type Description
MosaicLayout

getDescriptorForType()

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

getTiles(int index)

public MosaicLayout.Tile getTiles(int index)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameter
Name Description
index int
Returns
Type Description
MosaicLayout.Tile

getTilesBuilder(int index)

public MosaicLayout.Tile.Builder getTilesBuilder(int index)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameter
Name Description
index int
Returns
Type Description
MosaicLayout.Tile.Builder

getTilesBuilderList()

public List<MosaicLayout.Tile.Builder> getTilesBuilderList()

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Returns
Type Description
List<Builder>

getTilesCount()

public int getTilesCount()

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Returns
Type Description
int

getTilesList()

public List<MosaicLayout.Tile> getTilesList()

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Returns
Type Description
List<Tile>

getTilesOrBuilder(int index)

public MosaicLayout.TileOrBuilder getTilesOrBuilder(int index)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameter
Name Description
index int
Returns
Type Description
MosaicLayout.TileOrBuilder

getTilesOrBuilderList()

public List<? extends MosaicLayout.TileOrBuilder> getTilesOrBuilderList()

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Returns
Type Description
List<? extends com.google.monitoring.dashboard.v1.MosaicLayout.TileOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MosaicLayout other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTiles(int index)

public MosaicLayout.Builder removeTiles(int index)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameter
Name Description
index int
Returns
Type Description
MosaicLayout.Builder

setColumns(int value)

public MosaicLayout.Builder setColumns(int value)

The number of columns in the mosaic grid. The number of columns must be between 1 and 12, inclusive.

int32 columns = 1;

Parameter
Name Description
value int

The columns to set.

Returns
Type Description
MosaicLayout.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTiles(int index, MosaicLayout.Tile value)

public MosaicLayout.Builder setTiles(int index, MosaicLayout.Tile value)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameters
Name Description
index int
value MosaicLayout.Tile
Returns
Type Description
MosaicLayout.Builder

setTiles(int index, MosaicLayout.Tile.Builder builderForValue)

public MosaicLayout.Builder setTiles(int index, MosaicLayout.Tile.Builder builderForValue)

The tiles to display.

repeated .google.monitoring.dashboard.v1.MosaicLayout.Tile tiles = 3;

Parameters
Name Description
index int
builderForValue MosaicLayout.Tile.Builder
Returns
Type Description
MosaicLayout.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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