Package com.google.api
Class MetricDescriptor.MetricDescriptorMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
com.google.protobuf.GeneratedMessage.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,MetricDescriptor.MetricDescriptorMetadata.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder
- All Implemented Interfaces:
MetricDescriptor.MetricDescriptorMetadataOrBuilder
,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
MetricDescriptor.MetricDescriptorMetadata
public static final class MetricDescriptor.MetricDescriptorMetadata.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
implements MetricDescriptor.MetricDescriptorMetadataOrBuilder
Additional annotations that can be used to guide the usage of a metric.Protobuf type
google.api.MetricDescriptor.MetricDescriptorMetadata
-
Method Summary
Modifier and TypeMethodDescriptionaddAllTimeSeriesResourceHierarchyLevel
(Iterable<? extends MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel> values) The scope of the timeseries data of the metric.The scope of the timeseries data of the metric.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTimeSeriesResourceHierarchyLevel
(MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel value) The scope of the timeseries data of the metric.addTimeSeriesResourceHierarchyLevelValue
(int value) The scope of the timeseries data of the metric.build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The delay of data points caused by ingestion.Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The sampling period of metric data points.The scope of the timeseries data of the metric.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Duration
The delay of data points caused by ingestion.com.google.protobuf.Duration.Builder
The delay of data points caused by ingestion.com.google.protobuf.DurationOrBuilder
The delay of data points caused by ingestion.Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.int
Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.com.google.protobuf.Duration
The sampling period of metric data points.com.google.protobuf.Duration.Builder
The sampling period of metric data points.com.google.protobuf.DurationOrBuilder
The sampling period of metric data points.getTimeSeriesResourceHierarchyLevel
(int index) The scope of the timeseries data of the metric.int
The scope of the timeseries data of the metric.The scope of the timeseries data of the metric.int
getTimeSeriesResourceHierarchyLevelValue
(int index) The scope of the timeseries data of the metric.The scope of the timeseries data of the metric.boolean
The delay of data points caused by ingestion.boolean
The sampling period of metric data points.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeIngestDelay
(com.google.protobuf.Duration value) The delay of data points caused by ingestion.mergeSamplePeriod
(com.google.protobuf.Duration value) The sampling period of metric data points.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setIngestDelay
(com.google.protobuf.Duration value) The delay of data points caused by ingestion.setIngestDelay
(com.google.protobuf.Duration.Builder builderForValue) The delay of data points caused by ingestion.setLaunchStage
(LaunchStage value) Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.setLaunchStageValue
(int value) Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSamplePeriod
(com.google.protobuf.Duration value) The sampling period of metric data points.setSamplePeriod
(com.google.protobuf.Duration.Builder builderForValue) The sampling period of metric data points.setTimeSeriesResourceHierarchyLevel
(int index, MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel value) The scope of the timeseries data of the metric.setTimeSeriesResourceHierarchyLevelValue
(int index, int value) The scope of the timeseries data of the metric.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getParentForChildren
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
setField
public MetricDescriptor.MetricDescriptorMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
clearField
public MetricDescriptor.MetricDescriptorMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
clearOneof
public MetricDescriptor.MetricDescriptorMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
setRepeatedField
public MetricDescriptor.MetricDescriptorMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
addRepeatedField
public MetricDescriptor.MetricDescriptorMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
mergeFrom
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
mergeFrom
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(MetricDescriptor.MetricDescriptorMetadata other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,
MetricDescriptor.MetricDescriptorMetadata.Builder>
-
mergeFrom
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
- Throws:
IOException
-
getLaunchStageValue
Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=100Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
- Specified by:
getLaunchStageValue
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- The enum numeric value on the wire for launchStage.
-
setLaunchStageValue
Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=100Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
- Parameters:
value
- The enum numeric value on the wire for launchStage to set.- Returns:
- This builder for chaining.
-
getLaunchStage
Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=100Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
- Specified by:
getLaunchStage
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- The launchStage.
-
setLaunchStage
@Deprecated public MetricDescriptor.MetricDescriptorMetadata.Builder setLaunchStage(LaunchStage value) Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=100Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
- Parameters:
value
- The launchStage to set.- Returns:
- This builder for chaining.
-
clearLaunchStage
Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=100Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
- Returns:
- This builder for chaining.
-
hasSamplePeriod
public boolean hasSamplePeriod()The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
- Specified by:
hasSamplePeriod
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- Whether the samplePeriod field is set.
-
getSamplePeriod
public com.google.protobuf.Duration getSamplePeriod()The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
- Specified by:
getSamplePeriod
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- The samplePeriod.
-
setSamplePeriod
public MetricDescriptor.MetricDescriptorMetadata.Builder setSamplePeriod(com.google.protobuf.Duration value) The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
-
setSamplePeriod
public MetricDescriptor.MetricDescriptorMetadata.Builder setSamplePeriod(com.google.protobuf.Duration.Builder builderForValue) The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
-
mergeSamplePeriod
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeSamplePeriod(com.google.protobuf.Duration value) The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
-
clearSamplePeriod
The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
-
getSamplePeriodBuilder
public com.google.protobuf.Duration.Builder getSamplePeriodBuilder()The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
-
getSamplePeriodOrBuilder
public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder()The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
- Specified by:
getSamplePeriodOrBuilder
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
-
hasIngestDelay
public boolean hasIngestDelay()The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
- Specified by:
hasIngestDelay
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- Whether the ingestDelay field is set.
-
getIngestDelay
public com.google.protobuf.Duration getIngestDelay()The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
- Specified by:
getIngestDelay
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- The ingestDelay.
-
setIngestDelay
public MetricDescriptor.MetricDescriptorMetadata.Builder setIngestDelay(com.google.protobuf.Duration value) The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
-
setIngestDelay
public MetricDescriptor.MetricDescriptorMetadata.Builder setIngestDelay(com.google.protobuf.Duration.Builder builderForValue) The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
-
mergeIngestDelay
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeIngestDelay(com.google.protobuf.Duration value) The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
-
clearIngestDelay
The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
-
getIngestDelayBuilder
public com.google.protobuf.Duration.Builder getIngestDelayBuilder()The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
-
getIngestDelayOrBuilder
public com.google.protobuf.DurationOrBuilder getIngestDelayOrBuilder()The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
- Specified by:
getIngestDelayOrBuilder
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
-
getTimeSeriesResourceHierarchyLevelList
public List<MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel> getTimeSeriesResourceHierarchyLevelList()The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Specified by:
getTimeSeriesResourceHierarchyLevelList
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- A list containing the timeSeriesResourceHierarchyLevel.
-
getTimeSeriesResourceHierarchyLevelCount
public int getTimeSeriesResourceHierarchyLevelCount()The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Specified by:
getTimeSeriesResourceHierarchyLevelCount
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- The count of timeSeriesResourceHierarchyLevel.
-
getTimeSeriesResourceHierarchyLevel
public MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel getTimeSeriesResourceHierarchyLevel(int index) The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Specified by:
getTimeSeriesResourceHierarchyLevel
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The timeSeriesResourceHierarchyLevel at the given index.
-
setTimeSeriesResourceHierarchyLevel
public MetricDescriptor.MetricDescriptorMetadata.Builder setTimeSeriesResourceHierarchyLevel(int index, MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel value) The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Parameters:
index
- The index to set the value at.value
- The timeSeriesResourceHierarchyLevel to set.- Returns:
- This builder for chaining.
-
addTimeSeriesResourceHierarchyLevel
public MetricDescriptor.MetricDescriptorMetadata.Builder addTimeSeriesResourceHierarchyLevel(MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel value) The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Parameters:
value
- The timeSeriesResourceHierarchyLevel to add.- Returns:
- This builder for chaining.
-
addAllTimeSeriesResourceHierarchyLevel
public MetricDescriptor.MetricDescriptorMetadata.Builder addAllTimeSeriesResourceHierarchyLevel(Iterable<? extends MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel> values) The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Parameters:
values
- The timeSeriesResourceHierarchyLevel to add.- Returns:
- This builder for chaining.
-
clearTimeSeriesResourceHierarchyLevel
The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Returns:
- This builder for chaining.
-
getTimeSeriesResourceHierarchyLevelValueList
The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Specified by:
getTimeSeriesResourceHierarchyLevelValueList
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for timeSeriesResourceHierarchyLevel.
-
getTimeSeriesResourceHierarchyLevelValue
public int getTimeSeriesResourceHierarchyLevelValue(int index) The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Specified by:
getTimeSeriesResourceHierarchyLevelValue
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of timeSeriesResourceHierarchyLevel at the given index.
-
setTimeSeriesResourceHierarchyLevelValue
public MetricDescriptor.MetricDescriptorMetadata.Builder setTimeSeriesResourceHierarchyLevelValue(int index, int value) The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Parameters:
index
- The index to set the value at.value
- The enum numeric value on the wire for timeSeriesResourceHierarchyLevel to set.- Returns:
- This builder for chaining.
-
addTimeSeriesResourceHierarchyLevelValue
public MetricDescriptor.MetricDescriptorMetadata.Builder addTimeSeriesResourceHierarchyLevelValue(int value) The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Parameters:
value
- The enum numeric value on the wire for timeSeriesResourceHierarchyLevel to add.- Returns:
- This builder for chaining.
-
addAllTimeSeriesResourceHierarchyLevelValue
public MetricDescriptor.MetricDescriptorMetadata.Builder addAllTimeSeriesResourceHierarchyLevelValue(Iterable<Integer> values) The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
- Parameters:
values
- The enum numeric values on the wire for timeSeriesResourceHierarchyLevel to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final MetricDescriptor.MetricDescriptorMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
mergeUnknownFields
public final MetricDescriptor.MetricDescriptorMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-