Class MetricDescriptor.MetricDescriptorMetadata (2.8.3)

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MetricDescriptor.MetricDescriptorMetadata

Static Fields

INGEST_DELAY_FIELD_NUMBER

public static final int INGEST_DELAY_FIELD_NUMBER
Field Value
TypeDescription
int

LAUNCH_STAGE_FIELD_NUMBER

public static final int LAUNCH_STAGE_FIELD_NUMBER
Field Value
TypeDescription
int

SAMPLE_PERIOD_FIELD_NUMBER

public static final int SAMPLE_PERIOD_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MetricDescriptor.MetricDescriptorMetadata getDefaultInstance()
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MetricDescriptor.MetricDescriptorMetadata.Builder newBuilder()
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

newBuilder(MetricDescriptor.MetricDescriptorMetadata prototype)

public static MetricDescriptor.MetricDescriptorMetadata.Builder newBuilder(MetricDescriptor.MetricDescriptorMetadata prototype)
Parameter
NameDescription
prototypeMetricDescriptor.MetricDescriptorMetadata
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

parseDelimitedFrom(InputStream input)

public static MetricDescriptor.MetricDescriptorMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetricDescriptor.MetricDescriptorMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MetricDescriptor.MetricDescriptorMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MetricDescriptor.MetricDescriptorMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MetricDescriptor.MetricDescriptorMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MetricDescriptor.MetricDescriptorMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MetricDescriptor.MetricDescriptorMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MetricDescriptor.MetricDescriptorMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MetricDescriptor.MetricDescriptorMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetricDescriptor.MetricDescriptorMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MetricDescriptor.MetricDescriptorMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MetricDescriptor.MetricDescriptorMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MetricDescriptor.MetricDescriptorMetadata> parser()
Returns
TypeDescription
Parser<MetricDescriptorMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public MetricDescriptor.MetricDescriptorMetadata getDefaultInstanceForType()
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata

getIngestDelay()

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
TypeDescription
Duration

The ingestDelay.

getIngestDelayOrBuilder()

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
TypeDescription
DurationOrBuilder

getLaunchStage()

public LaunchStage getLaunchStage()

Deprecated. Must use the MetricDescriptor.launch_stage instead.

.google.api.LaunchStage launch_stage = 1 [deprecated = true];

Returns
TypeDescription
LaunchStage

The launchStage.

getLaunchStageValue()

public int getLaunchStageValue()

Deprecated. Must use the MetricDescriptor.launch_stage instead.

.google.api.LaunchStage launch_stage = 1 [deprecated = true];

Returns
TypeDescription
int

The enum numeric value on the wire for launchStage.

getParserForType()

public Parser<MetricDescriptor.MetricDescriptorMetadata> getParserForType()
Returns
TypeDescription
Parser<MetricDescriptorMetadata>
Overrides

getSamplePeriod()

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
TypeDescription
Duration

The samplePeriod.

getSamplePeriodOrBuilder()

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
TypeDescription
DurationOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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;

Returns
TypeDescription
boolean

Whether the ingestDelay field is set.

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;

Returns
TypeDescription
boolean

Whether the samplePeriod field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MetricDescriptor.MetricDescriptorMetadata.Builder newBuilderForType()
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MetricDescriptor.MetricDescriptorMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MetricDescriptor.MetricDescriptorMetadata.Builder toBuilder()
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException