Interface CreateLogMetricRequestOrBuilder (3.19.0)

public interface CreateLogMetricRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMetric()

public abstract LogMetric getMetric()

Required. The new logs-based metric, which must not have an identifier that already exists.

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

Returns
Type Description
LogMetric

The metric.

getMetricOrBuilder()

public abstract LogMetricOrBuilder getMetricOrBuilder()

Required. The new logs-based metric, which must not have an identifier that already exists.

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

Returns
Type Description
LogMetricOrBuilder

getParent()

public abstract String getParent()

Required. The resource name of the project in which to create the metric:

 "projects/[PROJECT_ID]"

The new metric must be provided in the request.

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

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The resource name of the project in which to create the metric:

 "projects/[PROJECT_ID]"

The new metric must be provided in the request.

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

Returns
Type Description
ByteString

The bytes for parent.

hasMetric()

public abstract boolean hasMetric()

Required. The new logs-based metric, which must not have an identifier that already exists.

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

Returns
Type Description
boolean

Whether the metric field is set.