public final class Widget extends GeneratedMessageV3 implements WidgetOrBuilder
Widget contains a single dashboard component and configuration of how to
present the component in the dashboard.
Protobuf type google.monitoring.dashboard.v1.Widget
Static Fields
public static final int ALERT_CHART_FIELD_NUMBER
Field Value
public static final int BLANK_FIELD_NUMBER
Field Value
public static final int SCORECARD_FIELD_NUMBER
Field Value
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
Field Value
public static final int TITLE_FIELD_NUMBER
Field Value
public static final int XY_CHART_FIELD_NUMBER
Field Value
Static Methods
public static Widget getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Widget.Builder newBuilder()
Returns
public static Widget.Builder newBuilder(Widget prototype)
Parameter
Name | Description |
prototype | Widget
|
Returns
public static Widget parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Widget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Widget parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Widget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Widget parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Widget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Widget parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Widget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Widget parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Widget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Widget parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Widget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Widget> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public AlertChart getAlertChart()
A chart of alert policy data.
.google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
Returns
public AlertChartOrBuilder getAlertChartOrBuilder()
A chart of alert policy data.
.google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
Returns
A blank space.
.google.protobuf.Empty blank = 5;
Returns
Type | Description |
Empty | The blank.
|
public EmptyOrBuilder getBlankOrBuilder()
A blank space.
.google.protobuf.Empty blank = 5;
Returns
getContentCase()
public Widget.ContentCase getContentCase()
Returns
public Widget getDefaultInstanceForType()
Returns
public Parser<Widget> getParserForType()
Returns
Overrides
public Scorecard getScorecard()
A scorecard summarizing time series data.
.google.monitoring.dashboard.v1.Scorecard scorecard = 3;
Returns
public ScorecardOrBuilder getScorecardOrBuilder()
A scorecard summarizing time series data.
.google.monitoring.dashboard.v1.Scorecard scorecard = 3;
Returns
public int getSerializedSize()
Returns
Overrides
getText()
A raw string or markdown displaying textual content.
.google.monitoring.dashboard.v1.Text text = 4;
Returns
Type | Description |
Text | The text.
|
getTextOrBuilder()
public TextOrBuilder getTextOrBuilder()
A raw string or markdown displaying textual content.
.google.monitoring.dashboard.v1.Text text = 4;
Returns
Optional. The title of the widget.
string title = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
String | The title.
|
public ByteString getTitleBytes()
Optional. The title of the widget.
string title = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public XyChart getXyChart()
A chart of time series data.
.google.monitoring.dashboard.v1.XyChart xy_chart = 2;
Returns
public XyChartOrBuilder getXyChartOrBuilder()
A chart of time series data.
.google.monitoring.dashboard.v1.XyChart xy_chart = 2;
Returns
public boolean hasAlertChart()
A chart of alert policy data.
.google.monitoring.dashboard.v1.AlertChart alert_chart = 7;
Returns
Type | Description |
boolean | Whether the alertChart field is set.
|
public boolean hasBlank()
A blank space.
.google.protobuf.Empty blank = 5;
Returns
Type | Description |
boolean | Whether the blank field is set.
|
public boolean hasScorecard()
A scorecard summarizing time series data.
.google.monitoring.dashboard.v1.Scorecard scorecard = 3;
Returns
Type | Description |
boolean | Whether the scorecard field is set.
|
hasText()
A raw string or markdown displaying textual content.
.google.monitoring.dashboard.v1.Text text = 4;
Returns
Type | Description |
boolean | Whether the text field is set.
|
public boolean hasXyChart()
A chart of time series data.
.google.monitoring.dashboard.v1.XyChart xy_chart = 2;
Returns
Type | Description |
boolean | Whether the xyChart field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Widget.Builder newBuilderForType()
Returns
protected Widget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Widget.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions