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 Detail

      • getType

        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​(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;
      • getLabelsMap

        Map<String,​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

        String getLabelsOrDefault​(String key,
                                  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

        String getLabelsOrThrow​(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;