Package com.google.logging.v2
Interface UpdateLogMetricRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
UpdateLogMetricRequest,UpdateLogMetricRequest.Builder
public interface UpdateLogMetricRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.Required.com.google.protobuf.ByteStringRequired.Required.booleanRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getMetricName
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:
- The metricName.
-
getMetricNameBytes
com.google.protobuf.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:
- The bytes for metricName.
-
hasMetric
boolean hasMetric()Required. The updated metric.
.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the metric field is set.
-
getMetric
LogMetric getMetric()Required. The updated metric.
.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The metric.
-
getMetricOrBuilder
LogMetricOrBuilder getMetricOrBuilder()Required. The updated metric.
.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];
-