Class XyChart.Builder (2.42.0)

public static final class XyChart.Builder extends GeneratedMessageV3.Builder<XyChart.Builder> 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 Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllDataSets(Iterable<? extends XyChart.DataSet> values)

public XyChart.Builder addAllDataSets(Iterable<? extends XyChart.DataSet> values)

Required. The data displayed in this chart.

repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.monitoring.dashboard.v1.XyChart.DataSet>
Returns
TypeDescription
XyChart.Builder

addAllThresholds(Iterable<? extends Threshold> values)

public XyChart.Builder addAllThresholds(Iterable<? extends Threshold> values)

Threshold lines drawn horizontally across the chart.

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

Parameter
NameDescription
valuesIterable<? extends com.google.monitoring.dashboard.v1.Threshold>
Returns
TypeDescription
XyChart.Builder

addDataSets(XyChart.DataSet value)

public XyChart.Builder addDataSets(XyChart.DataSet value)

Required. The data displayed in this chart.

repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueXyChart.DataSet
Returns
TypeDescription
XyChart.Builder

addDataSets(XyChart.DataSet.Builder builderForValue)

public XyChart.Builder addDataSets(XyChart.DataSet.Builder builderForValue)

Required. The data displayed in this chart.

repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueXyChart.DataSet.Builder
Returns
TypeDescription
XyChart.Builder

addDataSets(int index, XyChart.DataSet value)

public XyChart.Builder addDataSets(int index, XyChart.DataSet value)

Required. The data displayed in this chart.

repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueXyChart.DataSet
Returns
TypeDescription
XyChart.Builder

addDataSets(int index, XyChart.DataSet.Builder builderForValue)

public XyChart.Builder addDataSets(int index, XyChart.DataSet.Builder builderForValue)

Required. The data displayed in this chart.

repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueXyChart.DataSet.Builder
Returns
TypeDescription
XyChart.Builder

addDataSetsBuilder()

public XyChart.DataSet.Builder addDataSetsBuilder()

Required. The data displayed in this chart.

repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
XyChart.DataSet.Builder

addDataSetsBuilder(int index)

