I am running 2020-05-12 version 3.12.0
(C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript) on a 16.04 Linux
machine
Python 3.5
I create the code by hand via the protoc command line
I am attempting to do a small test python script.
The generated code makes heavy use of the _internal_create_key.
...
DESCRIPTOR = _descriptor.FileDescriptor(
name='rfid.proto',
package='rfid',
syntax='proto3',
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\nrfid.proto\x12\x04rfid\x1a\x1fgoogle/protobuf/timestamp.proto\"\xec\x01\n\x0brfidStartup\x12\x18\n\x10\x62\x61seSerialNumber\x18\x01
\x01(\t\x12/\n\x0bstartupTime\x18\x02
\x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmoduleName\x18\x03
\x01(\t\x12\x15\n\rmoduleVersion\x18\x04 \x01(\t\x12\x10\n\x08vendorID\x18\x05
\x01(\x05\x12\x11\n\tproductID\x18\x06 \x01(\x05\x12\x12\n\nloggingDir\x18\x07
\x01(\t\x12\x13\n\x0breaderFound\x18\x08
\x01(\x08\x12\x19\n\x11readerDescription\x18\t
\x01(\t\"\x84\x01\n\trfidState\x12(\n\x05\x63\x61rds\x18\x01
\x03(\x0b\x32\x19.rfid.rfidState.rfidCards\x1aM\n\trfidCards\x12,\n\x08readTime\x18\x01
\x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncardNumber\x18\x02
\x01(\tb\x06proto3'
,
dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,])
_RFIDSTARTUP = _descriptor.Descriptor(
name='rfidStartup',
full_name='rfid.rfidStartup',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='baseSerialNumber', full_name='rfid.rfidStartup.baseSerialNumber',
index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR,
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='startupTime', full_name='rfid.rfidStartup.startupTime', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR,
create_key=_descriptor._internal_create_key),
....
Thanks for your time/input.
Ricky
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/1067c3ab-76df-4219-8658-f86930fb3283%40googlegroups.com.