Send feedback
Class MetricDescriptor.MetricDescriptorMetadata (2.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.11.0 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
Static Fields
public static final int INGEST_DELAY_FIELD_NUMBER
Field Value
public static final int LAUNCH_STAGE_FIELD_NUMBER
Field Value
public static final int SAMPLE_PERIOD_FIELD_NUMBER
Field Value
Static Methods
public static MetricDescriptor . MetricDescriptorMetadata getDefaultInstance ()
Returns
public static final Descriptors . Descriptor getDescriptor ()
Returns
public static MetricDescriptor . MetricDescriptorMetadata . Builder newBuilder ()
Returns
public static MetricDescriptor . MetricDescriptorMetadata . Builder newBuilder ( MetricDescriptor . MetricDescriptorMetadata prototype )
Parameter
Returns
public static MetricDescriptor . MetricDescriptorMetadata parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static MetricDescriptor . MetricDescriptorMetadata parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( ByteString data )
Parameter
Returns
Exceptions
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
public static MetricDescriptor . MetricDescriptorMetadata parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Parser<MetricDescriptor . MetricDescriptorMetadata > parser ()
Returns
Methods
public boolean equals ( Object obj )
Parameter
Returns
Overrides
public MetricDescriptor . MetricDescriptorMetadata getDefaultInstanceForType ()
Returns
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
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;
Returns
public LaunchStage getLaunchStage ()
Deprecated. google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.
See google/api/metric.proto;l=83
Deprecated. Must use the MetricDescriptor.launch_stage instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Returns
public int getLaunchStageValue ()
Deprecated. google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.
See google/api/metric.proto;l=83
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 ()
Returns
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;
Returns
public int getSerializedSize ()
Returns
Overrides
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
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
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public MetricDescriptor . MetricDescriptorMetadata . Builder newBuilderForType ()
Returns
protected MetricDescriptor . MetricDescriptorMetadata . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
public MetricDescriptor . MetricDescriptorMetadata . Builder toBuilder ()
Returns
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
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-27 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-27 UTC."],[],[]]