All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.documentai.v1beta3.DocumentProcessorServiceGrpc Maven / Gradle / Ivy

/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.cloud.documentai.v1beta3;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * Service to call Document AI to process documents according to the
 * processor's definition. Processors are built using state-of-the-art Google
 * AI such as natural language, computer vision, and translation to extract
 * structured information from unstructured or semi-structured documents.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/documentai/v1beta3/document_processor_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentProcessorServiceGrpc { private DocumentProcessorServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.documentai.v1beta3.DocumentProcessorService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ProcessRequest, com.google.cloud.documentai.v1beta3.ProcessResponse> getProcessDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ProcessDocument", requestType = com.google.cloud.documentai.v1beta3.ProcessRequest.class, responseType = com.google.cloud.documentai.v1beta3.ProcessResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ProcessRequest, com.google.cloud.documentai.v1beta3.ProcessResponse> getProcessDocumentMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ProcessRequest, com.google.cloud.documentai.v1beta3.ProcessResponse> getProcessDocumentMethod; if ((getProcessDocumentMethod = DocumentProcessorServiceGrpc.getProcessDocumentMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getProcessDocumentMethod = DocumentProcessorServiceGrpc.getProcessDocumentMethod) == null) { DocumentProcessorServiceGrpc.getProcessDocumentMethod = getProcessDocumentMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProcessDocument")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ProcessRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ProcessResponse .getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier("ProcessDocument")) .build(); } } } return getProcessDocumentMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.BatchProcessRequest, com.google.longrunning.Operation> getBatchProcessDocumentsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchProcessDocuments", requestType = com.google.cloud.documentai.v1beta3.BatchProcessRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.BatchProcessRequest, com.google.longrunning.Operation> getBatchProcessDocumentsMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.BatchProcessRequest, com.google.longrunning.Operation> getBatchProcessDocumentsMethod; if ((getBatchProcessDocumentsMethod = DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getBatchProcessDocumentsMethod = DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod) == null) { DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod = getBatchProcessDocumentsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "BatchProcessDocuments")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.BatchProcessRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "BatchProcessDocuments")) .build(); } } } return getBatchProcessDocumentsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest, com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse> getFetchProcessorTypesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "FetchProcessorTypes", requestType = com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest.class, responseType = com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest, com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse> getFetchProcessorTypesMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest, com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse> getFetchProcessorTypesMethod; if ((getFetchProcessorTypesMethod = DocumentProcessorServiceGrpc.getFetchProcessorTypesMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getFetchProcessorTypesMethod = DocumentProcessorServiceGrpc.getFetchProcessorTypesMethod) == null) { DocumentProcessorServiceGrpc.getFetchProcessorTypesMethod = getFetchProcessorTypesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "FetchProcessorTypes")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse .getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "FetchProcessorTypes")) .build(); } } } return getFetchProcessorTypesMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest, com.google.cloud.documentai.v1beta3.ListProcessorTypesResponse> getListProcessorTypesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListProcessorTypes", requestType = com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest.class, responseType = com.google.cloud.documentai.v1beta3.ListProcessorTypesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest, com.google.cloud.documentai.v1beta3.ListProcessorTypesResponse> getListProcessorTypesMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest, com.google.cloud.documentai.v1beta3.ListProcessorTypesResponse> getListProcessorTypesMethod; if ((getListProcessorTypesMethod = DocumentProcessorServiceGrpc.getListProcessorTypesMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getListProcessorTypesMethod = DocumentProcessorServiceGrpc.getListProcessorTypesMethod) == null) { DocumentProcessorServiceGrpc.getListProcessorTypesMethod = getListProcessorTypesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProcessorTypes")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ListProcessorTypesResponse .getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "ListProcessorTypes")) .build(); } } } return getListProcessorTypesMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest, com.google.cloud.documentai.v1beta3.ProcessorType> getGetProcessorTypeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetProcessorType", requestType = com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest.class, responseType = com.google.cloud.documentai.v1beta3.ProcessorType.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest, com.google.cloud.documentai.v1beta3.ProcessorType> getGetProcessorTypeMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest, com.google.cloud.documentai.v1beta3.ProcessorType> getGetProcessorTypeMethod; if ((getGetProcessorTypeMethod = DocumentProcessorServiceGrpc.getGetProcessorTypeMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getGetProcessorTypeMethod = DocumentProcessorServiceGrpc.getGetProcessorTypeMethod) == null) { DocumentProcessorServiceGrpc.getGetProcessorTypeMethod = getGetProcessorTypeMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProcessorType")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ProcessorType .getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier("GetProcessorType")) .build(); } } } return getGetProcessorTypeMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListProcessorsRequest, com.google.cloud.documentai.v1beta3.ListProcessorsResponse> getListProcessorsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListProcessors", requestType = com.google.cloud.documentai.v1beta3.ListProcessorsRequest.class, responseType = com.google.cloud.documentai.v1beta3.ListProcessorsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListProcessorsRequest, com.google.cloud.documentai.v1beta3.ListProcessorsResponse> getListProcessorsMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListProcessorsRequest, com.google.cloud.documentai.v1beta3.ListProcessorsResponse> getListProcessorsMethod; if ((getListProcessorsMethod = DocumentProcessorServiceGrpc.getListProcessorsMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getListProcessorsMethod = DocumentProcessorServiceGrpc.getListProcessorsMethod) == null) { DocumentProcessorServiceGrpc.getListProcessorsMethod = getListProcessorsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProcessors")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ListProcessorsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ListProcessorsResponse .getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier("ListProcessors")) .build(); } } } return getListProcessorsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetProcessorRequest, com.google.cloud.documentai.v1beta3.Processor> getGetProcessorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetProcessor", requestType = com.google.cloud.documentai.v1beta3.GetProcessorRequest.class, responseType = com.google.cloud.documentai.v1beta3.Processor.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetProcessorRequest, com.google.cloud.documentai.v1beta3.Processor> getGetProcessorMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetProcessorRequest, com.google.cloud.documentai.v1beta3.Processor> getGetProcessorMethod; if ((getGetProcessorMethod = DocumentProcessorServiceGrpc.getGetProcessorMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getGetProcessorMethod = DocumentProcessorServiceGrpc.getGetProcessorMethod) == null) { DocumentProcessorServiceGrpc.getGetProcessorMethod = getGetProcessorMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProcessor")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.GetProcessorRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.Processor.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier("GetProcessor")) .build(); } } } return getGetProcessorMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest, com.google.longrunning.Operation> getTrainProcessorVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TrainProcessorVersion", requestType = com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest, com.google.longrunning.Operation> getTrainProcessorVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest, com.google.longrunning.Operation> getTrainProcessorVersionMethod; if ((getTrainProcessorVersionMethod = DocumentProcessorServiceGrpc.getTrainProcessorVersionMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getTrainProcessorVersionMethod = DocumentProcessorServiceGrpc.getTrainProcessorVersionMethod) == null) { DocumentProcessorServiceGrpc.getTrainProcessorVersionMethod = getTrainProcessorVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "TrainProcessorVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "TrainProcessorVersion")) .build(); } } } return getTrainProcessorVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest, com.google.cloud.documentai.v1beta3.ProcessorVersion> getGetProcessorVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetProcessorVersion", requestType = com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest.class, responseType = com.google.cloud.documentai.v1beta3.ProcessorVersion.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest, com.google.cloud.documentai.v1beta3.ProcessorVersion> getGetProcessorVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest, com.google.cloud.documentai.v1beta3.ProcessorVersion> getGetProcessorVersionMethod; if ((getGetProcessorVersionMethod = DocumentProcessorServiceGrpc.getGetProcessorVersionMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getGetProcessorVersionMethod = DocumentProcessorServiceGrpc.getGetProcessorVersionMethod) == null) { DocumentProcessorServiceGrpc.getGetProcessorVersionMethod = getGetProcessorVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "GetProcessorVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ProcessorVersion .getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "GetProcessorVersion")) .build(); } } } return getGetProcessorVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest, com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse> getListProcessorVersionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListProcessorVersions", requestType = com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest.class, responseType = com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest, com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse> getListProcessorVersionsMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest, com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse> getListProcessorVersionsMethod; if ((getListProcessorVersionsMethod = DocumentProcessorServiceGrpc.getListProcessorVersionsMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getListProcessorVersionsMethod = DocumentProcessorServiceGrpc.getListProcessorVersionsMethod) == null) { DocumentProcessorServiceGrpc.getListProcessorVersionsMethod = getListProcessorVersionsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "ListProcessorVersions")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse .getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "ListProcessorVersions")) .build(); } } } return getListProcessorVersionsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest, com.google.longrunning.Operation> getDeleteProcessorVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteProcessorVersion", requestType = com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest, com.google.longrunning.Operation> getDeleteProcessorVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest, com.google.longrunning.Operation> getDeleteProcessorVersionMethod; if ((getDeleteProcessorVersionMethod = DocumentProcessorServiceGrpc.getDeleteProcessorVersionMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getDeleteProcessorVersionMethod = DocumentProcessorServiceGrpc.getDeleteProcessorVersionMethod) == null) { DocumentProcessorServiceGrpc.getDeleteProcessorVersionMethod = getDeleteProcessorVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "DeleteProcessorVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "DeleteProcessorVersion")) .build(); } } } return getDeleteProcessorVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest, com.google.longrunning.Operation> getDeployProcessorVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeployProcessorVersion", requestType = com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest, com.google.longrunning.Operation> getDeployProcessorVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest, com.google.longrunning.Operation> getDeployProcessorVersionMethod; if ((getDeployProcessorVersionMethod = DocumentProcessorServiceGrpc.getDeployProcessorVersionMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getDeployProcessorVersionMethod = DocumentProcessorServiceGrpc.getDeployProcessorVersionMethod) == null) { DocumentProcessorServiceGrpc.getDeployProcessorVersionMethod = getDeployProcessorVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "DeployProcessorVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "DeployProcessorVersion")) .build(); } } } return getDeployProcessorVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest, com.google.longrunning.Operation> getUndeployProcessorVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UndeployProcessorVersion", requestType = com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest, com.google.longrunning.Operation> getUndeployProcessorVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest, com.google.longrunning.Operation> getUndeployProcessorVersionMethod; if ((getUndeployProcessorVersionMethod = DocumentProcessorServiceGrpc.getUndeployProcessorVersionMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getUndeployProcessorVersionMethod = DocumentProcessorServiceGrpc.getUndeployProcessorVersionMethod) == null) { DocumentProcessorServiceGrpc.getUndeployProcessorVersionMethod = getUndeployProcessorVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "UndeployProcessorVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "UndeployProcessorVersion")) .build(); } } } return getUndeployProcessorVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.CreateProcessorRequest, com.google.cloud.documentai.v1beta3.Processor> getCreateProcessorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateProcessor", requestType = com.google.cloud.documentai.v1beta3.CreateProcessorRequest.class, responseType = com.google.cloud.documentai.v1beta3.Processor.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.CreateProcessorRequest, com.google.cloud.documentai.v1beta3.Processor> getCreateProcessorMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.CreateProcessorRequest, com.google.cloud.documentai.v1beta3.Processor> getCreateProcessorMethod; if ((getCreateProcessorMethod = DocumentProcessorServiceGrpc.getCreateProcessorMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getCreateProcessorMethod = DocumentProcessorServiceGrpc.getCreateProcessorMethod) == null) { DocumentProcessorServiceGrpc.getCreateProcessorMethod = getCreateProcessorMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProcessor")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.CreateProcessorRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.Processor.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier("CreateProcessor")) .build(); } } } return getCreateProcessorMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DeleteProcessorRequest, com.google.longrunning.Operation> getDeleteProcessorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteProcessor", requestType = com.google.cloud.documentai.v1beta3.DeleteProcessorRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DeleteProcessorRequest, com.google.longrunning.Operation> getDeleteProcessorMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DeleteProcessorRequest, com.google.longrunning.Operation> getDeleteProcessorMethod; if ((getDeleteProcessorMethod = DocumentProcessorServiceGrpc.getDeleteProcessorMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getDeleteProcessorMethod = DocumentProcessorServiceGrpc.getDeleteProcessorMethod) == null) { DocumentProcessorServiceGrpc.getDeleteProcessorMethod = getDeleteProcessorMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProcessor")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.DeleteProcessorRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier("DeleteProcessor")) .build(); } } } return getDeleteProcessorMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.EnableProcessorRequest, com.google.longrunning.Operation> getEnableProcessorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "EnableProcessor", requestType = com.google.cloud.documentai.v1beta3.EnableProcessorRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.EnableProcessorRequest, com.google.longrunning.Operation> getEnableProcessorMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.EnableProcessorRequest, com.google.longrunning.Operation> getEnableProcessorMethod; if ((getEnableProcessorMethod = DocumentProcessorServiceGrpc.getEnableProcessorMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getEnableProcessorMethod = DocumentProcessorServiceGrpc.getEnableProcessorMethod) == null) { DocumentProcessorServiceGrpc.getEnableProcessorMethod = getEnableProcessorMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableProcessor")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.EnableProcessorRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier("EnableProcessor")) .build(); } } } return getEnableProcessorMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DisableProcessorRequest, com.google.longrunning.Operation> getDisableProcessorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DisableProcessor", requestType = com.google.cloud.documentai.v1beta3.DisableProcessorRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DisableProcessorRequest, com.google.longrunning.Operation> getDisableProcessorMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.DisableProcessorRequest, com.google.longrunning.Operation> getDisableProcessorMethod; if ((getDisableProcessorMethod = DocumentProcessorServiceGrpc.getDisableProcessorMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getDisableProcessorMethod = DocumentProcessorServiceGrpc.getDisableProcessorMethod) == null) { DocumentProcessorServiceGrpc.getDisableProcessorMethod = getDisableProcessorMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DisableProcessor")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.DisableProcessorRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier("DisableProcessor")) .build(); } } } return getDisableProcessorMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest, com.google.longrunning.Operation> getSetDefaultProcessorVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SetDefaultProcessorVersion", requestType = com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest, com.google.longrunning.Operation> getSetDefaultProcessorVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest, com.google.longrunning.Operation> getSetDefaultProcessorVersionMethod; if ((getSetDefaultProcessorVersionMethod = DocumentProcessorServiceGrpc.getSetDefaultProcessorVersionMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getSetDefaultProcessorVersionMethod = DocumentProcessorServiceGrpc.getSetDefaultProcessorVersionMethod) == null) { DocumentProcessorServiceGrpc.getSetDefaultProcessorVersionMethod = getSetDefaultProcessorVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "SetDefaultProcessorVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "SetDefaultProcessorVersion")) .build(); } } } return getSetDefaultProcessorVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ReviewDocumentRequest, com.google.longrunning.Operation> getReviewDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ReviewDocument", requestType = com.google.cloud.documentai.v1beta3.ReviewDocumentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ReviewDocumentRequest, com.google.longrunning.Operation> getReviewDocumentMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ReviewDocumentRequest, com.google.longrunning.Operation> getReviewDocumentMethod; if ((getReviewDocumentMethod = DocumentProcessorServiceGrpc.getReviewDocumentMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getReviewDocumentMethod = DocumentProcessorServiceGrpc.getReviewDocumentMethod) == null) { DocumentProcessorServiceGrpc.getReviewDocumentMethod = getReviewDocumentMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReviewDocument")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ReviewDocumentRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier("ReviewDocument")) .build(); } } } return getReviewDocumentMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest, com.google.longrunning.Operation> getEvaluateProcessorVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "EvaluateProcessorVersion", requestType = com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest, com.google.longrunning.Operation> getEvaluateProcessorVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest, com.google.longrunning.Operation> getEvaluateProcessorVersionMethod; if ((getEvaluateProcessorVersionMethod = DocumentProcessorServiceGrpc.getEvaluateProcessorVersionMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getEvaluateProcessorVersionMethod = DocumentProcessorServiceGrpc.getEvaluateProcessorVersionMethod) == null) { DocumentProcessorServiceGrpc.getEvaluateProcessorVersionMethod = getEvaluateProcessorVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "EvaluateProcessorVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "EvaluateProcessorVersion")) .build(); } } } return getEvaluateProcessorVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetEvaluationRequest, com.google.cloud.documentai.v1beta3.Evaluation> getGetEvaluationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetEvaluation", requestType = com.google.cloud.documentai.v1beta3.GetEvaluationRequest.class, responseType = com.google.cloud.documentai.v1beta3.Evaluation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetEvaluationRequest, com.google.cloud.documentai.v1beta3.Evaluation> getGetEvaluationMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.GetEvaluationRequest, com.google.cloud.documentai.v1beta3.Evaluation> getGetEvaluationMethod; if ((getGetEvaluationMethod = DocumentProcessorServiceGrpc.getGetEvaluationMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getGetEvaluationMethod = DocumentProcessorServiceGrpc.getGetEvaluationMethod) == null) { DocumentProcessorServiceGrpc.getGetEvaluationMethod = getGetEvaluationMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluation")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.GetEvaluationRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.Evaluation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier("GetEvaluation")) .build(); } } } return getGetEvaluationMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListEvaluationsRequest, com.google.cloud.documentai.v1beta3.ListEvaluationsResponse> getListEvaluationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListEvaluations", requestType = com.google.cloud.documentai.v1beta3.ListEvaluationsRequest.class, responseType = com.google.cloud.documentai.v1beta3.ListEvaluationsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListEvaluationsRequest, com.google.cloud.documentai.v1beta3.ListEvaluationsResponse> getListEvaluationsMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ListEvaluationsRequest, com.google.cloud.documentai.v1beta3.ListEvaluationsResponse> getListEvaluationsMethod; if ((getListEvaluationsMethod = DocumentProcessorServiceGrpc.getListEvaluationsMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getListEvaluationsMethod = DocumentProcessorServiceGrpc.getListEvaluationsMethod) == null) { DocumentProcessorServiceGrpc.getListEvaluationsMethod = getListEvaluationsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvaluations")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ListEvaluationsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ListEvaluationsResponse .getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier("ListEvaluations")) .build(); } } } return getListEvaluationsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest, com.google.longrunning.Operation> getImportProcessorVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ImportProcessorVersion", requestType = com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest, com.google.longrunning.Operation> getImportProcessorVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest, com.google.longrunning.Operation> getImportProcessorVersionMethod; if ((getImportProcessorVersionMethod = DocumentProcessorServiceGrpc.getImportProcessorVersionMethod) == null) { synchronized (DocumentProcessorServiceGrpc.class) { if ((getImportProcessorVersionMethod = DocumentProcessorServiceGrpc.getImportProcessorVersionMethod) == null) { DocumentProcessorServiceGrpc.getImportProcessorVersionMethod = getImportProcessorVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "ImportProcessorVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new DocumentProcessorServiceMethodDescriptorSupplier( "ImportProcessorVersion")) .build(); } } } return getImportProcessorVersionMethod; } /** Creates a new async stub that supports all call types for the service */ public static DocumentProcessorServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public DocumentProcessorServiceStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentProcessorServiceStub(channel, callOptions); } }; return DocumentProcessorServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static DocumentProcessorServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public DocumentProcessorServiceBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentProcessorServiceBlockingStub(channel, callOptions); } }; return DocumentProcessorServiceBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static DocumentProcessorServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public DocumentProcessorServiceFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentProcessorServiceFutureStub(channel, callOptions); } }; return DocumentProcessorServiceFutureStub.newStub(factory, channel); } /** * * *
   * Service to call Document AI to process documents according to the
   * processor's definition. Processors are built using state-of-the-art Google
   * AI such as natural language, computer vision, and translation to extract
   * structured information from unstructured or semi-structured documents.
   * 
*/ public interface AsyncService { /** * * *
     * Processes a single document.
     * 
*/ default void processDocument( com.google.cloud.documentai.v1beta3.ProcessRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getProcessDocumentMethod(), responseObserver); } /** * * *
     * LRO endpoint to batch process many documents. The output is written
     * to Cloud Storage as JSON in the [Document] format.
     * 
*/ default void batchProcessDocuments( com.google.cloud.documentai.v1beta3.BatchProcessRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getBatchProcessDocumentsMethod(), responseObserver); } /** * * *
     * Fetches processor types. Note that we don't use
     * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
     * here, because it isn't paginated.
     * 
*/ default void fetchProcessorTypes( com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getFetchProcessorTypesMethod(), responseObserver); } /** * * *
     * Lists the processor types that exist.
     * 
*/ default void listProcessorTypes( com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListProcessorTypesMethod(), responseObserver); } /** * * *
     * Gets a processor type detail.
     * 
*/ default void getProcessorType( com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetProcessorTypeMethod(), responseObserver); } /** * * *
     * Lists all processors which belong to this project.
     * 
*/ default void listProcessors( com.google.cloud.documentai.v1beta3.ListProcessorsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListProcessorsMethod(), responseObserver); } /** * * *
     * Gets a processor detail.
     * 
*/ default void getProcessor( com.google.cloud.documentai.v1beta3.GetProcessorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetProcessorMethod(), responseObserver); } /** * * *
     * Trains a new processor version.
     * Operation metadata is returned as
     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata].
     * 
*/ default void trainProcessorVersion( com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getTrainProcessorVersionMethod(), responseObserver); } /** * * *
     * Gets a processor version detail.
     * 
*/ default void getProcessorVersion( com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetProcessorVersionMethod(), responseObserver); } /** * * *
     * Lists all versions of a processor.
     * 
*/ default void listProcessorVersions( com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListProcessorVersionsMethod(), responseObserver); } /** * * *
     * Deletes the processor version, all artifacts under the processor version
     * will be deleted.
     * 
*/ default void deleteProcessorVersion( com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteProcessorVersionMethod(), responseObserver); } /** * * *
     * Deploys the processor version.
     * 
*/ default void deployProcessorVersion( com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeployProcessorVersionMethod(), responseObserver); } /** * * *
     * Undeploys the processor version.
     * 
*/ default void undeployProcessorVersion( com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUndeployProcessorVersionMethod(), responseObserver); } /** * * *
     * Creates a processor from the
     * [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided.
     * The processor will be at `ENABLED` state by default after its creation.
     * 
*/ default void createProcessor( com.google.cloud.documentai.v1beta3.CreateProcessorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateProcessorMethod(), responseObserver); } /** * * *
     * Deletes the processor, unloads all deployed model artifacts if it was
     * enabled and then deletes all artifacts associated with this processor.
     * 
*/ default void deleteProcessor( com.google.cloud.documentai.v1beta3.DeleteProcessorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteProcessorMethod(), responseObserver); } /** * * *
     * Enables a processor
     * 
*/ default void enableProcessor( com.google.cloud.documentai.v1beta3.EnableProcessorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getEnableProcessorMethod(), responseObserver); } /** * * *
     * Disables a processor
     * 
*/ default void disableProcessor( com.google.cloud.documentai.v1beta3.DisableProcessorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDisableProcessorMethod(), responseObserver); } /** * * *
     * Set the default (active) version of a
     * [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
     * [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
     * and
     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
     * 
*/ default void setDefaultProcessorVersion( com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getSetDefaultProcessorVersionMethod(), responseObserver); } /** * * *
     * Send a document for Human Review. The input document should be processed by
     * the specified processor.
     * 
*/ default void reviewDocument( com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getReviewDocumentMethod(), responseObserver); } /** * * *
     * Evaluates a ProcessorVersion against annotated documents, producing an
     * Evaluation.
     * 
*/ default void evaluateProcessorVersion( com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getEvaluateProcessorVersionMethod(), responseObserver); } /** * * *
     * Retrieves a specific evaluation.
     * 
*/ default void getEvaluation( com.google.cloud.documentai.v1beta3.GetEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetEvaluationMethod(), responseObserver); } /** * * *
     * Retrieves a set of evaluations for a given processor version.
     * 
*/ default void listEvaluations( com.google.cloud.documentai.v1beta3.ListEvaluationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListEvaluationsMethod(), responseObserver); } /** * * *
     * Imports a processor version from source processor version.
     * 
*/ default void importProcessorVersion( com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getImportProcessorVersionMethod(), responseObserver); } } /** * Base class for the server implementation of the service DocumentProcessorService. * *
   * Service to call Document AI to process documents according to the
   * processor's definition. Processors are built using state-of-the-art Google
   * AI such as natural language, computer vision, and translation to extract
   * structured information from unstructured or semi-structured documents.
   * 
*/ public abstract static class DocumentProcessorServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return DocumentProcessorServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service DocumentProcessorService. * *
   * Service to call Document AI to process documents according to the
   * processor's definition. Processors are built using state-of-the-art Google
   * AI such as natural language, computer vision, and translation to extract
   * structured information from unstructured or semi-structured documents.
   * 
