2020 import typing_extensions
2121DESCRIPTOR : google .protobuf .descriptor .FileDescriptor
2222
23+ class _OnlineState :
24+ ValueType = typing .NewType ('ValueType' , builtins .int )
25+ V : typing_extensions .TypeAlias = ValueType
26+
27+ class _OnlineStateEnumTypeWrapper (google .protobuf .internal .enum_type_wrapper ._EnumTypeWrapper [_OnlineState .ValueType ], builtins .type ):
28+ DESCRIPTOR : google .protobuf .descriptor .EnumDescriptor
29+ ONLINE_STATE_UNSPECIFIED : _OnlineState .ValueType
30+ ONLINE_STATE_ONLINE : _OnlineState .ValueType
31+ ONLINE_STATE_OFFLINE : _OnlineState .ValueType
32+ ONLINE_STATE_AWAITING_SETUP : _OnlineState .ValueType
33+
34+ class OnlineState (_OnlineState , metaclass = _OnlineStateEnumTypeWrapper ):
35+ ...
36+ ONLINE_STATE_UNSPECIFIED : OnlineState .ValueType
37+ ONLINE_STATE_ONLINE : OnlineState .ValueType
38+ ONLINE_STATE_OFFLINE : OnlineState .ValueType
39+ ONLINE_STATE_AWAITING_SETUP : OnlineState .ValueType
40+ global___OnlineState = OnlineState
41+
2342class _AuthenticationType :
2443 ValueType = typing .NewType ('ValueType' , builtins .int )
2544 V : typing_extensions .TypeAlias = ValueType
@@ -266,6 +285,8 @@ class RobotPart(google.protobuf.message.Message):
266285 CREATED_ON_FIELD_NUMBER : builtins .int
267286 SECRETS_FIELD_NUMBER : builtins .int
268287 LAST_UPDATED_FIELD_NUMBER : builtins .int
288+ ONLINE_STATE_FIELD_NUMBER : builtins .int
289+ SECONDS_SINCE_ONLINE_FIELD_NUMBER : builtins .int
269290 id : builtins .str
270291 name : builtins .str
271292 dns_name : builtins .str
@@ -277,6 +298,8 @@ class RobotPart(google.protobuf.message.Message):
277298 main_part : builtins .bool
278299 fqdn : builtins .str
279300 local_fqdn : builtins .str
301+ online_state : global___OnlineState .ValueType
302+ seconds_since_online : builtins .int
280303
281304 @property
282305 def robot_config (self ) -> google .protobuf .struct_pb2 .Struct :
@@ -302,13 +325,13 @@ class RobotPart(google.protobuf.message.Message):
302325 def last_updated (self ) -> google .protobuf .timestamp_pb2 .Timestamp :
303326 """latest timestamp when a robot part was updated"""
304327
305- def __init__ (self , * , id : builtins .str = ..., name : builtins .str = ..., dns_name : builtins .str = ..., secret : builtins .str = ..., robot : builtins .str = ..., location_id : builtins .str = ..., robot_config : google .protobuf .struct_pb2 .Struct | None = ..., last_access : google .protobuf .timestamp_pb2 .Timestamp | None = ..., user_supplied_info : google .protobuf .struct_pb2 .Struct | None = ..., main_part : builtins .bool = ..., fqdn : builtins .str = ..., local_fqdn : builtins .str = ..., created_on : google .protobuf .timestamp_pb2 .Timestamp | None = ..., secrets : collections .abc .Iterable [global___SharedSecret ] | None = ..., last_updated : google .protobuf .timestamp_pb2 .Timestamp | None = ...) -> None :
328+ def __init__ (self , * , id : builtins .str = ..., name : builtins .str = ..., dns_name : builtins .str = ..., secret : builtins .str = ..., robot : builtins .str = ..., location_id : builtins .str = ..., robot_config : google .protobuf .struct_pb2 .Struct | None = ..., last_access : google .protobuf .timestamp_pb2 .Timestamp | None = ..., user_supplied_info : google .protobuf .struct_pb2 .Struct | None = ..., main_part : builtins .bool = ..., fqdn : builtins .str = ..., local_fqdn : builtins .str = ..., created_on : google .protobuf .timestamp_pb2 .Timestamp | None = ..., secrets : collections .abc .Iterable [global___SharedSecret ] | None = ..., last_updated : google .protobuf .timestamp_pb2 .Timestamp | None = ..., online_state : global___OnlineState . ValueType = ..., seconds_since_online : builtins . int = ... ) -> None :
306329 ...
307330
308331 def HasField (self , field_name : typing .Literal ['created_on' , b'created_on' , 'last_access' , b'last_access' , 'last_updated' , b'last_updated' , 'robot_config' , b'robot_config' , 'user_supplied_info' , b'user_supplied_info' ]) -> builtins .bool :
309332 ...
310333
311- def ClearField (self , field_name : typing .Literal ['created_on' , b'created_on' , 'dns_name' , b'dns_name' , 'fqdn' , b'fqdn' , 'id' , b'id' , 'last_access' , b'last_access' , 'last_updated' , b'last_updated' , 'local_fqdn' , b'local_fqdn' , 'location_id' , b'location_id' , 'main_part' , b'main_part' , 'name' , b'name' , 'robot' , b'robot' , 'robot_config' , b'robot_config' , 'secret' , b'secret' , 'secrets' , b'secrets' , 'user_supplied_info' , b'user_supplied_info' ]) -> None :
334+ def ClearField (self , field_name : typing .Literal ['created_on' , b'created_on' , 'dns_name' , b'dns_name' , 'fqdn' , b'fqdn' , 'id' , b'id' , 'last_access' , b'last_access' , 'last_updated' , b'last_updated' , 'local_fqdn' , b'local_fqdn' , 'location_id' , b'location_id' , 'main_part' , b'main_part' , 'name' , b'name' , 'online_state' , b'online_state' , ' robot' , b'robot' , 'robot_config' , b'robot_config' , 'seconds_since_online' , b'seconds_since_online ' , 'secret' , b'secret' , 'secrets' , b'secrets' , 'user_supplied_info' , b'user_supplied_info' ]) -> None :
312335 ...
313336global___RobotPart = RobotPart
314337
@@ -1953,13 +1976,15 @@ class GetRobotPartLogsRequest(google.protobuf.message.Message):
19531976 END_FIELD_NUMBER : builtins .int
19541977 LIMIT_FIELD_NUMBER : builtins .int
19551978 SOURCE_FIELD_NUMBER : builtins .int
1979+ USER_FACING_ONLY_FIELD_NUMBER : builtins .int
19561980 id : builtins .str
19571981 errors_only : builtins .bool
19581982 'TODO(https://viam.atlassian.net/browse/APP-3877): Remove this field'
19591983 filter : builtins .str
19601984 page_token : builtins .str
19611985 limit : builtins .int
19621986 source : builtins .str
1987+ user_facing_only : builtins .bool
19631988
19641989 @property
19651990 def levels (self ) -> google .protobuf .internal .containers .RepeatedScalarFieldContainer [builtins .str ]:
@@ -1973,13 +1998,13 @@ class GetRobotPartLogsRequest(google.protobuf.message.Message):
19731998 def end (self ) -> google .protobuf .timestamp_pb2 .Timestamp :
19741999 ...
19752000
1976- def __init__ (self , * , id : builtins .str = ..., errors_only : builtins .bool = ..., filter : builtins .str | None = ..., page_token : builtins .str | None = ..., levels : collections .abc .Iterable [builtins .str ] | None = ..., start : google .protobuf .timestamp_pb2 .Timestamp | None = ..., end : google .protobuf .timestamp_pb2 .Timestamp | None = ..., limit : builtins .int | None = ..., source : builtins .str | None = ...) -> None :
2001+ def __init__ (self , * , id : builtins .str = ..., errors_only : builtins .bool = ..., filter : builtins .str | None = ..., page_token : builtins .str | None = ..., levels : collections .abc .Iterable [builtins .str ] | None = ..., start : google .protobuf .timestamp_pb2 .Timestamp | None = ..., end : google .protobuf .timestamp_pb2 .Timestamp | None = ..., limit : builtins .int | None = ..., source : builtins .str | None = ..., user_facing_only : builtins . bool | None = ... ) -> None :
19772002 ...
19782003
1979- def HasField (self , field_name : typing .Literal ['_end' , b'_end' , '_filter' , b'_filter' , '_limit' , b'_limit' , '_page_token' , b'_page_token' , '_source' , b'_source' , '_start' , b'_start' , 'end' , b'end' , 'filter' , b'filter' , 'limit' , b'limit' , 'page_token' , b'page_token' , 'source' , b'source' , 'start' , b'start' ]) -> builtins .bool :
2004+ def HasField (self , field_name : typing .Literal ['_end' , b'_end' , '_filter' , b'_filter' , '_limit' , b'_limit' , '_page_token' , b'_page_token' , '_source' , b'_source' , '_start' , b'_start' , '_user_facing_only' , b'_user_facing_only' , ' end' , b'end' , 'filter' , b'filter' , 'limit' , b'limit' , 'page_token' , b'page_token' , 'source' , b'source' , 'start' , b'start' , 'user_facing_only' , b'user_facing_only ' ]) -> builtins .bool :
19802005 ...
19812006
1982- def ClearField (self , field_name : typing .Literal ['_end' , b'_end' , '_filter' , b'_filter' , '_limit' , b'_limit' , '_page_token' , b'_page_token' , '_source' , b'_source' , '_start' , b'_start' , 'end' , b'end' , 'errors_only' , b'errors_only' , 'filter' , b'filter' , 'id' , b'id' , 'levels' , b'levels' , 'limit' , b'limit' , 'page_token' , b'page_token' , 'source' , b'source' , 'start' , b'start' ]) -> None :
2007+ def ClearField (self , field_name : typing .Literal ['_end' , b'_end' , '_filter' , b'_filter' , '_limit' , b'_limit' , '_page_token' , b'_page_token' , '_source' , b'_source' , '_start' , b'_start' , '_user_facing_only' , b'_user_facing_only' , ' end' , b'end' , 'errors_only' , b'errors_only' , 'filter' , b'filter' , 'id' , b'id' , 'levels' , b'levels' , 'limit' , b'limit' , 'page_token' , b'page_token' , 'source' , b'source' , 'start' , b'start' , 'user_facing_only' , b'user_facing_only ' ]) -> None :
19832008 ...
19842009
19852010 @typing .overload
@@ -2005,6 +2030,10 @@ class GetRobotPartLogsRequest(google.protobuf.message.Message):
20052030 @typing .overload
20062031 def WhichOneof (self , oneof_group : typing .Literal ['_start' , b'_start' ]) -> typing .Literal ['start' ] | None :
20072032 ...
2033+
2034+ @typing .overload
2035+ def WhichOneof (self , oneof_group : typing .Literal ['_user_facing_only' , b'_user_facing_only' ]) -> typing .Literal ['user_facing_only' ] | None :
2036+ ...
20082037global___GetRobotPartLogsRequest = GetRobotPartLogsRequest
20092038
20102039@typing .final
0 commit comments