Package com.google.logging.v2
Interface CreateLogMetricRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CreateLogMetricRequest,CreateLogMetricRequest.Builder
public interface CreateLogMetricRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.Required.Required.com.google.protobuf.ByteStringRequired.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
-
getParent
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:
- The parent.
-
getParentBytes
com.google.protobuf.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:
- The bytes for parent.
-
hasMetric
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:
- Whether the metric field is set.
-
getMetric
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:
- The metric.
-
getMetricOrBuilder
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];
-