Package com.google.api
Class MetricDescriptor.MetricDescriptorMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder
- All Implemented Interfaces:
MetricDescriptor.MetricDescriptorMetadataOrBuilder,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.GeneratedMessage.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.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()The delay of data points caused by ingestion.Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.The sampling period of metric data points.The scope of the timeseries data of the metric.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationThe delay of data points caused by ingestion.com.google.protobuf.Duration.BuilderThe delay of data points caused by ingestion.com.google.protobuf.DurationOrBuilderThe delay of data points caused by ingestion.Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.intDeprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.com.google.protobuf.DurationThe sampling period of metric data points.com.google.protobuf.Duration.BuilderThe sampling period of metric data points.com.google.protobuf.DurationOrBuilderThe sampling period of metric data points.getTimeSeriesResourceHierarchyLevel(int index) The scope of the timeseries data of the metric.intThe scope of the timeseries data of the metric.The scope of the timeseries data of the metric.intgetTimeSeriesResourceHierarchyLevelValue(int index) The scope of the timeseries data of the metric.The scope of the timeseries data of the metric.booleanThe delay of data points caused by ingestion.booleanThe sampling period of metric data points.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(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.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.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.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<MetricDescriptor.MetricDescriptorMetadata.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<MetricDescriptor.MetricDescriptorMetadata.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<MetricDescriptor.MetricDescriptorMetadata.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
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
mergeFrom
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(MetricDescriptor.MetricDescriptorMetadata other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
mergeFrom
public MetricDescriptor.MetricDescriptorMetadata.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<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:
getLaunchStageValuein 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:
getLaunchStagein 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:
hasSamplePeriodin 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:
getSamplePeriodin 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:
getSamplePeriodOrBuilderin 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:
hasIngestDelayin 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:
getIngestDelayin 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:
getIngestDelayOrBuilderin 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:
getTimeSeriesResourceHierarchyLevelListin 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:
getTimeSeriesResourceHierarchyLevelCountin 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:
getTimeSeriesResourceHierarchyLevelin 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:
getTimeSeriesResourceHierarchyLevelValueListin 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:
getTimeSeriesResourceHierarchyLevelValuein 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.
-