@io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "TranslateDocument",
      requestType = com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class,
      responseType = com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<
          com.google.cloud.translate.v3beta1.TranslateDocumentRequest,
          com.google.cloud.translate.v3beta1.TranslateDocumentResponse>
      getTranslateDocumentMethod() {
    io.grpc.MethodDescriptor<
            com.google.cloud.translate.v3beta1.TranslateDocumentRequest,
            com.google.cloud.translate.v3beta1.TranslateDocumentResponse>
        getTranslateDocumentMethod;
    if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) {
      synchronized (TranslationServiceGrpc.class) {
        if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod)
            == null) {
          TranslationServiceGrpc.getTranslateDocumentMethod =
              getTranslateDocumentMethod =
                  io.grpc.MethodDescriptor
                      .<com.google.cloud.translate.v3beta1.TranslateDocumentRequest,
                          com.google.cloud.translate.v3beta1.TranslateDocumentResponse>
                          newBuilder()
                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument"))
                      .setSampledToLocalTracing(true)
                      .setRequestMarshaller(
                          io.grpc.protobuf.ProtoUtils.marshaller(
                              com.google.cloud.translate.v3beta1.TranslateDocumentRequest
                                  .getDefaultInstance()))
                      .setResponseMarshaller(
                          io.grpc.protobuf.ProtoUtils.marshaller(
                              com.google.cloud.translate.v3beta1.TranslateDocumentResponse
                                  .getDefaultInstance()))
                      .setSchemaDescriptor(
                          new TranslationServiceMethodDescriptorSupplier("TranslateDocument"))
                      .build();
        }
      }
    }
    return getTranslateDocumentMethod;
  }
<pre>
Provides natural language translation operations.
</pre>
java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java