Class MosaicLayout.Tile (2.39.0)

public static final class MosaicLayout.Tile extends GeneratedMessageV3 implements MosaicLayout.TileOrBuilder

A single tile in the mosaic. The placement and size of the tile are configurable.

Protobuf type google.monitoring.dashboard.v1.MosaicLayout.Tile

Static Fields

HEIGHT_FIELD_NUMBER

public static final int HEIGHT_FIELD_NUMBER
Field Value
TypeDescription
int

WIDGET_FIELD_NUMBER

public static final int WIDGET_FIELD_NUMBER
Field Value
TypeDescription
int

WIDTH_FIELD_NUMBER

public static final int WIDTH_FIELD_NUMBER
Field Value
TypeDescription
int

X_POS_FIELD_NUMBER

public static final int X_POS_FIELD_NUMBER
Field Value
TypeDescription
int

Y_POS_FIELD_NUMBER

public static final int Y_POS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MosaicLayout.Tile getDefaultInstance()
Returns
TypeDescription
MosaicLayout.Tile

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MosaicLayout.Tile.Builder newBuilder()
Returns
TypeDescription
MosaicLayout.Tile.Builder

newBuilder(MosaicLayout.Tile prototype)

public static MosaicLayout.Tile.Builder newBuilder(MosaicLayout.Tile prototype)
Parameter
NameDescription
prototypeMosaicLayout.Tile
Returns
TypeDescription
MosaicLayout.Tile.Builder

parseDelimitedFrom(InputStream input)

public static MosaicLayout.Tile parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MosaicLayout.Tile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MosaicLayout.Tile parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MosaicLayout.Tile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MosaicLayout.Tile parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MosaicLayout.Tile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MosaicLayout.Tile parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MosaicLayout.Tile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MosaicLayout.Tile parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MosaicLayout.Tile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MosaicLayout.Tile parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MosaicLayout.Tile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MosaicLayout.Tile
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MosaicLayout.Tile> parser()
Returns
TypeDescription
Parser<Tile>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public MosaicLayout.Tile getDefaultInstanceForType()
Returns
TypeDescription
MosaicLayout.Tile

getHeight()

public int getHeight()

The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.

int32 height = 4;

Returns
TypeDescription
int

The height.

getParserForType()

public Parser<MosaicLayout.Tile> getParserForType()
Returns
TypeDescription
Parser<Tile>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getWidget()

public Widget getWidget()

The informational widget contained in the tile. For example an XyChart.

.google.monitoring.dashboard.v1.Widget widget = 5;

Returns
TypeDescription
Widget

The widget.

getWidgetOrBuilder()

public WidgetOrBuilder getWidgetOrBuilder()

The informational widget contained in the tile. For example an XyChart.

.google.monitoring.dashboard.v1.Widget widget = 5;

Returns
TypeDescription
WidgetOrBuilder

getWidth()

public int getWidth()

The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.

int32 width = 3;

Returns
TypeDescription
int

The width.

getXPos()

public int getXPos()

The zero-indexed position of the tile in grid blocks relative to the left edge of the grid. Tiles must be contained within the specified number of columns. x_pos cannot be negative.

int32 x_pos = 1;

Returns
TypeDescription
int

The xPos.

getYPos()

public int getYPos()

The zero-indexed position of the tile in grid blocks relative to the top edge of the grid. y_pos cannot be negative.

int32 y_pos = 2;

Returns
TypeDescription
int

The yPos.

hasWidget()

public boolean hasWidget()

The informational widget contained in the tile. For example an XyChart.

.google.monitoring.dashboard.v1.Widget widget = 5;

Returns
TypeDescription
boolean

Whether the widget field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MosaicLayout.Tile.Builder newBuilderForType()
Returns
TypeDescription
MosaicLayout.Tile.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MosaicLayout.Tile.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MosaicLayout.Tile.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MosaicLayout.Tile.Builder toBuilder()
Returns
TypeDescription
MosaicLayout.Tile.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException