@@ -7,16 +7,37 @@ import collections.abc
7
7
from .... import common
8
8
import google .protobuf .descriptor
9
9
import google .protobuf .internal .containers
10
+ import google .protobuf .internal .enum_type_wrapper
10
11
import google .protobuf .message
11
12
import google .protobuf .struct_pb2
12
13
import google .protobuf .timestamp_pb2
13
14
import sys
14
- if sys .version_info >= (3 , 8 ):
15
+ import typing
16
+ if sys .version_info >= (3 , 10 ):
15
17
import typing as typing_extensions
16
18
else :
17
19
import typing_extensions
18
20
DESCRIPTOR : google .protobuf .descriptor .FileDescriptor
19
21
22
+ class _EndStatus :
23
+ ValueType = typing .NewType ('ValueType' , builtins .int )
24
+ V : typing_extensions .TypeAlias = ValueType
25
+
26
+ class _EndStatusEnumTypeWrapper (google .protobuf .internal .enum_type_wrapper ._EnumTypeWrapper [_EndStatus .ValueType ], builtins .type ):
27
+ DESCRIPTOR : google .protobuf .descriptor .EnumDescriptor
28
+ END_STATUS_UNSPECIFIED : _EndStatus .ValueType
29
+ END_STATUS_SUCCESS : _EndStatus .ValueType
30
+ END_STATUS_TIMEOUT : _EndStatus .ValueType
31
+ END_STATUS_FAIL : _EndStatus .ValueType
32
+
33
+ class EndStatus (_EndStatus , metaclass = _EndStatusEnumTypeWrapper ):
34
+ ...
35
+ END_STATUS_UNSPECIFIED : EndStatus .ValueType
36
+ END_STATUS_SUCCESS : EndStatus .ValueType
37
+ END_STATUS_TIMEOUT : EndStatus .ValueType
38
+ END_STATUS_FAIL : EndStatus .ValueType
39
+ global___EndStatus = EndStatus
40
+
20
41
@typing_extensions .final
21
42
class StartMappingSessionRequest (google .protobuf .message .Message ):
22
43
"""StartMappingSession"""
@@ -285,16 +306,16 @@ class UpdateMappingSessionMetadataByIDRequest(google.protobuf.message.Message):
285
306
TIME_CLOUD_RUN_JOB_ENDED_FIELD_NUMBER : builtins .int
286
307
ERROR_MSG_FIELD_NUMBER : builtins .int
287
308
session_id : builtins .str
288
- end_status : builtins . str
289
- '“success”, “failed to start ”, etc'
309
+ end_status : global___EndStatus . ValueType
310
+ 'enums that represent “success”, “failed”, etc'
290
311
291
312
@property
292
313
def time_cloud_run_job_ended (self ) -> google .protobuf .timestamp_pb2 .Timestamp :
293
314
"""set at the time of job closeout and used as the package version"""
294
315
error_msg : builtins .str
295
316
'additional details on the end status if needed, such as errors'
296
317
297
- def __init__ (self , * , session_id : builtins .str = ..., end_status : builtins . str = ..., time_cloud_run_job_ended : google .protobuf .timestamp_pb2 .Timestamp | None = ..., error_msg : builtins .str = ...) -> None :
318
+ def __init__ (self , * , session_id : builtins .str = ..., end_status : global___EndStatus . ValueType = ..., time_cloud_run_job_ended : google .protobuf .timestamp_pb2 .Timestamp | None = ..., error_msg : builtins .str = ...) -> None :
298
319
...
299
320
300
321
def HasField (self , field_name : typing_extensions .Literal ['time_cloud_run_job_ended' , b'time_cloud_run_job_ended' ]) -> builtins .bool :
@@ -351,8 +372,8 @@ class MappingMetadata(google.protobuf.message.Message):
351
372
@property
352
373
def time_cloud_run_job_ended (self ) -> google .protobuf .timestamp_pb2 .Timestamp :
353
374
"""time the cloud run job ended"""
354
- end_status : builtins . str
355
- '“success”, “failed to start ”, etc'
375
+ end_status : global___EndStatus . ValueType
376
+ 'enums that represent “success”, “failed”, etc'
356
377
cloud_run_job_id : builtins .str
357
378
'initially unset'
358
379
viam_server_version : builtins .str
@@ -366,7 +387,7 @@ class MappingMetadata(google.protobuf.message.Message):
366
387
error_msg : builtins .str
367
388
'additional details on the end status if needed, such as errors'
368
389
369
- def __init__ (self , * , org_id : builtins .str = ..., location_id : builtins .str = ..., robot_id : builtins .str = ..., time_start_submitted : google .protobuf .timestamp_pb2 .Timestamp | None = ..., time_cloud_run_job_started : google .protobuf .timestamp_pb2 .Timestamp | None = ..., time_end_submitted : google .protobuf .timestamp_pb2 .Timestamp | None = ..., time_cloud_run_job_ended : google .protobuf .timestamp_pb2 .Timestamp | None = ..., end_status : builtins . str = ..., cloud_run_job_id : builtins .str = ..., viam_server_version : builtins .str = ..., map_name : builtins .str = ..., slam_version : builtins .str = ..., config : builtins .str = ..., error_msg : builtins .str = ...) -> None :
390
+ def __init__ (self , * , org_id : builtins .str = ..., location_id : builtins .str = ..., robot_id : builtins .str = ..., time_start_submitted : google .protobuf .timestamp_pb2 .Timestamp | None = ..., time_cloud_run_job_started : google .protobuf .timestamp_pb2 .Timestamp | None = ..., time_end_submitted : google .protobuf .timestamp_pb2 .Timestamp | None = ..., time_cloud_run_job_ended : google .protobuf .timestamp_pb2 .Timestamp | None = ..., end_status : global___EndStatus . ValueType = ..., cloud_run_job_id : builtins .str = ..., viam_server_version : builtins .str = ..., map_name : builtins .str = ..., slam_version : builtins .str = ..., config : builtins .str = ..., error_msg : builtins .str = ...) -> None :
370
391
...
371
392
372
393
def HasField (self , field_name : typing_extensions .Literal ['time_cloud_run_job_ended' , b'time_cloud_run_job_ended' , 'time_cloud_run_job_started' , b'time_cloud_run_job_started' , 'time_end_submitted' , b'time_end_submitted' , 'time_start_submitted' , b'time_start_submitted' ]) -> builtins .bool :
0 commit comments