esp-idf/components/protocomm/python/sec0_pb2.py
Amey Inamdar e94dffc9c5 Protocomm : Added unit tests and protobuf-c generated files
Co-Authored-By: Amey Inamdar <amey@espressif.com>
Co-Authored-By: Anurag Kar <anurag.kar@espressif.com>
2018-10-02 19:07:28 +05:30

197 lines
6.1 KiB
Python

# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: sec0.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()
import constants_pb2 as constants__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='sec0.proto',
package='',
syntax='proto3',
serialized_pb=_b('\n\nsec0.proto\x1a\x0f\x63onstants.proto\"\x0e\n\x0cS0SessionCmd\"(\n\rS0SessionResp\x12\x17\n\x06status\x18\x01 \x01(\x0e\x32\x07.Status\"n\n\x0bSec0Payload\x12\x19\n\x03msg\x18\x01 \x01(\x0e\x32\x0c.Sec0MsgType\x12\x1b\n\x02sc\x18\x14 \x01(\x0b\x32\r.S0SessionCmdH\x00\x12\x1c\n\x02sr\x18\x15 \x01(\x0b\x32\x0e.S0SessionRespH\x00\x42\t\n\x07payload*>\n\x0bSec0MsgType\x12\x16\n\x12S0_Session_Command\x10\x00\x12\x17\n\x13S0_Session_Response\x10\x01\x62\x06proto3')
,
dependencies=[constants__pb2.DESCRIPTOR,])
_SEC0MSGTYPE = _descriptor.EnumDescriptor(
name='Sec0MsgType',
full_name='Sec0MsgType',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='S0_Session_Command', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='S0_Session_Response', index=1, number=1,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=201,
serialized_end=263,
)
_sym_db.RegisterEnumDescriptor(_SEC0MSGTYPE)
Sec0MsgType = enum_type_wrapper.EnumTypeWrapper(_SEC0MSGTYPE)
S0_Session_Command = 0
S0_Session_Response = 1
_S0SESSIONCMD = _descriptor.Descriptor(
name='S0SessionCmd',
full_name='S0SessionCmd',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=31,
serialized_end=45,
)
_S0SESSIONRESP = _descriptor.Descriptor(
name='S0SessionResp',
full_name='S0SessionResp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='status', full_name='S0SessionResp.status', index=0,
number=1, type=14, cpp_type=8, 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, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=47,
serialized_end=87,
)
_SEC0PAYLOAD = _descriptor.Descriptor(
name='Sec0Payload',
full_name='Sec0Payload',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='msg', full_name='Sec0Payload.msg', index=0,
number=1, type=14, cpp_type=8, 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, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sc', full_name='Sec0Payload.sc', index=1,
number=20, 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,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sr', full_name='Sec0Payload.sr', index=2,
number=21, 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,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='payload', full_name='Sec0Payload.payload',
index=0, containing_type=None, fields=[]),
],
serialized_start=89,
serialized_end=199,
)
_S0SESSIONRESP.fields_by_name['status'].enum_type = constants__pb2._STATUS
_SEC0PAYLOAD.fields_by_name['msg'].enum_type = _SEC0MSGTYPE
_SEC0PAYLOAD.fields_by_name['sc'].message_type = _S0SESSIONCMD
_SEC0PAYLOAD.fields_by_name['sr'].message_type = _S0SESSIONRESP
_SEC0PAYLOAD.oneofs_by_name['payload'].fields.append(
_SEC0PAYLOAD.fields_by_name['sc'])
_SEC0PAYLOAD.fields_by_name['sc'].containing_oneof = _SEC0PAYLOAD.oneofs_by_name['payload']
_SEC0PAYLOAD.oneofs_by_name['payload'].fields.append(
_SEC0PAYLOAD.fields_by_name['sr'])
_SEC0PAYLOAD.fields_by_name['sr'].containing_oneof = _SEC0PAYLOAD.oneofs_by_name['payload']
DESCRIPTOR.message_types_by_name['S0SessionCmd'] = _S0SESSIONCMD
DESCRIPTOR.message_types_by_name['S0SessionResp'] = _S0SESSIONRESP
DESCRIPTOR.message_types_by_name['Sec0Payload'] = _SEC0PAYLOAD
DESCRIPTOR.enum_types_by_name['Sec0MsgType'] = _SEC0MSGTYPE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
S0SessionCmd = _reflection.GeneratedProtocolMessageType('S0SessionCmd', (_message.Message,), dict(
DESCRIPTOR = _S0SESSIONCMD,
__module__ = 'sec0_pb2'
# @@protoc_insertion_point(class_scope:S0SessionCmd)
))
_sym_db.RegisterMessage(S0SessionCmd)
S0SessionResp = _reflection.GeneratedProtocolMessageType('S0SessionResp', (_message.Message,), dict(
DESCRIPTOR = _S0SESSIONRESP,
__module__ = 'sec0_pb2'
# @@protoc_insertion_point(class_scope:S0SessionResp)
))
_sym_db.RegisterMessage(S0SessionResp)
Sec0Payload = _reflection.GeneratedProtocolMessageType('Sec0Payload', (_message.Message,), dict(
DESCRIPTOR = _SEC0PAYLOAD,
__module__ = 'sec0_pb2'
# @@protoc_insertion_point(class_scope:Sec0Payload)
))
_sym_db.RegisterMessage(Sec0Payload)
# @@protoc_insertion_point(module_scope)