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

com.google.cloud.dialogflow.v2.DocumentsGrpc Maven / Gradle / Ivy

There is a newer version: 4.60.0
Show newest version
/*
 * Copyright 2024 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.dialogflow.v2;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * Service for managing knowledge
 * [Documents][google.cloud.dialogflow.v2.Document].
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/v2/document.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentsGrpc { private DocumentsGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.dialogflow.v2.Documents"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ListDocumentsRequest, com.google.cloud.dialogflow.v2.ListDocumentsResponse> getListDocumentsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListDocuments", requestType = com.google.cloud.dialogflow.v2.ListDocumentsRequest.class, responseType = com.google.cloud.dialogflow.v2.ListDocumentsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ListDocumentsRequest, com.google.cloud.dialogflow.v2.ListDocumentsResponse> getListDocumentsMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ListDocumentsRequest, com.google.cloud.dialogflow.v2.ListDocumentsResponse> getListDocumentsMethod; if ((getListDocumentsMethod = DocumentsGrpc.getListDocumentsMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getListDocumentsMethod = DocumentsGrpc.getListDocumentsMethod) == null) { DocumentsGrpc.getListDocumentsMethod = getListDocumentsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDocuments")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.v2.ListDocumentsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.v2.ListDocumentsResponse .getDefaultInstance())) .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("ListDocuments")) .build(); } } } return getListDocumentsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.GetDocumentRequest, com.google.cloud.dialogflow.v2.Document> getGetDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetDocument", requestType = com.google.cloud.dialogflow.v2.GetDocumentRequest.class, responseType = com.google.cloud.dialogflow.v2.Document.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.GetDocumentRequest, com.google.cloud.dialogflow.v2.Document> getGetDocumentMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.GetDocumentRequest, com.google.cloud.dialogflow.v2.Document> getGetDocumentMethod; if ((getGetDocumentMethod = DocumentsGrpc.getGetDocumentMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getGetDocumentMethod = DocumentsGrpc.getGetDocumentMethod) == null) { DocumentsGrpc.getGetDocumentMethod = getGetDocumentMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocument")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.v2.GetDocumentRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.v2.Document.getDefaultInstance())) .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("GetDocument")) .build(); } } } return getGetDocumentMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.CreateDocumentRequest, com.google.longrunning.Operation> getCreateDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateDocument", requestType = com.google.cloud.dialogflow.v2.CreateDocumentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.CreateDocumentRequest, com.google.longrunning.Operation> getCreateDocumentMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.CreateDocumentRequest, com.google.longrunning.Operation> getCreateDocumentMethod; if ((getCreateDocumentMethod = DocumentsGrpc.getCreateDocumentMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getCreateDocumentMethod = DocumentsGrpc.getCreateDocumentMethod) == null) { DocumentsGrpc.getCreateDocumentMethod = getCreateDocumentMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocument")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.v2.CreateDocumentRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("CreateDocument")) .build(); } } } return getCreateDocumentMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ImportDocumentsRequest, com.google.longrunning.Operation> getImportDocumentsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ImportDocuments", requestType = com.google.cloud.dialogflow.v2.ImportDocumentsRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ImportDocumentsRequest, com.google.longrunning.Operation> getImportDocumentsMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ImportDocumentsRequest, com.google.longrunning.Operation> getImportDocumentsMethod; if ((getImportDocumentsMethod = DocumentsGrpc.getImportDocumentsMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getImportDocumentsMethod = DocumentsGrpc.getImportDocumentsMethod) == null) { DocumentsGrpc.getImportDocumentsMethod = getImportDocumentsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportDocuments")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.v2.ImportDocumentsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("ImportDocuments")) .build(); } } } return getImportDocumentsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.DeleteDocumentRequest, com.google.longrunning.Operation> getDeleteDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteDocument", requestType = com.google.cloud.dialogflow.v2.DeleteDocumentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.DeleteDocumentRequest, com.google.longrunning.Operation> getDeleteDocumentMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.DeleteDocumentRequest, com.google.longrunning.Operation> getDeleteDocumentMethod; if ((getDeleteDocumentMethod = DocumentsGrpc.getDeleteDocumentMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getDeleteDocumentMethod = DocumentsGrpc.getDeleteDocumentMethod) == null) { DocumentsGrpc.getDeleteDocumentMethod = getDeleteDocumentMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocument")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.v2.DeleteDocumentRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("DeleteDocument")) .build(); } } } return getDeleteDocumentMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.UpdateDocumentRequest, com.google.longrunning.Operation> getUpdateDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateDocument", requestType = com.google.cloud.dialogflow.v2.UpdateDocumentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.UpdateDocumentRequest, com.google.longrunning.Operation> getUpdateDocumentMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.UpdateDocumentRequest, com.google.longrunning.Operation> getUpdateDocumentMethod; if ((getUpdateDocumentMethod = DocumentsGrpc.getUpdateDocumentMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getUpdateDocumentMethod = DocumentsGrpc.getUpdateDocumentMethod) == null) { DocumentsGrpc.getUpdateDocumentMethod = getUpdateDocumentMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDocument")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.v2.UpdateDocumentRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("UpdateDocument")) .build(); } } } return getUpdateDocumentMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ReloadDocumentRequest, com.google.longrunning.Operation> getReloadDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ReloadDocument", requestType = com.google.cloud.dialogflow.v2.ReloadDocumentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ReloadDocumentRequest, com.google.longrunning.Operation> getReloadDocumentMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ReloadDocumentRequest, com.google.longrunning.Operation> getReloadDocumentMethod; if ((getReloadDocumentMethod = DocumentsGrpc.getReloadDocumentMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getReloadDocumentMethod = DocumentsGrpc.getReloadDocumentMethod) == null) { DocumentsGrpc.getReloadDocumentMethod = getReloadDocumentMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReloadDocument")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.v2.ReloadDocumentRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("ReloadDocument")) .build(); } } } return getReloadDocumentMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ExportDocumentRequest, com.google.longrunning.Operation> getExportDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ExportDocument", requestType = com.google.cloud.dialogflow.v2.ExportDocumentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ExportDocumentRequest, com.google.longrunning.Operation> getExportDocumentMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2.ExportDocumentRequest, com.google.longrunning.Operation> getExportDocumentMethod; if ((getExportDocumentMethod = DocumentsGrpc.getExportDocumentMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getExportDocumentMethod = DocumentsGrpc.getExportDocumentMethod) == null) { DocumentsGrpc.getExportDocumentMethod = getExportDocumentMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportDocument")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.v2.ExportDocumentRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("ExportDocument")) .build(); } } } return getExportDocumentMethod; } /** Creates a new async stub that supports all call types for the service */ public static DocumentsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public DocumentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentsStub(channel, callOptions); } }; return DocumentsStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static DocumentsBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public DocumentsBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentsBlockingStub(channel, callOptions); } }; return DocumentsBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static DocumentsFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public DocumentsFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentsFutureStub(channel, callOptions); } }; return DocumentsFutureStub.newStub(factory, channel); } /** * * *
   * Service for managing knowledge
   * [Documents][google.cloud.dialogflow.v2.Document].
   * 
*/ public interface AsyncService { /** * * *
     * Returns the list of all documents of the knowledge base.
     * 
*/ default void listDocuments( com.google.cloud.dialogflow.v2.ListDocumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListDocumentsMethod(), responseObserver); } /** * * *
     * Retrieves the specified document.
     * 
*/ default void getDocument( com.google.cloud.dialogflow.v2.GetDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetDocumentMethod(), responseObserver); } /** * * *
     * Creates a new document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ default void createDocument( com.google.cloud.dialogflow.v2.CreateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateDocumentMethod(), responseObserver); } /** * * *
     * Creates documents by importing data from external sources.
     * Dialogflow supports up to 350 documents in each request. If you try to
     * import more, Dialogflow will return an error.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`:
     * [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse]
     * 
*/ default void importDocuments( com.google.cloud.dialogflow.v2.ImportDocumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getImportDocumentsMethod(), responseObserver); } /** * * *
     * Deletes the specified document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: An [Empty
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
     * 
*/ default void deleteDocument( com.google.cloud.dialogflow.v2.DeleteDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteDocumentMethod(), responseObserver); } /** * * *
     * Updates the specified document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ default void updateDocument( com.google.cloud.dialogflow.v2.UpdateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateDocumentMethod(), responseObserver); } /** * * *
     * Reloads the specified document from its specified source, content_uri or
     * content. The previously loaded content of the document will be deleted.
     * Note: Even when the content of the document has not changed, there still
     * may be side effects because of internal implementation changes.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
     * only use `projects.knowledgeBases.documents`.
     * 
*/ default void reloadDocument( com.google.cloud.dialogflow.v2.ReloadDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getReloadDocumentMethod(), responseObserver); } /** * * *
     * Exports a smart messaging candidate document into the specified
     * destination.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ default void exportDocument( com.google.cloud.dialogflow.v2.ExportDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getExportDocumentMethod(), responseObserver); } } /** * Base class for the server implementation of the service Documents. * *
   * Service for managing knowledge
   * [Documents][google.cloud.dialogflow.v2.Document].
   * 
*/ public abstract static class DocumentsImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return DocumentsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Documents. * *
   * Service for managing knowledge
   * [Documents][google.cloud.dialogflow.v2.Document].
   * 
*/ public static final class DocumentsStub extends io.grpc.stub.AbstractAsyncStub { private DocumentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected DocumentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentsStub(channel, callOptions); } /** * * *
     * Returns the list of all documents of the knowledge base.
     * 
*/ public void listDocuments( com.google.cloud.dialogflow.v2.ListDocumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Retrieves the specified document.
     * 
*/ public void getDocument( com.google.cloud.dialogflow.v2.GetDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a new document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ public void createDocument( com.google.cloud.dialogflow.v2.CreateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates documents by importing data from external sources.
     * Dialogflow supports up to 350 documents in each request. If you try to
     * import more, Dialogflow will return an error.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`:
     * [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse]
     * 
*/ public void importDocuments( com.google.cloud.dialogflow.v2.ImportDocumentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes the specified document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: An [Empty
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
     * 
*/ public void deleteDocument( com.google.cloud.dialogflow.v2.DeleteDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates the specified document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ public void updateDocument( com.google.cloud.dialogflow.v2.UpdateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Reloads the specified document from its specified source, content_uri or
     * content. The previously loaded content of the document will be deleted.
     * Note: Even when the content of the document has not changed, there still
     * may be side effects because of internal implementation changes.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
     * only use `projects.knowledgeBases.documents`.
     * 
*/ public void reloadDocument( com.google.cloud.dialogflow.v2.ReloadDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getReloadDocumentMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Exports a smart messaging candidate document into the specified
     * destination.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ public void exportDocument( com.google.cloud.dialogflow.v2.ExportDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportDocumentMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Documents. * *
   * Service for managing knowledge
   * [Documents][google.cloud.dialogflow.v2.Document].
   * 
*/ public static final class DocumentsBlockingStub extends io.grpc.stub.AbstractBlockingStub { private DocumentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected DocumentsBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentsBlockingStub(channel, callOptions); } /** * * *
     * Returns the list of all documents of the knowledge base.
     * 
*/ public com.google.cloud.dialogflow.v2.ListDocumentsResponse listDocuments( com.google.cloud.dialogflow.v2.ListDocumentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListDocumentsMethod(), getCallOptions(), request); } /** * * *
     * Retrieves the specified document.
     * 
*/ public com.google.cloud.dialogflow.v2.Document getDocument( com.google.cloud.dialogflow.v2.GetDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDocumentMethod(), getCallOptions(), request); } /** * * *
     * Creates a new document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ public com.google.longrunning.Operation createDocument( com.google.cloud.dialogflow.v2.CreateDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateDocumentMethod(), getCallOptions(), request); } /** * * *
     * Creates documents by importing data from external sources.
     * Dialogflow supports up to 350 documents in each request. If you try to
     * import more, Dialogflow will return an error.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`:
     * [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse]
     * 
*/ public com.google.longrunning.Operation importDocuments( com.google.cloud.dialogflow.v2.ImportDocumentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportDocumentsMethod(), getCallOptions(), request); } /** * * *
     * Deletes the specified document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: An [Empty
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
     * 
*/ public com.google.longrunning.Operation deleteDocument( com.google.cloud.dialogflow.v2.DeleteDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); } /** * * *
     * Updates the specified document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ public com.google.longrunning.Operation updateDocument( com.google.cloud.dialogflow.v2.UpdateDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); } /** * * *
     * Reloads the specified document from its specified source, content_uri or
     * content. The previously loaded content of the document will be deleted.
     * Note: Even when the content of the document has not changed, there still
     * may be side effects because of internal implementation changes.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
     * only use `projects.knowledgeBases.documents`.
     * 
*/ public com.google.longrunning.Operation reloadDocument( com.google.cloud.dialogflow.v2.ReloadDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getReloadDocumentMethod(), getCallOptions(), request); } /** * * *
     * Exports a smart messaging candidate document into the specified
     * destination.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ public com.google.longrunning.Operation exportDocument( com.google.cloud.dialogflow.v2.ExportDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportDocumentMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Documents. * *
   * Service for managing knowledge
   * [Documents][google.cloud.dialogflow.v2.Document].
   * 
*/ public static final class DocumentsFutureStub extends io.grpc.stub.AbstractFutureStub { private DocumentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentsFutureStub(channel, callOptions); } /** * * *
     * Returns the list of all documents of the knowledge base.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.ListDocumentsResponse> listDocuments(com.google.cloud.dialogflow.v2.ListDocumentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request); } /** * * *
     * Retrieves the specified document.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.v2.Document> getDocument(com.google.cloud.dialogflow.v2.GetDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); } /** * * *
     * Creates a new document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createDocument(com.google.cloud.dialogflow.v2.CreateDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); } /** * * *
     * Creates documents by importing data from external sources.
     * Dialogflow supports up to 350 documents in each request. If you try to
     * import more, Dialogflow will return an error.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`:
     * [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse]
     * 
*/ public com.google.common.util.concurrent.ListenableFuture importDocuments(com.google.cloud.dialogflow.v2.ImportDocumentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request); } /** * * *
     * Deletes the specified document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: An [Empty
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteDocument(com.google.cloud.dialogflow.v2.DeleteDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); } /** * * *
     * Updates the specified document.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateDocument(com.google.cloud.dialogflow.v2.UpdateDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); } /** * * *
     * Reloads the specified document from its specified source, content_uri or
     * content. The previously loaded content of the document will be deleted.
     * Note: Even when the content of the document has not changed, there still
     * may be side effects because of internal implementation changes.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
     * only use `projects.knowledgeBases.documents`.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture reloadDocument(com.google.cloud.dialogflow.v2.ReloadDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReloadDocumentMethod(), getCallOptions()), request); } /** * * *
     * Exports a smart messaging candidate document into the specified
     * destination.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata]
     * - `response`: [Document][google.cloud.dialogflow.v2.Document]
     * 
*/ public com.google.common.util.concurrent.ListenableFuture exportDocument(com.google.cloud.dialogflow.v2.ExportDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportDocumentMethod(), getCallOptions()), request); } } private static final int METHODID_LIST_DOCUMENTS = 0; private static final int METHODID_GET_DOCUMENT = 1; private static final int METHODID_CREATE_DOCUMENT = 2; private static final int METHODID_IMPORT_DOCUMENTS = 3; private static final int METHODID_DELETE_DOCUMENT = 4; private static final int METHODID_UPDATE_DOCUMENT = 5; private static final int METHODID_RELOAD_DOCUMENT = 6; private static final int METHODID_EXPORT_DOCUMENT = 7; 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_LIST_DOCUMENTS: serviceImpl.listDocuments( (com.google.cloud.dialogflow.v2.ListDocumentsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_DOCUMENT: serviceImpl.getDocument( (com.google.cloud.dialogflow.v2.GetDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_DOCUMENT: serviceImpl.createDocument( (com.google.cloud.dialogflow.v2.CreateDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_DOCUMENTS: serviceImpl.importDocuments( (com.google.cloud.dialogflow.v2.ImportDocumentsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_DOCUMENT: serviceImpl.deleteDocument( (com.google.cloud.dialogflow.v2.DeleteDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_DOCUMENT: serviceImpl.updateDocument( (com.google.cloud.dialogflow.v2.UpdateDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RELOAD_DOCUMENT: serviceImpl.reloadDocument( (com.google.cloud.dialogflow.v2.ReloadDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXPORT_DOCUMENT: serviceImpl.exportDocument( (com.google.cloud.dialogflow.v2.ExportDocumentRequest) 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( getListDocumentsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ListDocumentsRequest, com.google.cloud.dialogflow.v2.ListDocumentsResponse>( service, METHODID_LIST_DOCUMENTS))) .addMethod( getGetDocumentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.GetDocumentRequest, com.google.cloud.dialogflow.v2.Document>(service, METHODID_GET_DOCUMENT))) .addMethod( getCreateDocumentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.CreateDocumentRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_DOCUMENT))) .addMethod( getImportDocumentsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ImportDocumentsRequest, com.google.longrunning.Operation>(service, METHODID_IMPORT_DOCUMENTS))) .addMethod( getDeleteDocumentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.DeleteDocumentRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_DOCUMENT))) .addMethod( getUpdateDocumentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.UpdateDocumentRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_DOCUMENT))) .addMethod( getReloadDocumentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ReloadDocumentRequest, com.google.longrunning.Operation>(service, METHODID_RELOAD_DOCUMENT))) .addMethod( getExportDocumentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.v2.ExportDocumentRequest, com.google.longrunning.Operation>(service, METHODID_EXPORT_DOCUMENT))) .build(); } private abstract static class DocumentsBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { DocumentsBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.dialogflow.v2.DocumentProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Documents"); } } private static final class DocumentsFileDescriptorSupplier extends DocumentsBaseDescriptorSupplier { DocumentsFileDescriptorSupplier() {} } private static final class DocumentsMethodDescriptorSupplier extends DocumentsBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; DocumentsMethodDescriptorSupplier(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 (DocumentsGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new DocumentsFileDescriptorSupplier()) .addMethod(getListDocumentsMethod()) .addMethod(getGetDocumentMethod()) .addMethod(getCreateDocumentMethod()) .addMethod(getImportDocumentsMethod()) .addMethod(getDeleteDocumentMethod()) .addMethod(getUpdateDocumentMethod()) .addMethod(getReloadDocumentMethod()) .addMethod(getExportDocumentMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy