/** * 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`. * * <p>Sample code: * * <pre><code> * try (OperationsClient operationsClient = OperationsClient.create()) { * String name = ""; * operationsClient.deleteOperation(name); * } * </code></pre> * * @param name The name of the operation resource to be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteOperation(String name) { DeleteOperationRequest request = DeleteOperationRequest.newBuilder().setName(name).build(); deleteOperation(request); }
/** * 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`. * * <p>Sample code: * * <pre><code> * try (OperationsClient operationsClient = OperationsClient.create()) { * String name = ""; * operationsClient.deleteOperation(name); * } * </code></pre> * * @param name The name of the operation resource to be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteOperation(String name) { DeleteOperationRequest request = DeleteOperationRequest.newBuilder().setName(name).build(); deleteOperation(request); }
@Override public DeleteOperationRequest apply(String request) { return DeleteOperationRequest.newBuilder().setName(request).build(); } },
@Override public DeleteOperationRequest apply(String request) { return DeleteOperationRequest.newBuilder().setName(request).build(); } },