Interface UpdateLogMetricRequestOrBuilder (3.15.10)

public interface UpdateLogMetricRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMetric()

public abstract LogMetric getMetric()

Required. The updated metric.

.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogMetric

The metric.

getMetricName()

public abstract String getMetricName()

Required. The resource name of the metric to update:

 "projects/[PROJECT_ID]/metrics/[METRIC_ID]"

The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.

string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The metricName.

getMetricNameBytes()

public abstract ByteString getMetricNameBytes()

Required. The resource name of the metric to update:

 "projects/[PROJECT_ID]/metrics/[METRIC_ID]"

The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.

string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for metricName.

getMetricOrBuilder()

public abstract LogMetricOrBuilder getMetricOrBuilder()

Required. The updated metric.

.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogMetricOrBuilder

hasMetric()

public abstract boolean hasMetric()

Required. The updated metric.

.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the metric field is set.