Class MosaicLayout.Tile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MosaicLayout.Tile.Builder>
com.google.monitoring.dashboard.v1.MosaicLayout.Tile.Builder
- All Implemented Interfaces:
MosaicLayout.TileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MosaicLayout.Tile
public static final class MosaicLayout.Tile.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MosaicLayout.Tile.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The height of the tile, measured in grid blocks.The informational widget contained in the tile.The width of the tile, measured in grid blocks.The zero-indexed position of the tile in grid blocks relative to the left edge of the grid.The zero-indexed position of the tile in grid blocks relative to the top edge of the grid.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe height of the tile, measured in grid blocks.The informational widget contained in the tile.The informational widget contained in the tile.The informational widget contained in the tile.intgetWidth()The width of the tile, measured in grid blocks.intgetXPos()The zero-indexed position of the tile in grid blocks relative to the left edge of the grid.intgetYPos()The zero-indexed position of the tile in grid blocks relative to the top edge of the grid.booleanThe informational widget contained in the tile.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MosaicLayout.Tile other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeWidget(Widget value) The informational widget contained in the tile.setHeight(int value) The height of the tile, measured in grid blocks.The informational widget contained in the tile.setWidget(Widget.Builder builderForValue) The informational widget contained in the tile.setWidth(int value) The width of the tile, measured in grid blocks.setXPos(int value) The zero-indexed position of the tile in grid blocks relative to the left edge of the grid.setYPos(int value) The zero-indexed position of the tile in grid blocks relative to the top edge of the grid.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MosaicLayout.Tile.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MosaicLayout.Tile.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MosaicLayout.Tile.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MosaicLayout.Tile.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MosaicLayout.Tile.Builder>
-
mergeFrom
public MosaicLayout.Tile.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MosaicLayout.Tile.Builder>- Throws:
IOException
-
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;- Specified by:
getXPosin interfaceMosaicLayout.TileOrBuilder- Returns:
- The xPos.
-
setXPos
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;- Parameters:
value- The xPos to set.- Returns:
- This builder for chaining.
-
clearXPos
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:
- This builder for chaining.
-
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;- Specified by:
getYPosin interfaceMosaicLayout.TileOrBuilder- Returns:
- The yPos.
-
setYPos
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;- Parameters:
value- The yPos to set.- Returns:
- This builder for chaining.
-
clearYPos
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:
- This builder for chaining.
-
getWidth
public int getWidth()The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.
int32 width = 3;- Specified by:
getWidthin interfaceMosaicLayout.TileOrBuilder- Returns:
- The width.
-
setWidth
The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.
int32 width = 3;- Parameters:
value- The width to set.- Returns:
- This builder for chaining.
-
clearWidth
The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.
int32 width = 3;- Returns:
- This builder for chaining.
-
getHeight
public int getHeight()The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.
int32 height = 4;- Specified by:
getHeightin interfaceMosaicLayout.TileOrBuilder- Returns:
- The height.
-
setHeight
The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.
int32 height = 4;- Parameters:
value- The height to set.- Returns:
- This builder for chaining.
-
clearHeight
The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.
int32 height = 4;- Returns:
- This builder for chaining.
-
hasWidget
public boolean hasWidget()The informational widget contained in the tile. For example an `XyChart`.
.google.monitoring.dashboard.v1.Widget widget = 5;- Specified by:
hasWidgetin interfaceMosaicLayout.TileOrBuilder- Returns:
- Whether the widget field is set.
-
getWidget
The informational widget contained in the tile. For example an `XyChart`.
.google.monitoring.dashboard.v1.Widget widget = 5;- Specified by:
getWidgetin interfaceMosaicLayout.TileOrBuilder- Returns:
- The widget.
-
setWidget
The informational widget contained in the tile. For example an `XyChart`.
.google.monitoring.dashboard.v1.Widget widget = 5; -
setWidget
The informational widget contained in the tile. For example an `XyChart`.
.google.monitoring.dashboard.v1.Widget widget = 5; -
mergeWidget
The informational widget contained in the tile. For example an `XyChart`.
.google.monitoring.dashboard.v1.Widget widget = 5; -
clearWidget
The informational widget contained in the tile. For example an `XyChart`.
.google.monitoring.dashboard.v1.Widget widget = 5; -
getWidgetBuilder
The informational widget contained in the tile. For example an `XyChart`.
.google.monitoring.dashboard.v1.Widget widget = 5; -
getWidgetOrBuilder
The informational widget contained in the tile. For example an `XyChart`.
.google.monitoring.dashboard.v1.Widget widget = 5;- Specified by:
getWidgetOrBuilderin interfaceMosaicLayout.TileOrBuilder
-