Interface CreateMetricDescriptorRequestOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.api.MetricDescriptor getMetricDescriptor()
      Required.
      com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder()
      Required.
      String getName()
      Required.
      com.google.protobuf.ByteString getNameBytes()
      Required.
      boolean hasMetricDescriptor()
      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

      • getName

        String getName()
         Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
         which to execute the request. The format is:
         4
             projects/[PROJECT_ID_OR_NUMBER]
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
         which to execute the request. The format is:
         4
             projects/[PROJECT_ID_OR_NUMBER]
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        The bytes for name.
      • hasMetricDescriptor

        boolean hasMetricDescriptor()
         Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
         descriptor.
         
        .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        Whether the metricDescriptor field is set.
      • getMetricDescriptor

        com.google.api.MetricDescriptor getMetricDescriptor()
         Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
         descriptor.
         
        .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The metricDescriptor.
      • getMetricDescriptorOrBuilder

        com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder()
         Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
         descriptor.
         
        .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];