code: public GetDocumentAnalysisResult withBlocks(Block... blocks) {
          if (this.blocks == null) {
              setBlocks(new java.util.ArrayList<Block>(blocks.length));
          }
          for (Block ele : blocks) {
              this.blocks.add(ele);
          }
          return this;
      }
docs: <p>
  The results of the text analysis operation.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setBlocks(java.util.Collection)} or {@link #withBlocks(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param blocks
  The results of the text analysis operation.
  @return Returns a reference to this object so that method calls can be chained together.