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 Detail

      • 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

        com.google.protobuf.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

        com.google.protobuf.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;
      • 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;