Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SADAPMAP
Interface
Commits
347b7107
Commit
347b7107
authored
Apr 25, 2019
by
Pedro Henrique Kopper
Browse files
Update to new ping-pong req format
parent
5c0f2351
Changes
12
Hide whitespace changes
Inline
Side-by-side
.gitmodules
0 → 100644
View file @
347b7107
[submodule "Protocol"]
path = Protocol
url = git@git.cta.if.ufrgs.br:SADAPMAP/Protocol.git
Pipfile
View file @
347b7107
...
@@ -11,4 +11,4 @@ numpy = "*"
...
@@ -11,4 +11,4 @@ numpy = "*"
pyserial
=
"*"
pyserial
=
"*"
pyqt5
=
"*"
pyqt5
=
"*"
pyyaml
=
"*"
pyyaml
=
"*"
protobuf
=
"*"
Protocol
@
6a829cc7
Subproject commit 6a829cc7c094d271a50cffb86107d5b54af9df67
interfaces/Arduino.py
View file @
347b7107
...
@@ -19,7 +19,7 @@ class Arduino(object):
...
@@ -19,7 +19,7 @@ class Arduino(object):
logger
(
"[ARDUINO]"
,
"Board started, good luck!"
)
logger
(
"[ARDUINO]"
,
"Board started, good luck!"
)
def
read
(
self
):
def
read
(
self
):
return
10
pass
def
readAll
(
self
):
def
readAll
(
self
):
self
.
ser
.
flushInput
()
# Limpeza do buffer de entrada
self
.
ser
.
flushInput
()
# Limpeza do buffer de entrada
...
...
interfaces/Protocol/nanopb_pb2.py
0 → 100644
View file @
347b7107
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: nanopb.proto
import
sys
_b
=
sys
.
version_info
[
0
]
<
3
and
(
lambda
x
:
x
)
or
(
lambda
x
:
x
.
encode
(
'latin1'
))
from
google.protobuf.internal
import
enum_type_wrapper
from
google.protobuf
import
descriptor
as
_descriptor
from
google.protobuf
import
message
as
_message
from
google.protobuf
import
reflection
as
_reflection
from
google.protobuf
import
symbol_database
as
_symbol_database
from
google.protobuf
import
descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db
=
_symbol_database
.
Default
()
from
google.protobuf
import
descriptor_pb2
as
google_dot_protobuf_dot_descriptor__pb2
DESCRIPTOR
=
_descriptor
.
FileDescriptor
(
name
=
'nanopb.proto'
,
package
=
''
,
syntax
=
'proto2'
,
serialized_pb
=
_b
(
'
\n\x0c
nanopb.proto
\x1a
google/protobuf/descriptor.proto
\"\xf0\x03\n\r
NanoPBOptions
\x12\x10\n\x08
max_size
\x18\x01
\x01
(
\x05\x12\x12\n\n
max_length
\x18\x0e
\x01
(
\x05\x12\x11\n\t
max_count
\x18\x02
\x01
(
\x05\x12
&
\n\x08
int_size
\x18\x07
\x01
(
\x0e\x32\x08
.IntSize:
\n
IS_DEFAULT
\x12
$
\n\x04
type
\x18\x03
\x01
(
\x0e\x32\n
.FieldType:
\n
FT_DEFAULT
\x12\x18\n\n
long_names
\x18\x04
\x01
(
\x08
:
\x04
true
\x12\x1c\n\r
packed_struct
\x18\x05
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x1a\n\x0b
packed_enum
\x18\n
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x1b\n\x0c
skip_message
\x18\x06
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x18\n\t
no_unions
\x18\x08
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\r\n\x05
msgid
\x18\t
\x01
(
\r\x12\x1e\n\x0f\x61
nonymous_oneof
\x18\x0b
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x15\n\x06
proto3
\x18\x0c
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x1d\n\x0e\x65
num_to_string
\x18\r
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x1b\n\x0c\x66
ixed_length
\x18\x0f
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x1a\n\x0b\x66
ixed_count
\x18\x10
\x01
(
\x08
:
\x05\x66\x61
lse
\x12
/
\n\x0c
mangle_names
\x18\x11
\x01
(
\x0e\x32\x11
.TypenameMangling:
\x06
M_NONE*i
\n\t
FieldType
\x12\x0e\n\n
FT_DEFAULT
\x10\x00\x12\x0f\n\x0b\x46
T_CALLBACK
\x10\x01\x12\x0e\n\n
FT_POINTER
\x10\x04\x12\r\n\t
FT_STATIC
\x10\x02\x12\r\n\t
FT_IGNORE
\x10\x03\x12\r\n\t
FT_INLINE
\x10\x05
*D
\n\x07
IntSize
\x12\x0e\n\n
IS_DEFAULT
\x10\x00\x12\x08\n\x04
IS_8
\x10\x08\x12\t\n\x05
IS_16
\x10\x10\x12\t\n\x05
IS_32
\x10
\x12\t\n\x05
IS_64
\x10
@*B
\n\x10
TypenameMangling
\x12\n\n\x06
M_NONE
\x10\x00\x12\x13\n\x0f
M_STRIP_PACKAGE
\x10\x01\x12\r\n\t
M_FLATTEN
\x10\x02
:E
\n\x0e
nanopb_fileopt
\x12\x1c
.google.protobuf.FileOptions
\x18\xf2\x07
\x01
(
\x0b\x32\x0e
.NanoPBOptions:G
\n\r
nanopb_msgopt
\x12\x1f
.google.protobuf.MessageOptions
\x18\xf2\x07
\x01
(
\x0b\x32\x0e
.NanoPBOptions:E
\n\x0e
nanopb_enumopt
\x12\x1c
.google.protobuf.EnumOptions
\x18\xf2\x07
\x01
(
\x0b\x32\x0e
.NanoPBOptions:>
\n\x06
nanopb
\x12\x1d
.google.protobuf.FieldOptions
\x18\xf2\x07
\x01
(
\x0b\x32\x0e
.NanoPBOptionsB
\x1a\n\x18\x66
i.kapsi.koti.jpa.nanopb'
)
,
dependencies
=
[
google_dot_protobuf_dot_descriptor__pb2
.
DESCRIPTOR
,])
_sym_db
.
RegisterFileDescriptor
(
DESCRIPTOR
)
_FIELDTYPE
=
_descriptor
.
EnumDescriptor
(
name
=
'FieldType'
,
full_name
=
'FieldType'
,
filename
=
None
,
file
=
DESCRIPTOR
,
values
=
[
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_DEFAULT'
,
index
=
0
,
number
=
0
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_CALLBACK'
,
index
=
1
,
number
=
1
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_POINTER'
,
index
=
2
,
number
=
4
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_STATIC'
,
index
=
3
,
number
=
2
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_IGNORE'
,
index
=
4
,
number
=
3
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_INLINE'
,
index
=
5
,
number
=
5
,
options
=
None
,
type
=
None
),
],
containing_type
=
None
,
options
=
None
,
serialized_start
=
549
,
serialized_end
=
654
,
)
_sym_db
.
RegisterEnumDescriptor
(
_FIELDTYPE
)
FieldType
=
enum_type_wrapper
.
EnumTypeWrapper
(
_FIELDTYPE
)
_INTSIZE
=
_descriptor
.
EnumDescriptor
(
name
=
'IntSize'
,
full_name
=
'IntSize'
,
filename
=
None
,
file
=
DESCRIPTOR
,
values
=
[
_descriptor
.
EnumValueDescriptor
(
name
=
'IS_DEFAULT'
,
index
=
0
,
number
=
0
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'IS_8'
,
index
=
1
,
number
=
8
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'IS_16'
,
index
=
2
,
number
=
16
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'IS_32'
,
index
=
3
,
number
=
32
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'IS_64'
,
index
=
4
,
number
=
64
,
options
=
None
,
type
=
None
),
],
containing_type
=
None
,
options
=
None
,
serialized_start
=
656
,
serialized_end
=
724
,
)
_sym_db
.
RegisterEnumDescriptor
(
_INTSIZE
)
IntSize
=
enum_type_wrapper
.
EnumTypeWrapper
(
_INTSIZE
)
_TYPENAMEMANGLING
=
_descriptor
.
EnumDescriptor
(
name
=
'TypenameMangling'
,
full_name
=
'TypenameMangling'
,
filename
=
None
,
file
=
DESCRIPTOR
,
values
=
[
_descriptor
.
EnumValueDescriptor
(
name
=
'M_NONE'
,
index
=
0
,
number
=
0
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'M_STRIP_PACKAGE'
,
index
=
1
,
number
=
1
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'M_FLATTEN'
,
index
=
2
,
number
=
2
,
options
=
None
,
type
=
None
),
],
containing_type
=
None
,
options
=
None
,
serialized_start
=
726
,
serialized_end
=
792
,
)
_sym_db
.
RegisterEnumDescriptor
(
_TYPENAMEMANGLING
)
TypenameMangling
=
enum_type_wrapper
.
EnumTypeWrapper
(
_TYPENAMEMANGLING
)
FT_DEFAULT
=
0
FT_CALLBACK
=
1
FT_POINTER
=
4
FT_STATIC
=
2
FT_IGNORE
=
3
FT_INLINE
=
5
IS_DEFAULT
=
0
IS_8
=
8
IS_16
=
16
IS_32
=
32
IS_64
=
64
M_NONE
=
0
M_STRIP_PACKAGE
=
1
M_FLATTEN
=
2
NANOPB_FILEOPT_FIELD_NUMBER
=
1010
nanopb_fileopt
=
_descriptor
.
FieldDescriptor
(
name
=
'nanopb_fileopt'
,
full_name
=
'nanopb_fileopt'
,
index
=
0
,
number
=
1010
,
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
=
True
,
extension_scope
=
None
,
options
=
None
)
NANOPB_MSGOPT_FIELD_NUMBER
=
1010
nanopb_msgopt
=
_descriptor
.
FieldDescriptor
(
name
=
'nanopb_msgopt'
,
full_name
=
'nanopb_msgopt'
,
index
=
1
,
number
=
1010
,
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
=
True
,
extension_scope
=
None
,
options
=
None
)
NANOPB_ENUMOPT_FIELD_NUMBER
=
1010
nanopb_enumopt
=
_descriptor
.
FieldDescriptor
(
name
=
'nanopb_enumopt'
,
full_name
=
'nanopb_enumopt'
,
index
=
2
,
number
=
1010
,
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
=
True
,
extension_scope
=
None
,
options
=
None
)
NANOPB_FIELD_NUMBER
=
1010
nanopb
=
_descriptor
.
FieldDescriptor
(
name
=
'nanopb'
,
full_name
=
'nanopb'
,
index
=
3
,
number
=
1010
,
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
=
True
,
extension_scope
=
None
,
options
=
None
)
_NANOPBOPTIONS
=
_descriptor
.
Descriptor
(
name
=
'NanoPBOptions'
,
full_name
=
'NanoPBOptions'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'max_size'
,
full_name
=
'NanoPBOptions.max_size'
,
index
=
0
,
number
=
1
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'max_length'
,
full_name
=
'NanoPBOptions.max_length'
,
index
=
1
,
number
=
14
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'max_count'
,
full_name
=
'NanoPBOptions.max_count'
,
index
=
2
,
number
=
2
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'int_size'
,
full_name
=
'NanoPBOptions.int_size'
,
index
=
3
,
number
=
7
,
type
=
14
,
cpp_type
=
8
,
label
=
1
,
has_default_value
=
True
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'type'
,
full_name
=
'NanoPBOptions.type'
,
index
=
4
,
number
=
3
,
type
=
14
,
cpp_type
=
8
,
label
=
1
,
has_default_value
=
True
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'long_names'
,
full_name
=
'NanoPBOptions.long_names'
,
index
=
5
,
number
=
4
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
True
,
default_value
=
True
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'packed_struct'
,
full_name
=
'NanoPBOptions.packed_struct'
,
index
=
6
,
number
=
5
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
True
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'packed_enum'
,
full_name
=
'NanoPBOptions.packed_enum'
,
index
=
7
,
number
=
10
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
True
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'skip_message'
,
full_name
=
'NanoPBOptions.skip_message'
,
index
=
8
,
number
=
6
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
True
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'no_unions'
,
full_name
=
'NanoPBOptions.no_unions'
,
index
=
9
,
number
=
8
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
True
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'msgid'
,
full_name
=
'NanoPBOptions.msgid'
,
index
=
10
,
number
=
9
,
type
=
13
,
cpp_type
=
3
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'anonymous_oneof'
,
full_name
=
'NanoPBOptions.anonymous_oneof'
,
index
=
11
,
number
=
11
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
True
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'proto3'
,
full_name
=
'NanoPBOptions.proto3'
,
index
=
12
,
number
=
12
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
True
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'enum_to_string'
,
full_name
=
'NanoPBOptions.enum_to_string'
,
index
=
13
,
number
=
13
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
True
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'fixed_length'
,
full_name
=
'NanoPBOptions.fixed_length'
,
index
=
14
,
number
=
15
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
True
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'fixed_count'
,
full_name
=
'NanoPBOptions.fixed_count'
,
index
=
15
,
number
=
16
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
True
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'mangle_names'
,
full_name
=
'NanoPBOptions.mangle_names'
,
index
=
16
,
number
=
17
,
type
=
14
,
cpp_type
=
8
,
label
=
1
,
has_default_value
=
True
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
],
extensions
=
[
],
nested_types
=
[],
enum_types
=
[
],
options
=
None
,
is_extendable
=
False
,
syntax
=
'proto2'
,
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
51
,
serialized_end
=
547
,
)
_NANOPBOPTIONS
.
fields_by_name
[
'int_size'
].
enum_type
=
_INTSIZE
_NANOPBOPTIONS
.
fields_by_name
[
'type'
].
enum_type
=
_FIELDTYPE
_NANOPBOPTIONS
.
fields_by_name
[
'mangle_names'
].
enum_type
=
_TYPENAMEMANGLING
DESCRIPTOR
.
message_types_by_name
[
'NanoPBOptions'
]
=
_NANOPBOPTIONS
DESCRIPTOR
.
enum_types_by_name
[
'FieldType'
]
=
_FIELDTYPE
DESCRIPTOR
.
enum_types_by_name
[
'IntSize'
]
=
_INTSIZE
DESCRIPTOR
.
enum_types_by_name
[
'TypenameMangling'
]
=
_TYPENAMEMANGLING
DESCRIPTOR
.
extensions_by_name
[
'nanopb_fileopt'
]
=
nanopb_fileopt
DESCRIPTOR
.
extensions_by_name
[
'nanopb_msgopt'
]
=
nanopb_msgopt
DESCRIPTOR
.
extensions_by_name
[
'nanopb_enumopt'
]
=
nanopb_enumopt
DESCRIPTOR
.
extensions_by_name
[
'nanopb'
]
=
nanopb
NanoPBOptions
=
_reflection
.
GeneratedProtocolMessageType
(
'NanoPBOptions'
,
(
_message
.
Message
,),
dict
(
DESCRIPTOR
=
_NANOPBOPTIONS
,
__module__
=
'nanopb_pb2'
# @@protoc_insertion_point(class_scope:NanoPBOptions)
))
_sym_db
.
RegisterMessage
(
NanoPBOptions
)
nanopb_fileopt
.
message_type
=
_NANOPBOPTIONS
google_dot_protobuf_dot_descriptor__pb2
.
FileOptions
.
RegisterExtension
(
nanopb_fileopt
)
nanopb_msgopt
.
message_type
=
_NANOPBOPTIONS
google_dot_protobuf_dot_descriptor__pb2
.
MessageOptions
.
RegisterExtension
(
nanopb_msgopt
)
nanopb_enumopt
.
message_type
=
_NANOPBOPTIONS
google_dot_protobuf_dot_descriptor__pb2
.
EnumOptions
.
RegisterExtension
(
nanopb_enumopt
)
nanopb
.
message_type
=
_NANOPBOPTIONS
google_dot_protobuf_dot_descriptor__pb2
.
FieldOptions
.
RegisterExtension
(
nanopb
)
DESCRIPTOR
.
has_options
=
True
DESCRIPTOR
.
_options
=
_descriptor
.
_ParseOptions
(
descriptor_pb2
.
FileOptions
(),
_b
(
'
\n\030
fi.kapsi.koti.jpa.nanopb'
))
# @@protoc_insertion_point(module_scope)
interfaces/Protocol/nanopb_pb2/__init__.py
0 → 100644
View file @
347b7107
interfaces/Protocol/nanopb_pb2/nanopb_pb2.py
0 → 100644
View file @
347b7107
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: nanopb.proto
import
sys
_b
=
sys
.
version_info
[
0
]
<
3
and
(
lambda
x
:
x
)
or
(
lambda
x
:
x
.
encode
(
'latin1'
))
from
google.protobuf.internal
import
enum_type_wrapper
from
google.protobuf
import
descriptor
as
_descriptor
from
google.protobuf
import
message
as
_message
from
google.protobuf
import
reflection
as
_reflection
from
google.protobuf
import
symbol_database
as
_symbol_database
from
google.protobuf
import
descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db
=
_symbol_database
.
Default
()
from
google.protobuf
import
descriptor_pb2
as
google_dot_protobuf_dot_descriptor__pb2
DESCRIPTOR
=
_descriptor
.
FileDescriptor
(
name
=
'nanopb.proto'
,
package
=
''
,
syntax
=
'proto2'
,
serialized_pb
=
_b
(
'
\n\x0c
nanopb.proto
\x1a
google/protobuf/descriptor.proto
\"\xf0\x03\n\r
NanoPBOptions
\x12\x10\n\x08
max_size
\x18\x01
\x01
(
\x05\x12\x12\n\n
max_length
\x18\x0e
\x01
(
\x05\x12\x11\n\t
max_count
\x18\x02
\x01
(
\x05\x12
&
\n\x08
int_size
\x18\x07
\x01
(
\x0e\x32\x08
.IntSize:
\n
IS_DEFAULT
\x12
$
\n\x04
type
\x18\x03
\x01
(
\x0e\x32\n
.FieldType:
\n
FT_DEFAULT
\x12\x18\n\n
long_names
\x18\x04
\x01
(
\x08
:
\x04
true
\x12\x1c\n\r
packed_struct
\x18\x05
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x1a\n\x0b
packed_enum
\x18\n
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x1b\n\x0c
skip_message
\x18\x06
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x18\n\t
no_unions
\x18\x08
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\r\n\x05
msgid
\x18\t
\x01
(
\r\x12\x1e\n\x0f\x61
nonymous_oneof
\x18\x0b
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x15\n\x06
proto3
\x18\x0c
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x1d\n\x0e\x65
num_to_string
\x18\r
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x1b\n\x0c\x66
ixed_length
\x18\x0f
\x01
(
\x08
:
\x05\x66\x61
lse
\x12\x1a\n\x0b\x66
ixed_count
\x18\x10
\x01
(
\x08
:
\x05\x66\x61
lse
\x12
/
\n\x0c
mangle_names
\x18\x11
\x01
(
\x0e\x32\x11
.TypenameMangling:
\x06
M_NONE*i
\n\t
FieldType
\x12\x0e\n\n
FT_DEFAULT
\x10\x00\x12\x0f\n\x0b\x46
T_CALLBACK
\x10\x01\x12\x0e\n\n
FT_POINTER
\x10\x04\x12\r\n\t
FT_STATIC
\x10\x02\x12\r\n\t
FT_IGNORE
\x10\x03\x12\r\n\t
FT_INLINE
\x10\x05
*D
\n\x07
IntSize
\x12\x0e\n\n
IS_DEFAULT
\x10\x00\x12\x08\n\x04
IS_8
\x10\x08\x12\t\n\x05
IS_16
\x10\x10\x12\t\n\x05
IS_32
\x10
\x12\t\n\x05
IS_64
\x10
@*B
\n\x10
TypenameMangling
\x12\n\n\x06
M_NONE
\x10\x00\x12\x13\n\x0f
M_STRIP_PACKAGE
\x10\x01\x12\r\n\t
M_FLATTEN
\x10\x02
:E
\n\x0e
nanopb_fileopt
\x12\x1c
.google.protobuf.FileOptions
\x18\xf2\x07
\x01
(
\x0b\x32\x0e
.NanoPBOptions:G
\n\r
nanopb_msgopt
\x12\x1f
.google.protobuf.MessageOptions
\x18\xf2\x07
\x01
(
\x0b\x32\x0e
.NanoPBOptions:E
\n\x0e
nanopb_enumopt
\x12\x1c
.google.protobuf.EnumOptions
\x18\xf2\x07
\x01
(
\x0b\x32\x0e
.NanoPBOptions:>
\n\x06
nanopb
\x12\x1d
.google.protobuf.FieldOptions
\x18\xf2\x07
\x01
(
\x0b\x32\x0e
.NanoPBOptionsB
\x1a\n\x18\x66
i.kapsi.koti.jpa.nanopb'
)
,
dependencies
=
[
google_dot_protobuf_dot_descriptor__pb2
.
DESCRIPTOR
,])
_sym_db
.
RegisterFileDescriptor
(
DESCRIPTOR
)
_FIELDTYPE
=
_descriptor
.
EnumDescriptor
(
name
=
'FieldType'
,
full_name
=
'FieldType'
,
filename
=
None
,
file
=
DESCRIPTOR
,
values
=
[
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_DEFAULT'
,
index
=
0
,
number
=
0
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_CALLBACK'
,
index
=
1
,
number
=
1
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_POINTER'
,
index
=
2
,
number
=
4
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_STATIC'
,
index
=
3
,
number
=
2
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_IGNORE'
,
index
=
4
,
number
=
3
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'FT_INLINE'
,
index
=
5
,
number
=
5
,
options
=
None
,
type
=
None
),
],
containing_type
=
None
,
options
=
None
,
serialized_start
=
549
,
serialized_end
=
654
,
)
_sym_db
.
RegisterEnumDescriptor
(
_FIELDTYPE
)
FieldType
=
enum_type_wrapper
.
EnumTypeWrapper
(
_FIELDTYPE
)
_INTSIZE
=
_descriptor
.
EnumDescriptor
(
name
=
'IntSize'
,
full_name
=
'IntSize'
,
filename
=
None
,
file
=
DESCRIPTOR
,
values
=
[
_descriptor
.
EnumValueDescriptor
(
name
=
'IS_DEFAULT'
,
index
=
0
,
number
=
0
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'IS_8'
,
index
=
1
,
number
=
8
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'IS_16'
,
index
=
2
,
number
=
16
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'IS_32'
,
index
=
3
,
number
=
32
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'IS_64'
,
index
=
4
,
number
=
64
,
options
=
None
,
type
=
None
),
],
containing_type
=
None
,
options
=
None
,
serialized_start
=
656
,
serialized_end
=
724
,
)
_sym_db
.
RegisterEnumDescriptor
(
_INTSIZE
)
IntSize
=
enum_type_wrapper
.
EnumTypeWrapper
(
_INTSIZE
)
_TYPENAMEMANGLING
=
_descriptor
.
EnumDescriptor
(
name
=
'TypenameMangling'
,
full_name
=
'TypenameMangling'
,
filename
=
None
,
file
=
DESCRIPTOR
,
values
=
[
_descriptor
.
EnumValueDescriptor
(
name
=
'M_NONE'
,
index
=
0
,
number
=
0
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'M_STRIP_PACKAGE'
,
index
=
1
,
number
=
1
,
options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'M_FLATTEN'
,
index
=
2
,
number
=
2
,
options
=
None
,
type
=
None
),
],
containing_type
=
None
,
options
=
None
,
serialized_start
=
726
,
serialized_end
=
792
,
)
_sym_db
.
RegisterEnumDescriptor
(
_TYPENAMEMANGLING
)
TypenameMangling
=
enum_type_wrapper
.
EnumTypeWrapper
(
_TYPENAMEMANGLING
)
FT_DEFAULT
=
0
FT_CALLBACK
=
1
FT_POINTER
=
4
FT_STATIC
=
2
FT_IGNORE
=
3
FT_INLINE
=
5
IS_DEFAULT
=
0
IS_8
=
8
IS_16
=
16
IS_32
=
32
IS_64
=
64
M_NONE
=
0
M_STRIP_PACKAGE
=
1
M_FLATTEN
=
2
NANOPB_FILEOPT_FIELD_NUMBER
=
1010
nanopb_fileopt
=
_descriptor
.
FieldDescriptor
(
name
=
'nanopb_fileopt'
,
full_name
=
'nanopb_fileopt'
,
index
=
0
,
number
=
1010
,
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
=
True
,
extension_scope
=
None
,
options
=
None
)
NANOPB_MSGOPT_FIELD_NUMBER
=
1010
nanopb_msgopt
=
_descriptor
.
FieldDescriptor
(
name
=
'nanopb_msgopt'
,
full_name
=
'nanopb_msgopt'
,
index
=
1
,
number
=
1010
,
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
=
True
,
extension_scope
=
None
,
options
=
None
)
NANOPB_ENUMOPT_FIELD_NUMBER
=
1010
nanopb_enumopt
=
_descriptor
.
FieldDescriptor
(
name
=
'nanopb_enumopt'
,
full_name
=
'nanopb_enumopt'
,
index
=
2
,
number
=
1010
,
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
=
True
,
extension_scope
=
None
,
options
=
None
)
NANOPB_FIELD_NUMBER
=
1010
nanopb
=
_descriptor
.
FieldDescriptor
(
name
=
'nanopb'
,
full_name
=
'nanopb'
,
index
=
3
,
number
=
1010
,
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
=
True
,
extension_scope
=
None
,
options
=
None
)
_NANOPBOPTIONS
=
_descriptor
.
Descriptor
(
name
=
'NanoPBOptions'
,
full_name
=
'NanoPBOptions'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'max_size'
,
full_name
=
'NanoPBOptions.max_size'
,
index
=
0
,
number
=
1
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'max_length'
,
full_name
=
'NanoPBOptions.max_length'
,
index
=
1
,
number
=
14
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
options
=
None
),
_descriptor
.
FieldDescriptor
(
name
=
'max_count'
,
full_name
=
'NanoPBOptions.max_count'
,
index
=
2
,
number
=
2
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,