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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      LogMetric getMetric()
      Required.
      String getMetricName()
      Required.
      com.google.protobuf.ByteString getMetricNameBytes()
      Required.
      LogMetricOrBuilder getMetricOrBuilder()
      Required.
      boolean hasMetric()
      Required.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • 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];