// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/logging/v2/logging_metrics.proto

package com.google.logging.v2;

public interface CreateLogMetricRequestOrBuilder extends
    // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateLogMetricRequest)
    com.google.protobuf.MessageLiteOrBuilder {

  /**
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code>
   * @return The parent.
   */
  java.lang.String getParent();
  /**
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code>
   * @return The bytes for parent.
   */
  com.google.protobuf.ByteString
      getParentBytes();

  /**
   * <pre>
   * Required. The new logs-based metric, which must not have an identifier that
   * already exists.
   * </pre>
   *
   * <code>.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   * @return Whether the metric field is set.
   */
  boolean hasMetric();
  /**
   * <pre>
   * Required. The new logs-based metric, which must not have an identifier that
   * already exists.
   * </pre>
   *
   * <code>.google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   * @return The metric.
   */
  com.google.logging.v2.LogMetric getMetric();
}
