public final class XyChart extends GeneratedMessageV3 implements XyChartOrBuilder
A chart that displays data on a 2D (X and Y axes) plane.
Protobuf type google.monitoring.dashboard.v1.XyChart
Static Fields
CHART_OPTIONS_FIELD_NUMBER
public static final int CHART_OPTIONS_FIELD_NUMBER
Field Value
DATA_SETS_FIELD_NUMBER
public static final int DATA_SETS_FIELD_NUMBER
Field Value
THRESHOLDS_FIELD_NUMBER
public static final int THRESHOLDS_FIELD_NUMBER
Field Value
TIMESHIFT_DURATION_FIELD_NUMBER
public static final int TIMESHIFT_DURATION_FIELD_NUMBER
Field Value
X_AXIS_FIELD_NUMBER
public static final int X_AXIS_FIELD_NUMBER
Field Value
Y_AXIS_FIELD_NUMBER
public static final int Y_AXIS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static XyChart getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static XyChart.Builder newBuilder()
Returns
newBuilder(XyChart prototype)
public static XyChart.Builder newBuilder(XyChart prototype)
Parameter
Returns
public static XyChart parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static XyChart parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static XyChart parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static XyChart parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static XyChart parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static XyChart parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static XyChart parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static XyChart parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static XyChart parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static XyChart parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static XyChart parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static XyChart parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<XyChart> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getChartOptions()
public ChartOptions getChartOptions()
Display options for the chart.
.google.monitoring.dashboard.v1.ChartOptions chart_options = 8;
Returns
getChartOptionsOrBuilder()
public ChartOptionsOrBuilder getChartOptionsOrBuilder()
Display options for the chart.
.google.monitoring.dashboard.v1.ChartOptions chart_options = 8;
Returns
getDataSets(int index)
public XyChart.DataSet getDataSets(int index)
Required. The data displayed in this chart.
repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getDataSetsCount()
public int getDataSetsCount()
Required. The data displayed in this chart.
repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getDataSetsList()
public List<XyChart.DataSet> getDataSetsList()
Required. The data displayed in this chart.
repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getDataSetsOrBuilder(int index)
public XyChart.DataSetOrBuilder getDataSetsOrBuilder(int index)
Required. The data displayed in this chart.
repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getDataSetsOrBuilderList()
public List<? extends XyChart.DataSetOrBuilder> getDataSetsOrBuilderList()
Required. The data displayed in this chart.
repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
List<? extends com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder> | |
getDefaultInstanceForType()
public XyChart getDefaultInstanceForType()
Returns
getParserForType()
public Parser<XyChart> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getThresholds(int index)
public Threshold getThresholds(int index)
Threshold lines drawn horizontally across the chart.
repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
Parameter
Returns
getThresholdsCount()
public int getThresholdsCount()
Threshold lines drawn horizontally across the chart.
repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
Returns
getThresholdsList()
public List<Threshold> getThresholdsList()
Threshold lines drawn horizontally across the chart.
repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
Returns
getThresholdsOrBuilder(int index)
public ThresholdOrBuilder getThresholdsOrBuilder(int index)
Threshold lines drawn horizontally across the chart.
repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
Parameter
Returns
getThresholdsOrBuilderList()
public List<? extends ThresholdOrBuilder> getThresholdsOrBuilderList()
Threshold lines drawn horizontally across the chart.
repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
Returns
Type | Description |
List<? extends com.google.monitoring.dashboard.v1.ThresholdOrBuilder> | |
getTimeshiftDuration()
public Duration getTimeshiftDuration()
The duration used to display a comparison chart. A comparison chart
simultaneously shows values from two similar-length time periods
(e.g., week-over-week metrics).
The duration must be positive, and it can only be applied to charts with
data sets of LINE plot type.
.google.protobuf.Duration timeshift_duration = 4;
Returns
Type | Description |
Duration | The timeshiftDuration.
|
getTimeshiftDurationOrBuilder()
public DurationOrBuilder getTimeshiftDurationOrBuilder()
The duration used to display a comparison chart. A comparison chart
simultaneously shows values from two similar-length time periods
(e.g., week-over-week metrics).
The duration must be positive, and it can only be applied to charts with
data sets of LINE plot type.
.google.protobuf.Duration timeshift_duration = 4;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getXAxis()
public XyChart.Axis getXAxis()
The properties applied to the X axis.
.google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;
Returns
getXAxisOrBuilder()
public XyChart.AxisOrBuilder getXAxisOrBuilder()
The properties applied to the X axis.
.google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;
Returns
getYAxis()
public XyChart.Axis getYAxis()
The properties applied to the Y axis.
.google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;
Returns
getYAxisOrBuilder()
public XyChart.AxisOrBuilder getYAxisOrBuilder()
The properties applied to the Y axis.
.google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;
Returns
hasChartOptions()
public boolean hasChartOptions()
Display options for the chart.
.google.monitoring.dashboard.v1.ChartOptions chart_options = 8;
Returns
Type | Description |
boolean | Whether the chartOptions field is set.
|
hasTimeshiftDuration()
public boolean hasTimeshiftDuration()
The duration used to display a comparison chart. A comparison chart
simultaneously shows values from two similar-length time periods
(e.g., week-over-week metrics).
The duration must be positive, and it can only be applied to charts with
data sets of LINE plot type.
.google.protobuf.Duration timeshift_duration = 4;
Returns
Type | Description |
boolean | Whether the timeshiftDuration field is set.
|
hasXAxis()
public boolean hasXAxis()
The properties applied to the X axis.
.google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;
Returns
Type | Description |
boolean | Whether the xAxis field is set.
|
hasYAxis()
public boolean hasYAxis()
The properties applied to the Y axis.
.google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;
Returns
Type | Description |
boolean | Whether the yAxis field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public XyChart.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected XyChart.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public XyChart.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions