import type * as grpc from '@grpc/grpc-js' ; import type { MethodDefinition } from '@grpc/proto-loader' ; import type { CancelOperationRequest as _google_longrunning_CancelOperationRequest , CancelOperationRequest__Output as _google_longrunning_CancelOperationRequest__Output , } from '../../google/longrunning/CancelOperationRequest' ; import type { DeleteOperationRequest as _google_longrunning_DeleteOperationRequest , DeleteOperationRequest__Output as _google_longrunning_DeleteOperationRequest__Output , } from '../../google/longrunning/DeleteOperationRequest' ; import type { Empty as _google_protobuf_Empty , Empty__Output as _google_protobuf_Empty__Output , } from '../../google/protobuf/Empty' ; import type { GetOperationRequest as _google_longrunning_GetOperationRequest , GetOperationRequest__Output as _google_longrunning_GetOperationRequest__Output , } from '../../google/longrunning/GetOperationRequest' ; import type { ListOperationsRequest as _google_longrunning_ListOperationsRequest , ListOperationsRequest__Output as _google_longrunning_ListOperationsRequest__Output , } from '../../google/longrunning/ListOperationsRequest' ; import type { ListOperationsResponse as _google_longrunning_ListOperationsResponse , ListOperationsResponse__Output as _google_longrunning_ListOperationsResponse__Output , } from '../../google/longrunning/ListOperationsResponse' ; import type { Operation as _google_longrunning_Operation , Operation__Output as _google_longrunning_Operation__Output , } from '../../google/longrunning/Operation' ; import type { WaitOperationRequest as _google_longrunning_WaitOperationRequest , WaitOperationRequest__Output as _google_longrunning_WaitOperationRequest__Output , } from '../../google/longrunning/WaitOperationRequest' ; /**
 * Manages long-running operations with an API service.
 *
 * When an API method normally takes long time to complete, it can be designed
 * to return [Operation][google.longrunning.Operation] to the client, and the client can use this
 * interface to receive the real response asynchronously by polling the
 * operation resource, or pass the operation resource to another API (such as
 * Google Cloud Pub/Sub API) to receive the response.  Any API service that
 * returns long-running operations should implement the `Operations` interface
 * so developers can have a consistent client experience.
 */ export interface OperationsClient extends grpc . Client { /**
     * Starts asynchronous cancellation on a long-running operation.  The server
     * makes a best effort to cancel the operation, but success is not
     * guaranteed.  If the server doesn't support this method, it returns
     * `google.rpc.Code.UNIMPLEMENTED`.  Clients can use
     * [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
     * other methods to check whether the cancellation succeeded or whether the
     * operation completed despite cancellation. On successful cancellation,
     * the operation is not deleted; instead, it becomes an operation with
     * an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
     * corresponding to `Code.CANCELLED`.
     */ CancelOperation ( argument , metadata , options , callback ) : grpc . ClientUnaryCall ; CancelOperation ( argument , metadata , callback ) : grpc . ClientUnaryCall ; CancelOperation ( argument , options , callback ) : grpc . ClientUnaryCall ; CancelOperation ( argument , callback ) : grpc . ClientUnaryCall ; /**
     * Starts asynchronous cancellation on a long-running operation.  The server
     * makes a best effort to cancel the operation, but success is not
     * guaranteed.  If the server doesn't support this method, it returns
     * `google.rpc.Code.UNIMPLEMENTED`.  Clients can use
     * [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
     * other methods to check whether the cancellation succeeded or whether the
     * operation completed despite cancellation. On successful cancellation,
     * the operation is not deleted; instead, it becomes an operation with
     * an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
     * corresponding to `Code.CANCELLED`.
     */ cancelOperation ( argument , metadata , options , callback ) : grpc . ClientUnaryCall ; cancelOperation ( argument , metadata , callback ) : grpc . ClientUnaryCall ; cancelOperation ( argument , options , callback ) : grpc . ClientUnaryCall ; cancelOperation ( argument , callback ) : grpc . ClientUnaryCall ; /**
     * Deletes a long-running operation. This method indicates that the client is
     * no longer interested in the operation result. It does not cancel the
     * operation. If the server doesn't support this method, it returns
     * `google.rpc.Code.UNIMPLEMENTED`.
     */ DeleteOperation ( argument , metadata , options , callback ) : grpc . ClientUnaryCall ; DeleteOperation ( argument , metadata , callback ) : grpc . ClientUnaryCall ; DeleteOperation ( argument , options , callback ) : grpc . ClientUnaryCall ; DeleteOperation ( argument , callback ) : grpc . ClientUnaryCall ; /**
     * Deletes a long-running operation. This method indicates that the client is
     * no longer interested in the operation result. It does not cancel the
     * operation. If the server doesn't support this method, it returns
     * `google.rpc.Code.UNIMPLEMENTED`.
     */ deleteOperation ( argument , metadata , options , callback ) : grpc . ClientUnaryCall ; deleteOperation ( argument , metadata , callback ) : grpc . ClientUnaryCall ; deleteOperation ( argument , options , callback ) : grpc . ClientUnaryCall ; deleteOperation ( argument , callback ) : grpc . ClientUnaryCall ; /**
     * Gets the latest state of a long-running operation.  Clients can use this
     * method to poll the operation result at intervals as recommended by the API
     * service.
     */ GetOperation ( argument , metadata , options , callback ) : grpc . ClientUnaryCall ; GetOperation ( argument , metadata , callback ) : grpc . ClientUnaryCall ; GetOperation ( argument , options , callback ) : grpc . ClientUnaryCall ; GetOperation ( argument , callback ) : grpc . ClientUnaryCall ; /**
     * Gets the latest state of a long-running operation.  Clients can use this
     * method to poll the operation result at intervals as recommended by the API
     * service.
     */ getOperation ( argument , metadata , options , callback ) : grpc . ClientUnaryCall ; getOperation ( argument , metadata , callback ) : grpc . ClientUnaryCall ; getOperation ( argument , options , callback ) : grpc . ClientUnaryCall ; getOperation ( argument , callback ) : grpc . ClientUnaryCall ; /**
     * Lists operations that match the specified filter in the request. If the
     * server doesn't support this method, it returns `UNIMPLEMENTED`.
     *
     * NOTE: the `name` binding allows API services to override the binding
     * to use different resource name schemes, such as `users/* /operations`. To
     * override the binding, API services can add a binding such as
     * `"/v1/{name=users/*}/operations"` to their service configuration.
     * For backwards compatibility, the default name includes the operations
     * collection id, however overriding users must ensure the name binding
     * is the parent resource, without the operations collection id.
     */ ListOperations ( argument , metadata , options , callback ) : grpc . ClientUnaryCall ; ListOperations ( argument , metadata , callback ) : grpc . ClientUnaryCall ; ListOperations ( argument , options , callback ) : grpc . ClientUnaryCall ; ListOperations ( argument , callback ) : grpc . ClientUnaryCall ; /**
     * Lists operations that match the specified filter in the request. If the
     * server doesn't support this method, it returns `UNIMPLEMENTED`.
     *
     * NOTE: the `name` binding allows API services to override the binding
     * to use different resource name schemes, such as `users/* /operations`. To
     * override the binding, API services can add a binding such as
     * `"/v1/{name=users/*}/operations"` to their service configuration.
     * For backwards compatibility, the default name includes the operations
     * collection id, however overriding users must ensure the name binding
     * is the parent resource, without the operations collection id.
     */ listOperations ( argument , metadata , options , callback ) : grpc . ClientUnaryCall ; listOperations ( argument , metadata , callback ) : grpc . ClientUnaryCall ; listOperations ( argument , options , callback ) : grpc . ClientUnaryCall ; listOperations ( argument , callback ) : grpc . ClientUnaryCall ; /**
     * Waits until the specified long-running operation is done or reaches at most
     * a specified timeout, returning the latest state.  If the operation is
     * already done, the latest state is immediately returned.  If the timeout
     * specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
     * timeout is used.  If the server does not support this method, it returns
     * `google.rpc.Code.UNIMPLEMENTED`.
     * Note that this method is on a best-effort basis.  It may return the latest
     * state before the specified timeout (including immediately), meaning even an
     * immediate response is no guarantee that the operation is done.
     */ WaitOperation ( argument , metadata , options , callback ) : grpc . ClientUnaryCall ; WaitOperation ( argument , metadata , callback ) : grpc . ClientUnaryCall ; WaitOperation ( argument , options , callback ) : grpc . ClientUnaryCall ; WaitOperation ( argument , callback ) : grpc . ClientUnaryCall ; /**
     * Waits until the specified long-running operation is done or reaches at most
     * a specified timeout, returning the latest state.  If the operation is
     * already done, the latest state is immediately returned.  If the timeout
     * specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
     * timeout is used.  If the server does not support this method, it returns
     * `google.rpc.Code.UNIMPLEMENTED`.
     * Note that this method is on a best-effort basis.  It may return the latest
     * state before the specified timeout (including immediately), meaning even an
     * immediate response is no guarantee that the operation is done.
     */ waitOperation ( argument , metadata , options , callback ) : grpc . ClientUnaryCall ; waitOperation ( argument , metadata , callback ) : grpc . ClientUnaryCall ; waitOperation ( argument , options , callback ) : grpc . ClientUnaryCall ; waitOperation ( argument , callback ) : grpc . ClientUnaryCall ; } /**
 * Manages long-running operations with an API service.
 *
 * When an API method normally takes long time to complete, it can be designed
 * to return [Operation][google.longrunning.Operation] to the client, and the client can use this
 * interface to receive the real response asynchronously by polling the
 * operation resource, or pass the operation resource to another API (such as
 * Google Cloud Pub/Sub API) to receive the response.  Any API service that
 * returns long-running operations should implement the `Operations` interface
 * so developers can have a consistent client experience.
 */ export interface OperationsHandlers extends grpc . UntypedServiceImplementation { /**
     * Starts asynchronous cancellation on a long-running operation.  The server
     * makes a best effort to cancel the operation, but success is not
     * guaranteed.  If the server doesn't support this method, it returns
     * `google.rpc.Code.UNIMPLEMENTED`.  Clients can use
     * [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
     * other methods to check whether the cancellation succeeded or whether the
     * operation completed despite cancellation. On successful cancellation,
     * the operation is not deleted; instead, it becomes an operation with
     * an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
     * corresponding to `Code.CANCELLED`.
     */ CancelOperation : grpc . handleUnaryCall < _google_longrunning_CancelOperationRequest__Output , _google_protobuf_Empty > ; /**
     * Deletes a long-running operation. This method indicates that the client is
     * no longer interested in the operation result. It does not cancel the
     * operation. If the server doesn't support this method, it returns
     * `google.rpc.Code.UNIMPLEMENTED`.
     */ DeleteOperation : grpc . handleUnaryCall < _google_longrunning_DeleteOperationRequest__Output , _google_protobuf_Empty > ; /**
     * Gets the latest state of a long-running operation.  Clients can use this
     * method to poll the operation result at intervals as recommended by the API
     * service.
     */ GetOperation : grpc . handleUnaryCall < _google_longrunning_GetOperationRequest__Output , _google_longrunning_Operation > ; /**
     * Lists operations that match the specified filter in the request. If the
     * server doesn't support this method, it returns `UNIMPLEMENTED`.
     *
     * NOTE: the `name` binding allows API services to override the binding
     * to use different resource name schemes, such as `users/* /operations`. To
     * override the binding, API services can add a binding such as
     * `"/v1/{name=users/*}/operations"` to their service configuration.
     * For backwards compatibility, the default name includes the operations
     * collection id, however overriding users must ensure the name binding
     * is the parent resource, without the operations collection id.
     */ ListOperations : grpc . handleUnaryCall < _google_longrunning_ListOperationsRequest__Output , _google_longrunning_ListOperationsResponse > ; /**
     * Waits until the specified long-running operation is done or reaches at most
     * a specified timeout, returning the latest state.  If the operation is
     * already done, the latest state is immediately returned.  If the timeout
     * specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
     * timeout is used.  If the server does not support this method, it returns
     * `google.rpc.Code.UNIMPLEMENTED`.
     * Note that this method is on a best-effort basis.  It may return the latest
     * state before the specified timeout (including immediately), meaning even an
     * immediate response is no guarantee that the operation is done.
     */ WaitOperation : grpc . handleUnaryCall < _google_longrunning_WaitOperationRequest__Output , _google_longrunning_Operation > ; } export interface OperationsDefinition extends grpc . ServiceDefinition { CancelOperation : MethodDefinition < _google_longrunning_CancelOperationRequest , _google_protobuf_Empty , _google_longrunning_CancelOperationRequest__Output , _google_protobuf_Empty__Output > ; DeleteOperation : MethodDefinition < _google_longrunning_DeleteOperationRequest , _google_protobuf_Empty , _google_longrunning_DeleteOperationRequest__Output , _google_protobuf_Empty__Output > ; GetOperation : MethodDefinition < _google_longrunning_GetOperationRequest , _google_longrunning_Operation , _google_longrunning_GetOperationRequest__Output , _google_longrunning_Operation__Output > ; ListOperations : MethodDefinition < _google_longrunning_ListOperationsRequest , _google_longrunning_ListOperationsResponse , _google_longrunning_ListOperationsRequest__Output , _google_longrunning_ListOperationsResponse__Output > ; WaitOperation : MethodDefinition < _google_longrunning_WaitOperationRequest , _google_longrunning_Operation , _google_longrunning_WaitOperationRequest__Output , _google_longrunning_Operation__Output > ; }