Interface MonitoredResourceMetadataOrBuilder

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

public interface MonitoredResourceMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasSystemLabels

      boolean hasSystemLabels()
       Output only. Values for predefined system metadata labels.
       System labels are a kind of metadata extracted by Google, including
       "machine_image", "vpc", "subnet_id",
       "security_group", "name", etc.
       System label values can be only strings, Boolean values, or a list of
       strings. For example:
           { "name": "my-test-instance",
             "security_group": ["a", "b", "c"],
             "spot_instance": false }
       
      .google.protobuf.Struct system_labels = 1;
      Returns:
      Whether the systemLabels field is set.
    • getSystemLabels

      Struct getSystemLabels()
       Output only. Values for predefined system metadata labels.
       System labels are a kind of metadata extracted by Google, including
       "machine_image", "vpc", "subnet_id",
       "security_group", "name", etc.
       System label values can be only strings, Boolean values, or a list of
       strings. For example:
           { "name": "my-test-instance",
             "security_group": ["a", "b", "c"],
             "spot_instance": false }
       
      .google.protobuf.Struct system_labels = 1;
      Returns:
      The systemLabels.
    • getSystemLabelsOrBuilder

      StructOrBuilder getSystemLabelsOrBuilder()
       Output only. Values for predefined system metadata labels.
       System labels are a kind of metadata extracted by Google, including
       "machine_image", "vpc", "subnet_id",
       "security_group", "name", etc.
       System label values can be only strings, Boolean values, or a list of
       strings. For example:
           { "name": "my-test-instance",
             "security_group": ["a", "b", "c"],
             "spot_instance": false }
       
      .google.protobuf.Struct system_labels = 1;
    • getUserLabelsCount

      int getUserLabelsCount()
       Output only. A map of user-defined metadata labels.
       
      map<string, string> user_labels = 2;
    • containsUserLabels

      boolean containsUserLabels(String key)
       Output only. A map of user-defined metadata labels.
       
      map<string, string> user_labels = 2;
    • getUserLabels

      @Deprecated Map<String,String> getUserLabels()
      Deprecated.
      Use getUserLabelsMap() instead.
    • getUserLabelsMap

      Map<String,String> getUserLabelsMap()
       Output only. A map of user-defined metadata labels.
       
      map<string, string> user_labels = 2;
    • getUserLabelsOrDefault

      String getUserLabelsOrDefault(String key, String defaultValue)
       Output only. A map of user-defined metadata labels.
       
      map<string, string> user_labels = 2;
    • getUserLabelsOrThrow

      String getUserLabelsOrThrow(String key)
       Output only. A map of user-defined metadata labels.
       
      map<string, string> user_labels = 2;