code: public DetectLabelsResult withLabels(Label... labels) {
          if (this.labels == null) {
              setLabels(new java.util.ArrayList<Label>(labels.length));
          }
          for (Label ele : labels) {
              this.labels.add(ele);
          }
          return this;
      }
docs: <p>
  An array of labels for the real-world objects detected.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setLabels(java.util.Collection)} or {@link #withLabels(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param labels
  An array of labels for the real-world objects detected.
  @return Returns a reference to this object so that method calls can be chained together.