code: public void setTextDetections(java.util.Collection<TextDetection> textDetections) {
          if (textDetections == null) {
              this.textDetections = null;
              return;
          }
  
          this.textDetections = new java.util.ArrayList<TextDetection>(textDetections);
      }
docs: <p>
  An array of text that was detected in the input image.
  </p>
  
  @param textDetections
  An array of text that was detected in the input image.