quilt-hp-python 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quilt_hp/__init__.py +22 -0
- quilt_hp/_paths.py +26 -0
- quilt_hp/_proto/__init__.py +0 -0
- quilt_hp/_proto/quilt_device_pairing_pb2.py +56 -0
- quilt_hp/_proto/quilt_device_pairing_pb2.pyi +317 -0
- quilt_hp/_proto/quilt_device_pairing_pb2_grpc.py +24 -0
- quilt_hp/_proto/quilt_hds_pb2.py +292 -0
- quilt_hp/_proto/quilt_hds_pb2.pyi +3947 -0
- quilt_hp/_proto/quilt_hds_pb2_grpc.py +1732 -0
- quilt_hp/_proto/quilt_notifier_pb2.py +55 -0
- quilt_hp/_proto/quilt_notifier_pb2.pyi +258 -0
- quilt_hp/_proto/quilt_notifier_pb2_grpc.py +97 -0
- quilt_hp/_proto/quilt_services_pb2.py +171 -0
- quilt_hp/_proto/quilt_services_pb2.pyi +1320 -0
- quilt_hp/_proto/quilt_services_pb2_grpc.py +1188 -0
- quilt_hp/_proto/quilt_system_pb2.py +53 -0
- quilt_hp/_proto/quilt_system_pb2.pyi +164 -0
- quilt_hp/_proto/quilt_system_pb2_grpc.py +270 -0
- quilt_hp/auth.py +244 -0
- quilt_hp/cli/__init__.py +1 -0
- quilt_hp/cli/main.py +770 -0
- quilt_hp/cli/settings.py +123 -0
- quilt_hp/cli/store.py +105 -0
- quilt_hp/cli/tui.py +2677 -0
- quilt_hp/client.py +616 -0
- quilt_hp/const.py +57 -0
- quilt_hp/exceptions.py +23 -0
- quilt_hp/models/__init__.py +85 -0
- quilt_hp/models/comfort.py +47 -0
- quilt_hp/models/controller.py +135 -0
- quilt_hp/models/energy.py +31 -0
- quilt_hp/models/enums.py +298 -0
- quilt_hp/models/indoor_unit.py +412 -0
- quilt_hp/models/outdoor_unit.py +71 -0
- quilt_hp/models/qsm.py +105 -0
- quilt_hp/models/schedule.py +98 -0
- quilt_hp/models/sensor.py +92 -0
- quilt_hp/models/software_update.py +74 -0
- quilt_hp/models/space.py +177 -0
- quilt_hp/models/system.py +451 -0
- quilt_hp/py.typed +1 -0
- quilt_hp/services/__init__.py +1 -0
- quilt_hp/services/hds.py +480 -0
- quilt_hp/services/streaming.py +561 -0
- quilt_hp/services/system.py +95 -0
- quilt_hp/services/user.py +143 -0
- quilt_hp/tokens.py +119 -0
- quilt_hp/transport.py +192 -0
- quilt_hp_python-0.1.1.dist-info/METADATA +172 -0
- quilt_hp_python-0.1.1.dist-info/RECORD +53 -0
- quilt_hp_python-0.1.1.dist-info/WHEEL +4 -0
- quilt_hp_python-0.1.1.dist-info/entry_points.txt +2 -0
- quilt_hp_python-0.1.1.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: quilt_notifier.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'quilt_notifier.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14quilt_notifier.proto\x12\x14\x63ore.protos.notifier\"\x1d\n\x0cSubscription\x12\r\n\x05topic\x18\x01 \x01(\t\"J\n\rTopicsMessage\x12\x39\n\rsubscriptions\x18\x01 \x03(\x0b\x32\".core.protos.notifier.Subscription\"\x8b\x01\n\x10SubscribeRequest\x12\x35\n\x06\x61ppend\x18\x02 \x01(\x0b\x32#.core.protos.notifier.TopicsMessageH\x00\x12\x35\n\x06remove\x18\x03 \x01(\x0b\x32#.core.protos.notifier.TopicsMessageH\x00\x42\t\n\x07message\"/\n\rNotifierEvent\x12\r\n\x05topic\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\"T\n\x0c\x43ontrolEvent\x12\x0e\n\x06topics\x18\x01 \x03(\t\x12\x34\n\x04type\x18\x02 \x01(\x0e\x32&.core.protos.notifier.ControlEventType\"B\n\x0bSystemEvent\x12\x33\n\x04type\x18\x01 \x01(\x0e\x32%.core.protos.notifier.SystemEventType\"\xc7\x01\n\x11SubscribeResponse\x12<\n\x0fnotifier_events\x18\x01 \x03(\x0b\x32#.core.protos.notifier.NotifierEvent\x12:\n\x0e\x63ontrol_events\x18\x02 \x03(\x0b\x32\".core.protos.notifier.ControlEvent\x12\x38\n\rsystem_events\x18\x03 \x03(\x0b\x32!.core.protos.notifier.SystemEvent*\xb1\x02\n\x10\x43ontrolEventType\x12\"\n\x1e\x43ONTROL_EVENT_TYPE_UNSPECIFIED\x10\x00\x12%\n!CONTROL_EVENT_TYPE_TOPIC_APPENDED\x10\x01\x12$\n CONTROL_EVENT_TYPE_TOPIC_REMOVED\x10\x02\x12+\n\'CONTROL_EVENT_TYPE_INVALID_APPEND_TOPIC\x10\x03\x12+\n\'CONTROL_EVENT_TYPE_INVALID_REMOVE_TOPIC\x10\x04\x12(\n$CONTROL_EVENT_TYPE_RECONNECT_REQUEST\x10\x05\x12(\n$CONTROL_EVENT_TYPE_PERMISSION_DENIED\x10\x06*W\n\x0fSystemEventType\x12\x1d\n\x19SYSTEM_EVENT_TYPE_UNKNOWN\x10\x00\x12%\n!SYSTEM_EVENT_TYPE_SOFTWARE_UPDATE\x10\x01\x32s\n\x0fNotifierService\x12`\n\tSubscribe\x12&.core.protos.notifier.SubscribeRequest\x1a\'.core.protos.notifier.SubscribeResponse(\x01\x30\x01\x42\"\n\x18\x63om.quilt.proto.notifier\xba\x02\x05Quiltb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'quilt_notifier_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030com.quilt.proto.notifier\272\002\005Quilt'
|
|
35
|
+
_globals['_CONTROLEVENTTYPE']._serialized_start=701
|
|
36
|
+
_globals['_CONTROLEVENTTYPE']._serialized_end=1006
|
|
37
|
+
_globals['_SYSTEMEVENTTYPE']._serialized_start=1008
|
|
38
|
+
_globals['_SYSTEMEVENTTYPE']._serialized_end=1095
|
|
39
|
+
_globals['_SUBSCRIPTION']._serialized_start=46
|
|
40
|
+
_globals['_SUBSCRIPTION']._serialized_end=75
|
|
41
|
+
_globals['_TOPICSMESSAGE']._serialized_start=77
|
|
42
|
+
_globals['_TOPICSMESSAGE']._serialized_end=151
|
|
43
|
+
_globals['_SUBSCRIBEREQUEST']._serialized_start=154
|
|
44
|
+
_globals['_SUBSCRIBEREQUEST']._serialized_end=293
|
|
45
|
+
_globals['_NOTIFIEREVENT']._serialized_start=295
|
|
46
|
+
_globals['_NOTIFIEREVENT']._serialized_end=342
|
|
47
|
+
_globals['_CONTROLEVENT']._serialized_start=344
|
|
48
|
+
_globals['_CONTROLEVENT']._serialized_end=428
|
|
49
|
+
_globals['_SYSTEMEVENT']._serialized_start=430
|
|
50
|
+
_globals['_SYSTEMEVENT']._serialized_end=496
|
|
51
|
+
_globals['_SUBSCRIBERESPONSE']._serialized_start=499
|
|
52
|
+
_globals['_SUBSCRIBERESPONSE']._serialized_end=698
|
|
53
|
+
_globals['_NOTIFIERSERVICE']._serialized_start=1097
|
|
54
|
+
_globals['_NOTIFIERSERVICE']._serialized_end=1212
|
|
55
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
quilt_notifier.proto
|
|
5
|
+
NotifierService — bidirectional streaming subscription service.
|
|
6
|
+
Confirmed gRPC path: /core.protos.notifier.NotifierService/Subscribe
|
|
7
|
+
|
|
8
|
+
Android APK DEX class reference (authoritative):
|
|
9
|
+
HR0 = SubscribeRequest (oneof: append=2 | remove=3, each a TopicsMessage)
|
|
10
|
+
SR0 = TopicsMessage (subscriptions=1, repeated Subscription)
|
|
11
|
+
LR0 = Subscription (topic=1, string)
|
|
12
|
+
CR0 = SubscribeResponse (notifier_events=1, control_events=2, system_events=3)
|
|
13
|
+
ER0 = NotifierEvent (topic=1 string, payload=2 google.protobuf.Any)
|
|
14
|
+
C7104yR0 = ControlEvent (topics=1 repeated string, type=2 ControlEventType)
|
|
15
|
+
C6328uR0 = HdsNotification (notification_type=1, payload=2 HomeDatastoreObjectDiff)
|
|
16
|
+
MJ = HomeDatastoreObjectDiff (space=3, indoor_unit=9, ..., see quilt_hds.proto)
|
|
17
|
+
|
|
18
|
+
NOTE: The current Android APK only exposes Subscribe. The previous cleaned proto
|
|
19
|
+
included a Publish RPC, but no matching descriptor was found in the APK.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
from collections import abc as _abc
|
|
23
|
+
from google.protobuf import descriptor as _descriptor
|
|
24
|
+
from google.protobuf import message as _message
|
|
25
|
+
from google.protobuf.internal import containers as _containers
|
|
26
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
27
|
+
import builtins as _builtins
|
|
28
|
+
import sys
|
|
29
|
+
import typing as _typing
|
|
30
|
+
|
|
31
|
+
if sys.version_info >= (3, 11):
|
|
32
|
+
from typing import TypeAlias as _TypeAlias, Never as _Never
|
|
33
|
+
else:
|
|
34
|
+
from typing_extensions import TypeAlias as _TypeAlias, Never as _Never
|
|
35
|
+
|
|
36
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
37
|
+
|
|
38
|
+
class _ControlEventType:
|
|
39
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
40
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
41
|
+
|
|
42
|
+
class _ControlEventTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ControlEventType.ValueType], _builtins.type):
|
|
43
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
44
|
+
CONTROL_EVENT_TYPE_UNSPECIFIED: _ControlEventType.ValueType # 0
|
|
45
|
+
CONTROL_EVENT_TYPE_TOPIC_APPENDED: _ControlEventType.ValueType # 1
|
|
46
|
+
CONTROL_EVENT_TYPE_TOPIC_REMOVED: _ControlEventType.ValueType # 2
|
|
47
|
+
CONTROL_EVENT_TYPE_INVALID_APPEND_TOPIC: _ControlEventType.ValueType # 3
|
|
48
|
+
CONTROL_EVENT_TYPE_INVALID_REMOVE_TOPIC: _ControlEventType.ValueType # 4
|
|
49
|
+
CONTROL_EVENT_TYPE_RECONNECT_REQUEST: _ControlEventType.ValueType # 5
|
|
50
|
+
CONTROL_EVENT_TYPE_PERMISSION_DENIED: _ControlEventType.ValueType # 6
|
|
51
|
+
|
|
52
|
+
class ControlEventType(_ControlEventType, metaclass=_ControlEventTypeEnumTypeWrapper):
|
|
53
|
+
"""---------------------------------------------------------------------------
|
|
54
|
+
Topics
|
|
55
|
+
---------------------------------------------------------------------------
|
|
56
|
+
Topics follow the pattern: hds/<object_type>/<object_id>
|
|
57
|
+
e.g. "hds/space/98f9121d-...", "hds/indoor_unit/abc123"
|
|
58
|
+
Object types (from EnumC5979se0.java):
|
|
59
|
+
space, outdoor_unit_hardware, outdoor_unit, indoor_unit_hardware,
|
|
60
|
+
indoor_unit, controller_hardware, controller, controller_remote_sensor,
|
|
61
|
+
remote_sensor, quilt_smart_module, schedule_week, schedule_day,
|
|
62
|
+
comfort_setting, location, software_update_info
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
CONTROL_EVENT_TYPE_UNSPECIFIED: ControlEventType.ValueType # 0
|
|
66
|
+
CONTROL_EVENT_TYPE_TOPIC_APPENDED: ControlEventType.ValueType # 1
|
|
67
|
+
CONTROL_EVENT_TYPE_TOPIC_REMOVED: ControlEventType.ValueType # 2
|
|
68
|
+
CONTROL_EVENT_TYPE_INVALID_APPEND_TOPIC: ControlEventType.ValueType # 3
|
|
69
|
+
CONTROL_EVENT_TYPE_INVALID_REMOVE_TOPIC: ControlEventType.ValueType # 4
|
|
70
|
+
CONTROL_EVENT_TYPE_RECONNECT_REQUEST: ControlEventType.ValueType # 5
|
|
71
|
+
CONTROL_EVENT_TYPE_PERMISSION_DENIED: ControlEventType.ValueType # 6
|
|
72
|
+
Global___ControlEventType: _TypeAlias = ControlEventType # noqa: Y015
|
|
73
|
+
|
|
74
|
+
class _SystemEventType:
|
|
75
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
76
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
77
|
+
|
|
78
|
+
class _SystemEventTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SystemEventType.ValueType], _builtins.type):
|
|
79
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
80
|
+
SYSTEM_EVENT_TYPE_UNKNOWN: _SystemEventType.ValueType # 0
|
|
81
|
+
SYSTEM_EVENT_TYPE_SOFTWARE_UPDATE: _SystemEventType.ValueType # 1
|
|
82
|
+
|
|
83
|
+
class SystemEventType(_SystemEventType, metaclass=_SystemEventTypeEnumTypeWrapper): ...
|
|
84
|
+
|
|
85
|
+
SYSTEM_EVENT_TYPE_UNKNOWN: SystemEventType.ValueType # 0
|
|
86
|
+
SYSTEM_EVENT_TYPE_SOFTWARE_UPDATE: SystemEventType.ValueType # 1
|
|
87
|
+
Global___SystemEventType: _TypeAlias = SystemEventType # noqa: Y015
|
|
88
|
+
|
|
89
|
+
@_typing.final
|
|
90
|
+
class Subscription(_message.Message):
|
|
91
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
92
|
+
|
|
93
|
+
TOPIC_FIELD_NUMBER: _builtins.int
|
|
94
|
+
topic: _builtins.str
|
|
95
|
+
def __init__(
|
|
96
|
+
self,
|
|
97
|
+
*,
|
|
98
|
+
topic: _builtins.str = ...,
|
|
99
|
+
) -> None: ...
|
|
100
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
101
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
102
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["topic", b"topic"] # noqa: Y015
|
|
103
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
104
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
105
|
+
|
|
106
|
+
Global___Subscription: _TypeAlias = Subscription # noqa: Y015
|
|
107
|
+
|
|
108
|
+
@_typing.final
|
|
109
|
+
class TopicsMessage(_message.Message):
|
|
110
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
111
|
+
|
|
112
|
+
SUBSCRIPTIONS_FIELD_NUMBER: _builtins.int
|
|
113
|
+
@_builtins.property
|
|
114
|
+
def subscriptions(self) -> _containers.RepeatedCompositeFieldContainer[Global___Subscription]: ...
|
|
115
|
+
def __init__(
|
|
116
|
+
self,
|
|
117
|
+
*,
|
|
118
|
+
subscriptions: _abc.Iterable[Global___Subscription] | None = ...,
|
|
119
|
+
) -> None: ...
|
|
120
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
121
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
122
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["subscriptions", b"subscriptions"] # noqa: Y015
|
|
123
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
124
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
125
|
+
|
|
126
|
+
Global___TopicsMessage: _TypeAlias = TopicsMessage # noqa: Y015
|
|
127
|
+
|
|
128
|
+
@_typing.final
|
|
129
|
+
class SubscribeRequest(_message.Message):
|
|
130
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
131
|
+
|
|
132
|
+
APPEND_FIELD_NUMBER: _builtins.int
|
|
133
|
+
REMOVE_FIELD_NUMBER: _builtins.int
|
|
134
|
+
@_builtins.property
|
|
135
|
+
def append(self) -> Global___TopicsMessage: ...
|
|
136
|
+
@_builtins.property
|
|
137
|
+
def remove(self) -> Global___TopicsMessage: ...
|
|
138
|
+
def __init__(
|
|
139
|
+
self,
|
|
140
|
+
*,
|
|
141
|
+
append: Global___TopicsMessage | None = ...,
|
|
142
|
+
remove: Global___TopicsMessage | None = ...,
|
|
143
|
+
) -> None: ...
|
|
144
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["append", b"append", "message", b"message", "remove", b"remove"] # noqa: Y015
|
|
145
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
146
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["append", b"append", "message", b"message", "remove", b"remove"] # noqa: Y015
|
|
147
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
148
|
+
_WhichOneofReturnType_message: _TypeAlias = _typing.Literal["append", "remove"] # noqa: Y015
|
|
149
|
+
_WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015
|
|
150
|
+
def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ...
|
|
151
|
+
|
|
152
|
+
Global___SubscribeRequest: _TypeAlias = SubscribeRequest # noqa: Y015
|
|
153
|
+
|
|
154
|
+
@_typing.final
|
|
155
|
+
class NotifierEvent(_message.Message):
|
|
156
|
+
"""Wire format observed from live captures:
|
|
157
|
+
DATA events: topic (f1) = raw bytes of C1517Ta{type_url="hds/space/<uuid>", value=outer_any}
|
|
158
|
+
outer_any = google.protobuf.Any{type_url="type.googleapis.com/core.protos.hds.HdsNotification",
|
|
159
|
+
value=HdsNotification bytes}
|
|
160
|
+
HdsNotification (C6328uR0): {notification_type=1(varint), payload=2(HomeDatastoreObjectDiff)}
|
|
161
|
+
HomeDatastoreObjectDiff (MJ.java): space=3, outdoor_unit=6, indoor_unit=9, etc.
|
|
162
|
+
HEARTBEATS: topic (f1) absent (b""); payload (f2) = C1517Ta{type_url="hds/space/<uuid>",
|
|
163
|
+
value=b"" or varint control byte}
|
|
164
|
+
NOTE: topic field is 'bytes' (not string) because data events embed a binary C1517Ta message
|
|
165
|
+
at f1. Using bytes avoids UTF-8 decode failures in the gRPC Python deserializer.
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
169
|
+
|
|
170
|
+
TOPIC_FIELD_NUMBER: _builtins.int
|
|
171
|
+
PAYLOAD_FIELD_NUMBER: _builtins.int
|
|
172
|
+
topic: _builtins.bytes
|
|
173
|
+
"""raw C1517Ta bytes for data events; empty for heartbeats"""
|
|
174
|
+
payload: _builtins.bytes
|
|
175
|
+
"""raw C1517Ta bytes for subscription confirmations; empty for data events"""
|
|
176
|
+
def __init__(
|
|
177
|
+
self,
|
|
178
|
+
*,
|
|
179
|
+
topic: _builtins.bytes = ...,
|
|
180
|
+
payload: _builtins.bytes = ...,
|
|
181
|
+
) -> None: ...
|
|
182
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
183
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
184
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["payload", b"payload", "topic", b"topic"] # noqa: Y015
|
|
185
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
186
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
187
|
+
|
|
188
|
+
Global___NotifierEvent: _TypeAlias = NotifierEvent # noqa: Y015
|
|
189
|
+
|
|
190
|
+
@_typing.final
|
|
191
|
+
class ControlEvent(_message.Message):
|
|
192
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
193
|
+
|
|
194
|
+
TOPICS_FIELD_NUMBER: _builtins.int
|
|
195
|
+
TYPE_FIELD_NUMBER: _builtins.int
|
|
196
|
+
type: Global___ControlEventType.ValueType
|
|
197
|
+
@_builtins.property
|
|
198
|
+
def topics(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
|
|
199
|
+
def __init__(
|
|
200
|
+
self,
|
|
201
|
+
*,
|
|
202
|
+
topics: _abc.Iterable[_builtins.str] | None = ...,
|
|
203
|
+
type: Global___ControlEventType.ValueType = ...,
|
|
204
|
+
) -> None: ...
|
|
205
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
206
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
207
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["topics", b"topics", "type", b"type"] # noqa: Y015
|
|
208
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
209
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
210
|
+
|
|
211
|
+
Global___ControlEvent: _TypeAlias = ControlEvent # noqa: Y015
|
|
212
|
+
|
|
213
|
+
@_typing.final
|
|
214
|
+
class SystemEvent(_message.Message):
|
|
215
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
216
|
+
|
|
217
|
+
TYPE_FIELD_NUMBER: _builtins.int
|
|
218
|
+
type: Global___SystemEventType.ValueType
|
|
219
|
+
def __init__(
|
|
220
|
+
self,
|
|
221
|
+
*,
|
|
222
|
+
type: Global___SystemEventType.ValueType = ...,
|
|
223
|
+
) -> None: ...
|
|
224
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
225
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
226
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015
|
|
227
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
228
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
229
|
+
|
|
230
|
+
Global___SystemEvent: _TypeAlias = SystemEvent # noqa: Y015
|
|
231
|
+
|
|
232
|
+
@_typing.final
|
|
233
|
+
class SubscribeResponse(_message.Message):
|
|
234
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
235
|
+
|
|
236
|
+
NOTIFIER_EVENTS_FIELD_NUMBER: _builtins.int
|
|
237
|
+
CONTROL_EVENTS_FIELD_NUMBER: _builtins.int
|
|
238
|
+
SYSTEM_EVENTS_FIELD_NUMBER: _builtins.int
|
|
239
|
+
@_builtins.property
|
|
240
|
+
def notifier_events(self) -> _containers.RepeatedCompositeFieldContainer[Global___NotifierEvent]: ...
|
|
241
|
+
@_builtins.property
|
|
242
|
+
def control_events(self) -> _containers.RepeatedCompositeFieldContainer[Global___ControlEvent]: ...
|
|
243
|
+
@_builtins.property
|
|
244
|
+
def system_events(self) -> _containers.RepeatedCompositeFieldContainer[Global___SystemEvent]: ...
|
|
245
|
+
def __init__(
|
|
246
|
+
self,
|
|
247
|
+
*,
|
|
248
|
+
notifier_events: _abc.Iterable[Global___NotifierEvent] | None = ...,
|
|
249
|
+
control_events: _abc.Iterable[Global___ControlEvent] | None = ...,
|
|
250
|
+
system_events: _abc.Iterable[Global___SystemEvent] | None = ...,
|
|
251
|
+
) -> None: ...
|
|
252
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
253
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
254
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["control_events", b"control_events", "notifier_events", b"notifier_events", "system_events", b"system_events"] # noqa: Y015
|
|
255
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
256
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
257
|
+
|
|
258
|
+
Global___SubscribeResponse: _TypeAlias = SubscribeResponse # noqa: Y015
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from . import quilt_notifier_pb2 as quilt__notifier__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ ' but the generated code in quilt_notifier_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class NotifierServiceStub(object):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.Subscribe = channel.stream_stream(
|
|
38
|
+
'/core.protos.notifier.NotifierService/Subscribe',
|
|
39
|
+
request_serializer=quilt__notifier__pb2.SubscribeRequest.SerializeToString,
|
|
40
|
+
response_deserializer=quilt__notifier__pb2.SubscribeResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class NotifierServiceServicer(object):
|
|
45
|
+
"""Missing associated documentation comment in .proto file."""
|
|
46
|
+
|
|
47
|
+
def Subscribe(self, request_iterator, context):
|
|
48
|
+
"""Missing associated documentation comment in .proto file."""
|
|
49
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
50
|
+
context.set_details('Method not implemented!')
|
|
51
|
+
raise NotImplementedError('Method not implemented!')
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def add_NotifierServiceServicer_to_server(servicer, server):
|
|
55
|
+
rpc_method_handlers = {
|
|
56
|
+
'Subscribe': grpc.stream_stream_rpc_method_handler(
|
|
57
|
+
servicer.Subscribe,
|
|
58
|
+
request_deserializer=quilt__notifier__pb2.SubscribeRequest.FromString,
|
|
59
|
+
response_serializer=quilt__notifier__pb2.SubscribeResponse.SerializeToString,
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
63
|
+
'core.protos.notifier.NotifierService', rpc_method_handlers)
|
|
64
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
65
|
+
server.add_registered_method_handlers('core.protos.notifier.NotifierService', rpc_method_handlers)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# This class is part of an EXPERIMENTAL API.
|
|
69
|
+
class NotifierService(object):
|
|
70
|
+
"""Missing associated documentation comment in .proto file."""
|
|
71
|
+
|
|
72
|
+
@staticmethod
|
|
73
|
+
def Subscribe(request_iterator,
|
|
74
|
+
target,
|
|
75
|
+
options=(),
|
|
76
|
+
channel_credentials=None,
|
|
77
|
+
call_credentials=None,
|
|
78
|
+
insecure=False,
|
|
79
|
+
compression=None,
|
|
80
|
+
wait_for_ready=None,
|
|
81
|
+
timeout=None,
|
|
82
|
+
metadata=None):
|
|
83
|
+
return grpc.experimental.stream_stream(
|
|
84
|
+
request_iterator,
|
|
85
|
+
target,
|
|
86
|
+
'/core.protos.notifier.NotifierService/Subscribe',
|
|
87
|
+
quilt__notifier__pb2.SubscribeRequest.SerializeToString,
|
|
88
|
+
quilt__notifier__pb2.SubscribeResponse.FromString,
|
|
89
|
+
options,
|
|
90
|
+
channel_credentials,
|
|
91
|
+
insecure,
|
|
92
|
+
call_credentials,
|
|
93
|
+
compression,
|
|
94
|
+
wait_for_ready,
|
|
95
|
+
timeout,
|
|
96
|
+
metadata,
|
|
97
|
+
_registered_method=True)
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: quilt_services.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'quilt_services.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
|
|
26
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14quilt_services.proto\x12\x0f\x63ore.protos.app\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"i\n\x04User\x12\x15\n\rquilt_user_id\x18\x01 \x01(\t\x12\x12\n\nfirst_name\x18\x02 \x01(\t\x12\x11\n\tlast_name\x18\x03 \x01(\t\x12\r\n\x05\x65mail\x18\x04 \x01(\t\x12\x14\n\x0cphone_number\x18\x05 \x01(\t\"O\n\x0eUserAttributes\x12=\n\x12\x64\x65\x63lared_user_type\x18\x01 \x01(\x0e\x32!.core.protos.app.DeclaredUserType\"\x18\n\x16GetLoggedInUserRequest\">\n\x17GetLoggedInUserResponse\x12#\n\x04user\x18\x01 \x01(\x0b\x32\x15.core.protos.app.User\"X\n\x19UpdateLoggedInUserRequest\x12\x12\n\nfirst_name\x18\x01 \x01(\t\x12\x11\n\tlast_name\x18\x02 \x01(\t\x12\x14\n\x0cphone_number\x18\x03 \x01(\t\"A\n\x1aUpdateLoggedInUserResponse\x12#\n\x04user\x18\x01 \x01(\x0b\x32\x15.core.protos.app.User\"\x1a\n\x18GetUserAttributesRequest\"V\n\x1aPatchUserAttributesRequest\x12\x38\n\x0fuser_attributes\x18\x01 \x01(\x0b\x32\x1f.core.protos.app.UserAttributes\"\x99\x02\n\x07\x41\x64\x64ress\x12\x16\n\x0e\x61\x64\x64ress_line_1\x18\x01 \x01(\t\x12\x16\n\x0e\x61\x64\x64ress_line_2\x18\x02 \x01(\t\x12\x0c\n\x04\x63ity\x18\x03 \x01(\t\x12\x13\n\x0bregion_code\x18\x04 \x01(\t\x12\x13\n\x0bpostal_code\x18\x05 \x01(\t\x12\x14\n\x0c\x63ountry_code\x18\x06 \x01(\t\x12\x19\n\x11\x66ormatted_address\x18\x07 \x01(\t\x12\x10\n\x08latitude\x18\x08 \x01(\x01\x12\x11\n\tlongitude\x18\t \x01(\x01\x12\x36\n\x0egeocode_source\x18\n \x01(\x0e\x32\x1e.core.protos.app.GeocodeSource\x12\x18\n\x10geocode_override\x18\x0b \x01(\x08\"o\n\x11SystemInformation\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x15\n\rtz_identifier\x18\x03 \x01(\t\x12)\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x18.core.protos.app.Address\"\x1e\n\x1cListSystemInformationRequest\"T\n\x1dListSystemInformationResponse\x12\x33\n\x07systems\x18\x01 \x03(\x0b\x32\".core.protos.app.SystemInformation\"Q\n\x11SetAddressRequest\x12\x11\n\tsystem_id\x18\x01 \x01(\t\x12)\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x18.core.protos.app.Address\"%\n\x12SetAddressResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"\x8d\x01\n\x12\x45nergyMetricBucket\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x06status\x18\x02 \x01(\x0e\x32#.core.protos.app.MetricBucketStatus\x12\x12\n\nenergy_kwh\x18\x03 \x01(\x02\"\x9f\x01\n\x12SpaceEnergyMetrics\x12\x10\n\x08space_id\x18\x01 \x01(\t\x12:\n\x11\x62ucket_resolution\x18\x02 \x01(\x0e\x32\x1f.core.protos.app.TimeResolution\x12;\n\x0e\x65nergy_buckets\x18\x03 \x03(\x0b\x32#.core.protos.app.EnergyMetricBucket\"\xc9\x01\n\x17GetEnergyMetricsRequest\x12\x11\n\tsystem_id\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x14preferred_resolution\x18\x04 \x01(\x0e\x32\x1f.core.protos.app.TimeResolution\"]\n\x18GetEnergyMetricsResponse\x12\x41\n\x14space_energy_metrics\x18\x01 \x03(\x0b\x32#.core.protos.app.SpaceEnergyMetrics\";\n\x12InviterInformation\x12\x12\n\nfirst_name\x18\x01 \x01(\t\x12\x11\n\tlast_name\x18\x02 \x01(\t\"\xb7\x01\n\nInvitation\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\rinvitee_email\x18\x02 \x01(\t\x12\x37\n\ninvited_by\x18\x03 \x01(\x0b\x32#.core.protos.app.InviterInformation\x12\x13\n\x0bsystem_name\x18\x04 \x01(\t\x12\x38\n\x0b\x61\x63\x63\x65ss_role\x18\x05 \x01(\x0e\x32#.core.protos.app.AccessRoleToSystem\"\x1f\n\x1dListPendingInvitationsRequest\"R\n\x1eListPendingInvitationsResponse\x12\x30\n\x0binvitations\x18\x01 \x03(\x0b\x32\x1b.core.protos.app.Invitation\"}\n\x17\x43reateInvitationRequest\x12\x15\n\rinvitee_email\x18\x01 \x01(\t\x12\x11\n\tsystem_id\x18\x02 \x01(\t\x12\x38\n\x0b\x61\x63\x63\x65ss_role\x18\x03 \x01(\x0e\x32#.core.protos.app.AccessRoleToSystem\"K\n\x18\x43reateInvitationResponse\x12/\n\ninvitation\x18\x01 \x01(\x0b\x32\x1b.core.protos.app.Invitation\"0\n\x17\x41\x63\x63\x65ptInvitationRequest\x12\x15\n\rinvitation_id\x18\x01 \x01(\t\"\x1a\n\x18\x41\x63\x63\x65ptInvitationResponse\"0\n\x17RejectInvitationRequest\x12\x15\n\rinvitation_id\x18\x01 \x01(\t\"\x1a\n\x18RejectInvitationResponse\"0\n\x17\x43\x61ncelInvitationRequest\x12\x15\n\rinvitation_id\x18\x01 \x01(\t\"\x1a\n\x18\x43\x61ncelInvitationResponse\"=\n$SendNotificationForInvitationRequest\x12\x15\n\rinvitation_id\x18\x01 \x01(\t\"\'\n%SendNotificationForInvitationResponse\"D\n\x0ePartnerDetails\x12\x17\n\x0forganization_id\x18\x01 \x01(\t\x12\x19\n\x11organization_name\x18\x02 \x01(\t\"\x87\x01\n\x18InviteSystemOwnerRequest\x12\x13\n\x0bowner_email\x18\x01 \x01(\t\x12\x11\n\tsystem_id\x18\x02 \x01(\t\x12\x43\n\x15\x61\x66ter_invite_behavior\x18\x03 \x01(\x0e\x32$.core.protos.app.AfterInviteBehavior\"L\n\x19InviteSystemOwnerResponse\x12/\n\ninvitation\x18\x01 \x01(\x0b\x32\x1b.core.protos.app.Invitation\"&\n$GetLoggedInUserPartnerDetailsRequest\"a\n%GetLoggedInUserPartnerDetailsResponse\x12\x38\n\x0fpartner_details\x18\x01 \x01(\x0b\x32\x1f.core.protos.app.PartnerDetails\"6\n\x1eJoinPartnerOrganizationRequest\x12\x14\n\x0cpartner_code\x18\x01 \x01(\t\"[\n\x1fJoinPartnerOrganizationResponse\x12\x38\n\x0fpartner_details\x18\x01 \x01(\x0b\x32\x1f.core.protos.app.PartnerDetails\"B\n\x1fLeavePartnerOrganizationRequest\x12\x1f\n\x17partner_organization_id\x18\x01 \x01(\t\"\"\n LeavePartnerOrganizationResponse\"0\n\x08UserList\x12$\n\x05users\x18\x01 \x03(\x0b\x32\x15.core.protos.app.User\"B\n\x0eInvitationList\x12\x30\n\x0binvitations\x18\x01 \x03(\x0b\x32\x1b.core.protos.app.Invitation\"[\n\x16ListSystemUsersRequest\x12\x11\n\tsystem_id\x18\x01 \x01(\t\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xb6\x01\n\x17ListSystemUsersResponse\x12\x31\n\x0e\x61\x64ministrators\x18\x01 \x01(\x0b\x32\x19.core.protos.app.UserList\x12*\n\x07members\x18\x02 \x01(\x0b\x32\x19.core.protos.app.UserList\x12<\n\x13pending_invitations\x18\x03 \x01(\x0b\x32\x1f.core.protos.app.InvitationList\"7\n\"GetRoleOfLoggedInSystemUserRequest\x12\x11\n\tsystem_id\x18\x01 \x01(\t\"_\n#GetRoleOfLoggedInSystemUserResponse\x12\x38\n\x0b\x61\x63\x63\x65ss_role\x18\x01 \x01(\x0e\x32#.core.protos.app.AccessRoleToSystem\"=\n\x17RemoveSystemUserRequest\x12\x11\n\tsystem_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\"\x1a\n\x18RemoveSystemUserResponse\"4\n\x1fRemoveLoggedInSystemUserRequest\x12\x11\n\tsystem_id\x18\x01 \x01(\t\"\"\n RemoveLoggedInSystemUserResponse\"\x81\x01\n\x1d\x43hangeRoleOfSystemUserRequest\x12\x11\n\tsystem_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12<\n\x0fnew_access_role\x18\x03 \x01(\x0e\x32#.core.protos.app.AccessRoleToSystem\" \n\x1e\x43hangeRoleOfSystemUserResponse\"K\n\x19\x41uthorizeNewDeviceRequest\x12\x1c\n\x14\x64\x65vice_serial_number\x18\x01 \x01(\t\x12\x10\n\x08space_id\x18\x02 \x01(\t\"\x1c\n\x1a\x41uthorizeNewDeviceResponse*z\n\x12\x41\x63\x63\x65ssRoleToSystem\x12!\n\x1d\x41\x43\x43\x45SS_ROLE_TO_SYSTEM_UNKNOWN\x10\x00\x12\x1f\n\x1b\x41\x43\x43\x45SS_ROLE_TO_SYSTEM_ADMIN\x10\x01\x12 \n\x1c\x41\x43\x43\x45SS_ROLE_TO_SYSTEM_MEMBER\x10\x02*x\n\x10\x44\x65\x63laredUserType\x12\"\n\x1e\x44\x45\x43LARED_USER_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1c\x44\x45\x43LARED_USER_TYPE_HOMEOWNER\x10\x01\x12\x1e\n\x1a\x44\x45\x43LARED_USER_TYPE_PARTNER\x10\x02*Q\n\rGeocodeSource\x12\x1e\n\x1aGEOCODE_SOURCE_UNSPECIFIED\x10\x00\x12 \n\x1cGEOCODE_SOURCE_GOOGLE_PLACES\x10\x01*M\n\x0eTimeResolution\x12\x1f\n\x1bTIME_RESOLUTION_UNSPECIFIED\x10\x00\x12\x1a\n\x16TIME_RESOLUTION_HOURLY\x10\x01*\x82\x01\n\x12MetricBucketStatus\x12$\n METRIC_BUCKET_STATUS_UNSPECIFIED\x10\x00\x12!\n\x1dMETRIC_BUCKET_STATUS_COMPLETE\x10\x01\x12#\n\x1fMETRIC_BUCKET_STATUS_INCOMPLETE\x10\x02*\x88\x01\n\x13\x41\x66terInviteBehavior\x12%\n!AFTER_INVITE_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x41\x46TER_INVITE_BEHAVIOR_NONE\x10\x01\x12*\n&AFTER_INVITE_BEHAVIOR_REMOVE_INSTALLER\x10\x02\x32\xa8\x03\n\x0bUserService\x12\x64\n\x0fGetLoggedInUser\x12\'.core.protos.app.GetLoggedInUserRequest\x1a(.core.protos.app.GetLoggedInUserResponse\x12m\n\x12UpdateLoggedInUser\x12*.core.protos.app.UpdateLoggedInUserRequest\x1a+.core.protos.app.UpdateLoggedInUserResponse\x12_\n\x11GetUserAttributes\x12).core.protos.app.GetUserAttributesRequest\x1a\x1f.core.protos.app.UserAttributes\x12\x63\n\x13PatchUserAttributes\x12+.core.protos.app.PatchUserAttributesRequest\x1a\x1f.core.protos.app.UserAttributes2\xc8\x02\n\x18SystemInformationService\x12l\n\x0bListSystems\x12-.core.protos.app.ListSystemInformationRequest\x1a..core.protos.app.ListSystemInformationResponse\x12U\n\nSetAddress\x12\".core.protos.app.SetAddressRequest\x1a#.core.protos.app.SetAddressResponse\x12g\n\x10GetEnergyMetrics\x12(.core.protos.app.GetEnergyMetricsRequest\x1a).core.protos.app.GetEnergyMetricsResponse2\xd3\x05\n\x11InvitationService\x12\x88\x01\n%ListPendingInvitationsForLoggedInUser\x12..core.protos.app.ListPendingInvitationsRequest\x1a/.core.protos.app.ListPendingInvitationsResponse\x12g\n\x10\x43reateInvitation\x12(.core.protos.app.CreateInvitationRequest\x1a).core.protos.app.CreateInvitationResponse\x12g\n\x10\x41\x63\x63\x65ptInvitation\x12(.core.protos.app.AcceptInvitationRequest\x1a).core.protos.app.AcceptInvitationResponse\x12g\n\x10RejectInvitation\x12(.core.protos.app.RejectInvitationRequest\x1a).core.protos.app.RejectInvitationResponse\x12g\n\x10\x43\x61ncelInvitation\x12(.core.protos.app.CancelInvitationRequest\x1a).core.protos.app.CancelInvitationResponse\x12\x8e\x01\n\x1dSendNotificationForInvitation\x12\x35.core.protos.app.SendNotificationForInvitationRequest\x1a\x36.core.protos.app.SendNotificationForInvitationResponse2\x8c\x04\n\x0ePartnerService\x12j\n\x11InviteSystemOwner\x12).core.protos.app.InviteSystemOwnerRequest\x1a*.core.protos.app.InviteSystemOwnerResponse\x12\x8e\x01\n\x1dGetLoggedInUserPartnerDetails\x12\x35.core.protos.app.GetLoggedInUserPartnerDetailsRequest\x1a\x36.core.protos.app.GetLoggedInUserPartnerDetailsResponse\x12|\n\x17JoinPartnerOrganization\x12/.core.protos.app.JoinPartnerOrganizationRequest\x1a\x30.core.protos.app.JoinPartnerOrganizationResponse\x12\x7f\n\x18LeavePartnerOrganization\x12\x30.core.protos.app.LeavePartnerOrganizationRequest\x1a\x31.core.protos.app.LeavePartnerOrganizationResponse2\xe9\x04\n\x11SystemUserService\x12\x64\n\x0fListSystemUsers\x12\'.core.protos.app.ListSystemUsersRequest\x1a(.core.protos.app.ListSystemUsersResponse\x12\x88\x01\n\x1bGetRoleOfLoggedInSystemUser\x12\x33.core.protos.app.GetRoleOfLoggedInSystemUserRequest\x1a\x34.core.protos.app.GetRoleOfLoggedInSystemUserResponse\x12g\n\x10RemoveSystemUser\x12(.core.protos.app.RemoveSystemUserRequest\x1a).core.protos.app.RemoveSystemUserResponse\x12\x7f\n\x18RemoveLoggedInSystemUser\x12\x30.core.protos.app.RemoveLoggedInSystemUserRequest\x1a\x31.core.protos.app.RemoveLoggedInSystemUserResponse\x12y\n\x16\x43hangeRoleOfSystemUser\x12..core.protos.app.ChangeRoleOfSystemUserRequest\x1a/.core.protos.app.ChangeRoleOfSystemUserResponse2\x81\x01\n\x10MobileAppService\x12m\n\x12\x41uthorizeNewDevice\x12*.core.protos.app.AuthorizeNewDeviceRequest\x1a+.core.protos.app.AuthorizeNewDeviceResponseB\x1d\n\x13\x63om.quilt.proto.api\xba\x02\x05Quiltb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'quilt_services_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\023com.quilt.proto.api\272\002\005Quilt'
|
|
37
|
+
_globals['_ACCESSROLETOSYSTEM']._serialized_start=4489
|
|
38
|
+
_globals['_ACCESSROLETOSYSTEM']._serialized_end=4611
|
|
39
|
+
_globals['_DECLAREDUSERTYPE']._serialized_start=4613
|
|
40
|
+
_globals['_DECLAREDUSERTYPE']._serialized_end=4733
|
|
41
|
+
_globals['_GEOCODESOURCE']._serialized_start=4735
|
|
42
|
+
_globals['_GEOCODESOURCE']._serialized_end=4816
|
|
43
|
+
_globals['_TIMERESOLUTION']._serialized_start=4818
|
|
44
|
+
_globals['_TIMERESOLUTION']._serialized_end=4895
|
|
45
|
+
_globals['_METRICBUCKETSTATUS']._serialized_start=4898
|
|
46
|
+
_globals['_METRICBUCKETSTATUS']._serialized_end=5028
|
|
47
|
+
_globals['_AFTERINVITEBEHAVIOR']._serialized_start=5031
|
|
48
|
+
_globals['_AFTERINVITEBEHAVIOR']._serialized_end=5167
|
|
49
|
+
_globals['_USER']._serialized_start=108
|
|
50
|
+
_globals['_USER']._serialized_end=213
|
|
51
|
+
_globals['_USERATTRIBUTES']._serialized_start=215
|
|
52
|
+
_globals['_USERATTRIBUTES']._serialized_end=294
|
|
53
|
+
_globals['_GETLOGGEDINUSERREQUEST']._serialized_start=296
|
|
54
|
+
_globals['_GETLOGGEDINUSERREQUEST']._serialized_end=320
|
|
55
|
+
_globals['_GETLOGGEDINUSERRESPONSE']._serialized_start=322
|
|
56
|
+
_globals['_GETLOGGEDINUSERRESPONSE']._serialized_end=384
|
|
57
|
+
_globals['_UPDATELOGGEDINUSERREQUEST']._serialized_start=386
|
|
58
|
+
_globals['_UPDATELOGGEDINUSERREQUEST']._serialized_end=474
|
|
59
|
+
_globals['_UPDATELOGGEDINUSERRESPONSE']._serialized_start=476
|
|
60
|
+
_globals['_UPDATELOGGEDINUSERRESPONSE']._serialized_end=541
|
|
61
|
+
_globals['_GETUSERATTRIBUTESREQUEST']._serialized_start=543
|
|
62
|
+
_globals['_GETUSERATTRIBUTESREQUEST']._serialized_end=569
|
|
63
|
+
_globals['_PATCHUSERATTRIBUTESREQUEST']._serialized_start=571
|
|
64
|
+
_globals['_PATCHUSERATTRIBUTESREQUEST']._serialized_end=657
|
|
65
|
+
_globals['_ADDRESS']._serialized_start=660
|
|
66
|
+
_globals['_ADDRESS']._serialized_end=941
|
|
67
|
+
_globals['_SYSTEMINFORMATION']._serialized_start=943
|
|
68
|
+
_globals['_SYSTEMINFORMATION']._serialized_end=1054
|
|
69
|
+
_globals['_LISTSYSTEMINFORMATIONREQUEST']._serialized_start=1056
|
|
70
|
+
_globals['_LISTSYSTEMINFORMATIONREQUEST']._serialized_end=1086
|
|
71
|
+
_globals['_LISTSYSTEMINFORMATIONRESPONSE']._serialized_start=1088
|
|
72
|
+
_globals['_LISTSYSTEMINFORMATIONRESPONSE']._serialized_end=1172
|
|
73
|
+
_globals['_SETADDRESSREQUEST']._serialized_start=1174
|
|
74
|
+
_globals['_SETADDRESSREQUEST']._serialized_end=1255
|
|
75
|
+
_globals['_SETADDRESSRESPONSE']._serialized_start=1257
|
|
76
|
+
_globals['_SETADDRESSRESPONSE']._serialized_end=1294
|
|
77
|
+
_globals['_ENERGYMETRICBUCKET']._serialized_start=1297
|
|
78
|
+
_globals['_ENERGYMETRICBUCKET']._serialized_end=1438
|
|
79
|
+
_globals['_SPACEENERGYMETRICS']._serialized_start=1441
|
|
80
|
+
_globals['_SPACEENERGYMETRICS']._serialized_end=1600
|
|
81
|
+
_globals['_GETENERGYMETRICSREQUEST']._serialized_start=1603
|
|
82
|
+
_globals['_GETENERGYMETRICSREQUEST']._serialized_end=1804
|
|
83
|
+
_globals['_GETENERGYMETRICSRESPONSE']._serialized_start=1806
|
|
84
|
+
_globals['_GETENERGYMETRICSRESPONSE']._serialized_end=1899
|
|
85
|
+
_globals['_INVITERINFORMATION']._serialized_start=1901
|
|
86
|
+
_globals['_INVITERINFORMATION']._serialized_end=1960
|
|
87
|
+
_globals['_INVITATION']._serialized_start=1963
|
|
88
|
+
_globals['_INVITATION']._serialized_end=2146
|
|
89
|
+
_globals['_LISTPENDINGINVITATIONSREQUEST']._serialized_start=2148
|
|
90
|
+
_globals['_LISTPENDINGINVITATIONSREQUEST']._serialized_end=2179
|
|
91
|
+
_globals['_LISTPENDINGINVITATIONSRESPONSE']._serialized_start=2181
|
|
92
|
+
_globals['_LISTPENDINGINVITATIONSRESPONSE']._serialized_end=2263
|
|
93
|
+
_globals['_CREATEINVITATIONREQUEST']._serialized_start=2265
|
|
94
|
+
_globals['_CREATEINVITATIONREQUEST']._serialized_end=2390
|
|
95
|
+
_globals['_CREATEINVITATIONRESPONSE']._serialized_start=2392
|
|
96
|
+
_globals['_CREATEINVITATIONRESPONSE']._serialized_end=2467
|
|
97
|
+
_globals['_ACCEPTINVITATIONREQUEST']._serialized_start=2469
|
|
98
|
+
_globals['_ACCEPTINVITATIONREQUEST']._serialized_end=2517
|
|
99
|
+
_globals['_ACCEPTINVITATIONRESPONSE']._serialized_start=2519
|
|
100
|
+
_globals['_ACCEPTINVITATIONRESPONSE']._serialized_end=2545
|
|
101
|
+
_globals['_REJECTINVITATIONREQUEST']._serialized_start=2547
|
|
102
|
+
_globals['_REJECTINVITATIONREQUEST']._serialized_end=2595
|
|
103
|
+
_globals['_REJECTINVITATIONRESPONSE']._serialized_start=2597
|
|
104
|
+
_globals['_REJECTINVITATIONRESPONSE']._serialized_end=2623
|
|
105
|
+
_globals['_CANCELINVITATIONREQUEST']._serialized_start=2625
|
|
106
|
+
_globals['_CANCELINVITATIONREQUEST']._serialized_end=2673
|
|
107
|
+
_globals['_CANCELINVITATIONRESPONSE']._serialized_start=2675
|
|
108
|
+
_globals['_CANCELINVITATIONRESPONSE']._serialized_end=2701
|
|
109
|
+
_globals['_SENDNOTIFICATIONFORINVITATIONREQUEST']._serialized_start=2703
|
|
110
|
+
_globals['_SENDNOTIFICATIONFORINVITATIONREQUEST']._serialized_end=2764
|
|
111
|
+
_globals['_SENDNOTIFICATIONFORINVITATIONRESPONSE']._serialized_start=2766
|
|
112
|
+
_globals['_SENDNOTIFICATIONFORINVITATIONRESPONSE']._serialized_end=2805
|
|
113
|
+
_globals['_PARTNERDETAILS']._serialized_start=2807
|
|
114
|
+
_globals['_PARTNERDETAILS']._serialized_end=2875
|
|
115
|
+
_globals['_INVITESYSTEMOWNERREQUEST']._serialized_start=2878
|
|
116
|
+
_globals['_INVITESYSTEMOWNERREQUEST']._serialized_end=3013
|
|
117
|
+
_globals['_INVITESYSTEMOWNERRESPONSE']._serialized_start=3015
|
|
118
|
+
_globals['_INVITESYSTEMOWNERRESPONSE']._serialized_end=3091
|
|
119
|
+
_globals['_GETLOGGEDINUSERPARTNERDETAILSREQUEST']._serialized_start=3093
|
|
120
|
+
_globals['_GETLOGGEDINUSERPARTNERDETAILSREQUEST']._serialized_end=3131
|
|
121
|
+
_globals['_GETLOGGEDINUSERPARTNERDETAILSRESPONSE']._serialized_start=3133
|
|
122
|
+
_globals['_GETLOGGEDINUSERPARTNERDETAILSRESPONSE']._serialized_end=3230
|
|
123
|
+
_globals['_JOINPARTNERORGANIZATIONREQUEST']._serialized_start=3232
|
|
124
|
+
_globals['_JOINPARTNERORGANIZATIONREQUEST']._serialized_end=3286
|
|
125
|
+
_globals['_JOINPARTNERORGANIZATIONRESPONSE']._serialized_start=3288
|
|
126
|
+
_globals['_JOINPARTNERORGANIZATIONRESPONSE']._serialized_end=3379
|
|
127
|
+
_globals['_LEAVEPARTNERORGANIZATIONREQUEST']._serialized_start=3381
|
|
128
|
+
_globals['_LEAVEPARTNERORGANIZATIONREQUEST']._serialized_end=3447
|
|
129
|
+
_globals['_LEAVEPARTNERORGANIZATIONRESPONSE']._serialized_start=3449
|
|
130
|
+
_globals['_LEAVEPARTNERORGANIZATIONRESPONSE']._serialized_end=3483
|
|
131
|
+
_globals['_USERLIST']._serialized_start=3485
|
|
132
|
+
_globals['_USERLIST']._serialized_end=3533
|
|
133
|
+
_globals['_INVITATIONLIST']._serialized_start=3535
|
|
134
|
+
_globals['_INVITATIONLIST']._serialized_end=3601
|
|
135
|
+
_globals['_LISTSYSTEMUSERSREQUEST']._serialized_start=3603
|
|
136
|
+
_globals['_LISTSYSTEMUSERSREQUEST']._serialized_end=3694
|
|
137
|
+
_globals['_LISTSYSTEMUSERSRESPONSE']._serialized_start=3697
|
|
138
|
+
_globals['_LISTSYSTEMUSERSRESPONSE']._serialized_end=3879
|
|
139
|
+
_globals['_GETROLEOFLOGGEDINSYSTEMUSERREQUEST']._serialized_start=3881
|
|
140
|
+
_globals['_GETROLEOFLOGGEDINSYSTEMUSERREQUEST']._serialized_end=3936
|
|
141
|
+
_globals['_GETROLEOFLOGGEDINSYSTEMUSERRESPONSE']._serialized_start=3938
|
|
142
|
+
_globals['_GETROLEOFLOGGEDINSYSTEMUSERRESPONSE']._serialized_end=4033
|
|
143
|
+
_globals['_REMOVESYSTEMUSERREQUEST']._serialized_start=4035
|
|
144
|
+
_globals['_REMOVESYSTEMUSERREQUEST']._serialized_end=4096
|
|
145
|
+
_globals['_REMOVESYSTEMUSERRESPONSE']._serialized_start=4098
|
|
146
|
+
_globals['_REMOVESYSTEMUSERRESPONSE']._serialized_end=4124
|
|
147
|
+
_globals['_REMOVELOGGEDINSYSTEMUSERREQUEST']._serialized_start=4126
|
|
148
|
+
_globals['_REMOVELOGGEDINSYSTEMUSERREQUEST']._serialized_end=4178
|
|
149
|
+
_globals['_REMOVELOGGEDINSYSTEMUSERRESPONSE']._serialized_start=4180
|
|
150
|
+
_globals['_REMOVELOGGEDINSYSTEMUSERRESPONSE']._serialized_end=4214
|
|
151
|
+
_globals['_CHANGEROLEOFSYSTEMUSERREQUEST']._serialized_start=4217
|
|
152
|
+
_globals['_CHANGEROLEOFSYSTEMUSERREQUEST']._serialized_end=4346
|
|
153
|
+
_globals['_CHANGEROLEOFSYSTEMUSERRESPONSE']._serialized_start=4348
|
|
154
|
+
_globals['_CHANGEROLEOFSYSTEMUSERRESPONSE']._serialized_end=4380
|
|
155
|
+
_globals['_AUTHORIZENEWDEVICEREQUEST']._serialized_start=4382
|
|
156
|
+
_globals['_AUTHORIZENEWDEVICEREQUEST']._serialized_end=4457
|
|
157
|
+
_globals['_AUTHORIZENEWDEVICERESPONSE']._serialized_start=4459
|
|
158
|
+
_globals['_AUTHORIZENEWDEVICERESPONSE']._serialized_end=4487
|
|
159
|
+
_globals['_USERSERVICE']._serialized_start=5170
|
|
160
|
+
_globals['_USERSERVICE']._serialized_end=5594
|
|
161
|
+
_globals['_SYSTEMINFORMATIONSERVICE']._serialized_start=5597
|
|
162
|
+
_globals['_SYSTEMINFORMATIONSERVICE']._serialized_end=5925
|
|
163
|
+
_globals['_INVITATIONSERVICE']._serialized_start=5928
|
|
164
|
+
_globals['_INVITATIONSERVICE']._serialized_end=6651
|
|
165
|
+
_globals['_PARTNERSERVICE']._serialized_start=6654
|
|
166
|
+
_globals['_PARTNERSERVICE']._serialized_end=7178
|
|
167
|
+
_globals['_SYSTEMUSERSERVICE']._serialized_start=7181
|
|
168
|
+
_globals['_SYSTEMUSERSERVICE']._serialized_end=7798
|
|
169
|
+
_globals['_MOBILEAPPSERVICE']._serialized_start=7801
|
|
170
|
+
_globals['_MOBILEAPPSERVICE']._serialized_end=7930
|
|
171
|
+
# @@protoc_insertion_point(module_scope)
|