Interface CreateMetricDescriptorRequestOrBuilder (3.30.0)

public interface CreateMetricDescriptorRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMetricDescriptor()

public abstract MetricDescriptor getMetricDescriptor()

Required. The new custom metric descriptor.

.google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
com.google.api.MetricDescriptor

The metricDescriptor.

getMetricDescriptorOrBuilder()

public abstract MetricDescriptorOrBuilder getMetricDescriptorOrBuilder()

Required. The new custom metric descriptor.

.google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
com.google.api.MetricDescriptorOrBuilder

getName()

public abstract String getName()

Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

hasMetricDescriptor()

public abstract boolean hasMetricDescriptor()

Required. The new custom metric descriptor.

.google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the metricDescriptor field is set.