Send feedback
Class MetricDescriptor.MetricDescriptorMetadata (2.50.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public static final class MetricDescriptor . MetricDescriptorMetadata extends GeneratedMessageV3 implements MetricDescriptor . MetricDescriptorMetadataOrBuilder
Additional annotations that can be used to guide the usage of a metric.
Protobuf type google.api.MetricDescriptor.MetricDescriptorMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int INGEST_DELAY_FIELD_NUMBER
Field Value
Type
Description
int
public static final int LAUNCH_STAGE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int SAMPLE_PERIOD_FIELD_NUMBER
Field Value
Type
Description
int
public static final int TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static MetricDescriptor . MetricDescriptorMetadata getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static MetricDescriptor . MetricDescriptorMetadata . Builder newBuilder ()
public static MetricDescriptor . MetricDescriptorMetadata . Builder newBuilder ( MetricDescriptor . MetricDescriptorMetadata prototype )
public static MetricDescriptor . MetricDescriptorMetadata parseDelimitedFrom ( InputStream input )
public static MetricDescriptor . MetricDescriptorMetadata parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( ByteString data )
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( CodedInputStream input )
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( InputStream input )
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( ByteBuffer data )
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<MetricDescriptor . MetricDescriptorMetadata > parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public MetricDescriptor . MetricDescriptorMetadata getDefaultInstanceForType ()
public 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;
Returns
Type
Description
Duration
The ingestDelay.
public 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;
public LaunchStage getLaunchStage ()
Deprecated. google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.
See google/api/metric.proto;l=100
Deprecated. Must use the
MetricDescriptor.launch_stage
instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
public int getLaunchStageValue ()
Deprecated. google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.
See google/api/metric.proto;l=100
Deprecated. Must use the
MetricDescriptor.launch_stage
instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Returns
Type
Description
int
The enum numeric value on the wire for launchStage.
public Parser<MetricDescriptor . MetricDescriptorMetadata > getParserForType ()
Overrides
public 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;
Returns
Type
Description
Duration
The samplePeriod.
public 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;
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
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;
Parameter
Name
Description
index
int
The index of the element to return.
public int getTimeSeriesResourceHierarchyLevelCount ()
The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
Returns
Type
Description
int
The count of timeSeriesResourceHierarchyLevel.
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;
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;
Parameter
Name
Description
index
int
The index of the value to return.
Returns
Type
Description
int
The enum numeric value on the wire of timeSeriesResourceHierarchyLevel at the given
index.
public List<Integer> getTimeSeriesResourceHierarchyLevelValueList ()
The scope of the timeseries data of the metric.
repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4;
Returns
Type
Description
List <Integer >
A list containing the enum numeric values on the wire for
timeSeriesResourceHierarchyLevel.
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;
Returns
Type
Description
boolean
Whether the ingestDelay field is set.
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;
Returns
Type
Description
boolean
Whether the samplePeriod field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public MetricDescriptor . MetricDescriptorMetadata . Builder newBuilderForType ()
protected MetricDescriptor . MetricDescriptorMetadata . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public MetricDescriptor . MetricDescriptorMetadata . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]