Interface SetInstanceLabelsRequestOrBuilder

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

    public interface SetInstanceLabelsRequestOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • getName

        String getName()
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The bytes for name.
      • getLabelsCount

        int getLabelsCount()
         Labels to apply to this instance.
         These can be later modified by the setLabels method
         
        map<string, string> labels = 2;
      • containsLabels

        boolean containsLabels​(String key)
         Labels to apply to this instance.
         These can be later modified by the setLabels method
         
        map<string, string> labels = 2;
      • getLabelsMap

        Map<String,​String> getLabelsMap()
         Labels to apply to this instance.
         These can be later modified by the setLabels method
         
        map<string, string> labels = 2;
      • getLabelsOrDefault

        String getLabelsOrDefault​(String key,
                                  String defaultValue)
         Labels to apply to this instance.
         These can be later modified by the setLabels method
         
        map<string, string> labels = 2;
      • getLabelsOrThrow

        String getLabelsOrThrow​(String key)
         Labels to apply to this instance.
         These can be later modified by the setLabels method
         
        map<string, string> labels = 2;