Interface MonitoredResourceOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    MonitoredResource, MonitoredResource.Builder

    public interface MonitoredResourceOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean containsLabels​(java.lang.String key)
      Required.
      java.util.Map<java.lang.String,​java.lang.String> getLabels()
      Deprecated.
      int getLabelsCount()
      Required.
      java.util.Map<java.lang.String,​java.lang.String> getLabelsMap()
      Required.
      java.lang.String getLabelsOrDefault​(java.lang.String key, java.lang.String defaultValue)
      Required.
      java.lang.String getLabelsOrThrow​(java.lang.String key)
      Required.
      java.lang.String getType()
      Required.
      com.google.protobuf.ByteString getTypeBytes()
      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

      • getType

        java.lang.String getType()
         Required. The monitored resource type. This field must match
         the `type` field of a
         [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]
         object. For example, the type of a Compute Engine VM instance is
         `gce_instance`. Some descriptors include the service name in the type; for
         example, the type of a Datastream stream is
         `datastream.googleapis.com/Stream`.
         
        string type = 1;
        Returns:
        The type.
      • getTypeBytes

        com.google.protobuf.ByteString getTypeBytes()
         Required. The monitored resource type. This field must match
         the `type` field of a
         [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]
         object. For example, the type of a Compute Engine VM instance is
         `gce_instance`. Some descriptors include the service name in the type; for
         example, the type of a Datastream stream is
         `datastream.googleapis.com/Stream`.
         
        string type = 1;
        Returns:
        The bytes for type.
      • getLabelsCount

        int getLabelsCount()
         Required. Values for all of the labels listed in the associated monitored
         resource descriptor. For example, Compute Engine VM instances use the
         labels `"project_id"`, `"instance_id"`, and `"zone"`.
         
        map<string, string> labels = 2;
      • containsLabels

        boolean containsLabels​(java.lang.String key)
         Required. Values for all of the labels listed in the associated monitored
         resource descriptor. For example, Compute Engine VM instances use the
         labels `"project_id"`, `"instance_id"`, and `"zone"`.
         
        map<string, string> labels = 2;
      • getLabels

        @Deprecated
        java.util.Map<java.lang.String,​java.lang.String> getLabels()
        Deprecated.
        Use getLabelsMap() instead.
      • getLabelsMap

        java.util.Map<java.lang.String,​java.lang.String> getLabelsMap()
         Required. Values for all of the labels listed in the associated monitored
         resource descriptor. For example, Compute Engine VM instances use the
         labels `"project_id"`, `"instance_id"`, and `"zone"`.
         
        map<string, string> labels = 2;
      • getLabelsOrDefault

        java.lang.String getLabelsOrDefault​(java.lang.String key,
                                            java.lang.String defaultValue)
         Required. Values for all of the labels listed in the associated monitored
         resource descriptor. For example, Compute Engine VM instances use the
         labels `"project_id"`, `"instance_id"`, and `"zone"`.
         
        map<string, string> labels = 2;
      • getLabelsOrThrow

        java.lang.String getLabelsOrThrow​(java.lang.String key)
         Required. Values for all of the labels listed in the associated monitored
         resource descriptor. For example, Compute Engine VM instances use the
         labels `"project_id"`, `"instance_id"`, and `"zone"`.
         
        map<string, string> labels = 2;