Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit b4aff67

Browse files
Pyreach sync 20220801
1 parent 0c6e6e3 commit b4aff67

19 files changed

+1743
-336
lines changed
Lines changed: 300 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,300 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# -*- coding: utf-8 -*-
16+
# Generated by the protocol buffer compiler. DO NOT EDIT!
17+
# source: event_timestamp.proto
18+
19+
from google.protobuf import descriptor as _descriptor
20+
from google.protobuf import message as _message
21+
from google.protobuf import reflection as _reflection
22+
from google.protobuf import symbol_database as _symbol_database
23+
# @@protoc_insertion_point(imports)
24+
25+
_sym_db = _symbol_database.Default()
26+
27+
28+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
29+
30+
31+
DESCRIPTOR = _descriptor.FileDescriptor(
32+
name='event_timestamp.proto',
33+
package='robotics.logging.messages',
34+
syntax='proto2',
35+
serialized_options=None,
36+
create_key=_descriptor._internal_create_key,
37+
serialized_pb=b'\n\x15\x65vent_timestamp.proto\x12\x19robotics.logging.messages\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd0\x02\n\x10TickingTimestamp\x12G\n\ttime_base\x18\x01 \x01(\x0e\x32\x34.robotics.logging.messages.TickingTimestamp.TimeBase\x12G\n\ttick_type\x18\x02 \x01(\x0e\x32\x34.robotics.logging.messages.TickingTimestamp.TickType\x12\r\n\x05ticks\x18\x03 \x01(\x03\"d\n\x08TickType\x12\x19\n\x15UNSPECIFIED_TICK_TYPE\x10\x00\x12\x0e\n\nNANOSECOND\x10\x01\x12\x0f\n\x0bMICROSECOND\x10\x02\x12\n\n\x06SECOND\x10\x04\"\x04\x08\x03\x10\x03\"\x04\x08\x05\x10\x05\"\x04\x08\x06\x10\x06\"5\n\x08TimeBase\x12\x19\n\x15UNSPECIFIED_TIME_BASE\x10\x00\x12\x0e\n\nUNIX_EPOCH\x10\x01\"\x8b\x03\n\x0e\x45ventTimestamp\x12/\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12H\n\x11ticking_timestamp\x18\x02 \x01(\x0b\x32+.robotics.logging.messages.TickingTimestampH\x00\x12G\n\nevent_type\x18\x03 \x01(\x0e\x32\x33.robotics.logging.messages.EventTimestamp.EventType\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x10\n\x08hostname\x18\x05 \x01(\t\"{\n\tEventType\x12\x1a\n\x16UNSPECIFIED_EVENT_TYPE\x10\x00\x12\x0e\n\nDEVICE_ACQ\x10\x01\x12\x0c\n\x08HOST_ACQ\x10\x02\x12\x0c\n\x08HOST_PUB\x10\x03\x12\x0e\n\nDEVICE_PUB\x10\x04\x12\x0c\n\x08HOST_SUB\x10\x05\x12\x08\n\x04SYNC\x10\x06\x42\x11\n\x0ftimestamp_oneof'
38+
,
39+
dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,])
40+
41+
42+
43+
_TICKINGTIMESTAMP_TICKTYPE = _descriptor.EnumDescriptor(
44+
name='TickType',
45+
full_name='robotics.logging.messages.TickingTimestamp.TickType',
46+
filename=None,
47+
file=DESCRIPTOR,
48+
create_key=_descriptor._internal_create_key,
49+
values=[
50+
_descriptor.EnumValueDescriptor(
51+
name='UNSPECIFIED_TICK_TYPE', index=0, number=0,
52+
serialized_options=None,
53+
type=None,
54+
create_key=_descriptor._internal_create_key),
55+
_descriptor.EnumValueDescriptor(
56+
name='NANOSECOND', index=1, number=1,
57+
serialized_options=None,
58+
type=None,
59+
create_key=_descriptor._internal_create_key),
60+
_descriptor.EnumValueDescriptor(
61+
name='MICROSECOND', index=2, number=2,
62+
serialized_options=None,
63+
type=None,
64+
create_key=_descriptor._internal_create_key),
65+
_descriptor.EnumValueDescriptor(
66+
name='SECOND', index=3, number=4,
67+
serialized_options=None,
68+
type=None,
69+
create_key=_descriptor._internal_create_key),
70+
],
71+
containing_type=None,
72+
serialized_options=None,
73+
serialized_start=267,
74+
serialized_end=367,
75+
)
76+
_sym_db.RegisterEnumDescriptor(_TICKINGTIMESTAMP_TICKTYPE)
77+
78+
_TICKINGTIMESTAMP_TIMEBASE = _descriptor.EnumDescriptor(
79+
name='TimeBase',
80+
full_name='robotics.logging.messages.TickingTimestamp.TimeBase',
81+
filename=None,
82+
file=DESCRIPTOR,
83+
create_key=_descriptor._internal_create_key,
84+
values=[
85+
_descriptor.EnumValueDescriptor(
86+
name='UNSPECIFIED_TIME_BASE', index=0, number=0,
87+
serialized_options=None,
88+
type=None,
89+
create_key=_descriptor._internal_create_key),
90+
_descriptor.EnumValueDescriptor(
91+
name='UNIX_EPOCH', index=1, number=1,
92+
serialized_options=None,
93+
type=None,
94+
create_key=_descriptor._internal_create_key),
95+
],
96+
containing_type=None,
97+
serialized_options=None,
98+
serialized_start=369,
99+
serialized_end=422,
100+
)
101+
_sym_db.RegisterEnumDescriptor(_TICKINGTIMESTAMP_TIMEBASE)
102+
103+
_EVENTTIMESTAMP_EVENTTYPE = _descriptor.EnumDescriptor(
104+
name='EventType',
105+
full_name='robotics.logging.messages.EventTimestamp.EventType',
106+
filename=None,
107+
file=DESCRIPTOR,
108+
create_key=_descriptor._internal_create_key,
109+
values=[
110+
_descriptor.EnumValueDescriptor(
111+
name='UNSPECIFIED_EVENT_TYPE', index=0, number=0,
112+
serialized_options=None,
113+
type=None,
114+
create_key=_descriptor._internal_create_key),
115+
_descriptor.EnumValueDescriptor(
116+
name='DEVICE_ACQ', index=1, number=1,
117+
serialized_options=None,
118+
type=None,
119+
create_key=_descriptor._internal_create_key),
120+
_descriptor.EnumValueDescriptor(
121+
name='HOST_ACQ', index=2, number=2,
122+
serialized_options=None,
123+
type=None,
124+
create_key=_descriptor._internal_create_key),
125+
_descriptor.EnumValueDescriptor(
126+
name='HOST_PUB', index=3, number=3,
127+
serialized_options=None,
128+
type=None,
129+
create_key=_descriptor._internal_create_key),
130+
_descriptor.EnumValueDescriptor(
131+
name='DEVICE_PUB', index=4, number=4,
132+
serialized_options=None,
133+
type=None,
134+
create_key=_descriptor._internal_create_key),
135+
_descriptor.EnumValueDescriptor(
136+
name='HOST_SUB', index=5, number=5,
137+
serialized_options=None,
138+
type=None,
139+
create_key=_descriptor._internal_create_key),
140+
_descriptor.EnumValueDescriptor(
141+
name='SYNC', index=6, number=6,
142+
serialized_options=None,
143+
type=None,
144+
create_key=_descriptor._internal_create_key),
145+
],
146+
containing_type=None,
147+
serialized_options=None,
148+
serialized_start=678,
149+
serialized_end=801,
150+
)
151+
_sym_db.RegisterEnumDescriptor(_EVENTTIMESTAMP_EVENTTYPE)
152+
153+
154+
_TICKINGTIMESTAMP = _descriptor.Descriptor(
155+
name='TickingTimestamp',
156+
full_name='robotics.logging.messages.TickingTimestamp',
157+
filename=None,
158+
file=DESCRIPTOR,
159+
containing_type=None,
160+
create_key=_descriptor._internal_create_key,
161+
fields=[
162+
_descriptor.FieldDescriptor(
163+
name='time_base', full_name='robotics.logging.messages.TickingTimestamp.time_base', index=0,
164+
number=1, type=14, cpp_type=8, label=1,
165+
has_default_value=False, default_value=0,
166+
message_type=None, enum_type=None, containing_type=None,
167+
is_extension=False, extension_scope=None,
168+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
169+
_descriptor.FieldDescriptor(
170+
name='tick_type', full_name='robotics.logging.messages.TickingTimestamp.tick_type', index=1,
171+
number=2, type=14, cpp_type=8, label=1,
172+
has_default_value=False, default_value=0,
173+
message_type=None, enum_type=None, containing_type=None,
174+
is_extension=False, extension_scope=None,
175+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
176+
_descriptor.FieldDescriptor(
177+
name='ticks', full_name='robotics.logging.messages.TickingTimestamp.ticks', index=2,
178+
number=3, type=3, cpp_type=2, label=1,
179+
has_default_value=False, default_value=0,
180+
message_type=None, enum_type=None, containing_type=None,
181+
is_extension=False, extension_scope=None,
182+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
183+
],
184+
extensions=[
185+
],
186+
nested_types=[],
187+
enum_types=[
188+
_TICKINGTIMESTAMP_TICKTYPE,
189+
_TICKINGTIMESTAMP_TIMEBASE,
190+
],
191+
serialized_options=None,
192+
is_extendable=False,
193+
syntax='proto2',
194+
extension_ranges=[],
195+
oneofs=[
196+
],
197+
serialized_start=86,
198+
serialized_end=422,
199+
)
200+
201+
202+
_EVENTTIMESTAMP = _descriptor.Descriptor(
203+
name='EventTimestamp',
204+
full_name='robotics.logging.messages.EventTimestamp',
205+
filename=None,
206+
file=DESCRIPTOR,
207+
containing_type=None,
208+
create_key=_descriptor._internal_create_key,
209+
fields=[
210+
_descriptor.FieldDescriptor(
211+
name='timestamp', full_name='robotics.logging.messages.EventTimestamp.timestamp', index=0,
212+
number=1, type=11, cpp_type=10, label=1,
213+
has_default_value=False, default_value=None,
214+
message_type=None, enum_type=None, containing_type=None,
215+
is_extension=False, extension_scope=None,
216+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
217+
_descriptor.FieldDescriptor(
218+
name='ticking_timestamp', full_name='robotics.logging.messages.EventTimestamp.ticking_timestamp', index=1,
219+
number=2, type=11, cpp_type=10, label=1,
220+
has_default_value=False, default_value=None,
221+
message_type=None, enum_type=None, containing_type=None,
222+
is_extension=False, extension_scope=None,
223+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
224+
_descriptor.FieldDescriptor(
225+
name='event_type', full_name='robotics.logging.messages.EventTimestamp.event_type', index=2,
226+
number=3, type=14, cpp_type=8, label=1,
227+
has_default_value=False, default_value=0,
228+
message_type=None, enum_type=None, containing_type=None,
229+
is_extension=False, extension_scope=None,
230+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
231+
_descriptor.FieldDescriptor(
232+
name='description', full_name='robotics.logging.messages.EventTimestamp.description', index=3,
233+
number=4, type=9, cpp_type=9, label=1,
234+
has_default_value=False, default_value=b"".decode('utf-8'),
235+
message_type=None, enum_type=None, containing_type=None,
236+
is_extension=False, extension_scope=None,
237+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
238+
_descriptor.FieldDescriptor(
239+
name='hostname', full_name='robotics.logging.messages.EventTimestamp.hostname', index=4,
240+
number=5, type=9, cpp_type=9, label=1,
241+
has_default_value=False, default_value=b"".decode('utf-8'),
242+
message_type=None, enum_type=None, containing_type=None,
243+
is_extension=False, extension_scope=None,
244+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
245+
],
246+
extensions=[
247+
],
248+
nested_types=[],
249+
enum_types=[
250+
_EVENTTIMESTAMP_EVENTTYPE,
251+
],
252+
serialized_options=None,
253+
is_extendable=False,
254+
syntax='proto2',
255+
extension_ranges=[],
256+
oneofs=[
257+
_descriptor.OneofDescriptor(
258+
name='timestamp_oneof', full_name='robotics.logging.messages.EventTimestamp.timestamp_oneof',
259+
index=0, containing_type=None,
260+
create_key=_descriptor._internal_create_key,
261+
fields=[]),
262+
],
263+
serialized_start=425,
264+
serialized_end=820,
265+
)
266+
267+
_TICKINGTIMESTAMP.fields_by_name['time_base'].enum_type = _TICKINGTIMESTAMP_TIMEBASE
268+
_TICKINGTIMESTAMP.fields_by_name['tick_type'].enum_type = _TICKINGTIMESTAMP_TICKTYPE
269+
_TICKINGTIMESTAMP_TICKTYPE.containing_type = _TICKINGTIMESTAMP
270+
_TICKINGTIMESTAMP_TIMEBASE.containing_type = _TICKINGTIMESTAMP
271+
_EVENTTIMESTAMP.fields_by_name['timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
272+
_EVENTTIMESTAMP.fields_by_name['ticking_timestamp'].message_type = _TICKINGTIMESTAMP
273+
_EVENTTIMESTAMP.fields_by_name['event_type'].enum_type = _EVENTTIMESTAMP_EVENTTYPE
274+
_EVENTTIMESTAMP_EVENTTYPE.containing_type = _EVENTTIMESTAMP
275+
_EVENTTIMESTAMP.oneofs_by_name['timestamp_oneof'].fields.append(
276+
_EVENTTIMESTAMP.fields_by_name['timestamp'])
277+
_EVENTTIMESTAMP.fields_by_name['timestamp'].containing_oneof = _EVENTTIMESTAMP.oneofs_by_name['timestamp_oneof']
278+
_EVENTTIMESTAMP.oneofs_by_name['timestamp_oneof'].fields.append(
279+
_EVENTTIMESTAMP.fields_by_name['ticking_timestamp'])
280+
_EVENTTIMESTAMP.fields_by_name['ticking_timestamp'].containing_oneof = _EVENTTIMESTAMP.oneofs_by_name['timestamp_oneof']
281+
DESCRIPTOR.message_types_by_name['TickingTimestamp'] = _TICKINGTIMESTAMP
282+
DESCRIPTOR.message_types_by_name['EventTimestamp'] = _EVENTTIMESTAMP
283+
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
284+
285+
TickingTimestamp = _reflection.GeneratedProtocolMessageType('TickingTimestamp', (_message.Message,), {
286+
'DESCRIPTOR' : _TICKINGTIMESTAMP,
287+
'__module__' : 'event_timestamp_pb2'
288+
# @@protoc_insertion_point(class_scope:robotics.logging.messages.TickingTimestamp)
289+
})
290+
_sym_db.RegisterMessage(TickingTimestamp)
291+
292+
EventTimestamp = _reflection.GeneratedProtocolMessageType('EventTimestamp', (_message.Message,), {
293+
'DESCRIPTOR' : _EVENTTIMESTAMP,
294+
'__module__' : 'event_timestamp_pb2'
295+
# @@protoc_insertion_point(class_scope:robotics.logging.messages.EventTimestamp)
296+
})
297+
_sym_db.RegisterMessage(EventTimestamp)
298+
299+
300+
# @@protoc_insertion_point(module_scope)

0 commit comments

Comments
 (0)