code: public final AnnotateTextResponse annotateText(
        Document document, AnnotateTextRequest.Features features) {
  
      AnnotateTextRequest request =
          AnnotateTextRequest.newBuilder().setDocument(document).setFeatures(features).build();
      return annotateText(request);
    }
docs: A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and
  analyzeSyntax provide in one call.
  
  <p>Sample code:
  
  <pre><code>
  try (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
  Document document = Document.newBuilder().build();
  AnnotateTextRequest.Features features = AnnotateTextRequest.Features.newBuilder().build();
  AnnotateTextResponse response = languageServiceClient.annotateText(document, features);
  }
  </code></pre>
  
  @param document Input document.
  @param features The enabled features.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails