Home | History | Annotate | Download | only in proto
      1 # Generated by the protocol buffer compiler.  DO NOT EDIT!
      2 
      3 from google.protobuf import descriptor
      4 from google.protobuf import message
      5 from google.protobuf import reflection
      6 from google.protobuf import descriptor_pb2
      7 # @@protoc_insertion_point(imports)
      8 
      9 
     10 DESCRIPTOR = descriptor.FileDescriptor(
     11   name='nanopb.proto',
     12   package='',
     13   serialized_pb='\n\x0cnanopb.proto\x1a google/protobuf/descriptor.proto\"\x92\x01\n\rNanoPBOptions\x12\x10\n\x08max_size\x18\x01 \x01(\x05\x12\x11\n\tmax_count\x18\x02 \x01(\x05\x12$\n\x04type\x18\x03 \x01(\x0e\x32\n.FieldType:\nFT_DEFAULT\x12\x18\n\nlong_names\x18\x04 \x01(\x08:\x04true\x12\x1c\n\rpacked_struct\x18\x05 \x01(\x08:\x05\x66\x61lse*Z\n\tFieldType\x12\x0e\n\nFT_DEFAULT\x10\x00\x12\x0f\n\x0b\x46T_CALLBACK\x10\x01\x12\x0e\n\nFT_POINTER\x10\x04\x12\r\n\tFT_STATIC\x10\x02\x12\r\n\tFT_IGNORE\x10\x03:E\n\x0enanopb_fileopt\x12\x1c.google.protobuf.FileOptions\x18\xf2\x07 \x01(\x0b\x32\x0e.NanoPBOptions:G\n\rnanopb_msgopt\x12\x1f.google.protobuf.MessageOptions\x18\xf2\x07 \x01(\x0b\x32\x0e.NanoPBOptions:E\n\x0enanopb_enumopt\x12\x1c.google.protobuf.EnumOptions\x18\xf2\x07 \x01(\x0b\x32\x0e.NanoPBOptions:>\n\x06nanopb\x12\x1d.google.protobuf.FieldOptions\x18\xf2\x07 \x01(\x0b\x32\x0e.NanoPBOptionsB\x1a\n\x18\x66i.kapsi.koti.jpa.nanopb')
     14 
     15 _FIELDTYPE = descriptor.EnumDescriptor(
     16   name='FieldType',
     17   full_name='FieldType',
     18   filename=None,
     19   file=DESCRIPTOR,
     20   values=[
     21     descriptor.EnumValueDescriptor(
     22       name='FT_DEFAULT', index=0, number=0,
     23       options=None,
     24       type=None),
     25     descriptor.EnumValueDescriptor(
     26       name='FT_CALLBACK', index=1, number=1,
     27       options=None,
     28       type=None),
     29     descriptor.EnumValueDescriptor(
     30       name='FT_POINTER', index=2, number=4,
     31       options=None,
     32       type=None),
     33     descriptor.EnumValueDescriptor(
     34       name='FT_STATIC', index=3, number=2,
     35       options=None,
     36       type=None),
     37     descriptor.EnumValueDescriptor(
     38       name='FT_IGNORE', index=4, number=3,
     39       options=None,
     40       type=None),
     41   ],
     42   containing_type=None,
     43   options=None,
     44   serialized_start=199,
     45   serialized_end=289,
     46 )
     47 
     48 
     49 FT_DEFAULT = 0
     50 FT_CALLBACK = 1
     51 FT_POINTER = 4
     52 FT_STATIC = 2
     53 FT_IGNORE = 3
     54 
     55 NANOPB_FILEOPT_FIELD_NUMBER = 1010
     56 nanopb_fileopt = descriptor.FieldDescriptor(
     57   name='nanopb_fileopt', full_name='nanopb_fileopt', index=0,
     58   number=1010, type=11, cpp_type=10, label=1,
     59   has_default_value=False, default_value=None,
     60   message_type=None, enum_type=None, containing_type=None,
     61   is_extension=True, extension_scope=None,
     62   options=None)
     63 NANOPB_MSGOPT_FIELD_NUMBER = 1010
     64 nanopb_msgopt = descriptor.FieldDescriptor(
     65   name='nanopb_msgopt', full_name='nanopb_msgopt', index=1,
     66   number=1010, type=11, cpp_type=10, label=1,
     67   has_default_value=False, default_value=None,
     68   message_type=None, enum_type=None, containing_type=None,
     69   is_extension=True, extension_scope=None,
     70   options=None)
     71 NANOPB_ENUMOPT_FIELD_NUMBER = 1010
     72 nanopb_enumopt = descriptor.FieldDescriptor(
     73   name='nanopb_enumopt', full_name='nanopb_enumopt', index=2,
     74   number=1010, type=11, cpp_type=10, label=1,
     75   has_default_value=False, default_value=None,
     76   message_type=None, enum_type=None, containing_type=None,
     77   is_extension=True, extension_scope=None,
     78   options=None)
     79 NANOPB_FIELD_NUMBER = 1010
     80 nanopb = descriptor.FieldDescriptor(
     81   name='nanopb', full_name='nanopb', index=3,
     82   number=1010, type=11, cpp_type=10, label=1,
     83   has_default_value=False, default_value=None,
     84   message_type=None, enum_type=None, containing_type=None,
     85   is_extension=True, extension_scope=None,
     86   options=None)
     87 
     88 
     89 _NANOPBOPTIONS = descriptor.Descriptor(
     90   name='NanoPBOptions',
     91   full_name='NanoPBOptions',
     92   filename=None,
     93   file=DESCRIPTOR,
     94   containing_type=None,
     95   fields=[
     96     descriptor.FieldDescriptor(
     97       name='max_size', full_name='NanoPBOptions.max_size', index=0,
     98       number=1, type=5, cpp_type=1, label=1,
     99       has_default_value=False, default_value=0,
    100       message_type=None, enum_type=None, containing_type=None,
    101       is_extension=False, extension_scope=None,
    102       options=None),
    103     descriptor.FieldDescriptor(
    104       name='max_count', full_name='NanoPBOptions.max_count', index=1,
    105       number=2, type=5, cpp_type=1, label=1,
    106       has_default_value=False, default_value=0,
    107       message_type=None, enum_type=None, containing_type=None,
    108       is_extension=False, extension_scope=None,
    109       options=None),
    110     descriptor.FieldDescriptor(
    111       name='type', full_name='NanoPBOptions.type', index=2,
    112       number=3, type=14, cpp_type=8, label=1,
    113       has_default_value=True, default_value=0,
    114       message_type=None, enum_type=None, containing_type=None,
    115       is_extension=False, extension_scope=None,
    116       options=None),
    117     descriptor.FieldDescriptor(
    118       name='long_names', full_name='NanoPBOptions.long_names', index=3,
    119       number=4, type=8, cpp_type=7, label=1,
    120       has_default_value=True, default_value=True,
    121       message_type=None, enum_type=None, containing_type=None,
    122       is_extension=False, extension_scope=None,
    123       options=None),
    124     descriptor.FieldDescriptor(
    125       name='packed_struct', full_name='NanoPBOptions.packed_struct', index=4,
    126       number=5, type=8, cpp_type=7, label=1,
    127       has_default_value=True, default_value=False,
    128       message_type=None, enum_type=None, containing_type=None,
    129       is_extension=False, extension_scope=None,
    130       options=None),
    131   ],
    132   extensions=[
    133   ],
    134   nested_types=[],
    135   enum_types=[
    136   ],
    137   options=None,
    138   is_extendable=False,
    139   extension_ranges=[],
    140   serialized_start=51,
    141   serialized_end=197,
    142 )
    143 
    144 import google.protobuf.descriptor_pb2
    145 
    146 _NANOPBOPTIONS.fields_by_name['type'].enum_type = _FIELDTYPE
    147 
    148 class NanoPBOptions(message.Message):
    149   __metaclass__ = reflection.GeneratedProtocolMessageType
    150   DESCRIPTOR = _NANOPBOPTIONS
    151   
    152   # @@protoc_insertion_point(class_scope:NanoPBOptions)
    153 
    154 nanopb_fileopt.message_type = _NANOPBOPTIONS
    155 google.protobuf.descriptor_pb2.FileOptions.RegisterExtension(nanopb_fileopt)
    156 nanopb_msgopt.message_type = _NANOPBOPTIONS
    157 google.protobuf.descriptor_pb2.MessageOptions.RegisterExtension(nanopb_msgopt)
    158 nanopb_enumopt.message_type = _NANOPBOPTIONS
    159 google.protobuf.descriptor_pb2.EnumOptions.RegisterExtension(nanopb_enumopt)
    160 nanopb.message_type = _NANOPBOPTIONS
    161 google.protobuf.descriptor_pb2.FieldOptions.RegisterExtension(nanopb)
    162 # @@protoc_insertion_point(module_scope)
    163