Interface CreateLogMetricRequestOrBuilder (3.8.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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the metric field is set.