Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/google/longrunning/operations_pb2.py: 50%
22 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-06 06:03 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-06 06:03 +0000
1# Copyright 2016 Google Inc. All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
15"""Safe implementation of long-running operations with and without gRPC.
17Multiplexes between versions of long-running operations with and without gRPC.
18The former is preferred, but not possible in all environments (such as Google
19AppEngine Standard).
20"""
22try:
23 from google.longrunning.operations_grpc_pb2 import *
24 from google.longrunning.operations_grpc_pb2 import _OPERATION
25 from google.longrunning.operations_grpc_pb2 import _GETOPERATIONREQUEST
26 from google.longrunning.operations_grpc_pb2 import _LISTOPERATIONSREQUEST
27 from google.longrunning.operations_grpc_pb2 import _LISTOPERATIONSRESPONSE
28 from google.longrunning.operations_grpc_pb2 import _CANCELOPERATIONREQUEST
29 from google.longrunning.operations_grpc_pb2 import _DELETEOPERATIONREQUEST
30 from google.longrunning.operations_grpc_pb2 import _OPERATIONINFO
31 from google.longrunning.operations_grpc_pb2 import _OPERATIONS
32except ImportError:
33 from google.longrunning.operations_proto_pb2 import *
34 from google.longrunning.operations_proto_pb2 import _OPERATION
35 from google.longrunning.operations_proto_pb2 import _OPERATION
36 from google.longrunning.operations_proto_pb2 import _GETOPERATIONREQUEST
37 from google.longrunning.operations_proto_pb2 import _LISTOPERATIONSREQUEST
38 from google.longrunning.operations_proto_pb2 import _LISTOPERATIONSRESPONSE
39 from google.longrunning.operations_proto_pb2 import _CANCELOPERATIONREQUEST
40 from google.longrunning.operations_proto_pb2 import _DELETEOPERATIONREQUEST
41 from google.longrunning.operations_proto_pb2 import _OPERATIONINFO
42 from google.longrunning.operations_proto_pb2 import _OPERATIONS