Interface UpdateLogMetricRequestOrBuilder (3.21.0)

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
Type Description
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
Type Description
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
Type Description
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
Type Description
LogMetricOrBuilder

hasMetric()

public abstract boolean hasMetric()

Required. The updated metric.

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

Returns
Type Description
boolean

Whether the metric field is set.