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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MosaicLayout.Tile.Builder>
    • clear

      public MosaicLayout.Tile.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<MosaicLayout.Tile.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MosaicLayout.Tile.Builder>
    • getDefaultInstanceForType

      public MosaicLayout.Tile getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public MosaicLayout.Tile build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MosaicLayout.Tile buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public MosaicLayout.Tile.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MosaicLayout.Tile.Builder>
    • mergeFrom

      public MosaicLayout.Tile.Builder mergeFrom(MosaicLayout.Tile other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getXPos in interface MosaicLayout.TileOrBuilder
      Returns:
      The xPos.
    • setXPos

      public MosaicLayout.Tile.Builder setXPos(int value)
       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

      public MosaicLayout.Tile.Builder 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:
      getYPos in interface MosaicLayout.TileOrBuilder
      Returns:
      The yPos.
    • setYPos

      public MosaicLayout.Tile.Builder setYPos(int value)
       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

      public MosaicLayout.Tile.Builder 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:
      getWidth in interface MosaicLayout.TileOrBuilder
      Returns:
      The width.
    • setWidth

      public MosaicLayout.Tile.Builder setWidth(int value)
       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

      public MosaicLayout.Tile.Builder 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:
      getHeight in interface MosaicLayout.TileOrBuilder
      Returns:
      The height.
    • setHeight

      public MosaicLayout.Tile.Builder setHeight(int value)
       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

      public MosaicLayout.Tile.Builder 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:
      hasWidget in interface MosaicLayout.TileOrBuilder
      Returns:
      Whether the widget field is set.
    • getWidget

      public Widget getWidget()
       The informational widget contained in the tile. For example an `XyChart`.
       
      .google.monitoring.dashboard.v1.Widget widget = 5;
      Specified by:
      getWidget in interface MosaicLayout.TileOrBuilder
      Returns:
      The widget.
    • setWidget

      public MosaicLayout.Tile.Builder setWidget(Widget value)
       The informational widget contained in the tile. For example an `XyChart`.
       
      .google.monitoring.dashboard.v1.Widget widget = 5;
    • setWidget

      public MosaicLayout.Tile.Builder setWidget(Widget.Builder builderForValue)
       The informational widget contained in the tile. For example an `XyChart`.
       
      .google.monitoring.dashboard.v1.Widget widget = 5;
    • mergeWidget

      public MosaicLayout.Tile.Builder mergeWidget(Widget value)
       The informational widget contained in the tile. For example an `XyChart`.
       
      .google.monitoring.dashboard.v1.Widget widget = 5;
    • clearWidget

      public MosaicLayout.Tile.Builder clearWidget()
       The informational widget contained in the tile. For example an `XyChart`.
       
      .google.monitoring.dashboard.v1.Widget widget = 5;
    • getWidgetBuilder

      public Widget.Builder getWidgetBuilder()
       The informational widget contained in the tile. For example an `XyChart`.
       
      .google.monitoring.dashboard.v1.Widget widget = 5;
    • getWidgetOrBuilder

      public WidgetOrBuilder getWidgetOrBuilder()
       The informational widget contained in the tile. For example an `XyChart`.
       
      .google.monitoring.dashboard.v1.Widget widget = 5;
      Specified by:
      getWidgetOrBuilder in interface MosaicLayout.TileOrBuilder