@@ -7,37 +7,16 @@ 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
11
10
import google .protobuf .message
12
11
import google .protobuf .struct_pb2
13
12
import google .protobuf .timestamp_pb2
14
13
import sys
15
- import typing
16
- if sys .version_info >= (3 , 10 ):
14
+ if sys .version_info >= (3 , 8 ):
17
15
import typing as typing_extensions
18
16
else :
19
17
import typing_extensions
20
18
DESCRIPTOR : google .protobuf .descriptor .FileDescriptor
21
19
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
-
41
20
@typing_extensions .final
42
21
class StartMappingSessionRequest (google .protobuf .message .Message ):
43
22
"""StartMappingSession"""
@@ -306,16 +285,16 @@ class UpdateMappingSessionMetadataByIDRequest(google.protobuf.message.Message):
306
285
TIME_CLOUD_RUN_JOB_ENDED_FIELD_NUMBER : builtins .int
307
286
ERROR_MSG_FIELD_NUMBER : builtins .int
308
287
session_id : builtins .str
309
- end_status : global___EndStatus . ValueType
310
- 'enums that represent “success”, “failed”, etc'
288
+ end_status : builtins . str
289
+ '“success”, “failed to start ”, etc'
311
290
312
291
@property
313
292
def time_cloud_run_job_ended (self ) -> google .protobuf .timestamp_pb2 .Timestamp :
314
293
"""set at the time of job closeout and used as the package version"""
315
294
error_msg : builtins .str
316
295
'additional details on the end status if needed, such as errors'
317
296
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 :
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 :
319
298
...
320
299
321
300
def HasField (self , field_name : typing_extensions .Literal ['time_cloud_run_job_ended' , b'time_cloud_run_job_ended' ]) -> builtins .bool :
@@ -372,8 +351,8 @@ class MappingMetadata(google.protobuf.message.Message):
372
351
@property
373
352
def time_cloud_run_job_ended (self ) -> google .protobuf .timestamp_pb2 .Timestamp :
374
353
"""time the cloud run job ended"""
375
- end_status : global___EndStatus . ValueType
376
- 'enums that represent “success”, “failed”, etc'
354
+ end_status : builtins . str
355
+ '“success”, “failed to start ”, etc'
377
356
cloud_run_job_id : builtins .str
378
357
'initially unset'
379
358
viam_server_version : builtins .str
@@ -387,12 +366,12 @@ class MappingMetadata(google.protobuf.message.Message):
387
366
error_msg : builtins .str
388
367
'additional details on the end status if needed, such as errors'
389
368
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 :
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 :
391
370
...
392
371
393
372
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 :
394
373
...
395
374
396
375
def ClearField (self , field_name : typing_extensions .Literal ['cloud_run_job_id' , b'cloud_run_job_id' , 'config' , b'config' , 'end_status' , b'end_status' , 'error_msg' , b'error_msg' , 'location_id' , b'location_id' , 'map_name' , b'map_name' , 'org_id' , b'org_id' , 'robot_id' , b'robot_id' , 'slam_version' , b'slam_version' , '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' , 'viam_server_version' , b'viam_server_version' ]) -> None :
397
376
...
398
- global___MappingMetadata = MappingMetadata
377
+ global___MappingMetadata = MappingMetadata
0 commit comments