# Class GcpManagedChannelOptions.GcpMetricsOptions (1.11.0)

    public static class GcpManagedChannelOptions.GcpMetricsOptions

Metrics configuration for the GCP managed channel.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> GcpManagedChannelOptions.GcpMetricsOptions

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### newBuilder()

    public static GcpManagedChannelOptions.GcpMetricsOptions.Builder newBuilder()

Creates a new GcpMetricsOptions.Builder.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/grpc-gcp/latest/com.google.cloud.grpc.GcpManagedChannelOptions.GcpMetricsOptions.Builder` |   |

### newBuilder(GcpManagedChannelOptions.GcpMetricsOptions options)

    public static GcpManagedChannelOptions.GcpMetricsOptions.Builder newBuilder(GcpManagedChannelOptions.GcpMetricsOptions options)

Creates a new GcpMetricsOptions.Builder from GcpMetricsOptions.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/java/docs/reference/grpc-gcp/latest/com.google.cloud.grpc.GcpManagedChannelOptions.GcpMetricsOptions` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/grpc-gcp/latest/com.google.cloud.grpc.GcpManagedChannelOptions.GcpMetricsOptions.Builder` |   |

## Constructors

### GcpMetricsOptions(GcpManagedChannelOptions.GcpMetricsOptions.Builder builder)

    public GcpMetricsOptions(GcpManagedChannelOptions.GcpMetricsOptions.Builder builder)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builder` | `https://docs.cloud.google.com/java/docs/reference/grpc-gcp/latest/com.google.cloud.grpc.GcpManagedChannelOptions.GcpMetricsOptions.Builder` |

## Methods

### getLabelKeys()

    public List<LabelKey> getLabelKeys()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<io.opencensus.metrics.LabelKey>` |   |

### getLabelValues()

    public List<LabelValue> getLabelValues()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<io.opencensus.metrics.LabelValue>` |   |

### getMetricRegistry()

    public MetricRegistry getMetricRegistry()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.opencensus.metrics.MetricRegistry` |   |

### getNamePrefix()

    public String getNamePrefix()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getOpenTelemetryMeter()

    public Meter getOpenTelemetryMeter()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.opentelemetry.api.metrics.Meter` |   |

### getOtelLabelKeys()

    public List<String> getOtelLabelKeys()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getOtelLabelValues()

    public List<String> getOtelLabelValues()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### toString()

    public String toString()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

**Overrides** [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--)