*/ public static final class DocumentProcessorServiceStub extends io.grpc.stub.AbstractAsyncStub { private DocumentProcessorServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected DocumentProcessorServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentProcessorServiceStub(channel, callOptions); } /** * * *
     * Processes a single document.
     * 
*/ public void processDocument( com.google.cloud.documentai.v1beta3.ProcessRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getProcessDocumentMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * LRO endpoint to batch process many documents. The output is written
     * to Cloud Storage as JSON in the [Document] format.
     * 
*/ public void batchProcessDocuments( com.google.cloud.documentai.v1beta3.BatchProcessRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Fetches processor types. Note that we don't use
     * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
     * here, because it isn't paginated.
     * 
*/ public void fetchProcessorTypes( com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getFetchProcessorTypesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists the processor types that exist.
     * 
*/ public void listProcessorTypes( com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListProcessorTypesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets a processor type detail.
     * 
*/ public void getProcessorType( com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetProcessorTypeMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists all processors which belong to this project.
     * 
*/ public void listProcessors( com.google.cloud.documentai.v1beta3.ListProcessorsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListProcessorsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets a processor detail.
     * 
*/ public void getProcessor( com.google.cloud.documentai.v1beta3.GetProcessorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetProcessorMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Trains a new processor version.
     * Operation metadata is returned as
     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata].
     * 
*/ public void trainProcessorVersion( com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTrainProcessorVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets a processor version detail.
     * 
*/ public void getProcessorVersion( com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetProcessorVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists all versions of a processor.
     * 
*/ public void listProcessorVersions( com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListProcessorVersionsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes the processor version, all artifacts under the processor version
     * will be deleted.
     * 
*/ public void deleteProcessorVersion( com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteProcessorVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deploys the processor version.
     * 
*/ public void deployProcessorVersion( com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeployProcessorVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Undeploys the processor version.
     * 
*/ public void undeployProcessorVersion( com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUndeployProcessorVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a processor from the
     * [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided.
     * The processor will be at `ENABLED` state by default after its creation.
     * 
*/ public void createProcessor( com.google.cloud.documentai.v1beta3.CreateProcessorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateProcessorMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes the processor, unloads all deployed model artifacts if it was
     * enabled and then deletes all artifacts associated with this processor.
     * 
*/ public void deleteProcessor( com.google.cloud.documentai.v1beta3.DeleteProcessorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteProcessorMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Enables a processor
     * 
*/ public void enableProcessor( com.google.cloud.documentai.v1beta3.EnableProcessorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getEnableProcessorMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Disables a processor
     * 
*/ public void disableProcessor( com.google.cloud.documentai.v1beta3.DisableProcessorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDisableProcessorMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Set the default (active) version of a
     * [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
     * [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
     * and
     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
     * 
*/ public void setDefaultProcessorVersion( com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetDefaultProcessorVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Send a document for Human Review. The input document should be processed by
     * the specified processor.
     * 
*/ public void reviewDocument( com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getReviewDocumentMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Evaluates a ProcessorVersion against annotated documents, producing an
     * Evaluation.
     * 
*/ public void evaluateProcessorVersion( com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getEvaluateProcessorVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Retrieves a specific evaluation.
     * 
*/ public void getEvaluation( com.google.cloud.documentai.v1beta3.GetEvaluationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Retrieves a set of evaluations for a given processor version.
     * 
*/ public void listEvaluations( com.google.cloud.documentai.v1beta3.ListEvaluationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListEvaluationsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Imports a processor version from source processor version.
     * 
*/ public void importProcessorVersion( com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getImportProcessorVersionMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service DocumentProcessorService. * *
   * Service to call Document AI to process documents according to the
   * processor's definition. Processors are built using state-of-the-art Google
   * AI such as natural language, computer vision, and translation to extract
   * structured information from unstructured or semi-structured documents.
   * 
*/ public static final class DocumentProcessorServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private DocumentProcessorServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected DocumentProcessorServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentProcessorServiceBlockingStub(channel, callOptions); } /** * * *
     * Processes a single document.
     * 
*/ public com.google.cloud.documentai.v1beta3.ProcessResponse processDocument( com.google.cloud.documentai.v1beta3.ProcessRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getProcessDocumentMethod(), getCallOptions(), request); } /** * * *
     * LRO endpoint to batch process many documents. The output is written
     * to Cloud Storage as JSON in the [Document] format.
     * 
*/ public com.google.longrunning.Operation batchProcessDocuments( com.google.cloud.documentai.v1beta3.BatchProcessRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchProcessDocumentsMethod(), getCallOptions(), request); } /** * * *
     * Fetches processor types. Note that we don't use
     * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
     * here, because it isn't paginated.
     * 
*/ public com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse fetchProcessorTypes( com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFetchProcessorTypesMethod(), getCallOptions(), request); } /** * * *
     * Lists the processor types that exist.
     * 
*/ public com.google.cloud.documentai.v1beta3.ListProcessorTypesResponse listProcessorTypes( com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProcessorTypesMethod(), getCallOptions(), request); } /** * * *
     * Gets a processor type detail.
     * 
*/ public com.google.cloud.documentai.v1beta3.ProcessorType getProcessorType( com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProcessorTypeMethod(), getCallOptions(), request); } /** * * *
     * Lists all processors which belong to this project.
     * 
*/ public com.google.cloud.documentai.v1beta3.ListProcessorsResponse listProcessors( com.google.cloud.documentai.v1beta3.ListProcessorsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProcessorsMethod(), getCallOptions(), request); } /** * * *
     * Gets a processor detail.
     * 
*/ public com.google.cloud.documentai.v1beta3.Processor getProcessor( com.google.cloud.documentai.v1beta3.GetProcessorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProcessorMethod(), getCallOptions(), request); } /** * * *
     * Trains a new processor version.
     * Operation metadata is returned as
     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata].
     * 
*/ public com.google.longrunning.Operation trainProcessorVersion( com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTrainProcessorVersionMethod(), getCallOptions(), request); } /** * * *
     * Gets a processor version detail.
     * 
*/ public com.google.cloud.documentai.v1beta3.ProcessorVersion getProcessorVersion( com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProcessorVersionMethod(), getCallOptions(), request); } /** * * *
     * Lists all versions of a processor.
     * 
*/ public com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse listProcessorVersions( com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProcessorVersionsMethod(), getCallOptions(), request); } /** * * *
     * Deletes the processor version, all artifacts under the processor version
     * will be deleted.
     * 
*/ public com.google.longrunning.Operation deleteProcessorVersion( com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProcessorVersionMethod(), getCallOptions(), request); } /** * * *
     * Deploys the processor version.
     * 
*/ public com.google.longrunning.Operation deployProcessorVersion( com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeployProcessorVersionMethod(), getCallOptions(), request); } /** * * *
     * Undeploys the processor version.
     * 
*/ public com.google.longrunning.Operation undeployProcessorVersion( com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUndeployProcessorVersionMethod(), getCallOptions(), request); } /** * * *
     * Creates a processor from the
     * [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided.
     * The processor will be at `ENABLED` state by default after its creation.
     * 
*/ public com.google.cloud.documentai.v1beta3.Processor createProcessor( com.google.cloud.documentai.v1beta3.CreateProcessorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProcessorMethod(), getCallOptions(), request); } /** * * *
     * Deletes the processor, unloads all deployed model artifacts if it was
     * enabled and then deletes all artifacts associated with this processor.
     * 
*/ public com.google.longrunning.Operation deleteProcessor( com.google.cloud.documentai.v1beta3.DeleteProcessorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteProcessorMethod(), getCallOptions(), request); } /** * * *
     * Enables a processor
     * 
*/ public com.google.longrunning.Operation enableProcessor( com.google.cloud.documentai.v1beta3.EnableProcessorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEnableProcessorMethod(), getCallOptions(), request); } /** * * *
     * Disables a processor
     * 
*/ public com.google.longrunning.Operation disableProcessor( com.google.cloud.documentai.v1beta3.DisableProcessorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDisableProcessorMethod(), getCallOptions(), request); } /** * * *
     * Set the default (active) version of a
     * [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
     * [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
     * and
     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
     * 
*/ public com.google.longrunning.Operation setDefaultProcessorVersion( com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSetDefaultProcessorVersionMethod(), getCallOptions(), request); } /** * * *
     * Send a document for Human Review. The input document should be processed by
     * the specified processor.
     * 
*/ public com.google.longrunning.Operation reviewDocument( com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getReviewDocumentMethod(), getCallOptions(), request); } /** * * *
     * Evaluates a ProcessorVersion against annotated documents, producing an
     * Evaluation.
     * 
*/ public com.google.longrunning.Operation evaluateProcessorVersion( com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEvaluateProcessorVersionMethod(), getCallOptions(), request); } /** * * *
     * Retrieves a specific evaluation.
     * 
*/ public com.google.cloud.documentai.v1beta3.Evaluation getEvaluation( com.google.cloud.documentai.v1beta3.GetEvaluationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetEvaluationMethod(), getCallOptions(), request); } /** * * *
     * Retrieves a set of evaluations for a given processor version.
     * 
*/ public com.google.cloud.documentai.v1beta3.ListEvaluationsResponse listEvaluations( com.google.cloud.documentai.v1beta3.ListEvaluationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListEvaluationsMethod(), getCallOptions(), request); } /** * * *
     * Imports a processor version from source processor version.
     * 
*/ public com.google.longrunning.Operation importProcessorVersion( com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportProcessorVersionMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service * DocumentProcessorService. * *
   * Service to call Document AI to process documents according to the
   * processor's definition. Processors are built using state-of-the-art Google
   * AI such as natural language, computer vision, and translation to extract
   * structured information from unstructured or semi-structured documents.
   * 
*/ public static final class DocumentProcessorServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private DocumentProcessorServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected DocumentProcessorServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentProcessorServiceFutureStub(channel, callOptions); } /** * * *
     * Processes a single document.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.documentai.v1beta3.ProcessResponse> processDocument(com.google.cloud.documentai.v1beta3.ProcessRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getProcessDocumentMethod(), getCallOptions()), request); } /** * * *
     * LRO endpoint to batch process many documents. The output is written
     * to Cloud Storage as JSON in the [Document] format.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture batchProcessDocuments(com.google.cloud.documentai.v1beta3.BatchProcessRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()), request); } /** * * *
     * Fetches processor types. Note that we don't use
     * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
     * here, because it isn't paginated.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse> fetchProcessorTypes( com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFetchProcessorTypesMethod(), getCallOptions()), request); } /** * * *
     * Lists the processor types that exist.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.documentai.v1beta3.ListProcessorTypesResponse> listProcessorTypes(com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProcessorTypesMethod(), getCallOptions()), request); } /** * * *
     * Gets a processor type detail.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.documentai.v1beta3.ProcessorType> getProcessorType(com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProcessorTypeMethod(), getCallOptions()), request); } /** * * *
     * Lists all processors which belong to this project.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.documentai.v1beta3.ListProcessorsResponse> listProcessors(com.google.cloud.documentai.v1beta3.ListProcessorsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProcessorsMethod(), getCallOptions()), request); } /** * * *
     * Gets a processor detail.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.documentai.v1beta3.Processor> getProcessor(com.google.cloud.documentai.v1beta3.GetProcessorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProcessorMethod(), getCallOptions()), request); } /** * * *
     * Trains a new processor version.
     * Operation metadata is returned as
     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata].
     * 
*/ public com.google.common.util.concurrent.ListenableFuture trainProcessorVersion( com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTrainProcessorVersionMethod(), getCallOptions()), request); } /** * * *
     * Gets a processor version detail.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.documentai.v1beta3.ProcessorVersion> getProcessorVersion( com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProcessorVersionMethod(), getCallOptions()), request); } /** * * *
     * Lists all versions of a processor.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse> listProcessorVersions( com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProcessorVersionsMethod(), getCallOptions()), request); } /** * * *
     * Deletes the processor version, all artifacts under the processor version
     * will be deleted.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteProcessorVersion( com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteProcessorVersionMethod(), getCallOptions()), request); } /** * * *
     * Deploys the processor version.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deployProcessorVersion( com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeployProcessorVersionMethod(), getCallOptions()), request); } /** * * *
     * Undeploys the processor version.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture undeployProcessorVersion( com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUndeployProcessorVersionMethod(), getCallOptions()), request); } /** * * *
     * Creates a processor from the
     * [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided.
     * The processor will be at `ENABLED` state by default after its creation.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.documentai.v1beta3.Processor> createProcessor(com.google.cloud.documentai.v1beta3.CreateProcessorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProcessorMethod(), getCallOptions()), request); } /** * * *
     * Deletes the processor, unloads all deployed model artifacts if it was
     * enabled and then deletes all artifacts associated with this processor.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteProcessor(com.google.cloud.documentai.v1beta3.DeleteProcessorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteProcessorMethod(), getCallOptions()), request); } /** * * *
     * Enables a processor
     * 
*/ public com.google.common.util.concurrent.ListenableFuture enableProcessor(com.google.cloud.documentai.v1beta3.EnableProcessorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEnableProcessorMethod(), getCallOptions()), request); } /** * * *
     * Disables a processor
     * 
*/ public com.google.common.util.concurrent.ListenableFuture disableProcessor(com.google.cloud.documentai.v1beta3.DisableProcessorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDisableProcessorMethod(), getCallOptions()), request); } /** * * *
     * Set the default (active) version of a
     * [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
     * [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
     * and
     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
     * 
*/ public com.google.common.util.concurrent.ListenableFuture setDefaultProcessorVersion( com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetDefaultProcessorVersionMethod(), getCallOptions()), request); } /** * * *
     * Send a document for Human Review. The input document should be processed by
     * the specified processor.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture reviewDocument(com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReviewDocumentMethod(), getCallOptions()), request); } /** * * *
     * Evaluates a ProcessorVersion against annotated documents, producing an
     * Evaluation.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture evaluateProcessorVersion( com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEvaluateProcessorVersionMethod(), getCallOptions()), request); } /** * * *
     * Retrieves a specific evaluation.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.documentai.v1beta3.Evaluation> getEvaluation(com.google.cloud.documentai.v1beta3.GetEvaluationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), request); } /** * * *
     * Retrieves a set of evaluations for a given processor version.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.documentai.v1beta3.ListEvaluationsResponse> listEvaluations(com.google.cloud.documentai.v1beta3.ListEvaluationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEvaluationsMethod(), getCallOptions()), request); } /** * * *
     * Imports a processor version from source processor version.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture importProcessorVersion( com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportProcessorVersionMethod(), getCallOptions()), request); } } private static final int METHODID_PROCESS_DOCUMENT = 0; private static final int METHODID_BATCH_PROCESS_DOCUMENTS = 1; private static final int METHODID_FETCH_PROCESSOR_TYPES = 2; private static final int METHODID_LIST_PROCESSOR_TYPES = 3; private static final int METHODID_GET_PROCESSOR_TYPE = 4; private static final int METHODID_LIST_PROCESSORS = 5; private static final int METHODID_GET_PROCESSOR = 6; private static final int METHODID_TRAIN_PROCESSOR_VERSION = 7; private static final int METHODID_GET_PROCESSOR_VERSION = 8; private static final int METHODID_LIST_PROCESSOR_VERSIONS = 9; private static final int METHODID_DELETE_PROCESSOR_VERSION = 10; private static final int METHODID_DEPLOY_PROCESSOR_VERSION = 11; private static final int METHODID_UNDEPLOY_PROCESSOR_VERSION = 12; private static final int METHODID_CREATE_PROCESSOR = 13; private static final int METHODID_DELETE_PROCESSOR = 14; private static final int METHODID_ENABLE_PROCESSOR = 15; private static final int METHODID_DISABLE_PROCESSOR = 16; private static final int METHODID_SET_DEFAULT_PROCESSOR_VERSION = 17; private static final int METHODID_REVIEW_DOCUMENT = 18; private static final int METHODID_EVALUATE_PROCESSOR_VERSION = 19; private static final int METHODID_GET_EVALUATION = 20; private static final int METHODID_LIST_EVALUATIONS = 21; private static final int METHODID_IMPORT_PROCESSOR_VERSION = 22; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PROCESS_DOCUMENT: serviceImpl.processDocument( (com.google.cloud.documentai.v1beta3.ProcessRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_PROCESS_DOCUMENTS: serviceImpl.batchProcessDocuments( (com.google.cloud.documentai.v1beta3.BatchProcessRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FETCH_PROCESSOR_TYPES: serviceImpl.fetchProcessorTypes( (com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse>) responseObserver); break; case METHODID_LIST_PROCESSOR_TYPES: serviceImpl.listProcessorTypes( (com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.documentai.v1beta3.ListProcessorTypesResponse>) responseObserver); break; case METHODID_GET_PROCESSOR_TYPE: serviceImpl.getProcessorType( (com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PROCESSORS: serviceImpl.listProcessors( (com.google.cloud.documentai.v1beta3.ListProcessorsRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.documentai.v1beta3.ListProcessorsResponse>) responseObserver); break; case METHODID_GET_PROCESSOR: serviceImpl.getProcessor( (com.google.cloud.documentai.v1beta3.GetProcessorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TRAIN_PROCESSOR_VERSION: serviceImpl.trainProcessorVersion( (com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_PROCESSOR_VERSION: serviceImpl.getProcessorVersion( (com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PROCESSOR_VERSIONS: serviceImpl.listProcessorVersions( (com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse>) responseObserver); break; case METHODID_DELETE_PROCESSOR_VERSION: serviceImpl.deleteProcessorVersion( (com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DEPLOY_PROCESSOR_VERSION: serviceImpl.deployProcessorVersion( (com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UNDEPLOY_PROCESSOR_VERSION: serviceImpl.undeployProcessorVersion( (com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_PROCESSOR: serviceImpl.createProcessor( (com.google.cloud.documentai.v1beta3.CreateProcessorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_PROCESSOR: serviceImpl.deleteProcessor( (com.google.cloud.documentai.v1beta3.DeleteProcessorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ENABLE_PROCESSOR: serviceImpl.enableProcessor( (com.google.cloud.documentai.v1beta3.EnableProcessorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DISABLE_PROCESSOR: serviceImpl.disableProcessor( (com.google.cloud.documentai.v1beta3.DisableProcessorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SET_DEFAULT_PROCESSOR_VERSION: serviceImpl.setDefaultProcessorVersion( (com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REVIEW_DOCUMENT: serviceImpl.reviewDocument( (com.google.cloud.documentai.v1beta3.ReviewDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EVALUATE_PROCESSOR_VERSION: serviceImpl.evaluateProcessorVersion( (com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_EVALUATION: serviceImpl.getEvaluation( (com.google.cloud.documentai.v1beta3.GetEvaluationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_EVALUATIONS: serviceImpl.listEvaluations( (com.google.cloud.documentai.v1beta3.ListEvaluationsRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.documentai.v1beta3.ListEvaluationsResponse>) responseObserver); break; case METHODID_IMPORT_PROCESSOR_VERSION: serviceImpl.importProcessorVersion( (com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getProcessDocumentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.ProcessRequest, com.google.cloud.documentai.v1beta3.ProcessResponse>( service, METHODID_PROCESS_DOCUMENT))) .addMethod( getBatchProcessDocumentsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.BatchProcessRequest, com.google.longrunning.Operation>(service, METHODID_BATCH_PROCESS_DOCUMENTS))) .addMethod( getFetchProcessorTypesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest, com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse>( service, METHODID_FETCH_PROCESSOR_TYPES))) .addMethod( getListProcessorTypesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest, com.google.cloud.documentai.v1beta3.ListProcessorTypesResponse>( service, METHODID_LIST_PROCESSOR_TYPES))) .addMethod( getGetProcessorTypeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest, com.google.cloud.documentai.v1beta3.ProcessorType>( service, METHODID_GET_PROCESSOR_TYPE))) .addMethod( getListProcessorsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.ListProcessorsRequest, com.google.cloud.documentai.v1beta3.ListProcessorsResponse>( service, METHODID_LIST_PROCESSORS))) .addMethod( getGetProcessorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.GetProcessorRequest, com.google.cloud.documentai.v1beta3.Processor>( service, METHODID_GET_PROCESSOR))) .addMethod( getTrainProcessorVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest, com.google.longrunning.Operation>(service, METHODID_TRAIN_PROCESSOR_VERSION))) .addMethod( getGetProcessorVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest, com.google.cloud.documentai.v1beta3.ProcessorVersion>( service, METHODID_GET_PROCESSOR_VERSION))) .addMethod( getListProcessorVersionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest, com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse>( service, METHODID_LIST_PROCESSOR_VERSIONS))) .addMethod( getDeleteProcessorVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_PROCESSOR_VERSION))) .addMethod( getDeployProcessorVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest, com.google.longrunning.Operation>(service, METHODID_DEPLOY_PROCESSOR_VERSION))) .addMethod( getUndeployProcessorVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest, com.google.longrunning.Operation>( service, METHODID_UNDEPLOY_PROCESSOR_VERSION))) .addMethod( getCreateProcessorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.CreateProcessorRequest, com.google.cloud.documentai.v1beta3.Processor>( service, METHODID_CREATE_PROCESSOR))) .addMethod( getDeleteProcessorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.DeleteProcessorRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_PROCESSOR))) .addMethod( getEnableProcessorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.EnableProcessorRequest, com.google.longrunning.Operation>(service, METHODID_ENABLE_PROCESSOR))) .addMethod( getDisableProcessorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.DisableProcessorRequest, com.google.longrunning.Operation>(service, METHODID_DISABLE_PROCESSOR))) .addMethod( getSetDefaultProcessorVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest, com.google.longrunning.Operation>( service, METHODID_SET_DEFAULT_PROCESSOR_VERSION))) .addMethod( getReviewDocumentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.ReviewDocumentRequest, com.google.longrunning.Operation>(service, METHODID_REVIEW_DOCUMENT))) .addMethod( getEvaluateProcessorVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest, com.google.longrunning.Operation>( service, METHODID_EVALUATE_PROCESSOR_VERSION))) .addMethod( getGetEvaluationMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.GetEvaluationRequest, com.google.cloud.documentai.v1beta3.Evaluation>( service, METHODID_GET_EVALUATION))) .addMethod( getListEvaluationsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.ListEvaluationsRequest, com.google.cloud.documentai.v1beta3.ListEvaluationsResponse>( service, METHODID_LIST_EVALUATIONS))) .addMethod( getImportProcessorVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest, com.google.longrunning.Operation>(service, METHODID_IMPORT_PROCESSOR_VERSION))) .build(); } private abstract static class DocumentProcessorServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { DocumentProcessorServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("DocumentProcessorService"); } } private static final class DocumentProcessorServiceFileDescriptorSupplier extends DocumentProcessorServiceBaseDescriptorSupplier { DocumentProcessorServiceFileDescriptorSupplier() {} } private static final class DocumentProcessorServiceMethodDescriptorSupplier extends DocumentProcessorServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; DocumentProcessorServiceMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (DocumentProcessorServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new DocumentProcessorServiceFileDescriptorSupplier()) .addMethod(getProcessDocumentMethod()) .addMethod(getBatchProcessDocumentsMethod()) .addMethod(getFetchProcessorTypesMethod()) .addMethod(getListProcessorTypesMethod()) .addMethod(getGetProcessorTypeMethod()) .addMethod(getListProcessorsMethod()) .addMethod(getGetProcessorMethod()) .addMethod(getTrainProcessorVersionMethod()) .addMethod(getGetProcessorVersionMethod()) .addMethod(getListProcessorVersionsMethod()) .addMethod(getDeleteProcessorVersionMethod()) .addMethod(getDeployProcessorVersionMethod()) .addMethod(getUndeployProcessorVersionMethod()) .addMethod(getCreateProcessorMethod()) .addMethod(getDeleteProcessorMethod()) .addMethod(getEnableProcessorMethod()) .addMethod(getDisableProcessorMethod()) .addMethod(getSetDefaultProcessorVersionMethod()) .addMethod(getReviewDocumentMethod()) .addMethod(getEvaluateProcessorVersionMethod()) .addMethod(getGetEvaluationMethod()) .addMethod(getListEvaluationsMethod()) .addMethod(getImportProcessorVersionMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy