Class PieChart.PieChartDataSet.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PieChart.PieChartDataSet.Builder>
com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet.Builder
- All Implemented Interfaces:
PieChart.PieChartDataSetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PieChart.PieChartDataSet
public static final class PieChart.PieChartDataSet.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PieChart.PieChartDataSet.Builder>
implements PieChart.PieChartDataSetOrBuilder
Groups a time series query definition.Protobuf type
google.monitoring.dashboard.v1.PieChart.PieChartDataSet-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.Optional.com.google.protobuf.ByteStringOptional.Required.Required.Required.booleanOptional.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMinAlignmentPeriod(com.google.protobuf.Duration value) Optional.Required.setMinAlignmentPeriod(com.google.protobuf.Duration value) Optional.setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue) Optional.setSliceNameTemplate(String value) Optional.setSliceNameTemplateBytes(com.google.protobuf.ByteString 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<PieChart.PieChartDataSet.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<PieChart.PieChartDataSet.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<PieChart.PieChartDataSet.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<PieChart.PieChartDataSet.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PieChart.PieChartDataSet.Builder>
-
mergeFrom
public PieChart.PieChartDataSet.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<PieChart.PieChartDataSet.Builder>- Throws:
IOException
-
hasTimeSeriesQuery
public boolean hasTimeSeriesQuery()Required. The query for the PieChart. See, `google.monitoring.dashboard.v1.TimeSeriesQuery`.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasTimeSeriesQueryin interfacePieChart.PieChartDataSetOrBuilder- Returns:
- Whether the timeSeriesQuery field is set.
-
getTimeSeriesQuery
Required. The query for the PieChart. See, `google.monitoring.dashboard.v1.TimeSeriesQuery`.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTimeSeriesQueryin interfacePieChart.PieChartDataSetOrBuilder- Returns:
- The timeSeriesQuery.
-
setTimeSeriesQuery
Required. The query for the PieChart. See, `google.monitoring.dashboard.v1.TimeSeriesQuery`.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; -
setTimeSeriesQuery
Required. The query for the PieChart. See, `google.monitoring.dashboard.v1.TimeSeriesQuery`.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeTimeSeriesQuery
Required. The query for the PieChart. See, `google.monitoring.dashboard.v1.TimeSeriesQuery`.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearTimeSeriesQuery
Required. The query for the PieChart. See, `google.monitoring.dashboard.v1.TimeSeriesQuery`.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; -
getTimeSeriesQueryBuilder
Required. The query for the PieChart. See, `google.monitoring.dashboard.v1.TimeSeriesQuery`.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED]; -
getTimeSeriesQueryOrBuilder
Required. The query for the PieChart. See, `google.monitoring.dashboard.v1.TimeSeriesQuery`.
.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTimeSeriesQueryOrBuilderin interfacePieChart.PieChartDataSetOrBuilder
-
getSliceNameTemplate
Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to `${resource.labels.zone}`, the zone's value will be used for the name instead of the default name.string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSliceNameTemplatein interfacePieChart.PieChartDataSetOrBuilder- Returns:
- The sliceNameTemplate.
-
getSliceNameTemplateBytes
public com.google.protobuf.ByteString getSliceNameTemplateBytes()Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to `${resource.labels.zone}`, the zone's value will be used for the name instead of the default name.string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSliceNameTemplateBytesin interfacePieChart.PieChartDataSetOrBuilder- Returns:
- The bytes for sliceNameTemplate.
-
setSliceNameTemplate
Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to `${resource.labels.zone}`, the zone's value will be used for the name instead of the default name.string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The sliceNameTemplate to set.- Returns:
- This builder for chaining.
-
clearSliceNameTemplate
Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to `${resource.labels.zone}`, the zone's value will be used for the name instead of the default name.string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSliceNameTemplateBytes
public PieChart.PieChartDataSet.Builder setSliceNameTemplateBytes(com.google.protobuf.ByteString value) Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to `${resource.labels.zone}`, the zone's value will be used for the name instead of the default name.string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for sliceNameTemplate 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 = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMinAlignmentPeriodin interfacePieChart.PieChartDataSetOrBuilder- 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 = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinAlignmentPeriodin interfacePieChart.PieChartDataSetOrBuilder- 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 = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setMinAlignmentPeriod
public PieChart.PieChartDataSet.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinAlignmentPeriodOrBuilderin interfacePieChart.PieChartDataSetOrBuilder
-