Class MosaicLayout.Builder (2.38.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.monitoring.dashboard.v1.MosaicLayout.Tile>
Returns
TypeDescription
MosaicLayout.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MosaicLayout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueMosaicLayout.Tile
Returns
TypeDescription
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
NameDescription
builderForValueMosaicLayout.Tile.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMosaicLayout.Tile
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMosaicLayout.Tile.Builder
Returns
TypeDescription
MosaicLayout.Builder

addTilesBuilder()

public MosaicLayout.Tile.Builder addTilesBuilder()

The tiles to display.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MosaicLayout.Tile.Builder

build()

public MosaicLayout build()
Returns
TypeDescription
MosaicLayout

buildPartial()

public MosaicLayout buildPartial()
Returns
TypeDescription
MosaicLayout

clear()

public MosaicLayout.Builder clear()
Returns
TypeDescription
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
TypeDescription
MosaicLayout.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MosaicLayout.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MosaicLayout.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MosaicLayout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MosaicLayout.Builder
Overrides

clearTiles()

public MosaicLayout.Builder clearTiles()

The tiles to display.

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

Returns
TypeDescription
MosaicLayout.Builder

clone()

public MosaicLayout.Builder clone()
Returns
TypeDescription
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
TypeDescription
int

The columns.

getDefaultInstanceForType()

public MosaicLayout getDefaultInstanceForType()
Returns
TypeDescription
MosaicLayout

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MosaicLayout.Tile.Builder

getTilesBuilderList()

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

The tiles to display.

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

Returns
TypeDescription
List<Builder>

getTilesCount()

public int getTilesCount()

The tiles to display.

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

Returns
TypeDescription
int

getTilesList()

public List<MosaicLayout.Tile> getTilesList()

The tiles to display.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MosaicLayout.TileOrBuilder

getTilesOrBuilderList()

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

The tiles to display.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MosaicLayout other)

public MosaicLayout.Builder mergeFrom(MosaicLayout other)
Parameter
NameDescription
otherMosaicLayout
Returns
TypeDescription
MosaicLayout.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MosaicLayout.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MosaicLayout.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MosaicLayout.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MosaicLayout.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MosaicLayout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueint

The columns to set.

Returns
TypeDescription
MosaicLayout.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MosaicLayout.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MosaicLayout.Builder
Overrides

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

public MosaicLayout.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueMosaicLayout.Tile
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMosaicLayout.Tile.Builder
Returns
TypeDescription
MosaicLayout.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final MosaicLayout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MosaicLayout.Builder
Overrides