@@ -262,6 +262,19 @@ public OperationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callO
262262 return OperationsStub .newStub (factory , channel );
263263 }
264264
265+ /** Creates a new blocking-style stub that supports all types of calls on the service */
266+ public static OperationsBlockingV2Stub newBlockingV2Stub (io .grpc .Channel channel ) {
267+ io .grpc .stub .AbstractStub .StubFactory <OperationsBlockingV2Stub > factory =
268+ new io .grpc .stub .AbstractStub .StubFactory <OperationsBlockingV2Stub >() {
269+ @ java .lang .Override
270+ public OperationsBlockingV2Stub newStub (
271+ io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
272+ return new OperationsBlockingV2Stub (channel , callOptions );
273+ }
274+ };
275+ return OperationsBlockingV2Stub .newStub (factory , channel );
276+ }
277+
265278 /**
266279 * Creates a new blocking-style stub that supports unary and streaming output calls on the service
267280 */
@@ -568,6 +581,122 @@ public void waitOperation(
568581 * developers can have a consistent client experience.
569582 * </pre>
570583 */
584+ public static final class OperationsBlockingV2Stub
585+ extends io .grpc .stub .AbstractBlockingStub <OperationsBlockingV2Stub > {
586+ private OperationsBlockingV2Stub (io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
587+ super (channel , callOptions );
588+ }
589+
590+ @ java .lang .Override
591+ protected OperationsBlockingV2Stub build (
592+ io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
593+ return new OperationsBlockingV2Stub (channel , callOptions );
594+ }
595+
596+ /**
597+ *
598+ *
599+ * <pre>
600+ * Lists operations that match the specified filter in the request. If the
601+ * server doesn't support this method, it returns `UNIMPLEMENTED`.
602+ * </pre>
603+ */
604+ public com .google .longrunning .ListOperationsResponse listOperations (
605+ com .google .longrunning .ListOperationsRequest request ) {
606+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
607+ getChannel (), getListOperationsMethod (), getCallOptions (), request );
608+ }
609+
610+ /**
611+ *
612+ *
613+ * <pre>
614+ * Gets the latest state of a long-running operation. Clients can use this
615+ * method to poll the operation result at intervals as recommended by the API
616+ * service.
617+ * </pre>
618+ */
619+ public com .google .longrunning .Operation getOperation (
620+ com .google .longrunning .GetOperationRequest request ) {
621+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
622+ getChannel (), getGetOperationMethod (), getCallOptions (), request );
623+ }
624+
625+ /**
626+ *
627+ *
628+ * <pre>
629+ * Deletes a long-running operation. This method indicates that the client is
630+ * no longer interested in the operation result. It does not cancel the
631+ * operation. If the server doesn't support this method, it returns
632+ * `google.rpc.Code.UNIMPLEMENTED`.
633+ * </pre>
634+ */
635+ public com .google .protobuf .Empty deleteOperation (
636+ com .google .longrunning .DeleteOperationRequest request ) {
637+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
638+ getChannel (), getDeleteOperationMethod (), getCallOptions (), request );
639+ }
640+
641+ /**
642+ *
643+ *
644+ * <pre>
645+ * Starts asynchronous cancellation on a long-running operation. The server
646+ * makes a best effort to cancel the operation, but success is not
647+ * guaranteed. If the server doesn't support this method, it returns
648+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
649+ * [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
650+ * other methods to check whether the cancellation succeeded or whether the
651+ * operation completed despite cancellation. On successful cancellation,
652+ * the operation is not deleted; instead, it becomes an operation with
653+ * an [Operation.error][google.longrunning.Operation.error] value with a
654+ * [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to
655+ * `Code.CANCELLED`.
656+ * </pre>
657+ */
658+ public com .google .protobuf .Empty cancelOperation (
659+ com .google .longrunning .CancelOperationRequest request ) {
660+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
661+ getChannel (), getCancelOperationMethod (), getCallOptions (), request );
662+ }
663+
664+ /**
665+ *
666+ *
667+ * <pre>
668+ * Waits until the specified long-running operation is done or reaches at most
669+ * a specified timeout, returning the latest state. If the operation is
670+ * already done, the latest state is immediately returned. If the timeout
671+ * specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
672+ * timeout is used. If the server does not support this method, it returns
673+ * `google.rpc.Code.UNIMPLEMENTED`.
674+ * Note that this method is on a best-effort basis. It may return the latest
675+ * state before the specified timeout (including immediately), meaning even an
676+ * immediate response is no guarantee that the operation is done.
677+ * </pre>
678+ */
679+ public com .google .longrunning .Operation waitOperation (
680+ com .google .longrunning .WaitOperationRequest request ) {
681+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
682+ getChannel (), getWaitOperationMethod (), getCallOptions (), request );
683+ }
684+ }
685+
686+ /**
687+ * A stub to allow clients to do limited synchronous rpc calls to service Operations.
688+ *
689+ * <pre>
690+ * Manages long-running operations with an API service.
691+ * When an API method normally takes long time to complete, it can be designed
692+ * to return [Operation][google.longrunning.Operation] to the client, and the
693+ * client can use this interface to receive the real response asynchronously by
694+ * polling the operation resource, or pass the operation resource to another API
695+ * (such as Pub/Sub API) to receive the response. Any API service that returns
696+ * long-running operations should implement the `Operations` interface so
697+ * developers can have a consistent client experience.
698+ * </pre>
699+ */
571700 public static final class OperationsBlockingStub
572701 extends io .grpc .stub .AbstractBlockingStub <OperationsBlockingStub > {
573702 private OperationsBlockingStub (io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
0 commit comments