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 |
|
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=85
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=85
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 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