public XyChart.DataSet.Builder addDataSetsBuilder(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
NameDescription
indexint
Returns
TypeDescription
XyChart.DataSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public XyChart.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
XyChart.Builder
Overrides

addThresholds(Threshold value)

public XyChart.Builder addThresholds(Threshold value)

Threshold lines drawn horizontally across the chart.

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

Parameter
NameDescription
valueThreshold
Returns
TypeDescription
XyChart.Builder

addThresholds(Threshold.Builder builderForValue)

public XyChart.Builder addThresholds(Threshold.Builder builderForValue)

Threshold lines drawn horizontally across the chart.

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

Parameter
NameDescription
builderForValueThreshold.Builder
Returns
TypeDescription
XyChart.Builder

addThresholds(int index, Threshold value)

public XyChart.Builder addThresholds(int index, Threshold value)

Threshold lines drawn horizontally across the chart.

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

Parameters
NameDescription
indexint
valueThreshold
Returns
TypeDescription
XyChart.Builder

addThresholds(int index, Threshold.Builder builderForValue)

public XyChart.Builder addThresholds(int index, Threshold.Builder builderForValue)

Threshold lines drawn horizontally across the chart.

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

Parameters
NameDescription
indexint
builderForValueThreshold.Builder
Returns
TypeDescription
XyChart.Builder

addThresholdsBuilder()

public Threshold.Builder addThresholdsBuilder()

Threshold lines drawn horizontally across the chart.

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

Returns
TypeDescription
Threshold.Builder

addThresholdsBuilder(int index)

public Threshold.Builder addThresholdsBuilder(int index)

Threshold lines drawn horizontally across the chart.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Threshold.Builder

build()

public XyChart build()
Returns
TypeDescription
XyChart

buildPartial()

public XyChart buildPartial()
Returns
TypeDescription
XyChart

clear()

public XyChart.Builder clear()
Returns
TypeDescription
XyChart.Builder
Overrides

clearChartOptions()

public XyChart.Builder clearChartOptions()

Display options for the chart.

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

Returns
TypeDescription
XyChart.Builder

clearDataSets()

public XyChart.Builder clearDataSets()

Required. The data displayed in this chart.

repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
XyChart.Builder

clearField(Descriptors.FieldDescriptor field)

public XyChart.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
XyChart.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public XyChart.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
XyChart.Builder
Overrides

clearThresholds()

public XyChart.Builder clearThresholds()

Threshold lines drawn horizontally across the chart.

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

Returns
TypeDescription
XyChart.Builder

clearTimeshiftDuration()

public XyChart.Builder clearTimeshiftDuration()

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
TypeDescription
XyChart.Builder

clearXAxis()

public XyChart.Builder clearXAxis()

The properties applied to the x-axis.

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

Returns
TypeDescription
XyChart.Builder

clearY2Axis()

public XyChart.Builder clearY2Axis()

The properties applied to the y2-axis.

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

Returns
TypeDescription
XyChart.Builder

clearYAxis()

public XyChart.Builder clearYAxis()

The properties applied to the y-axis.

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

Returns
TypeDescription
XyChart.Builder

clone()

public XyChart.Builder clone()
Returns
TypeDescription
XyChart.Builder
Overrides

getChartOptions()

public ChartOptions getChartOptions()

Display options for the chart.

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

Returns
TypeDescription
ChartOptions

The chartOptions.

getChartOptionsBuilder()

public ChartOptions.Builder getChartOptionsBuilder()

Display options for the chart.

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

Returns
TypeDescription
ChartOptions.Builder

getChartOptionsOrBuilder()

public ChartOptionsOrBuilder getChartOptionsOrBuilder()

Display options for the chart.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
XyChart.DataSet

getDataSetsBuilder(int index)

public XyChart.DataSet.Builder getDataSetsBuilder(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
NameDescription
indexint
Returns
TypeDescription
XyChart.DataSet.Builder

getDataSetsBuilderList()

public List<XyChart.DataSet.Builder> getDataSetsBuilderList()

Required. The data displayed in this chart.

repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.monitoring.dashboard.v1.XyChart.DataSetOrBuilder>

getDefaultInstanceForType()

public XyChart getDefaultInstanceForType()
Returns
TypeDescription
XyChart

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
NameDescription
indexint
Returns
TypeDescription
Threshold

getThresholdsBuilder(int index)

public Threshold.Builder getThresholdsBuilder(int index)

Threshold lines drawn horizontally across the chart.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Threshold.Builder

getThresholdsBuilderList()

public List<Threshold.Builder> getThresholdsBuilderList()

Threshold lines drawn horizontally across the chart.

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

Returns
TypeDescription
List<Builder>

getThresholdsCount()

public int getThresholdsCount()

Threshold lines drawn horizontally across the chart.

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

Returns
TypeDescription
int

getThresholdsList()

public List<Threshold> getThresholdsList()

Threshold lines drawn horizontally across the chart.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ThresholdOrBuilder

getThresholdsOrBuilderList()

public List<? extends ThresholdOrBuilder> getThresholdsOrBuilderList()

Threshold lines drawn horizontally across the chart.

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

Returns
TypeDescription
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
TypeDescription
Duration

The timeshiftDuration.

getTimeshiftDurationBuilder()

public Duration.Builder getTimeshiftDurationBuilder()

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
TypeDescription
Builder

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
TypeDescription
DurationOrBuilder

getXAxis()

public XyChart.Axis getXAxis()

The properties applied to the x-axis.

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

Returns
TypeDescription
XyChart.Axis

The xAxis.

getXAxisBuilder()

public XyChart.Axis.Builder getXAxisBuilder()

The properties applied to the x-axis.

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

Returns
TypeDescription
XyChart.Axis.Builder

getXAxisOrBuilder()

public XyChart.AxisOrBuilder getXAxisOrBuilder()

The properties applied to the x-axis.

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

Returns
TypeDescription
XyChart.AxisOrBuilder

getY2Axis()

public XyChart.Axis getY2Axis()

The properties applied to the y2-axis.

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

Returns
TypeDescription
XyChart.Axis

The y2Axis.

getY2AxisBuilder()

public XyChart.Axis.Builder getY2AxisBuilder()

The properties applied to the y2-axis.

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

Returns
TypeDescription
XyChart.Axis.Builder

getY2AxisOrBuilder()

public XyChart.AxisOrBuilder getY2AxisOrBuilder()

The properties applied to the y2-axis.

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

Returns
TypeDescription
XyChart.AxisOrBuilder

getYAxis()

public XyChart.Axis getYAxis()

The properties applied to the y-axis.

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

Returns
TypeDescription
XyChart.Axis

The yAxis.

getYAxisBuilder()

public XyChart.Axis.Builder getYAxisBuilder()

The properties applied to the y-axis.

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

Returns
TypeDescription
XyChart.Axis.Builder

getYAxisOrBuilder()

public XyChart.AxisOrBuilder getYAxisOrBuilder()

The properties applied to the y-axis.

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

Returns
TypeDescription
XyChart.AxisOrBuilder

hasChartOptions()

public boolean hasChartOptions()

Display options for the chart.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the yAxis field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeChartOptions(ChartOptions value)

public XyChart.Builder mergeChartOptions(ChartOptions value)

Display options for the chart.

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

Parameter
NameDescription
valueChartOptions
Returns
TypeDescription
XyChart.Builder

mergeFrom(XyChart other)

public XyChart.Builder mergeFrom(XyChart other)
Parameter
NameDescription
otherXyChart
Returns
TypeDescription
XyChart.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public XyChart.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
XyChart.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public XyChart.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
XyChart.Builder
Overrides

mergeTimeshiftDuration(Duration value)

public XyChart.Builder mergeTimeshiftDuration(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
XyChart.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final XyChart.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
XyChart.Builder
Overrides

mergeXAxis(XyChart.Axis value)

public XyChart.Builder mergeXAxis(XyChart.Axis value)

The properties applied to the x-axis.

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

Parameter
NameDescription
valueXyChart.Axis
Returns
TypeDescription
XyChart.Builder

mergeY2Axis(XyChart.Axis value)

public XyChart.Builder mergeY2Axis(XyChart.Axis value)

The properties applied to the y2-axis.

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

Parameter
NameDescription
valueXyChart.Axis
Returns
TypeDescription
XyChart.Builder

mergeYAxis(XyChart.Axis value)

public XyChart.Builder mergeYAxis(XyChart.Axis value)

The properties applied to the y-axis.

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

Parameter
NameDescription
valueXyChart.Axis
Returns
TypeDescription
XyChart.Builder

removeDataSets(int index)

public XyChart.Builder removeDataSets(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
NameDescription
indexint
Returns
TypeDescription
XyChart.Builder

removeThresholds(int index)

public XyChart.Builder removeThresholds(int index)

Threshold lines drawn horizontally across the chart.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
XyChart.Builder

setChartOptions(ChartOptions value)

public XyChart.Builder setChartOptions(ChartOptions value)

Display options for the chart.

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

Parameter
NameDescription
valueChartOptions
Returns
TypeDescription
XyChart.Builder

setChartOptions(ChartOptions.Builder builderForValue)

public XyChart.Builder setChartOptions(ChartOptions.Builder builderForValue)

Display options for the chart.

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

Parameter
NameDescription
builderForValueChartOptions.Builder
Returns
TypeDescription
XyChart.Builder

setDataSets(int index, XyChart.DataSet value)

public XyChart.Builder setDataSets(int index, XyChart.DataSet value)

Required. The data displayed in this chart.

repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueXyChart.DataSet
Returns
TypeDescription
XyChart.Builder

setDataSets(int index, XyChart.DataSet.Builder builderForValue)

public XyChart.Builder setDataSets(int index, XyChart.DataSet.Builder builderForValue)

Required. The data displayed in this chart.

repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueXyChart.DataSet.Builder
Returns
TypeDescription
XyChart.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public XyChart.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
XyChart.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public XyChart.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
XyChart.Builder
Overrides

setThresholds(int index, Threshold value)

public XyChart.Builder setThresholds(int index, Threshold value)

Threshold lines drawn horizontally across the chart.

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

Parameters
NameDescription
indexint
valueThreshold
Returns
TypeDescription
XyChart.Builder

setThresholds(int index, Threshold.Builder builderForValue)

public XyChart.Builder setThresholds(int index, Threshold.Builder builderForValue)

Threshold lines drawn horizontally across the chart.

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

Parameters
NameDescription
indexint
builderForValueThreshold.Builder
Returns
TypeDescription
XyChart.Builder

setTimeshiftDuration(Duration value)

public XyChart.Builder setTimeshiftDuration(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
XyChart.Builder

setTimeshiftDuration(Duration.Builder builderForValue)

public XyChart.Builder setTimeshiftDuration(Duration.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
XyChart.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final XyChart.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
XyChart.Builder
Overrides

setXAxis(XyChart.Axis value)

public XyChart.Builder setXAxis(XyChart.Axis value)

The properties applied to the x-axis.

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

Parameter
NameDescription
valueXyChart.Axis
Returns
TypeDescription
XyChart.Builder

setXAxis(XyChart.Axis.Builder builderForValue)

public XyChart.Builder setXAxis(XyChart.Axis.Builder builderForValue)

The properties applied to the x-axis.

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

Parameter
NameDescription
builderForValueXyChart.Axis.Builder
Returns
TypeDescription
XyChart.Builder

setY2Axis(XyChart.Axis value)

public XyChart.Builder setY2Axis(XyChart.Axis value)

The properties applied to the y2-axis.

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

Parameter
NameDescription
valueXyChart.Axis
Returns
TypeDescription
XyChart.Builder

setY2Axis(XyChart.Axis.Builder builderForValue)

public XyChart.Builder setY2Axis(XyChart.Axis.Builder builderForValue)

The properties applied to the y2-axis.

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

Parameter
NameDescription
builderForValueXyChart.Axis.Builder
Returns
TypeDescription
XyChart.Builder

setYAxis(XyChart.Axis value)

public XyChart.Builder setYAxis(XyChart.Axis value)

The properties applied to the y-axis.

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

Parameter
NameDescription
valueXyChart.Axis
Returns
TypeDescription
XyChart.Builder

setYAxis(XyChart.Axis.Builder builderForValue)

public XyChart.Builder setYAxis(XyChart.Axis.Builder builderForValue)

The properties applied to the y-axis.

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

Parameter
NameDescription
builderForValueXyChart.Axis.Builder
Returns
TypeDescription
XyChart.Builder