Class XyChart.DataSet.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<XyChart.DataSet.Builder>
com.google.monitoring.dashboard.v1.XyChart.DataSet.Builder
- All Implemented Interfaces:
XyChart.DataSetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- XyChart.DataSet
public static final class XyChart.DataSet.Builder
extends com.google.protobuf.GeneratedMessage.Builder<XyChart.DataSet.Builder>
implements XyChart.DataSetOrBuilder
Groups a time series query definition with charting options.Protobuf type
google.monitoring.dashboard.v1.XyChart.DataSet-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()A template string for naming `TimeSeries` in the resulting data set.Optional.How this data should be plotted on the chart.Optional.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA template string for naming `TimeSeries` in the resulting data set.com.google.protobuf.ByteStringA template string for naming `TimeSeries` in the resulting data set.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.How this data should be plotted on the chart.intHow this data should be plotted on the chart.Optional.intOptional.Required.Required.Required.booleanOptional.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(XyChart.DataSet other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMinAlignmentPeriod(com.google.protobuf.Duration value) Optional.Required.setLegendTemplate(String value) A template string for naming `TimeSeries` in the resulting data set.setLegendTemplateBytes(com.google.protobuf.ByteString value) A template string for naming `TimeSeries` in the resulting data set.setMinAlignmentPeriod(com.google.protobuf.Duration value) Optional.setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) Optional.How this data should be plotted on the chart.setPlotTypeValue(int value) How this data should be plotted on the chart.Optional.setTargetAxisValue(int value) Optional.Required.setTimeSeriesQuery(TimeSeriesQuery.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<XyChart.DataSet.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<XyChart.DataSet.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<XyChart.DataSet.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<XyChart.DataSet.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<XyChart.DataSet.Builder>
-
mergeFrom
public XyChart.DataSet.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<XyChart.DataSet.Builder>- Throws:
IOException
-
hasTimeSeriesQuery
public boolean hasTimeSeriesQuery()Required. Fields for querying time series data from the Stackdriver metrics API.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasTimeSeriesQueryin interfaceXyChart.DataSetOrBuilder- Returns:
- Whether the timeSeriesQuery field is set.
-
getTimeSeriesQuery
Required. Fields for querying time series data from the Stackdriver metrics API.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTimeSeriesQueryin interfaceXyChart.DataSetOrBuilder- Returns:
- The timeSeriesQuery.
-
setTimeSeriesQuery
Required. Fields for querying time series data from the Stackdriver metrics API.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; -
setTimeSeriesQuery
Required. Fields for querying time series data from the Stackdriver metrics API.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeTimeSeriesQuery
Required. Fields for querying time series data from the Stackdriver metrics API.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearTimeSeriesQuery
Required. Fields for querying time series data from the Stackdriver metrics API.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; -
getTimeSeriesQueryBuilder
Required. Fields for querying time series data from the Stackdriver metrics API.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; -
getTimeSeriesQueryOrBuilder
Required. Fields for querying time series data from the Stackdriver metrics API.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTimeSeriesQueryOrBuilderin interfaceXyChart.DataSetOrBuilder
-
getPlotTypeValue
public int getPlotTypeValue()How this data should be plotted on the chart.
.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2;- Specified by:
getPlotTypeValuein interfaceXyChart.DataSetOrBuilder- Returns:
- The enum numeric value on the wire for plotType.
-
setPlotTypeValue
How this data should be plotted on the chart.
.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2;- Parameters:
value- The enum numeric value on the wire for plotType to set.- Returns:
- This builder for chaining.
-
getPlotType
How this data should be plotted on the chart.
.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2;- Specified by:
getPlotTypein interfaceXyChart.DataSetOrBuilder- Returns:
- The plotType.
-
setPlotType
How this data should be plotted on the chart.
.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2;- Parameters:
value- The plotType to set.- Returns:
- This builder for chaining.
-
clearPlotType
How this data should be plotted on the chart.
.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2;- Returns:
- This builder for chaining.
-
getLegendTemplate
A template string for naming `TimeSeries` in the resulting data set. This should be a string with interpolations of the form `${label_name}`, which will resolve to the label's value.string legend_template = 3;- Specified by:
getLegendTemplatein interfaceXyChart.DataSetOrBuilder- Returns:
- The legendTemplate.
-
getLegendTemplateBytes
public com.google.protobuf.ByteString getLegendTemplateBytes()A template string for naming `TimeSeries` in the resulting data set. This should be a string with interpolations of the form `${label_name}`, which will resolve to the label's value.string legend_template = 3;- Specified by:
getLegendTemplateBytesin interfaceXyChart.DataSetOrBuilder- Returns:
- The bytes for legendTemplate.
-
setLegendTemplate
A template string for naming `TimeSeries` in the resulting data set. This should be a string with interpolations of the form `${label_name}`, which will resolve to the label's value.string legend_template = 3;- Parameters:
value- The legendTemplate to set.- Returns:
- This builder for chaining.
-
clearLegendTemplate
A template string for naming `TimeSeries` in the resulting data set. This should be a string with interpolations of the form `${label_name}`, which will resolve to the label's value.string legend_template = 3;- Returns:
- This builder for chaining.
-
setLegendTemplateBytes
A template string for naming `TimeSeries` in the resulting data set. This should be a string with interpolations of the form `${label_name}`, which will resolve to the label's value.string legend_template = 3;- Parameters:
value- The bytes for legendTemplate to set.- Returns:
- This builder for chaining.
-
hasMinAlignmentPeriod
public boolean hasMinAlignmentPeriod()Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the `min_alignment_period` should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
.google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMinAlignmentPeriodin interfaceXyChart.DataSetOrBuilder- Returns:
- Whether the minAlignmentPeriod field is set.
-
getMinAlignmentPeriod
public com.google.protobuf.Duration getMinAlignmentPeriod()Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the `min_alignment_period` should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
.google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinAlignmentPeriodin interfaceXyChart.DataSetOrBuilder- Returns:
- The minAlignmentPeriod.
-
setMinAlignmentPeriod
Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the `min_alignment_period` should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
.google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setMinAlignmentPeriod
public XyChart.DataSet.Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the `min_alignment_period` should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
.google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeMinAlignmentPeriod
Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the `min_alignment_period` should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
.google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearMinAlignmentPeriod
Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the `min_alignment_period` should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
.google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getMinAlignmentPeriodBuilder
public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder()Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the `min_alignment_period` should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
.google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getMinAlignmentPeriodOrBuilder
public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder()Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the `min_alignment_period` should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
.google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinAlignmentPeriodOrBuilderin interfaceXyChart.DataSetOrBuilder
-
getTargetAxisValue
public int getTargetAxisValue()Optional. The target axis to use for plotting the metric.
.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetAxisValuein interfaceXyChart.DataSetOrBuilder- Returns:
- The enum numeric value on the wire for targetAxis.
-
setTargetAxisValue
Optional. The target axis to use for plotting the metric.
.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for targetAxis to set.- Returns:
- This builder for chaining.
-
getTargetAxis
Optional. The target axis to use for plotting the metric.
.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetAxisin interfaceXyChart.DataSetOrBuilder- Returns:
- The targetAxis.
-
setTargetAxis
Optional. The target axis to use for plotting the metric.
.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The targetAxis to set.- Returns:
- This builder for chaining.
-
clearTargetAxis
Optional. The target axis to use for plotting the metric.
.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-