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