Send feedback
Class Widget (2.2.6)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.6 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-14 UTC."],[],[]]