Class XyChart (2.54.0)

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

Implements

XyChartOrBuilder

Static Fields

CHART_OPTIONS_FIELD_NUMBER

public static final int CHART_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

DATA_SETS_FIELD_NUMBER

public static final int DATA_SETS_FIELD_NUMBER
Field Value
Type Description
int

THRESHOLDS_FIELD_NUMBER

public static final int THRESHOLDS_FIELD_NUMBER
Field Value
Type Description
int

TIMESHIFT_DURATION_FIELD_NUMBER

public static final int TIMESHIFT_DURATION_FIELD_NUMBER
Field Value
Type Description
int

X_AXIS_FIELD_NUMBER

public static final int X_AXIS_FIELD_NUMBER
Field Value
Type Description
int

Y2_AXIS_FIELD_NUMBER

public static final int Y2_AXIS_FIELD_NUMBER
Field Value
Type Description
int

Y_AXIS_FIELD_NUMBER

public static final int Y_AXIS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static XyChart getDefaultInstance()
Returns
Type Description
XyChart

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static XyChart.Builder newBuilder()
Returns
Type Description
XyChart.Builder

newBuilder(XyChart prototype)

public static XyChart.Builder newBuilder(XyChart prototype)
Parameter
Name Description
prototype XyChart
Returns
Type Description
XyChart.Builder

parseDelimitedFrom(InputStream input)

public static XyChart parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
XyChart
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static XyChart parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
XyChart
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static XyChart parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
XyChart
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static XyChart parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
XyChart
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static XyChart parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
XyChart
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static XyChart parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
XyChart
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static XyChart parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
XyChart
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static XyChart parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
XyChart
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static XyChart parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
XyChart
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static XyChart parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
XyChart
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static XyChart parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
XyChart
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static XyChart parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
XyChart
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<XyChart> parser()
Returns
Type Description
Parser<XyChart>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getChartOptions()

public ChartOptions getChartOptions()

Display options for the chart.

.google.monitoring.dashboard.v1.ChartOptions chart_options = 8;

Returns
Type Description
ChartOptions

The chartOptions.

getChartOptionsOrBuilder()

public ChartOptionsOrBuilder getChartOptionsOrBuilder()

Display options for the chart.

.google.monitoring.dashboard.v1.ChartOptions chart_options = 8;

Returns
Type Description
ChartOptionsOrBuilder

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
Name Description
index int
Returns
Type Description
XyChart.DataSet

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
Type Description
int

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
Type Description
List<DataSet>

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
Name Description
index int
Returns
Type Description
XyChart.DataSetOrBuilder

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
Type Description
XyChart

getParserForType()

public Parser<XyChart> getParserForType()
Returns
Type Description
Parser<XyChart>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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
Name Description
index int
Returns
Type Description
Threshold

getThresholdsCount()

public int getThresholdsCount()

Threshold lines drawn horizontally across the chart.

repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;

Returns
Type Description
int

getThresholdsList()

public List<Threshold> getThresholdsList()

Threshold lines drawn horizontally across the chart.

repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;

Returns
Type Description
List<Threshold>

getThresholdsOrBuilder(int index)

public ThresholdOrBuilder getThresholdsOrBuilder(int index)

Threshold lines drawn horizontally across the chart.

repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;

Parameter
Name Description
index int
Returns
Type Description
ThresholdOrBuilder

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
Type Description
DurationOrBuilder

getXAxis()

public XyChart.Axis getXAxis()

The properties applied to the x-axis.

.google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;

Returns
Type Description
XyChart.Axis

The xAxis.

getXAxisOrBuilder()

public XyChart.AxisOrBuilder getXAxisOrBuilder()

The properties applied to the x-axis.

.google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;

Returns
Type Description
XyChart.AxisOrBuilder

getY2Axis()

public XyChart.Axis getY2Axis()

The properties applied to the y2-axis.

.google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9;

Returns
Type Description
XyChart.Axis

The y2Axis.

getY2AxisOrBuilder()

public XyChart.AxisOrBuilder getY2AxisOrBuilder()

The properties applied to the y2-axis.

.google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9;

Returns
Type Description
XyChart.AxisOrBuilder

getYAxis()

public XyChart.Axis getYAxis()

The properties applied to the y-axis.

.google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;

Returns
Type Description
XyChart.Axis

The yAxis.

getYAxisOrBuilder()

public XyChart.AxisOrBuilder getYAxisOrBuilder()

The properties applied to the y-axis.

.google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;

Returns
Type Description
XyChart.AxisOrBuilder

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.

hasY2Axis()

public boolean hasY2Axis()

The properties applied to the y2-axis.

.google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9;

Returns
Type Description
boolean

Whether the y2Axis 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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public XyChart.Builder newBuilderForType()
Returns
Type Description
XyChart.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected XyChart.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
XyChart.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public XyChart.Builder toBuilder()
Returns
Type Description
XyChart.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException