2.17.0 (latest) 2.15.0 2.10.0 2.2.0

    public sealed class MetricDescriptor.Types.MetricDescriptorMetadata : IMessage<MetricDescriptor.Types.MetricDescriptorMetadata>, IEquatable<MetricDescriptor.Types.MetricDescriptorMetadata>, IDeepCloneable<MetricDescriptor.Types.MetricDescriptorMetadata>, IBufferMessage, IMessage

Additional annotations that can be used to guide the usage of a metric.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> MetricDescriptor.Types.MetricDescriptorMetadata

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[MetricDescriptor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MetricDescriptor.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MetricDescriptor.Types.md.txt)[MetricDescriptorMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MetricDescriptor.Types.MetricDescriptorMetadata.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MetricDescriptor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MetricDescriptor.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MetricDescriptor.Types.md.txt)[MetricDescriptorMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MetricDescriptor.Types.MetricDescriptorMetadata.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[MetricDescriptor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MetricDescriptor.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MetricDescriptor.Types.md.txt)[MetricDescriptorMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MetricDescriptor.Types.MetricDescriptorMetadata.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)

## Namespace

[Google.Api](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.md.txt)

## Assembly

Google.Api.CommonProtos.dll

## Constructors

### MetricDescriptorMetadata()

    public MetricDescriptorMetadata()

### MetricDescriptorMetadata(MetricDescriptorMetadata)

    public MetricDescriptorMetadata(MetricDescriptor.Types.MetricDescriptorMetadata other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `MetricDescriptorTypesMetricDescriptorMetadata` |

## Fields

### IngestDelayFieldNumber

    public const int IngestDelayFieldNumber = 3

Field number for the "ingest_delay" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### LaunchStageFieldNumber

    public const int LaunchStageFieldNumber = 1

Field number for the "launch_stage" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### SamplePeriodFieldNumber

    public const int SamplePeriodFieldNumber = 2

Field number for the "sample_period" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### TimeSeriesResourceHierarchyLevelFieldNumber

    public const int TimeSeriesResourceHierarchyLevelFieldNumber = 4

Field number for the "time_series_resource_hierarchy_level" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

## Properties

### Descriptor

    public static MessageDescriptor Descriptor { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MessageDescriptor` |   |

### IngestDelay

    public Duration IngestDelay { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Duration` |   |

### LaunchStage

    [Obsolete]
    public LaunchStage LaunchStage { get; set; }

Deprecated. Must use the
\[MetricDescriptor.launch_stage\]\[google.api.MetricDescriptor.launch_stage\]
instead.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LaunchStage` |   |

### Parser

    public static MessageParser<MetricDescriptor.Types.MetricDescriptorMetadata> Parser { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MessageParserMetricDescriptorTypesMetricDescriptorMetadata` |   |

### SamplePeriod

    public Duration SamplePeriod { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Duration` |   |

### TimeSeriesResourceHierarchyLevel

    public RepeatedField<MetricDescriptor.Types.MetricDescriptorMetadata.Types.TimeSeriesResourceHierarchyLevel> TimeSeriesResourceHierarchyLevel { get; }

The scope of the timeseries data of the metric.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldMetricDescriptorTypesMetricDescriptorMetadataTypesTimeSeriesResourceHierarchyLevel` |   |

## Methods

### CalculateSize()

    public int CalculateSize()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### Clone()

    public MetricDescriptor.Types.MetricDescriptorMetadata Clone()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `MetricDescriptorTypesMetricDescriptorMetadata` |   |

### Equals(MetricDescriptorMetadata)

    public bool Equals(MetricDescriptor.Types.MetricDescriptorMetadata other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `MetricDescriptorTypesMetricDescriptorMetadata` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Equals(object)

    public override bool Equals(object other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `object` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

**Overrides** [object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))

### GetHashCode()

    public override int GetHashCode()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

**Overrides** [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)

### MergeFrom(MetricDescriptorMetadata)

    public void MergeFrom(MetricDescriptor.Types.MetricDescriptorMetadata other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `MetricDescriptorTypesMetricDescriptorMetadata` |

### MergeFrom(CodedInputStream)

    public void MergeFrom(CodedInputStream input)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `input` | `CodedInputStream` |

### ToString()

    public override string ToString()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

**Overrides** [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

### WriteTo(CodedOutputStream)

    public void WriteTo(CodedOutputStream output)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `output` | `CodedOutputStream` |