gimlet-api 0.0.6__py3-none-any.whl → 0.0.8__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.
- {gimlet_api-0.0.6.dist-info → gimlet_api-0.0.8.dist-info}/METADATA +3 -2
- {gimlet_api-0.0.6.dist-info → gimlet_api-0.0.8.dist-info}/RECORD +20 -16
- gml/asset_manager.py +75 -0
- gml/client.py +7 -6
- gml/compile.py +148 -84
- gml/device.py +15 -16
- gml/hf.py +299 -34
- gml/model.py +28 -12
- gml/pipelines.py +120 -40
- gml/preprocessing.py +2 -1
- gml/proto/src/api/corepb/v1/controlplane_pb2.py +37 -18
- gml/proto/src/api/corepb/v1/cp_edge_pb2.py +67 -77
- gml/proto/src/api/corepb/v1/device_info_pb2.py +51 -0
- gml/proto/src/api/corepb/v1/gem_config_pb2.py +45 -0
- gml/proto/src/api/corepb/v1/mediastream_pb2.py +23 -19
- gml/proto/src/api/corepb/v1/model_exec_pb2.py +127 -112
- gml/proto/src/controlplane/compiler/cpb/v1/cpb_pb2.py +7 -11
- gml/register_submodules.py +134 -0
- gml/tensor.py +2 -1
- {gimlet_api-0.0.6.dist-info → gimlet_api-0.0.8.dist-info}/WHEEL +0 -0
gml/pipelines.py
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
# SPDX-License-Identifier: Apache-2.0
|
16
16
|
|
17
17
|
import abc
|
18
|
-
from typing import List
|
18
|
+
from typing import List, Optional
|
19
19
|
|
20
20
|
import gml.proto.src.api.corepb.v1.model_exec_pb2 as modelexecpb
|
21
21
|
from gml.model import Model
|
@@ -41,12 +41,44 @@ class SingleModelPipeline(Pipeline):
|
|
41
41
|
|
42
42
|
|
43
43
|
class SimpleDetectionPipeline(SingleModelPipeline):
|
44
|
-
def __init__(
|
45
|
-
self
|
44
|
+
def __init__(
|
45
|
+
self,
|
46
|
+
track_objects: Optional[bool] = None,
|
47
|
+
add_tracking_id: Optional[bool] = None,
|
48
|
+
):
|
49
|
+
self.track_objects = False
|
50
|
+
if add_tracking_id is not None:
|
51
|
+
import warnings
|
52
|
+
|
53
|
+
warnings.warn(
|
54
|
+
"The 'add_tracking_id' parameter is deprecated and will be removed in a future version.",
|
55
|
+
DeprecationWarning,
|
56
|
+
stacklevel=2,
|
57
|
+
)
|
58
|
+
self.track_objects = add_tracking_id
|
59
|
+
|
60
|
+
if track_objects is not None:
|
61
|
+
self.track_objects = track_objects
|
62
|
+
|
63
|
+
if track_objects is not None and add_tracking_id is not None:
|
64
|
+
raise ValueError(
|
65
|
+
"'track_objects' and 'add_tracking_id' cannot be set simultaneously."
|
66
|
+
)
|
46
67
|
|
47
68
|
def _to_yaml(self, model_name: str, org_name: str):
|
48
|
-
add_tracking_id = "true" if self.add_tracking_id else "false"
|
49
69
|
# editorconfig-checker-disable
|
70
|
+
video_stream_detections = ".detect.detections"
|
71
|
+
track_node = ""
|
72
|
+
if self.track_objects:
|
73
|
+
track_node = """
|
74
|
+
- name: track
|
75
|
+
kind: Track
|
76
|
+
inputs:
|
77
|
+
detections: .detect.detections
|
78
|
+
outputs:
|
79
|
+
- tracked_detections
|
80
|
+
"""
|
81
|
+
video_stream_detections = ".track.tracked_detections"
|
50
82
|
return f"""---
|
51
83
|
nodes:
|
52
84
|
- name: camera_source
|
@@ -56,7 +88,6 @@ nodes:
|
|
56
88
|
- name: detect
|
57
89
|
kind: Detect
|
58
90
|
attributes:
|
59
|
-
add_tracking_id: {add_tracking_id}
|
60
91
|
model:
|
61
92
|
model:
|
62
93
|
name: {model_name}
|
@@ -66,35 +97,14 @@ nodes:
|
|
66
97
|
frame: .camera_source.frame
|
67
98
|
outputs:
|
68
99
|
- detections
|
69
|
-
|
70
|
-
kind: FrameMetricsSink
|
71
|
-
attributes:
|
72
|
-
frame_rate_limit: 30
|
73
|
-
inputs:
|
74
|
-
frame: .camera_source.frame
|
75
|
-
outputs:
|
76
|
-
- frame_metrics
|
77
|
-
- name: detection_metrics_sink
|
78
|
-
kind: DetectionsMetricsSink
|
79
|
-
attributes:
|
80
|
-
inputs:
|
81
|
-
detections: .detect.detections
|
82
|
-
- name: pipeline_latency_metrics_sink
|
83
|
-
kind: LatencyMetricsSink
|
84
|
-
attributes:
|
85
|
-
name: model
|
86
|
-
inputs:
|
87
|
-
reference: .camera_source.frame
|
88
|
-
detections: .detect.detections
|
89
|
-
frame_metrics: .frame_metrics_sink.frame_metrics
|
100
|
+
{track_node}
|
90
101
|
- name: video_stream_sink
|
91
102
|
kind: VideoStreamSink
|
92
103
|
attributes:
|
93
104
|
frame_rate_limit: 30
|
94
105
|
inputs:
|
95
106
|
frame: .camera_source.frame
|
96
|
-
detections:
|
97
|
-
frame_metrics: .frame_metrics_sink.frame_metrics
|
107
|
+
detections: {video_stream_detections}
|
98
108
|
"""
|
99
109
|
|
100
110
|
|
@@ -122,30 +132,43 @@ nodes:
|
|
122
132
|
frame: .camera_source.frame
|
123
133
|
outputs:
|
124
134
|
- segmentation
|
125
|
-
- name:
|
126
|
-
kind:
|
135
|
+
- name: video_stream_sink
|
136
|
+
kind: VideoStreamSink
|
127
137
|
attributes:
|
128
138
|
frame_rate_limit: 30
|
129
139
|
inputs:
|
130
140
|
frame: .camera_source.frame
|
141
|
+
segmentation: .segment.segmentation
|
142
|
+
"""
|
143
|
+
|
144
|
+
|
145
|
+
class SimpleDepthEstimationPipeline(SingleModelPipeline):
|
146
|
+
def _to_yaml(self, model_name: str, org_name: str):
|
147
|
+
# editorconfig-checker-disable
|
148
|
+
return f"""---
|
149
|
+
nodes:
|
150
|
+
- name: camera_source
|
151
|
+
kind: CameraSource
|
131
152
|
outputs:
|
132
|
-
-
|
133
|
-
- name:
|
134
|
-
kind:
|
153
|
+
- frame
|
154
|
+
- name: estimate_depth
|
155
|
+
kind: EstimateDepth
|
135
156
|
attributes:
|
136
|
-
|
157
|
+
model:
|
158
|
+
model:
|
159
|
+
name: {model_name}
|
160
|
+
org: {org_name}
|
161
|
+
frame_rate_limit: 30
|
137
162
|
inputs:
|
138
|
-
|
139
|
-
|
140
|
-
|
163
|
+
frame: .camera_source.frame
|
164
|
+
outputs:
|
165
|
+
- depth
|
141
166
|
- name: video_stream_sink
|
142
167
|
kind: VideoStreamSink
|
143
168
|
attributes:
|
144
169
|
frame_rate_limit: 30
|
145
170
|
inputs:
|
146
|
-
frame: .
|
147
|
-
frame_metrics: .frame_metrics_sink.frame_metrics
|
148
|
-
segmentation: .segment.segmentation
|
171
|
+
frame: .estimate_depth.depth
|
149
172
|
"""
|
150
173
|
|
151
174
|
|
@@ -212,4 +235,61 @@ nodes:
|
|
212
235
|
"""
|
213
236
|
|
214
237
|
|
238
|
+
class ZeroShotObjectDetectionPipeline(Pipeline):
|
239
|
+
def __init__(self, conf_threshold=0.1):
|
240
|
+
self.conf_threshold = conf_threshold
|
241
|
+
|
242
|
+
def to_yaml(self, models: List[Model], org_name: str) -> str:
|
243
|
+
if len(models) != 2:
|
244
|
+
raise ValueError(
|
245
|
+
"ZeroShotObjectDetectionPipeline expects two models (a detection model and a tokenizer)"
|
246
|
+
)
|
247
|
+
tokenizer = None
|
248
|
+
detect = None
|
249
|
+
for m in models:
|
250
|
+
if m.storage_format == modelexecpb.ModelInfo.MODEL_STORAGE_FORMAT_OPAQUE:
|
251
|
+
tokenizer = m
|
252
|
+
else:
|
253
|
+
detect = m
|
254
|
+
if tokenizer is None or detect is None:
|
255
|
+
raise ValueError(
|
256
|
+
"ZeroShotObjectDetectionPipeline expects both a tokenizer model and a detection model)"
|
257
|
+
)
|
258
|
+
return f"""---
|
259
|
+
nodes:
|
260
|
+
- name: camera_source
|
261
|
+
kind: CameraSource
|
262
|
+
outputs:
|
263
|
+
- frame
|
264
|
+
- name: text_source
|
265
|
+
kind: TextStreamSource
|
266
|
+
outputs:
|
267
|
+
- prompt
|
268
|
+
- name: detect
|
269
|
+
kind: Detect
|
270
|
+
attributes:
|
271
|
+
model:
|
272
|
+
model:
|
273
|
+
name: {detect.name}
|
274
|
+
org: {org_name}
|
275
|
+
tokenizer:
|
276
|
+
model:
|
277
|
+
name: {tokenizer.name}
|
278
|
+
org: {org_name}
|
279
|
+
conf_threshold: {self.conf_threshold}
|
280
|
+
inputs:
|
281
|
+
frame: .camera_source.frame
|
282
|
+
prompt: .text_source.prompt
|
283
|
+
outputs:
|
284
|
+
- detections
|
285
|
+
- name: video_stream_sink
|
286
|
+
kind: VideoStreamSink
|
287
|
+
attributes:
|
288
|
+
frame_rate_limit: 30
|
289
|
+
inputs:
|
290
|
+
frame: .camera_source.frame
|
291
|
+
detections: .detect.detections
|
292
|
+
"""
|
293
|
+
|
294
|
+
|
215
295
|
# editorconfig-checker-enable
|
gml/preprocessing.py
CHANGED
@@ -17,9 +17,10 @@
|
|
17
17
|
import abc
|
18
18
|
from typing import List
|
19
19
|
|
20
|
-
import gml.proto.src.api.corepb.v1.model_exec_pb2 as modelexecpb
|
21
20
|
import google.protobuf.wrappers_pb2 as wrapperspb
|
22
21
|
|
22
|
+
import gml.proto.src.api.corepb.v1.model_exec_pb2 as modelexecpb
|
23
|
+
|
23
24
|
|
24
25
|
class ImagePreprocessingStep(abc.ABC):
|
25
26
|
@abc.abstractmethod
|
@@ -12,12 +12,15 @@ _sym_db = _symbol_database.Default()
|
|
12
12
|
|
13
13
|
|
14
14
|
from gml.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
|
15
|
-
from gml.proto.src.common.typespb import uuid_pb2 as src_dot_common_dot_typespb_dot_uuid__pb2
|
16
15
|
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
17
16
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
17
|
+
from gml.proto.src.api.corepb.v1 import cp_edge_pb2 as src_dot_api_dot_corepb_dot_v1_dot_cp__edge__pb2
|
18
|
+
from gml.proto.src.common.typespb import uuid_pb2 as src_dot_common_dot_typespb_dot_uuid__pb2
|
19
|
+
from gml.proto.src.common.typespb import status_pb2 as src_dot_common_dot_typespb_dot_status__pb2
|
20
|
+
from gml.proto.src.api.corepb.v1 import model_exec_pb2 as src_dot_api_dot_corepb_dot_v1_dot_model__exec__pb2
|
18
21
|
|
19
22
|
|
20
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$src/api/corepb/v1/controlplane.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\x1a\x1dsrc/common/typespb/uuid.proto\x1a\
|
23
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$src/api/corepb/v1/controlplane.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1fsrc/api/corepb/v1/cp_edge.proto\x1a\x1dsrc/common/typespb/uuid.proto\x1a\x1fsrc/common/typespb/status.proto\x1a\"src/api/corepb/v1/model_exec.proto\"\xc4\x01\n\nCPMetadata\x12\x37\n\x05topic\x18\x01 \x01(\x0e\x32!.gml.internal.api.core.v1.CPTopicR\x05topic\x12:\n\tentity_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x45ntityIDR\x08\x65ntityId\x12\x41\n\x0erecv_timestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\rrecvTimestamp\"v\n\tCPMessage\x12@\n\x08metadata\x18\x01 \x01(\x0b\x32$.gml.internal.api.core.v1.CPMetadataR\x08metadata\x12\'\n\x03msg\x18\xe8\x07 \x01(\x0b\x32\x14.google.protobuf.AnyR\x03msg\"M\n\x0f\x44\x65viceConnected\x12:\n\tdevice_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\"J\n\x0c\x44\x65viceUpdate\x12:\n\tdevice_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\"P\n\x12\x44\x65viceDisconnected\x12:\n\tdevice_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\"\xd8\x01\n\x1ePhysicalPipelineReconciliation\x12:\n\tdevice_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\x12Y\n\x14physical_pipeline_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x1f\n\x0b\x66orce_apply\x18\x03 \x01(\x08R\nforceApply\"\xbc\x01\n PipelineDeploymentReconciliation\x12_\n\x16pipeline_deployment_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x18\xe2\xde\x1f\x14PipelineDeploymentIDR\x14pipelineDeploymentId\x12\x37\n\x08\x66leet_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0b\xe2\xde\x1f\x07\x46leetIDR\x07\x66leetId\"U\n\x17\x42\x61seConfigUpdateRequest\x12:\n\tdevice_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\"\xf0\x02\n\x1bPipelineCompilationMetadata\x12\x8c\x01\n\x1aphysical_pipeline_metadata\x18\x01 \x01(\x0b\x32N.gml.internal.api.core.v1.PipelineCompilationMetadata.PhysicalPipelineMetadataR\x18physicalPipelineMetadata\x1a\xc1\x01\n\x18PhysicalPipelineMetadata\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x18\n\x07version\x18\x02 \x01(\x03R\x07version\x12\x30\n\x14\x64\x65vice_resource_hash\x18\x03 \x01(\tR\x12\x64\x65viceResourceHash\"\xb5\x03\n\x1aPipelineCompilationRequest\x12Q\n\x08metadata\x18\x01 \x01(\x0b\x32\x35.gml.internal.api.core.v1.PipelineCompilationMetadataR\x08metadata\x12V\n\x13logical_pipeline_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x15\xe2\xde\x1f\x11LogicalPipelineIDR\x11logicalPipelineId\x12T\n\x10logical_pipeline\x18\x03 \x01(\x0b\x32).gml.internal.api.core.v1.LogicalPipelineR\x0flogicalPipeline\x12]\n\x13\x64\x65vice_capabilities\x18\x04 \x01(\x0b\x32,.gml.internal.api.core.v1.DeviceCapabilitiesR\x12\x64\x65viceCapabilities\x12\x37\n\x06models\x18\x05 \x03(\x0b\x32\x1f.gml.internal.api.core.v1.ModelR\x06models\"\xe1\x01\n\x1bPipelineCompilationResponse\x12Q\n\x08metadata\x18\x01 \x01(\x0b\x32\x35.gml.internal.api.core.v1.PipelineCompilationMetadataR\x08metadata\x12\x44\n\texec_spec\x18\x02 \x01(\x0b\x32\'.gml.internal.api.core.v1.ExecutionSpecR\x08\x65xecSpec\x12)\n\x06status\x18\x03 \x01(\x0b\x32\x11.gml.types.StatusR\x06status*\xcf\x02\n\x07\x43PTopic\x12\x14\n\x10\x43P_TOPIC_UNKNOWN\x10\x00\x12\x1d\n\x19\x43P_TOPIC_DEVICE_CONNECTED\x10\x01\x12-\n)CP_TOPIC_PHYSICAL_PIPELINE_RECONCILIATION\x10\x02\x12 \n\x1c\x43P_TOPIC_DEVICE_DISCONNECTED\x10\x03\x12/\n+CP_TOPIC_PIPELINE_DEPLOYMENT_RECONCILIATION\x10\x04\x12\x1a\n\x16\x43P_TOPIC_DEVICE_UPDATE\x10\x05\x12\x1a\n\x16\x43P_TOPIC_DEVICE_CONFIG\x10\x06\x12)\n%CP_TOPIC_PIPELINE_COMPILATION_REQUEST\x10\x07\x12*\n&CP_TOPIC_PIPELINE_COMPILATION_RESPONSE\x10\x08\x42/Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepbb\x06proto3')
|
21
24
|
|
22
25
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
23
26
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'src.api.corepb.v1.controlplane_pb2', globals())
|
@@ -41,20 +44,36 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
41
44
|
_PIPELINEDEPLOYMENTRECONCILIATION.fields_by_name['pipeline_deployment_id']._serialized_options = b'\342\336\037\024PipelineDeploymentID'
|
42
45
|
_PIPELINEDEPLOYMENTRECONCILIATION.fields_by_name['fleet_id']._options = None
|
43
46
|
_PIPELINEDEPLOYMENTRECONCILIATION.fields_by_name['fleet_id']._serialized_options = b'\342\336\037\007FleetID'
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
47
|
+
_BASECONFIGUPDATEREQUEST.fields_by_name['device_id']._options = None
|
48
|
+
_BASECONFIGUPDATEREQUEST.fields_by_name['device_id']._serialized_options = b'\342\336\037\010DeviceID'
|
49
|
+
_PIPELINECOMPILATIONMETADATA_PHYSICALPIPELINEMETADATA.fields_by_name['physical_pipeline_id']._options = None
|
50
|
+
_PIPELINECOMPILATIONMETADATA_PHYSICALPIPELINEMETADATA.fields_by_name['physical_pipeline_id']._serialized_options = b'\342\336\037\022PhysicalPipelineID'
|
51
|
+
_PIPELINECOMPILATIONREQUEST.fields_by_name['logical_pipeline_id']._options = None
|
52
|
+
_PIPELINECOMPILATIONREQUEST.fields_by_name['logical_pipeline_id']._serialized_options = b'\342\336\037\021LogicalPipelineID'
|
53
|
+
_CPTOPIC._serialized_start=2374
|
54
|
+
_CPTOPIC._serialized_end=2709
|
55
|
+
_CPMETADATA._serialized_start=282
|
56
|
+
_CPMETADATA._serialized_end=478
|
57
|
+
_CPMESSAGE._serialized_start=480
|
58
|
+
_CPMESSAGE._serialized_end=598
|
59
|
+
_DEVICECONNECTED._serialized_start=600
|
60
|
+
_DEVICECONNECTED._serialized_end=677
|
61
|
+
_DEVICEUPDATE._serialized_start=679
|
62
|
+
_DEVICEUPDATE._serialized_end=753
|
63
|
+
_DEVICEDISCONNECTED._serialized_start=755
|
64
|
+
_DEVICEDISCONNECTED._serialized_end=835
|
65
|
+
_PHYSICALPIPELINERECONCILIATION._serialized_start=838
|
66
|
+
_PHYSICALPIPELINERECONCILIATION._serialized_end=1054
|
67
|
+
_PIPELINEDEPLOYMENTRECONCILIATION._serialized_start=1057
|
68
|
+
_PIPELINEDEPLOYMENTRECONCILIATION._serialized_end=1245
|
69
|
+
_BASECONFIGUPDATEREQUEST._serialized_start=1247
|
70
|
+
_BASECONFIGUPDATEREQUEST._serialized_end=1332
|
71
|
+
_PIPELINECOMPILATIONMETADATA._serialized_start=1335
|
72
|
+
_PIPELINECOMPILATIONMETADATA._serialized_end=1703
|
73
|
+
_PIPELINECOMPILATIONMETADATA_PHYSICALPIPELINEMETADATA._serialized_start=1510
|
74
|
+
_PIPELINECOMPILATIONMETADATA_PHYSICALPIPELINEMETADATA._serialized_end=1703
|
75
|
+
_PIPELINECOMPILATIONREQUEST._serialized_start=1706
|
76
|
+
_PIPELINECOMPILATIONREQUEST._serialized_end=2143
|
77
|
+
_PIPELINECOMPILATIONRESPONSE._serialized_start=2146
|
78
|
+
_PIPELINECOMPILATIONRESPONSE._serialized_end=2371
|
60
79
|
# @@protoc_insertion_point(module_scope)
|
@@ -17,10 +17,12 @@ from gml.proto.src.common.typespb import status_pb2 as src_dot_common_dot_typesp
|
|
17
17
|
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
18
18
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
19
19
|
from gml.proto.opentelemetry.proto.metrics.v1 import metrics_pb2 as opentelemetry_dot_proto_dot_metrics_dot_v1_dot_metrics__pb2
|
20
|
+
from gml.proto.src.api.corepb.v1 import device_info_pb2 as src_dot_api_dot_corepb_dot_v1_dot_device__info__pb2
|
20
21
|
from gml.proto.src.api.corepb.v1 import model_exec_pb2 as src_dot_api_dot_corepb_dot_v1_dot_model__exec__pb2
|
22
|
+
from gml.proto.src.api.corepb.v1 import gem_config_pb2 as src_dot_api_dot_corepb_dot_v1_dot_gem__config__pb2
|
21
23
|
|
22
24
|
|
23
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fsrc/api/corepb/v1/cp_edge.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\x1a\x1dsrc/common/typespb/uuid.proto\x1a\x1fsrc/common/typespb/status.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a,opentelemetry/proto/metrics/v1/metrics.proto\x1a\"src/api/corepb/v1/model_exec.proto\"1\n\rEdgeHeartbeat\x12 \n\x06seq_id\x18\x01 \x01(\x03\x42\t\xe2\xde\x1f\x05SeqIDR\x05seqId\"4\n\x10\x45\x64geHeartbeatAck\x12 \n\x06seq_id\x18\x01 \x01(\x03\x42\t\xe2\xde\x1f\x05SeqIDR\x05seqId\"\xbb\x01\n\x1aPhysicalPipelineSpecUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x42\n\x04spec\x18\x02 \x01(\x0b\x32..gml.internal.api.core.v1.PhysicalPipelineSpecR\x04spec\"\xdd\x01\n\x1cPhysicalPipelineStatusUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x18\n\x07version\x18\x02 \x01(\x03R\x07version\x12H\n\x06status\x18\x03 \x01(\x0b\x32\x30.gml.internal.api.core.v1.PhysicalPipelineStatusR\x06status\"\x0c\n\nCPRunModel\"\x0f\n\rCPRunModelAck\"\xb2\x01\n\x12\x45xecutionGraphSpec\x12=\n\x05graph\x18\x01 \x01(\x0b\x32\'.gml.internal.api.core.v1.ExecutionSpecR\x05graph\x12\x43\n\x05state\x18\x02 \x01(\x0e\x32-.gml.internal.api.core.v1.ExecutionGraphStateR\x05state\x12\x18\n\x07version\x18\x03 \x01(\x03R\x07version\"\x8d\x01\n\x14\x45xecutionGraphStatus\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32-.gml.internal.api.core.v1.ExecutionGraphStateR\x05state\x12\x16\n\x06reason\x18\x02 \x01(\tR\x06reason\x12\x18\n\x07version\x18\x03 \x01(\x03R\x07version\"\x8a\x02\n\x13\x41pplyExecutionGraph\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12V\n\x13logical_pipeline_id\x18\x03 \x01(\x0b\x32\x0f.gml.types.UUIDB\x15\xe2\xde\x1f\x11LogicalPipelineIDR\x11logicalPipelineId\x12@\n\x04spec\x18\x02 \x01(\x0b\x32,.gml.internal.api.core.v1.ExecutionGraphSpecR\x04spec\"q\n\x14\x44\x65leteExecutionGraph\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\"\xbf\x01\n\x1a\x45xecutionGraphStatusUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x46\n\x06status\x18\x02 \x01(\x0b\x32..gml.internal.api.core.v1.ExecutionGraphStatusR\x06status\"\x12\n\
|
25
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fsrc/api/corepb/v1/cp_edge.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\x1a\x1dsrc/common/typespb/uuid.proto\x1a\x1fsrc/common/typespb/status.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a,opentelemetry/proto/metrics/v1/metrics.proto\x1a#src/api/corepb/v1/device_info.proto\x1a\"src/api/corepb/v1/model_exec.proto\x1a\"src/api/corepb/v1/gem_config.proto\"1\n\rEdgeHeartbeat\x12 \n\x06seq_id\x18\x01 \x01(\x03\x42\t\xe2\xde\x1f\x05SeqIDR\x05seqId\"4\n\x10\x45\x64geHeartbeatAck\x12 \n\x06seq_id\x18\x01 \x01(\x03\x42\t\xe2\xde\x1f\x05SeqIDR\x05seqId\"\xbb\x01\n\x1aPhysicalPipelineSpecUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x42\n\x04spec\x18\x02 \x01(\x0b\x32..gml.internal.api.core.v1.PhysicalPipelineSpecR\x04spec\"\xdd\x01\n\x1cPhysicalPipelineStatusUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x18\n\x07version\x18\x02 \x01(\x03R\x07version\x12H\n\x06status\x18\x03 \x01(\x0b\x32\x30.gml.internal.api.core.v1.PhysicalPipelineStatusR\x06status\"\x0c\n\nCPRunModel\"\x0f\n\rCPRunModelAck\"\xb2\x01\n\x12\x45xecutionGraphSpec\x12=\n\x05graph\x18\x01 \x01(\x0b\x32\'.gml.internal.api.core.v1.ExecutionSpecR\x05graph\x12\x43\n\x05state\x18\x02 \x01(\x0e\x32-.gml.internal.api.core.v1.ExecutionGraphStateR\x05state\x12\x18\n\x07version\x18\x03 \x01(\x03R\x07version\"\x8d\x01\n\x14\x45xecutionGraphStatus\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32-.gml.internal.api.core.v1.ExecutionGraphStateR\x05state\x12\x16\n\x06reason\x18\x02 \x01(\tR\x06reason\x12\x18\n\x07version\x18\x03 \x01(\x03R\x07version\"\x8a\x02\n\x13\x41pplyExecutionGraph\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12V\n\x13logical_pipeline_id\x18\x03 \x01(\x0b\x32\x0f.gml.types.UUIDB\x15\xe2\xde\x1f\x11LogicalPipelineIDR\x11logicalPipelineId\x12@\n\x04spec\x18\x02 \x01(\x0b\x32,.gml.internal.api.core.v1.ExecutionGraphSpecR\x04spec\"q\n\x14\x44\x65leteExecutionGraph\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\"\xbf\x01\n\x1a\x45xecutionGraphStatusUpdate\x12Y\n\x14physical_pipeline_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x16\xe2\xde\x1f\x12PhysicalPipelineIDR\x12physicalPipelineId\x12\x46\n\x06status\x18\x02 \x01(\x0b\x32..gml.internal.api.core.v1.ExecutionGraphStatusR\x06status\"\x12\n\x10MediaStreamStart\"\x11\n\x0fMediaStreamStop\"\x16\n\x14MediaStreamKeepAlive\"q\n\x12MediaStreamControl\x12[\n\x13text_stream_control\x18\x01 \x01(\x0b\x32+.gml.internal.api.core.v1.TextStreamControlR\x11textStreamControl\"+\n\x11TextStreamControl\x12\x16\n\x06prompt\x18\x01 \x01(\tR\x06prompt\"\x7f\n\x18\x45\x64geCPMediaStreamMessage\x12:\n\tstream_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08StreamIDR\x08streamId\x12\'\n\x03msg\x18\xe8\x07 \x01(\x0b\x32\x14.google.protobuf.AnyR\x03msg\"\x7f\n\x18\x43PEdgeMediaStreamMessage\x12:\n\tstream_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08StreamIDR\x08streamId\x12\'\n\x03msg\x18\xe8\x07 \x01(\x0b\x32\x14.google.protobuf.AnyR\x03msg\"m\n\x0f\x45\x64geOTelMetrics\x12Z\n\x10resource_metrics\x18\x01 \x01(\x0b\x32/.opentelemetry.proto.metrics.v1.ResourceMetricsR\x0fresourceMetrics\"\x94\x01\n\x13\x46ileTransferRequest\x12\x34\n\x07\x66ile_id\x18\x01 \x01(\x0b\x32\x0f.gml.types.UUIDB\n\xe2\xde\x1f\x06\x46ileIDR\x06\x66ileId\x12*\n\x11\x63hunk_start_bytes\x18\x02 \x01(\x03R\x0f\x63hunkStartBytes\x12\x1b\n\tnum_bytes\x18\x03 \x01(\x03R\x08numBytes\"\x8f\x02\n\x14\x46ileTransferResponse\x12)\n\x06status\x18\x01 \x01(\x0b\x32\x11.gml.types.StatusR\x06status\x12N\n\x05\x63hunk\x18\x02 \x01(\x0b\x32\x38.gml.internal.api.core.v1.FileTransferResponse.FileChunkR\x05\x63hunk\x12\x34\n\x07\x66ile_id\x18\x03 \x01(\x0b\x32\x0f.gml.types.UUIDB\n\xe2\xde\x1f\x06\x46ileIDR\x06\x66ileId\x1a\x46\n\tFileChunk\x12\x1f\n\x0bstart_bytes\x18\x01 \x01(\x03R\nstartBytes\x12\x18\n\x07payload\x18\x02 \x01(\x0cR\x07payload\"\xfa\x01\n\x12\x44\x65viceCapabilities\x12Q\n\x0emodel_runtimes\x18\x01 \x03(\x0b\x32*.gml.internal.api.core.v1.ModelRuntimeInfoR\rmodelRuntimes\x12>\n\x07\x63\x61meras\x18\x02 \x03(\x0b\x32$.gml.internal.api.core.v1.CameraInfoR\x07\x63\x61meras\x12Q\n\x0e\x63\x61mera_drivers\x18\x03 \x03(\x0b\x32*.gml.internal.api.core.v1.CameraDriverInfoR\rcameraDrivers\"\x89\x01\n\x17\x44\x65viceConfigStateUpdate\x12>\n\x05state\x18\x01 \x01(\x0b\x32(.gml.internal.api.core.v1.GEMConfigStateR\x05state\x12.\n\x13\x62\x61se_config_version\x18\x02 \x01(\x03R\x11\x62\x61seConfigVersion\"o\n\x16\x44\x65viceBaseConfigUpdate\x12;\n\x06\x63onfig\x18\x01 \x01(\x0b\x32#.gml.internal.api.core.v1.GEMConfigR\x06\x63onfig\x12\x18\n\x07version\x18\x02 \x01(\x03R\x07version\"\xcc\x01\n\x0e\x45\x64geCPMetadata\x12;\n\x05topic\x18\x01 \x01(\x0e\x32%.gml.internal.api.core.v1.EdgeCPTopicR\x05topic\x12:\n\tdevice_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\x12\x41\n\x0erecv_timestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\rrecvTimestamp\"~\n\rEdgeCPMessage\x12\x44\n\x08metadata\x18\x01 \x01(\x0b\x32(.gml.internal.api.core.v1.EdgeCPMetadataR\x08metadata\x12\'\n\x03msg\x18\xe8\x07 \x01(\x0b\x32\x14.google.protobuf.AnyR\x03msg\"\xcc\x01\n\x0e\x43PEdgeMetadata\x12;\n\x05topic\x18\x01 \x01(\x0e\x32%.gml.internal.api.core.v1.CPEdgeTopicR\x05topic\x12:\n\tdevice_id\x18\x02 \x01(\x0b\x32\x0f.gml.types.UUIDB\x0c\xe2\xde\x1f\x08\x44\x65viceIDR\x08\x64\x65viceId\x12\x41\n\x0erecv_timestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\rrecvTimestamp\"~\n\rCPEdgeMessage\x12\x44\n\x08metadata\x18\x01 \x01(\x0b\x32(.gml.internal.api.core.v1.CPEdgeMetadataR\x08metadata\x12\'\n\x03msg\x18\xe8\x07 \x01(\x0b\x32\x14.google.protobuf.AnyR\x03msg*\xbe\x02\n\x13\x45xecutionGraphState\x12!\n\x1d\x45XECUTION_GRAPH_STATE_UNKNOWN\x10\x00\x12*\n&EXECUTION_GRAPH_STATE_UPDATE_REQUESTED\x10\n\x12%\n!EXECUTION_GRAPH_STATE_DOWNLOADING\x10\x14\x12#\n\x1f\x45XECUTION_GRAPH_STATE_COMPILING\x10\x1e\x12\x1f\n\x1b\x45XECUTION_GRAPH_STATE_READY\x10(\x12\"\n\x1e\x45XECUTION_GRAPH_STATE_DEPLOYED\x10\x32\x12%\n!EXECUTION_GRAPH_STATE_TERMINATING\x10<\x12 \n\x1c\x45XECUTION_GRAPH_STATE_FAILED\x10\x64*\xe7\x01\n\x0b\x45\x64geCPTopic\x12\x19\n\x15\x45\x44GE_CP_TOPIC_UNKNOWN\x10\x00\x12\x18\n\x14\x45\x44GE_CP_TOPIC_STATUS\x10\x01\x12\x16\n\x12\x45\x44GE_CP_TOPIC_EXEC\x10\x03\x12\x19\n\x15\x45\x44GE_CP_TOPIC_METRICS\x10\x04\x12\x1f\n\x1b\x45\x44GE_CP_TOPIC_FILE_TRANSFER\x10\x05\x12\x16\n\x12\x45\x44GE_CP_TOPIC_INFO\x10\x06\x12\x17\n\x13\x45\x44GE_CP_TOPIC_MEDIA\x10\x07\x12\x18\n\x14\x45\x44GE_CP_TOPIC_CONFIG\x10\x08\"\x04\x08\x02\x10\x02*\xe7\x01\n\x0b\x43PEdgeTopic\x12\x19\n\x15\x43P_EDGE_TOPIC_UNKNOWN\x10\x00\x12\x18\n\x14\x43P_EDGE_TOPIC_STATUS\x10\x01\x12\x16\n\x12\x43P_EDGE_TOPIC_EXEC\x10\x03\x12\x19\n\x15\x43P_EDGE_TOPIC_METRICS\x10\x04\x12\x1f\n\x1b\x43P_EDGE_TOPIC_FILE_TRANSFER\x10\x05\x12\x16\n\x12\x43P_EDGE_TOPIC_INFO\x10\x06\x12\x17\n\x13\x43P_EDGE_TOPIC_MEDIA\x10\x07\x12\x18\n\x14\x43P_EDGE_TOPIC_CONFIG\x10\x08\"\x04\x08\x02\x10\x02\x42/Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepbb\x06proto3')
|
24
26
|
|
25
27
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
26
28
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'src.api.corepb.v1.cp_edge_pb2', globals())
|
@@ -52,84 +54,72 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
52
54
|
_FILETRANSFERREQUEST.fields_by_name['file_id']._serialized_options = b'\342\336\037\006FileID'
|
53
55
|
_FILETRANSFERRESPONSE.fields_by_name['file_id']._options = None
|
54
56
|
_FILETRANSFERRESPONSE.fields_by_name['file_id']._serialized_options = b'\342\336\037\006FileID'
|
55
|
-
_DEVICECAPABILITIES_CAMERAINFO.fields_by_name['camera_id']._options = None
|
56
|
-
_DEVICECAPABILITIES_CAMERAINFO.fields_by_name['camera_id']._serialized_options = b'\342\336\037\010CameraID'
|
57
57
|
_EDGECPMETADATA.fields_by_name['device_id']._options = None
|
58
58
|
_EDGECPMETADATA.fields_by_name['device_id']._serialized_options = b'\342\336\037\010DeviceID'
|
59
59
|
_CPEDGEMETADATA.fields_by_name['device_id']._options = None
|
60
60
|
_CPEDGEMETADATA.fields_by_name['device_id']._serialized_options = b'\342\336\037\010DeviceID'
|
61
|
-
_EXECUTIONGRAPHSTATE._serialized_start=
|
62
|
-
_EXECUTIONGRAPHSTATE._serialized_end=
|
63
|
-
_EDGECPTOPIC._serialized_start=
|
64
|
-
_EDGECPTOPIC._serialized_end=
|
65
|
-
_CPEDGETOPIC._serialized_start=
|
66
|
-
_CPEDGETOPIC._serialized_end=
|
67
|
-
_EDGEHEARTBEAT._serialized_start=
|
68
|
-
_EDGEHEARTBEAT._serialized_end=
|
69
|
-
_EDGEHEARTBEATACK._serialized_start=
|
70
|
-
_EDGEHEARTBEATACK._serialized_end=
|
71
|
-
_PHYSICALPIPELINESPECUPDATE._serialized_start=
|
72
|
-
_PHYSICALPIPELINESPECUPDATE._serialized_end=
|
73
|
-
_PHYSICALPIPELINESTATUSUPDATE._serialized_start=
|
74
|
-
_PHYSICALPIPELINESTATUSUPDATE._serialized_end=
|
75
|
-
_CPRUNMODEL._serialized_start=
|
76
|
-
_CPRUNMODEL._serialized_end=
|
77
|
-
_CPRUNMODELACK._serialized_start=
|
78
|
-
_CPRUNMODELACK._serialized_end=
|
79
|
-
_EXECUTIONGRAPHSPEC._serialized_start=
|
80
|
-
_EXECUTIONGRAPHSPEC._serialized_end=
|
81
|
-
_EXECUTIONGRAPHSTATUS._serialized_start=
|
82
|
-
_EXECUTIONGRAPHSTATUS._serialized_end=
|
83
|
-
_APPLYEXECUTIONGRAPH._serialized_start=
|
84
|
-
_APPLYEXECUTIONGRAPH._serialized_end=
|
85
|
-
_DELETEEXECUTIONGRAPH._serialized_start=
|
86
|
-
_DELETEEXECUTIONGRAPH._serialized_end=
|
87
|
-
_EXECUTIONGRAPHSTATUSUPDATE._serialized_start=
|
88
|
-
_EXECUTIONGRAPHSTATUSUPDATE._serialized_end=
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
_DEVICECAPABILITIES_CAMERAINFO_CAMERADRIVER._serialized_start=3421
|
126
|
-
_DEVICECAPABILITIES_CAMERAINFO_CAMERADRIVER._serialized_end=3511
|
127
|
-
_EDGECPMETADATA._serialized_start=3514
|
128
|
-
_EDGECPMETADATA._serialized_end=3718
|
129
|
-
_EDGECPMESSAGE._serialized_start=3720
|
130
|
-
_EDGECPMESSAGE._serialized_end=3846
|
131
|
-
_CPEDGEMETADATA._serialized_start=3849
|
132
|
-
_CPEDGEMETADATA._serialized_end=4053
|
133
|
-
_CPEDGEMESSAGE._serialized_start=4055
|
134
|
-
_CPEDGEMESSAGE._serialized_end=4181
|
61
|
+
_EXECUTIONGRAPHSTATE._serialized_start=4009
|
62
|
+
_EXECUTIONGRAPHSTATE._serialized_end=4327
|
63
|
+
_EDGECPTOPIC._serialized_start=4330
|
64
|
+
_EDGECPTOPIC._serialized_end=4561
|
65
|
+
_CPEDGETOPIC._serialized_start=4564
|
66
|
+
_CPEDGETOPIC._serialized_end=4795
|
67
|
+
_EDGEHEARTBEAT._serialized_start=362
|
68
|
+
_EDGEHEARTBEAT._serialized_end=411
|
69
|
+
_EDGEHEARTBEATACK._serialized_start=413
|
70
|
+
_EDGEHEARTBEATACK._serialized_end=465
|
71
|
+
_PHYSICALPIPELINESPECUPDATE._serialized_start=468
|
72
|
+
_PHYSICALPIPELINESPECUPDATE._serialized_end=655
|
73
|
+
_PHYSICALPIPELINESTATUSUPDATE._serialized_start=658
|
74
|
+
_PHYSICALPIPELINESTATUSUPDATE._serialized_end=879
|
75
|
+
_CPRUNMODEL._serialized_start=881
|
76
|
+
_CPRUNMODEL._serialized_end=893
|
77
|
+
_CPRUNMODELACK._serialized_start=895
|
78
|
+
_CPRUNMODELACK._serialized_end=910
|
79
|
+
_EXECUTIONGRAPHSPEC._serialized_start=913
|
80
|
+
_EXECUTIONGRAPHSPEC._serialized_end=1091
|
81
|
+
_EXECUTIONGRAPHSTATUS._serialized_start=1094
|
82
|
+
_EXECUTIONGRAPHSTATUS._serialized_end=1235
|
83
|
+
_APPLYEXECUTIONGRAPH._serialized_start=1238
|
84
|
+
_APPLYEXECUTIONGRAPH._serialized_end=1504
|
85
|
+
_DELETEEXECUTIONGRAPH._serialized_start=1506
|
86
|
+
_DELETEEXECUTIONGRAPH._serialized_end=1619
|
87
|
+
_EXECUTIONGRAPHSTATUSUPDATE._serialized_start=1622
|
88
|
+
_EXECUTIONGRAPHSTATUSUPDATE._serialized_end=1813
|
89
|
+
_MEDIASTREAMSTART._serialized_start=1815
|
90
|
+
_MEDIASTREAMSTART._serialized_end=1833
|
91
|
+
_MEDIASTREAMSTOP._serialized_start=1835
|
92
|
+
_MEDIASTREAMSTOP._serialized_end=1852
|
93
|
+
_MEDIASTREAMKEEPALIVE._serialized_start=1854
|
94
|
+
_MEDIASTREAMKEEPALIVE._serialized_end=1876
|
95
|
+
_MEDIASTREAMCONTROL._serialized_start=1878
|
96
|
+
_MEDIASTREAMCONTROL._serialized_end=1991
|
97
|
+
_TEXTSTREAMCONTROL._serialized_start=1993
|
98
|
+
_TEXTSTREAMCONTROL._serialized_end=2036
|
99
|
+
_EDGECPMEDIASTREAMMESSAGE._serialized_start=2038
|
100
|
+
_EDGECPMEDIASTREAMMESSAGE._serialized_end=2165
|
101
|
+
_CPEDGEMEDIASTREAMMESSAGE._serialized_start=2167
|
102
|
+
_CPEDGEMEDIASTREAMMESSAGE._serialized_end=2294
|
103
|
+
_EDGEOTELMETRICS._serialized_start=2296
|
104
|
+
_EDGEOTELMETRICS._serialized_end=2405
|
105
|
+
_FILETRANSFERREQUEST._serialized_start=2408
|
106
|
+
_FILETRANSFERREQUEST._serialized_end=2556
|
107
|
+
_FILETRANSFERRESPONSE._serialized_start=2559
|
108
|
+
_FILETRANSFERRESPONSE._serialized_end=2830
|
109
|
+
_FILETRANSFERRESPONSE_FILECHUNK._serialized_start=2760
|
110
|
+
_FILETRANSFERRESPONSE_FILECHUNK._serialized_end=2830
|
111
|
+
_DEVICECAPABILITIES._serialized_start=2833
|
112
|
+
_DEVICECAPABILITIES._serialized_end=3083
|
113
|
+
_DEVICECONFIGSTATEUPDATE._serialized_start=3086
|
114
|
+
_DEVICECONFIGSTATEUPDATE._serialized_end=3223
|
115
|
+
_DEVICEBASECONFIGUPDATE._serialized_start=3225
|
116
|
+
_DEVICEBASECONFIGUPDATE._serialized_end=3336
|
117
|
+
_EDGECPMETADATA._serialized_start=3339
|
118
|
+
_EDGECPMETADATA._serialized_end=3543
|
119
|
+
_EDGECPMESSAGE._serialized_start=3545
|
120
|
+
_EDGECPMESSAGE._serialized_end=3671
|
121
|
+
_CPEDGEMETADATA._serialized_start=3674
|
122
|
+
_CPEDGEMETADATA._serialized_end=3878
|
123
|
+
_CPEDGEMESSAGE._serialized_start=3880
|
124
|
+
_CPEDGEMESSAGE._serialized_end=4006
|
135
125
|
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: src/api/corepb/v1/device_info.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
from gml.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#src/api/corepb/v1/device_info.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\"R\n\x10\x43\x61meraDriverInfo\x12>\n\x06\x64river\x18\x01 \x01(\x0e\x32&.gml.internal.api.core.v1.CameraDriverR\x06\x64river\"\xb4\x02\n\nCameraMode\x12\x16\n\x06\x66ourcc\x18\x01 \x01(\tR\x06\x66ourcc\x12Q\n\x0bresolutions\x18\x02 \x03(\x0b\x32/.gml.internal.api.core.v1.CameraMode.ResolutionR\x0bresolutions\x1a\xba\x01\n\nResolution\x12\x14\n\x05width\x18\x01 \x01(\x05R\x05width\x12\x16\n\x06height\x18\x02 \x01(\x05R\x06height\x12V\n\tintervals\x18\x03 \x03(\x0b\x32\x38.gml.internal.api.core.v1.CameraMode.Resolution.IntervalR\tintervals\x1a&\n\x08Interval\x12\x1a\n\x08interval\x18\x01 \x01(\x01R\x08interval\"\xb3\x01\n\nCameraInfo\x12>\n\x06\x64river\x18\x01 \x01(\x0e\x32&.gml.internal.api.core.v1.CameraDriverR\x06\x64river\x12)\n\tcamera_id\x18\x02 \x01(\tB\x0c\xe2\xde\x1f\x08\x43\x61meraIDR\x08\x63\x61meraId\x12:\n\x05modes\x18\x03 \x03(\x0b\x32$.gml.internal.api.core.v1.CameraModeR\x05modes\"d\n\x15IREELLVMCPUTargetInfo\x12\x16\n\x06triple\x18\x01 \x01(\tR\x06triple\x12\x10\n\x03\x63pu\x18\x02 \x01(\tR\x03\x63pu\x12!\n\x0c\x63pu_features\x18\x03 \x03(\tR\x0b\x63puFeatures\"(\n\x12IREEROCmTargetInfo\x12\x12\n\x04\x61rch\x18\x01 \x01(\tR\x04\x61rch\"\x9f\x02\n\x0fIREERuntimeInfo\x12\x1b\n\tdevice_id\x18\x01 \x01(\x04R\x08\x64\x65viceId\x12<\n\x06target\x18\x02 \x01(\x0e\x32$.gml.internal.api.core.v1.IREETargetR\x06target\x12Y\n\x10llvm_target_info\x18\x03 \x01(\x0b\x32/.gml.internal.api.core.v1.IREELLVMCPUTargetInfoR\x0ellvmTargetInfo\x12V\n\x10rocm_target_info\x18\x04 \x01(\x0b\x32,.gml.internal.api.core.v1.IREEROCmTargetInfoR\x0erocmTargetInfo\"\x9a\x01\n\x10ModelRuntimeInfo\x12>\n\x04type\x18\x01 \x01(\x0e\x32*.gml.internal.api.core.v1.ModelRuntimeTypeR\x04type\x12\x46\n\tiree_info\x18\x02 \x01(\x0b\x32).gml.internal.api.core.v1.IREERuntimeInfoR\x08ireeInfo*Z\n\x0c\x43\x61meraDriver\x12\x19\n\x15\x43\x41MERA_DRIVER_UNKNOWN\x10\x00\x12\x17\n\x13\x43\x41MERA_DRIVER_ARGUS\x10\x01\x12\x16\n\x12\x43\x41MERA_DRIVER_V4L2\x10\x02*\xbf\x01\n\x10ModelRuntimeType\x12\x1e\n\x1aMODEL_RUNTIME_TYPE_UNKNOWN\x10\x00\x12\x1f\n\x1bMODEL_RUNTIME_TYPE_TENSORRT\x10\x01\x12\x1f\n\x1bMODEL_RUNTIME_TYPE_OPENVINO\x10\x02\x12\x1b\n\x17MODEL_RUNTIME_TYPE_IREE\x10\x03\x12,\n(MODEL_RUNTIME_TYPE_HUGGINGFACE_TOKENIZER\x10\x04*U\n\nIREETarget\x12\x17\n\x13IREE_TARGET_UNKNOWN\x10\x00\x12\x18\n\x14IREE_TARGET_LLVM_CPU\x10\x01\x12\x14\n\x10IREE_TARGET_ROCM\x10\x02\x42/Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepbb\x06proto3')
|
18
|
+
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'src.api.corepb.v1.device_info_pb2', globals())
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
22
|
+
|
23
|
+
DESCRIPTOR._options = None
|
24
|
+
DESCRIPTOR._serialized_options = b'Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepb'
|
25
|
+
_CAMERAINFO.fields_by_name['camera_id']._options = None
|
26
|
+
_CAMERAINFO.fields_by_name['camera_id']._serialized_options = b'\342\336\037\010CameraID'
|
27
|
+
_CAMERADRIVER._serialized_start=1255
|
28
|
+
_CAMERADRIVER._serialized_end=1345
|
29
|
+
_MODELRUNTIMETYPE._serialized_start=1348
|
30
|
+
_MODELRUNTIMETYPE._serialized_end=1539
|
31
|
+
_IREETARGET._serialized_start=1541
|
32
|
+
_IREETARGET._serialized_end=1626
|
33
|
+
_CAMERADRIVERINFO._serialized_start=87
|
34
|
+
_CAMERADRIVERINFO._serialized_end=169
|
35
|
+
_CAMERAMODE._serialized_start=172
|
36
|
+
_CAMERAMODE._serialized_end=480
|
37
|
+
_CAMERAMODE_RESOLUTION._serialized_start=294
|
38
|
+
_CAMERAMODE_RESOLUTION._serialized_end=480
|
39
|
+
_CAMERAMODE_RESOLUTION_INTERVAL._serialized_start=442
|
40
|
+
_CAMERAMODE_RESOLUTION_INTERVAL._serialized_end=480
|
41
|
+
_CAMERAINFO._serialized_start=483
|
42
|
+
_CAMERAINFO._serialized_end=662
|
43
|
+
_IREELLVMCPUTARGETINFO._serialized_start=664
|
44
|
+
_IREELLVMCPUTARGETINFO._serialized_end=764
|
45
|
+
_IREEROCMTARGETINFO._serialized_start=766
|
46
|
+
_IREEROCMTARGETINFO._serialized_end=806
|
47
|
+
_IREERUNTIMEINFO._serialized_start=809
|
48
|
+
_IREERUNTIMEINFO._serialized_end=1096
|
49
|
+
_MODELRUNTIMEINFO._serialized_start=1099
|
50
|
+
_MODELRUNTIMEINFO._serialized_end=1253
|
51
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: src/api/corepb/v1/gem_config.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
from gml.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"src/api/corepb/v1/gem_config.proto\x12\x18gml.internal.api.core.v1\x1a\x14gogoproto/gogo.proto\"w\n\x0bVideoSource\x12=\n\x04type\x18\x01 \x01(\x0e\x32).gml.internal.api.core.v1.VideoSourceTypeR\x04type\x12)\n\tsource_id\x18\x02 \x01(\tB\x0c\xe2\xde\x1f\x08SourceIDR\x08sourceId\"\xe4\x01\n\tGEMConfig\x12j\n\x13video_source_claims\x18\x01 \x03(\x0b\x32:.gml.internal.api.core.v1.GEMConfig.VideoSourceClaimsEntryR\x11videoSourceClaims\x1ak\n\x16VideoSourceClaimsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.gml.internal.api.core.v1.VideoSourceR\x05value:\x02\x38\x01\"$\n\x0c\x43onfigStatus\x12\x14\n\x05\x65rror\x18\x01 \x01(\tR\x05\x65rror\"\x95\x02\n\x0eGEMConfigState\x12J\n\x0e\x61pplied_config\x18\x01 \x01(\x0b\x32#.gml.internal.api.core.v1.GEMConfigR\rappliedConfig\x12R\n\x08statuses\x18\x02 \x03(\x0b\x32\x36.gml.internal.api.core.v1.GEMConfigState.StatusesEntryR\x08statuses\x1a\x63\n\rStatusesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\x05value\x18\x02 \x01(\x0b\x32&.gml.internal.api.core.v1.ConfigStatusR\x05value:\x02\x38\x01*\xa4\x01\n\x0fVideoSourceType\x12\x1d\n\x19VIDEO_SOURCE_TYPE_UNKNOWN\x10\x00\x12\x1b\n\x17VIDEO_SOURCE_TYPE_ARGUS\x10\x01\x12\x1a\n\x16VIDEO_SOURCE_TYPE_V4L2\x10\x02\x12\x1a\n\x16VIDEO_SOURCE_TYPE_FILE\x10\x03\x12\x1d\n\x19VIDEO_SOURCE_TYPE_NETWORK\x10\x04\x42/Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepbb\x06proto3')
|
18
|
+
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'src.api.corepb.v1.gem_config_pb2', globals())
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
22
|
+
|
23
|
+
DESCRIPTOR._options = None
|
24
|
+
DESCRIPTOR._serialized_options = b'Z-gimletlabs.ai/gimlet/src/api/corepb/v1;corepb'
|
25
|
+
_VIDEOSOURCE.fields_by_name['source_id']._options = None
|
26
|
+
_VIDEOSOURCE.fields_by_name['source_id']._serialized_options = b'\342\336\037\010SourceID'
|
27
|
+
_GEMCONFIG_VIDEOSOURCECLAIMSENTRY._options = None
|
28
|
+
_GEMCONFIG_VIDEOSOURCECLAIMSENTRY._serialized_options = b'8\001'
|
29
|
+
_GEMCONFIGSTATE_STATUSESENTRY._options = None
|
30
|
+
_GEMCONFIGSTATE_STATUSESENTRY._serialized_options = b'8\001'
|
31
|
+
_VIDEOSOURCETYPE._serialized_start=757
|
32
|
+
_VIDEOSOURCETYPE._serialized_end=921
|
33
|
+
_VIDEOSOURCE._serialized_start=86
|
34
|
+
_VIDEOSOURCE._serialized_end=205
|
35
|
+
_GEMCONFIG._serialized_start=208
|
36
|
+
_GEMCONFIG._serialized_end=436
|
37
|
+
_GEMCONFIG_VIDEOSOURCECLAIMSENTRY._serialized_start=329
|
38
|
+
_GEMCONFIG_VIDEOSOURCECLAIMSENTRY._serialized_end=436
|
39
|
+
_CONFIGSTATUS._serialized_start=438
|
40
|
+
_CONFIGSTATUS._serialized_end=474
|
41
|
+
_GEMCONFIGSTATE._serialized_start=477
|
42
|
+
_GEMCONFIGSTATE._serialized_end=754
|
43
|
+
_GEMCONFIGSTATE_STATUSESENTRY._serialized_start=655
|
44
|
+
_GEMCONFIGSTATE_STATUSESENTRY._serialized_end=754
|
45
|
+
# @@protoc_insertion_point(module_scope)
|