perxis.versions.account.versions_pb2_grpc

Client and server classes corresponding to protobuf-defined services.

 1# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
 2"""Client and server classes corresponding to protobuf-defined services."""
 3import grpc
 4import warnings
 5
 6from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
 7from perxis.versions.account import versions_pb2 as versions_dot_account_dot_versions__pb2
 8
 9GRPC_GENERATED_VERSION = '1.67.1'
10GRPC_VERSION = grpc.__version__
11_version_not_supported = False
12
13try:
14    from grpc._utilities import first_version_is_lower
15    _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
16except ImportError:
17    _version_not_supported = True
18
19if _version_not_supported:
20    raise RuntimeError(
21        f'The grpc package installed is at version {GRPC_VERSION},'
22        + f' but the generated code in versions/account/versions_pb2_grpc.py depends on'
23        + f' grpcio>={GRPC_GENERATED_VERSION}.'
24        + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
25        + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
26    )
27
28
29class VersionsStub(object):
30    """Missing associated documentation comment in .proto file."""
31
32    def __init__(self, channel):
33        """Constructor.
34
35        Args:
36            channel: A grpc.Channel.
37        """
38        self.Get = channel.unary_unary(
39                '/account.Versions/Get',
40                request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
41                response_deserializer=versions_dot_account_dot_versions__pb2.GetResponse.FromString,
42                _registered_method=True)
43
44
45class VersionsServicer(object):
46    """Missing associated documentation comment in .proto file."""
47
48    def Get(self, request, context):
49        """Missing associated documentation comment in .proto file."""
50        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
51        context.set_details('Method not implemented!')
52        raise NotImplementedError('Method not implemented!')
53
54
55def add_VersionsServicer_to_server(servicer, server):
56    rpc_method_handlers = {
57            'Get': grpc.unary_unary_rpc_method_handler(
58                    servicer.Get,
59                    request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
60                    response_serializer=versions_dot_account_dot_versions__pb2.GetResponse.SerializeToString,
61            ),
62    }
63    generic_handler = grpc.method_handlers_generic_handler(
64            'account.Versions', rpc_method_handlers)
65    server.add_generic_rpc_handlers((generic_handler,))
66    server.add_registered_method_handlers('account.Versions', rpc_method_handlers)
67
68
69 # This class is part of an EXPERIMENTAL API.
70class Versions(object):
71    """Missing associated documentation comment in .proto file."""
72
73    @staticmethod
74    def Get(request,
75            target,
76            options=(),
77            channel_credentials=None,
78            call_credentials=None,
79            insecure=False,
80            compression=None,
81            wait_for_ready=None,
82            timeout=None,
83            metadata=None):
84        return grpc.experimental.unary_unary(
85            request,
86            target,
87            '/account.Versions/Get',
88            google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
89            versions_dot_account_dot_versions__pb2.GetResponse.FromString,
90            options,
91            channel_credentials,
92            insecure,
93            call_credentials,
94            compression,
95            wait_for_ready,
96            timeout,
97            metadata,
98            _registered_method=True)
GRPC_GENERATED_VERSION = '1.67.1'
GRPC_VERSION = '1.67.1'
class VersionsStub:
30class VersionsStub(object):
31    """Missing associated documentation comment in .proto file."""
32
33    def __init__(self, channel):
34        """Constructor.
35
36        Args:
37            channel: A grpc.Channel.
38        """
39        self.Get = channel.unary_unary(
40                '/account.Versions/Get',
41                request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
42                response_deserializer=versions_dot_account_dot_versions__pb2.GetResponse.FromString,
43                _registered_method=True)

Missing associated documentation comment in .proto file.

VersionsStub(channel)
33    def __init__(self, channel):
34        """Constructor.
35
36        Args:
37            channel: A grpc.Channel.
38        """
39        self.Get = channel.unary_unary(
40                '/account.Versions/Get',
41                request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
42                response_deserializer=versions_dot_account_dot_versions__pb2.GetResponse.FromString,
43                _registered_method=True)

Constructor.

Arguments:
  • channel: A grpc.Channel.
Get
class VersionsServicer:
46class VersionsServicer(object):
47    """Missing associated documentation comment in .proto file."""
48
49    def Get(self, request, context):
50        """Missing associated documentation comment in .proto file."""
51        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
52        context.set_details('Method not implemented!')
53        raise NotImplementedError('Method not implemented!')

Missing associated documentation comment in .proto file.

def Get(self, request, context):
49    def Get(self, request, context):
50        """Missing associated documentation comment in .proto file."""
51        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
52        context.set_details('Method not implemented!')
53        raise NotImplementedError('Method not implemented!')

Missing associated documentation comment in .proto file.

def add_VersionsServicer_to_server(servicer, server):
56def add_VersionsServicer_to_server(servicer, server):
57    rpc_method_handlers = {
58            'Get': grpc.unary_unary_rpc_method_handler(
59                    servicer.Get,
60                    request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
61                    response_serializer=versions_dot_account_dot_versions__pb2.GetResponse.SerializeToString,
62            ),
63    }
64    generic_handler = grpc.method_handlers_generic_handler(
65            'account.Versions', rpc_method_handlers)
66    server.add_generic_rpc_handlers((generic_handler,))
67    server.add_registered_method_handlers('account.Versions', rpc_method_handlers)
class Versions:
71class Versions(object):
72    """Missing associated documentation comment in .proto file."""
73
74    @staticmethod
75    def Get(request,
76            target,
77            options=(),
78            channel_credentials=None,
79            call_credentials=None,
80            insecure=False,
81            compression=None,
82            wait_for_ready=None,
83            timeout=None,
84            metadata=None):
85        return grpc.experimental.unary_unary(
86            request,
87            target,
88            '/account.Versions/Get',
89            google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
90            versions_dot_account_dot_versions__pb2.GetResponse.FromString,
91            options,
92            channel_credentials,
93            insecure,
94            call_credentials,
95            compression,
96            wait_for_ready,
97            timeout,
98            metadata,
99            _registered_method=True)

Missing associated documentation comment in .proto file.

@staticmethod
def Get( request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None):
74    @staticmethod
75    def Get(request,
76            target,
77            options=(),
78            channel_credentials=None,
79            call_credentials=None,
80            insecure=False,
81            compression=None,
82            wait_for_ready=None,
83            timeout=None,
84            metadata=None):
85        return grpc.experimental.unary_unary(
86            request,
87            target,
88            '/account.Versions/Get',
89            google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
90            versions_dot_account_dot_versions__pb2.GetResponse.FromString,
91            options,
92            channel_credentials,
93            insecure,
94            call_credentials,
95            compression,
96            wait_for_ready,
97            timeout,
98            metadata,
99            _registered_method=True)