viam-sdk 0.41.1__py3-none-linux_armv6l.whl → 0.66.0__py3-none-linux_armv6l.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.

Potentially problematic release.


This version of viam-sdk might be problematic. Click here for more details.

Files changed (225) hide show
  1. viam/app/app_client.py +225 -51
  2. viam/app/billing_client.py +47 -5
  3. viam/app/data_client.py +771 -234
  4. viam/app/ml_training_client.py +3 -5
  5. viam/app/provisioning_client.py +3 -5
  6. viam/app/viam_client.py +58 -11
  7. viam/components/arm/arm.py +1 -1
  8. viam/components/arm/service.py +1 -1
  9. viam/components/audio_in/__init__.py +24 -0
  10. viam/components/audio_in/audio_in.py +74 -0
  11. viam/components/audio_in/client.py +76 -0
  12. viam/components/audio_in/service.py +83 -0
  13. viam/components/audio_out/__init__.py +21 -0
  14. viam/components/audio_out/audio_out.py +72 -0
  15. viam/components/audio_out/client.py +67 -0
  16. viam/components/audio_out/service.py +63 -0
  17. viam/components/base/base.py +1 -1
  18. viam/components/board/board.py +8 -2
  19. viam/components/board/client.py +2 -1
  20. viam/components/board/service.py +1 -0
  21. viam/components/button/__init__.py +10 -0
  22. viam/components/button/button.py +41 -0
  23. viam/components/button/client.py +52 -0
  24. viam/components/button/service.py +46 -0
  25. viam/components/camera/camera.py +15 -30
  26. viam/components/camera/client.py +10 -21
  27. viam/components/camera/service.py +15 -28
  28. viam/components/component_base.py +2 -2
  29. viam/components/gantry/client.py +17 -2
  30. viam/components/gantry/gantry.py +32 -1
  31. viam/components/gantry/service.py +21 -5
  32. viam/components/gripper/__init__.py +2 -0
  33. viam/components/gripper/client.py +25 -2
  34. viam/components/gripper/gripper.py +76 -1
  35. viam/components/gripper/service.py +32 -3
  36. viam/components/input/input.py +1 -1
  37. viam/components/motor/motor.py +1 -1
  38. viam/components/power_sensor/power_sensor.py +1 -1
  39. viam/components/switch/__init__.py +10 -0
  40. viam/components/switch/client.py +83 -0
  41. viam/components/switch/service.py +72 -0
  42. viam/components/switch/switch.py +98 -0
  43. viam/gen/app/agent/v1/agent_pb2.py +1 -1
  44. viam/gen/app/cloudslam/v1/cloud_slam_pb2.py +1 -1
  45. viam/gen/app/data/v1/data_grpc.py +74 -2
  46. viam/gen/app/data/v1/data_pb2.py +198 -104
  47. viam/gen/app/data/v1/data_pb2.pyi +563 -31
  48. viam/gen/app/datapipelines/__init__.py +0 -0
  49. viam/gen/app/datapipelines/v1/__init__.py +0 -0
  50. viam/gen/app/datapipelines/v1/data_pipelines_grpc.py +84 -0
  51. viam/gen/app/datapipelines/v1/data_pipelines_pb2.py +57 -0
  52. viam/gen/app/datapipelines/v1/data_pipelines_pb2.pyi +387 -0
  53. viam/gen/app/dataset/v1/dataset_grpc.py +10 -2
  54. viam/gen/app/dataset/v1/dataset_pb2.py +8 -4
  55. viam/gen/app/dataset/v1/dataset_pb2.pyi +36 -1
  56. viam/gen/app/datasync/v1/data_sync_pb2.py +39 -35
  57. viam/gen/app/datasync/v1/data_sync_pb2.pyi +21 -8
  58. viam/gen/app/mlinference/v1/ml_inference_pb2.py +7 -7
  59. viam/gen/app/mlinference/v1/ml_inference_pb2.pyi +4 -2
  60. viam/gen/app/mltraining/v1/ml_training_grpc.py +10 -2
  61. viam/gen/app/mltraining/v1/ml_training_pb2.py +63 -43
  62. viam/gen/app/mltraining/v1/ml_training_pb2.pyi +112 -7
  63. viam/gen/app/packages/v1/packages_pb2.py +1 -1
  64. viam/gen/app/v1/app_grpc.py +74 -3
  65. viam/gen/app/v1/app_pb2.py +600 -545
  66. viam/gen/app/v1/app_pb2.pyi +1108 -258
  67. viam/gen/app/v1/billing_grpc.py +26 -2
  68. viam/gen/app/v1/billing_pb2.py +52 -36
  69. viam/gen/app/v1/billing_pb2.pyi +158 -4
  70. viam/gen/app/v1/end_user_pb2.py +1 -1
  71. viam/gen/app/v1/robot_pb2.py +95 -89
  72. viam/gen/app/v1/robot_pb2.pyi +121 -9
  73. viam/gen/common/v1/common_pb2.py +76 -58
  74. viam/gen/common/v1/common_pb2.pyi +186 -17
  75. viam/gen/component/arm/v1/arm_grpc.py +10 -2
  76. viam/gen/component/arm/v1/arm_pb2.py +5 -3
  77. viam/gen/component/audioin/__init__.py +0 -0
  78. viam/gen/component/audioin/v1/__init__.py +0 -0
  79. viam/gen/component/audioin/v1/audioin_grpc.py +54 -0
  80. viam/gen/component/audioin/v1/audioin_pb2.py +34 -0
  81. viam/gen/component/audioin/v1/audioin_pb2.pyi +94 -0
  82. viam/gen/component/audioinput/v1/audioinput_pb2.py +1 -1
  83. viam/gen/component/audioout/__init__.py +0 -0
  84. viam/gen/component/audioout/v1/__init__.py +0 -0
  85. viam/gen/component/audioout/v1/audioout_grpc.py +54 -0
  86. viam/gen/component/audioout/v1/audioout_pb2.py +32 -0
  87. viam/gen/component/audioout/v1/audioout_pb2.pyi +47 -0
  88. viam/gen/component/base/v1/base_pb2.py +1 -1
  89. viam/gen/component/board/v1/board_pb2.py +1 -1
  90. viam/gen/component/button/v1/button_pb2.py +1 -1
  91. viam/gen/component/camera/v1/camera_grpc.py +1 -0
  92. viam/gen/component/camera/v1/camera_pb2.py +37 -36
  93. viam/gen/component/camera/v1/camera_pb2.pyi +31 -4
  94. viam/gen/component/encoder/v1/encoder_pb2.py +1 -1
  95. viam/gen/component/gantry/v1/gantry_grpc.py +9 -1
  96. viam/gen/component/gantry/v1/gantry_pb2.py +5 -3
  97. viam/gen/component/generic/v1/generic_pb2.py +1 -1
  98. viam/gen/component/gripper/v1/gripper_grpc.py +18 -2
  99. viam/gen/component/gripper/v1/gripper_pb2.py +12 -4
  100. viam/gen/component/gripper/v1/gripper_pb2.pyi +43 -1
  101. viam/gen/component/inputcontroller/v1/input_controller_pb2.py +1 -1
  102. viam/gen/component/motor/v1/motor_pb2.py +1 -1
  103. viam/gen/component/movementsensor/v1/movementsensor_pb2.py +1 -1
  104. viam/gen/component/posetracker/v1/pose_tracker_pb2.py +1 -1
  105. viam/gen/component/powersensor/v1/powersensor_pb2.py +1 -1
  106. viam/gen/component/sensor/v1/sensor_pb2.py +1 -1
  107. viam/gen/component/servo/v1/servo_pb2.py +1 -1
  108. viam/gen/component/switch/v1/switch_pb2.py +5 -5
  109. viam/gen/component/switch/v1/switch_pb2.pyi +9 -2
  110. viam/gen/component/testecho/v1/testecho_pb2.py +1 -1
  111. viam/gen/module/v1/module_pb2.py +5 -5
  112. viam/gen/module/v1/module_pb2.pyi +7 -2
  113. viam/gen/opentelemetry/__init__.py +0 -0
  114. viam/gen/opentelemetry/proto/__init__.py +0 -0
  115. viam/gen/opentelemetry/proto/common/__init__.py +0 -0
  116. viam/gen/opentelemetry/proto/common/v1/__init__.py +0 -0
  117. viam/gen/opentelemetry/proto/common/v1/common_grpc.py +0 -0
  118. viam/gen/opentelemetry/proto/common/v1/common_pb2.py +27 -0
  119. viam/gen/opentelemetry/proto/common/v1/common_pb2.pyi +208 -0
  120. viam/gen/opentelemetry/proto/resource/__init__.py +0 -0
  121. viam/gen/opentelemetry/proto/resource/v1/__init__.py +0 -0
  122. viam/gen/opentelemetry/proto/resource/v1/resource_grpc.py +0 -0
  123. viam/gen/opentelemetry/proto/resource/v1/resource_pb2.py +18 -0
  124. viam/gen/opentelemetry/proto/resource/v1/resource_pb2.pyi +59 -0
  125. viam/gen/opentelemetry/proto/trace/__init__.py +0 -0
  126. viam/gen/opentelemetry/proto/trace/v1/__init__.py +0 -0
  127. viam/gen/opentelemetry/proto/trace/v1/trace_grpc.py +0 -0
  128. viam/gen/opentelemetry/proto/trace/v1/trace_pb2.py +37 -0
  129. viam/gen/opentelemetry/proto/trace/v1/trace_pb2.pyi +402 -0
  130. viam/gen/proto/rpc/examples/echo/v1/echo_pb2.py +1 -1
  131. viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.py +1 -1
  132. viam/gen/proto/rpc/v1/auth_pb2.py +1 -1
  133. viam/gen/proto/rpc/webrtc/v1/grpc_pb2.py +1 -1
  134. viam/gen/proto/rpc/webrtc/v1/signaling_pb2.py +1 -1
  135. viam/gen/provisioning/v1/provisioning_grpc.py +10 -2
  136. viam/gen/provisioning/v1/provisioning_pb2.py +32 -26
  137. viam/gen/provisioning/v1/provisioning_pb2.pyi +46 -5
  138. viam/gen/robot/v1/robot_grpc.py +51 -34
  139. viam/gen/robot/v1/robot_pb2.py +147 -142
  140. viam/gen/robot/v1/robot_pb2.pyi +153 -86
  141. viam/gen/service/datamanager/v1/data_manager_grpc.py +11 -2
  142. viam/gen/service/datamanager/v1/data_manager_pb2.py +15 -8
  143. viam/gen/service/datamanager/v1/data_manager_pb2.pyi +47 -1
  144. viam/gen/service/discovery/v1/discovery_pb2.py +1 -1
  145. viam/gen/service/generic/v1/generic_pb2.py +1 -1
  146. viam/gen/service/mlmodel/v1/mlmodel_pb2.py +1 -1
  147. viam/gen/service/motion/v1/motion_pb2.py +92 -62
  148. viam/gen/service/motion/v1/motion_pb2.pyi +130 -68
  149. viam/gen/service/navigation/v1/navigation_pb2.py +1 -1
  150. viam/gen/service/sensors/v1/sensors_pb2.py +1 -1
  151. viam/gen/service/shell/v1/shell_pb2.py +1 -1
  152. viam/gen/service/slam/v1/slam_pb2.py +1 -1
  153. viam/gen/service/slam/v1/slam_pb2.pyi +1 -1
  154. viam/gen/service/video/__init__.py +0 -0
  155. viam/gen/service/video/v1/__init__.py +0 -0
  156. viam/gen/service/video/v1/video_grpc.py +39 -0
  157. viam/gen/service/video/v1/video_pb2.py +29 -0
  158. viam/gen/service/video/v1/video_pb2.pyi +72 -0
  159. viam/gen/service/vision/v1/vision_pb2.py +27 -27
  160. viam/gen/service/vision/v1/vision_pb2.pyi +28 -3
  161. viam/gen/service/worldstatestore/__init__.py +0 -0
  162. viam/gen/service/worldstatestore/v1/__init__.py +0 -0
  163. viam/gen/service/worldstatestore/v1/world_state_store_grpc.py +55 -0
  164. viam/gen/service/worldstatestore/v1/world_state_store_pb2.py +39 -0
  165. viam/gen/service/worldstatestore/v1/world_state_store_pb2.pyi +171 -0
  166. viam/gen/stream/v1/stream_pb2.py +1 -1
  167. viam/gen/tagger/v1/tagger_pb2.py +1 -1
  168. viam/logging.py +9 -8
  169. viam/media/audio.py +22 -10
  170. viam/media/utils/pil/__init__.py +5 -1
  171. viam/media/video.py +54 -40
  172. viam/module/module.py +85 -16
  173. viam/module/resource_data_consumer.py +41 -0
  174. viam/module/service.py +9 -1
  175. viam/proto/app/__init__.py +68 -0
  176. viam/proto/app/billing.py +16 -0
  177. viam/proto/app/data/__init__.py +48 -0
  178. viam/proto/app/datapipelines/__init__.py +56 -0
  179. viam/proto/app/dataset/__init__.py +4 -0
  180. viam/proto/app/mltraining/__init__.py +6 -0
  181. viam/proto/app/robot.py +6 -0
  182. viam/proto/common/__init__.py +14 -0
  183. viam/proto/component/audioin/__init__.py +16 -0
  184. viam/proto/component/audioout/__init__.py +15 -0
  185. viam/proto/component/camera/__init__.py +0 -2
  186. viam/proto/component/gripper/__init__.py +4 -0
  187. viam/proto/opentelemetry/__init__.py +0 -0
  188. viam/proto/opentelemetry/proto/__init__.py +0 -0
  189. viam/proto/opentelemetry/proto/common/__init__.py +15 -0
  190. viam/proto/opentelemetry/proto/resource/__init__.py +10 -0
  191. viam/proto/opentelemetry/proto/trace/__init__.py +15 -0
  192. viam/proto/provisioning/__init__.py +6 -0
  193. viam/proto/robot/__init__.py +16 -8
  194. viam/proto/service/datamanager/__init__.py +8 -1
  195. viam/proto/service/motion/__init__.py +2 -0
  196. viam/proto/service/video/__init__.py +15 -0
  197. viam/proto/service/worldstatestore/__init__.py +32 -0
  198. viam/resource/easy_resource.py +5 -9
  199. viam/resource/manager.py +4 -3
  200. viam/resource/registry.py +2 -2
  201. viam/resource/types.py +2 -2
  202. viam/robot/client.py +38 -59
  203. viam/rpc/dial.py +48 -5
  204. viam/rpc/libviam_rust_utils.so +0 -0
  205. viam/rpc/server.py +24 -10
  206. viam/services/motion/client.py +8 -9
  207. viam/services/motion/motion.py +48 -46
  208. viam/services/navigation/navigation.py +2 -2
  209. viam/services/vision/client.py +1 -1
  210. viam/services/vision/service.py +5 -8
  211. viam/services/vision/vision.py +5 -3
  212. viam/services/worldstatestore/__init__.py +18 -0
  213. viam/services/worldstatestore/client.py +94 -0
  214. viam/services/worldstatestore/service.py +55 -0
  215. viam/services/worldstatestore/worldstatestore.py +90 -0
  216. viam/sessions_client.py +115 -46
  217. viam/version_metadata.py +2 -2
  218. {viam_sdk-0.41.1.dist-info → viam_sdk-0.66.0.dist-info}/METADATA +10 -6
  219. {viam_sdk-0.41.1.dist-info → viam_sdk-0.66.0.dist-info}/RECORD +221 -152
  220. {viam_sdk-0.41.1.dist-info → viam_sdk-0.66.0.dist-info}/WHEEL +1 -1
  221. viam/components/audio_input/__init__.py +0 -18
  222. viam/components/audio_input/audio_input.py +0 -81
  223. viam/components/audio_input/client.py +0 -70
  224. viam/components/audio_input/service.py +0 -114
  225. {viam_sdk-0.41.1.dist-info → viam_sdk-0.66.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,208 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ Copyright 2019, OpenTelemetry Authors
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License.
8
+ You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ """
18
+ import builtins
19
+ import collections.abc
20
+ import google.protobuf.descriptor
21
+ import google.protobuf.internal.containers
22
+ import google.protobuf.message
23
+ import typing
24
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
25
+
26
+ @typing.final
27
+ class AnyValue(google.protobuf.message.Message):
28
+ """Represents any type of attribute value. AnyValue may contain a
29
+ primitive value such as a string or integer or it may contain an arbitrary nested
30
+ object containing arrays, key-value lists and primitives.
31
+ """
32
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
33
+ STRING_VALUE_FIELD_NUMBER: builtins.int
34
+ BOOL_VALUE_FIELD_NUMBER: builtins.int
35
+ INT_VALUE_FIELD_NUMBER: builtins.int
36
+ DOUBLE_VALUE_FIELD_NUMBER: builtins.int
37
+ ARRAY_VALUE_FIELD_NUMBER: builtins.int
38
+ KVLIST_VALUE_FIELD_NUMBER: builtins.int
39
+ BYTES_VALUE_FIELD_NUMBER: builtins.int
40
+ string_value: builtins.str
41
+ bool_value: builtins.bool
42
+ int_value: builtins.int
43
+ double_value: builtins.float
44
+ bytes_value: builtins.bytes
45
+
46
+ @property
47
+ def array_value(self) -> global___ArrayValue:
48
+ ...
49
+
50
+ @property
51
+ def kvlist_value(self) -> global___KeyValueList:
52
+ ...
53
+
54
+ def __init__(self, *, string_value: builtins.str=..., bool_value: builtins.bool=..., int_value: builtins.int=..., double_value: builtins.float=..., array_value: global___ArrayValue | None=..., kvlist_value: global___KeyValueList | None=..., bytes_value: builtins.bytes=...) -> None:
55
+ ...
56
+
57
+ def HasField(self, field_name: typing.Literal['array_value', b'array_value', 'bool_value', b'bool_value', 'bytes_value', b'bytes_value', 'double_value', b'double_value', 'int_value', b'int_value', 'kvlist_value', b'kvlist_value', 'string_value', b'string_value', 'value', b'value']) -> builtins.bool:
58
+ ...
59
+
60
+ def ClearField(self, field_name: typing.Literal['array_value', b'array_value', 'bool_value', b'bool_value', 'bytes_value', b'bytes_value', 'double_value', b'double_value', 'int_value', b'int_value', 'kvlist_value', b'kvlist_value', 'string_value', b'string_value', 'value', b'value']) -> None:
61
+ ...
62
+
63
+ def WhichOneof(self, oneof_group: typing.Literal['value', b'value']) -> typing.Literal['string_value', 'bool_value', 'int_value', 'double_value', 'array_value', 'kvlist_value', 'bytes_value'] | None:
64
+ ...
65
+ global___AnyValue = AnyValue
66
+
67
+ @typing.final
68
+ class ArrayValue(google.protobuf.message.Message):
69
+ """ArrayValue is a list of AnyValue messages. We need ArrayValue as a message
70
+ since oneof in AnyValue does not allow repeated fields.
71
+ """
72
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
73
+ VALUES_FIELD_NUMBER: builtins.int
74
+
75
+ @property
76
+ def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AnyValue]:
77
+ """Array of values. The array may be empty (contain 0 elements)."""
78
+
79
+ def __init__(self, *, values: collections.abc.Iterable[global___AnyValue] | None=...) -> None:
80
+ ...
81
+
82
+ def ClearField(self, field_name: typing.Literal['values', b'values']) -> None:
83
+ ...
84
+ global___ArrayValue = ArrayValue
85
+
86
+ @typing.final
87
+ class KeyValueList(google.protobuf.message.Message):
88
+ """KeyValueList is a list of KeyValue messages. We need KeyValueList as a message
89
+ since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need
90
+ a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to
91
+ avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches
92
+ are semantically equivalent.
93
+ """
94
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
95
+ VALUES_FIELD_NUMBER: builtins.int
96
+
97
+ @property
98
+ def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___KeyValue]:
99
+ """A collection of key/value pairs of key-value pairs. The list may be empty (may
100
+ contain 0 elements).
101
+
102
+ The keys MUST be unique (it is not allowed to have more than one
103
+ value with the same key).
104
+ The behavior of software that receives duplicated keys can be unpredictable.
105
+ """
106
+
107
+ def __init__(self, *, values: collections.abc.Iterable[global___KeyValue] | None=...) -> None:
108
+ ...
109
+
110
+ def ClearField(self, field_name: typing.Literal['values', b'values']) -> None:
111
+ ...
112
+ global___KeyValueList = KeyValueList
113
+
114
+ @typing.final
115
+ class KeyValue(google.protobuf.message.Message):
116
+ """Represents a key-value pair that is used to store Span attributes, Link
117
+ attributes, etc.
118
+ """
119
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
120
+ KEY_FIELD_NUMBER: builtins.int
121
+ VALUE_FIELD_NUMBER: builtins.int
122
+ key: builtins.str
123
+ 'The key name of the pair.'
124
+
125
+ @property
126
+ def value(self) -> global___AnyValue:
127
+ """The value of the pair."""
128
+
129
+ def __init__(self, *, key: builtins.str=..., value: global___AnyValue | None=...) -> None:
130
+ ...
131
+
132
+ def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool:
133
+ ...
134
+
135
+ def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
136
+ ...
137
+ global___KeyValue = KeyValue
138
+
139
+ @typing.final
140
+ class InstrumentationScope(google.protobuf.message.Message):
141
+ """InstrumentationScope is a message representing the instrumentation scope information
142
+ such as the fully qualified name and version.
143
+ """
144
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
145
+ NAME_FIELD_NUMBER: builtins.int
146
+ VERSION_FIELD_NUMBER: builtins.int
147
+ ATTRIBUTES_FIELD_NUMBER: builtins.int
148
+ DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER: builtins.int
149
+ name: builtins.str
150
+ 'A name denoting the Instrumentation scope.\n An empty instrumentation scope name means the name is unknown.\n '
151
+ version: builtins.str
152
+ 'Defines the version of the instrumentation scope.\n An empty instrumentation scope version means the version is unknown.\n '
153
+ dropped_attributes_count: builtins.int
154
+ 'The number of attributes that were discarded. Attributes\n can be discarded because their keys are too long or because there are too many\n attributes. If this value is 0, then no attributes were dropped.\n '
155
+
156
+ @property
157
+ def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___KeyValue]:
158
+ """Additional attributes that describe the scope. [Optional].
159
+ Attribute keys MUST be unique (it is not allowed to have more than one
160
+ attribute with the same key).
161
+ The behavior of software that receives duplicated keys can be unpredictable.
162
+ """
163
+
164
+ def __init__(self, *, name: builtins.str=..., version: builtins.str=..., attributes: collections.abc.Iterable[global___KeyValue] | None=..., dropped_attributes_count: builtins.int=...) -> None:
165
+ ...
166
+
167
+ def ClearField(self, field_name: typing.Literal['attributes', b'attributes', 'dropped_attributes_count', b'dropped_attributes_count', 'name', b'name', 'version', b'version']) -> None:
168
+ ...
169
+ global___InstrumentationScope = InstrumentationScope
170
+
171
+ @typing.final
172
+ class EntityRef(google.protobuf.message.Message):
173
+ """A reference to an Entity.
174
+ Entity represents an object of interest associated with produced telemetry: e.g spans, metrics, profiles, or logs.
175
+
176
+ Status: [Development]
177
+ """
178
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
179
+ SCHEMA_URL_FIELD_NUMBER: builtins.int
180
+ TYPE_FIELD_NUMBER: builtins.int
181
+ ID_KEYS_FIELD_NUMBER: builtins.int
182
+ DESCRIPTION_KEYS_FIELD_NUMBER: builtins.int
183
+ schema_url: builtins.str
184
+ 'The Schema URL, if known. This is the identifier of the Schema that the entity data\n is recorded in. To learn more about Schema URL see\n https://opentelemetry.io/docs/specs/otel/schemas/#schema-url\n\n This schema_url applies to the data in this message and to the Resource attributes\n referenced by id_keys and description_keys.\n TODO: discuss if we are happy with this somewhat complicated definition of what\n the schema_url applies to.\n\n This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs.\n '
185
+ type: builtins.str
186
+ 'Defines the type of the entity. MUST not change during the lifetime of the entity.\n For example: "service" or "host". This field is required and MUST not be empty\n for valid entities.\n '
187
+
188
+ @property
189
+ def id_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
190
+ """Attribute Keys that identify the entity.
191
+ MUST not change during the lifetime of the entity. The Id must contain at least one attribute.
192
+ These keys MUST exist in the containing {message}.attributes.
193
+ """
194
+
195
+ @property
196
+ def description_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
197
+ """Descriptive (non-identifying) attribute keys of the entity.
198
+ MAY change over the lifetime of the entity. MAY be empty.
199
+ These attribute keys are not part of entity's identity.
200
+ These keys MUST exist in the containing {message}.attributes.
201
+ """
202
+
203
+ def __init__(self, *, schema_url: builtins.str=..., type: builtins.str=..., id_keys: collections.abc.Iterable[builtins.str] | None=..., description_keys: collections.abc.Iterable[builtins.str] | None=...) -> None:
204
+ ...
205
+
206
+ def ClearField(self, field_name: typing.Literal['description_keys', b'description_keys', 'id_keys', b'id_keys', 'schema_url', b'schema_url', 'type', b'type']) -> None:
207
+ ...
208
+ global___EntityRef = EntityRef
File without changes
File without changes
@@ -0,0 +1,18 @@
1
+ """Generated protocol buffer code."""
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import descriptor_pool as _descriptor_pool
4
+ from google.protobuf import runtime_version as _runtime_version
5
+ from google.protobuf import symbol_database as _symbol_database
6
+ from google.protobuf.internal import builder as _builder
7
+ _runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'opentelemetry/proto/resource/v1/resource.proto')
8
+ _sym_db = _symbol_database.Default()
9
+ from .....opentelemetry.proto.common.v1 import common_pb2 as opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2
10
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.opentelemetry/proto/resource/v1/resource.proto\x12\x1fopentelemetry.proto.resource.v1\x1a*opentelemetry/proto/common/v1/common.proto"\xd8\x01\n\x08Resource\x12G\n\nattributes\x18\x01 \x03(\x0b2\'.opentelemetry.proto.common.v1.KeyValueR\nattributes\x128\n\x18dropped_attributes_count\x18\x02 \x01(\rR\x16droppedAttributesCount\x12I\n\x0bentity_refs\x18\x03 \x03(\x0b2(.opentelemetry.proto.common.v1.EntityRefR\nentityRefsB\x83\x01\n"io.opentelemetry.proto.resource.v1B\rResourceProtoP\x01Z*go.opentelemetry.io/proto/otlp/resource/v1\xaa\x02\x1fOpenTelemetry.Proto.Resource.V1b\x06proto3')
11
+ _globals = globals()
12
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
13
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'opentelemetry.proto.resource.v1.resource_pb2', _globals)
14
+ if not _descriptor._USE_C_DESCRIPTORS:
15
+ _globals['DESCRIPTOR']._loaded_options = None
16
+ _globals['DESCRIPTOR']._serialized_options = b'\n"io.opentelemetry.proto.resource.v1B\rResourceProtoP\x01Z*go.opentelemetry.io/proto/otlp/resource/v1\xaa\x02\x1fOpenTelemetry.Proto.Resource.V1'
17
+ _globals['_RESOURCE']._serialized_start = 128
18
+ _globals['_RESOURCE']._serialized_end = 344
@@ -0,0 +1,59 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ Copyright 2019, OpenTelemetry Authors
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License.
8
+ You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ """
18
+ import builtins
19
+ import collections.abc
20
+ import google.protobuf.descriptor
21
+ import google.protobuf.internal.containers
22
+ import google.protobuf.message
23
+ from ..... import opentelemetry
24
+ import typing
25
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
+
27
+ @typing.final
28
+ class Resource(google.protobuf.message.Message):
29
+ """Resource information."""
30
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
31
+ ATTRIBUTES_FIELD_NUMBER: builtins.int
32
+ DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER: builtins.int
33
+ ENTITY_REFS_FIELD_NUMBER: builtins.int
34
+ dropped_attributes_count: builtins.int
35
+ 'The number of dropped attributes. If the value is 0, then\n no attributes were dropped.\n '
36
+
37
+ @property
38
+ def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.KeyValue]:
39
+ """Set of attributes that describe the resource.
40
+ Attribute keys MUST be unique (it is not allowed to have more than one
41
+ attribute with the same key).
42
+ The behavior of software that receives duplicated keys can be unpredictable.
43
+ """
44
+
45
+ @property
46
+ def entity_refs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.EntityRef]:
47
+ """Set of entities that participate in this Resource.
48
+
49
+ Note: keys in the references MUST exist in attributes of this message.
50
+
51
+ Status: [Development]
52
+ """
53
+
54
+ def __init__(self, *, attributes: collections.abc.Iterable[opentelemetry.proto.common.v1.common_pb2.KeyValue] | None=..., dropped_attributes_count: builtins.int=..., entity_refs: collections.abc.Iterable[opentelemetry.proto.common.v1.common_pb2.EntityRef] | None=...) -> None:
55
+ ...
56
+
57
+ def ClearField(self, field_name: typing.Literal['attributes', b'attributes', 'dropped_attributes_count', b'dropped_attributes_count', 'entity_refs', b'entity_refs']) -> None:
58
+ ...
59
+ global___Resource = Resource
File without changes
File without changes
File without changes
@@ -0,0 +1,37 @@
1
+ """Generated protocol buffer code."""
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import descriptor_pool as _descriptor_pool
4
+ from google.protobuf import runtime_version as _runtime_version
5
+ from google.protobuf import symbol_database as _symbol_database
6
+ from google.protobuf.internal import builder as _builder
7
+ _runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'opentelemetry/proto/trace/v1/trace.proto')
8
+ _sym_db = _symbol_database.Default()
9
+ from .....opentelemetry.proto.common.v1 import common_pb2 as opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2
10
+ from .....opentelemetry.proto.resource.v1 import resource_pb2 as opentelemetry_dot_proto_dot_resource_dot_v1_dot_resource__pb2
11
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(opentelemetry/proto/trace/v1/trace.proto\x12\x1copentelemetry.proto.trace.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto"`\n\nTracesData\x12R\n\x0eresource_spans\x18\x01 \x03(\x0b2+.opentelemetry.proto.trace.v1.ResourceSpansR\rresourceSpans"\xc8\x01\n\rResourceSpans\x12E\n\x08resource\x18\x01 \x01(\x0b2).opentelemetry.proto.resource.v1.ResourceR\x08resource\x12I\n\x0bscope_spans\x18\x02 \x03(\x0b2(.opentelemetry.proto.trace.v1.ScopeSpansR\nscopeSpans\x12\x1d\n\nschema_url\x18\x03 \x01(\tR\tschemaUrlJ\x06\x08\xe8\x07\x10\xe9\x07"\xb0\x01\n\nScopeSpans\x12I\n\x05scope\x18\x01 \x01(\x0b23.opentelemetry.proto.common.v1.InstrumentationScopeR\x05scope\x128\n\x05spans\x18\x02 \x03(\x0b2".opentelemetry.proto.trace.v1.SpanR\x05spans\x12\x1d\n\nschema_url\x18\x03 \x01(\tR\tschemaUrl"\xc8\n\n\x04Span\x12\x19\n\x08trace_id\x18\x01 \x01(\x0cR\x07traceId\x12\x17\n\x07span_id\x18\x02 \x01(\x0cR\x06spanId\x12\x1f\n\x0btrace_state\x18\x03 \x01(\tR\ntraceState\x12$\n\x0eparent_span_id\x18\x04 \x01(\x0cR\x0cparentSpanId\x12\x14\n\x05flags\x18\x10 \x01(\x07R\x05flags\x12\x12\n\x04name\x18\x05 \x01(\tR\x04name\x12?\n\x04kind\x18\x06 \x01(\x0e2+.opentelemetry.proto.trace.v1.Span.SpanKindR\x04kind\x12/\n\x14start_time_unix_nano\x18\x07 \x01(\x06R\x11startTimeUnixNano\x12+\n\x12end_time_unix_nano\x18\x08 \x01(\x06R\x0fendTimeUnixNano\x12G\n\nattributes\x18\t \x03(\x0b2\'.opentelemetry.proto.common.v1.KeyValueR\nattributes\x128\n\x18dropped_attributes_count\x18\n \x01(\rR\x16droppedAttributesCount\x12@\n\x06events\x18\x0b \x03(\x0b2(.opentelemetry.proto.trace.v1.Span.EventR\x06events\x120\n\x14dropped_events_count\x18\x0c \x01(\rR\x12droppedEventsCount\x12=\n\x05links\x18\r \x03(\x0b2\'.opentelemetry.proto.trace.v1.Span.LinkR\x05links\x12.\n\x13dropped_links_count\x18\x0e \x01(\rR\x11droppedLinksCount\x12<\n\x06status\x18\x0f \x01(\x0b2$.opentelemetry.proto.trace.v1.StatusR\x06status\x1a\xc4\x01\n\x05Event\x12$\n\x0etime_unix_nano\x18\x01 \x01(\x06R\x0ctimeUnixNano\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12G\n\nattributes\x18\x03 \x03(\x0b2\'.opentelemetry.proto.common.v1.KeyValueR\nattributes\x128\n\x18dropped_attributes_count\x18\x04 \x01(\rR\x16droppedAttributesCount\x1a\xf4\x01\n\x04Link\x12\x19\n\x08trace_id\x18\x01 \x01(\x0cR\x07traceId\x12\x17\n\x07span_id\x18\x02 \x01(\x0cR\x06spanId\x12\x1f\n\x0btrace_state\x18\x03 \x01(\tR\ntraceState\x12G\n\nattributes\x18\x04 \x03(\x0b2\'.opentelemetry.proto.common.v1.KeyValueR\nattributes\x128\n\x18dropped_attributes_count\x18\x05 \x01(\rR\x16droppedAttributesCount\x12\x14\n\x05flags\x18\x06 \x01(\x07R\x05flags"\x99\x01\n\x08SpanKind\x12\x19\n\x15SPAN_KIND_UNSPECIFIED\x10\x00\x12\x16\n\x12SPAN_KIND_INTERNAL\x10\x01\x12\x14\n\x10SPAN_KIND_SERVER\x10\x02\x12\x14\n\x10SPAN_KIND_CLIENT\x10\x03\x12\x16\n\x12SPAN_KIND_PRODUCER\x10\x04\x12\x16\n\x12SPAN_KIND_CONSUMER\x10\x05"\xbd\x01\n\x06Status\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12C\n\x04code\x18\x03 \x01(\x0e2/.opentelemetry.proto.trace.v1.Status.StatusCodeR\x04code"N\n\nStatusCode\x12\x15\n\x11STATUS_CODE_UNSET\x10\x00\x12\x12\n\x0eSTATUS_CODE_OK\x10\x01\x12\x15\n\x11STATUS_CODE_ERROR\x10\x02J\x04\x08\x01\x10\x02*\x9c\x01\n\tSpanFlags\x12\x19\n\x15SPAN_FLAGS_DO_NOT_USE\x10\x00\x12 \n\x1bSPAN_FLAGS_TRACE_FLAGS_MASK\x10\xff\x01\x12*\n%SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK\x10\x80\x02\x12&\n!SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK\x10\x80\x04Bw\n\x1fio.opentelemetry.proto.trace.v1B\nTraceProtoP\x01Z\'go.opentelemetry.io/proto/otlp/trace/v1\xaa\x02\x1cOpenTelemetry.Proto.Trace.V1b\x06proto3')
12
+ _globals = globals()
13
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
14
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'opentelemetry.proto.trace.v1.trace_pb2', _globals)
15
+ if not _descriptor._USE_C_DESCRIPTORS:
16
+ _globals['DESCRIPTOR']._loaded_options = None
17
+ _globals['DESCRIPTOR']._serialized_options = b"\n\x1fio.opentelemetry.proto.trace.v1B\nTraceProtoP\x01Z'go.opentelemetry.io/proto/otlp/trace/v1\xaa\x02\x1cOpenTelemetry.Proto.Trace.V1"
18
+ _globals['_SPANFLAGS']._serialized_start = 2194
19
+ _globals['_SPANFLAGS']._serialized_end = 2350
20
+ _globals['_TRACESDATA']._serialized_start = 166
21
+ _globals['_TRACESDATA']._serialized_end = 262
22
+ _globals['_RESOURCESPANS']._serialized_start = 265
23
+ _globals['_RESOURCESPANS']._serialized_end = 465
24
+ _globals['_SCOPESPANS']._serialized_start = 468
25
+ _globals['_SCOPESPANS']._serialized_end = 644
26
+ _globals['_SPAN']._serialized_start = 647
27
+ _globals['_SPAN']._serialized_end = 1999
28
+ _globals['_SPAN_EVENT']._serialized_start = 1400
29
+ _globals['_SPAN_EVENT']._serialized_end = 1596
30
+ _globals['_SPAN_LINK']._serialized_start = 1599
31
+ _globals['_SPAN_LINK']._serialized_end = 1843
32
+ _globals['_SPAN_SPANKIND']._serialized_start = 1846
33
+ _globals['_SPAN_SPANKIND']._serialized_end = 1999
34
+ _globals['_STATUS']._serialized_start = 2002
35
+ _globals['_STATUS']._serialized_end = 2191
36
+ _globals['_STATUS_STATUSCODE']._serialized_start = 2107
37
+ _globals['_STATUS_STATUSCODE']._serialized_end = 2185