e13b07d435883ca76446a630743d2a4e0e7658b8
[platform/upstream/connectedhomeip.git] / third_party / pigweed / repo / pw_rpc / py / pw_rpc / packet_pb2.pyi
1 # @generated by generate_proto_mypy_stubs.py.  Do not edit!
2 import sys
3 from google.protobuf.descriptor import (
4     Descriptor as google___protobuf___descriptor___Descriptor,
5     EnumDescriptor as google___protobuf___descriptor___EnumDescriptor,
6     FileDescriptor as google___protobuf___descriptor___FileDescriptor,
7 )
8
9 from google.protobuf.internal.enum_type_wrapper import (  # type: ignore
10     _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper,
11 )
12
13 from google.protobuf.message import (
14     Message as google___protobuf___message___Message,
15 )
16
17 from typing import (
18     NewType as typing___NewType,
19     Optional as typing___Optional,
20     cast as typing___cast,
21 )
22
23 from typing_extensions import (
24     Literal as typing_extensions___Literal,
25 )
26
27
28 builtin___bool = bool
29 builtin___bytes = bytes
30 builtin___float = float
31 builtin___int = int
32
33
34 DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
35
36 PacketTypeValue = typing___NewType('PacketTypeValue', builtin___int)
37 type___PacketTypeValue = PacketTypeValue
38 PacketType: _PacketType
39 class _PacketType(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[PacketTypeValue]):
40     DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...
41     REQUEST = typing___cast(PacketTypeValue, 0)
42     CLIENT_STREAM_END = typing___cast(PacketTypeValue, 2)
43     CLIENT_ERROR = typing___cast(PacketTypeValue, 4)
44     CANCEL_SERVER_STREAM = typing___cast(PacketTypeValue, 6)
45     RESPONSE = typing___cast(PacketTypeValue, 1)
46     SERVER_STREAM_END = typing___cast(PacketTypeValue, 3)
47     SERVER_ERROR = typing___cast(PacketTypeValue, 5)
48 REQUEST = typing___cast(PacketTypeValue, 0)
49 CLIENT_STREAM_END = typing___cast(PacketTypeValue, 2)
50 CLIENT_ERROR = typing___cast(PacketTypeValue, 4)
51 CANCEL_SERVER_STREAM = typing___cast(PacketTypeValue, 6)
52 RESPONSE = typing___cast(PacketTypeValue, 1)
53 SERVER_STREAM_END = typing___cast(PacketTypeValue, 3)
54 SERVER_ERROR = typing___cast(PacketTypeValue, 5)
55 type___PacketType = PacketType
56
57 class RpcPacket(google___protobuf___message___Message):
58     DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
59     type: type___PacketTypeValue = ...
60     channel_id: builtin___int = ...
61     service_id: builtin___int = ...
62     method_id: builtin___int = ...
63     payload: builtin___bytes = ...
64     status: builtin___int = ...
65
66     def __init__(self,
67         *,
68         type : typing___Optional[type___PacketTypeValue] = None,
69         channel_id : typing___Optional[builtin___int] = None,
70         service_id : typing___Optional[builtin___int] = None,
71         method_id : typing___Optional[builtin___int] = None,
72         payload : typing___Optional[builtin___bytes] = None,
73         status : typing___Optional[builtin___int] = None,
74         ) -> None: ...
75     def ClearField(self, field_name: typing_extensions___Literal[u"channel_id",b"channel_id",u"method_id",b"method_id",u"payload",b"payload",u"service_id",b"service_id",u"status",b"status",u"type",b"type"]) -> None: ...
76 type___RpcPacket = RpcPacket