Itron LCE research protocol on July 12, 2017. The protocol is based on Protocol Buffers developed by Google.
Dependents: ProtocBufTest Borsch
source/command.pb.c
- Committer:
- sgnezdov
- Date:
- 2017-08-03
- Revision:
- 2:67db916a7e08
- Parent:
- 0:1139a294684a
File content as of revision 2:67db916a7e08:
/* Automatically generated nanopb constant definitions */ /* Generated by nanopb-0.3.8 at Wed Jul 12 11:04:33 2017. */ #include "command.pb.h" /* @@protoc_insertion_point(includes) */ #if PB_PROTO_HEADER_VERSION != 30 #error Regenerate this file with the current version of nanopb generator. #endif const pb_field_t protocol_Command_fields[4] = { PB_FIELD( 1, MESSAGE , SINGULAR, STATIC , FIRST, protocol_Command, issuedDT, issuedDT, &google_protobuf_Timestamp_fields), PB_FIELD( 2, UINT32 , SINGULAR, STATIC , OTHER, protocol_Command, commandType, issuedDT, 0), PB_FIELD( 10, BYTES , SINGULAR, CALLBACK, OTHER, protocol_Command, payload, commandType, 0), PB_LAST_FIELD }; const pb_field_t protocol_CommandBatch_fields[3] = { PB_FIELD( 1, STRING , SINGULAR, CALLBACK, FIRST, protocol_CommandBatch, sn, sn, 0), PB_FIELD( 10, MESSAGE , REPEATED, CALLBACK, OTHER, protocol_CommandBatch, items, sn, &protocol_Command_fields), PB_LAST_FIELD }; const pb_field_t protocol_SecureCommandBatch_fields[3] = { PB_FIELD( 1, BYTES , SINGULAR, CALLBACK, FIRST, protocol_SecureCommandBatch, signature, signature, 0), PB_FIELD( 2, BYTES , SINGULAR, CALLBACK, OTHER, protocol_SecureCommandBatch, content, signature, 0), PB_LAST_FIELD }; const pb_field_t protocol_CommandResponse_fields[3] = { PB_FIELD( 1, MESSAGE , SINGULAR, STATIC , FIRST, protocol_CommandResponse, issuedDT, issuedDT, &google_protobuf_Timestamp_fields), PB_FIELD( 2, UENUM , SINGULAR, STATIC , OTHER, protocol_CommandResponse, status, issuedDT, 0), PB_LAST_FIELD }; const pb_field_t protocol_CommandResponseBatch_fields[3] = { PB_FIELD( 1, STRING , SINGULAR, CALLBACK, FIRST, protocol_CommandResponseBatch, sn, sn, 0), PB_FIELD( 2, MESSAGE , REPEATED, CALLBACK, OTHER, protocol_CommandResponseBatch, items, sn, &protocol_CommandResponse_fields), PB_LAST_FIELD }; /* Check that field information fits in pb_field_t */ #if !defined(PB_FIELD_32BIT) /* If you get an error here, it means that you need to define PB_FIELD_32BIT * compile-time option. You can do that in pb.h or on compiler command line. * * The reason you need to do this is that some of your messages contain tag * numbers or field sizes that are larger than what can fit in 8 or 16 bit * field descriptors. */ PB_STATIC_ASSERT((pb_membersize(protocol_Command, issuedDT) < 65536 && pb_membersize(protocol_CommandResponse, issuedDT) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_protocol_Command_protocol_CommandBatch_protocol_SecureCommandBatch_protocol_CommandResponse_protocol_CommandResponseBatch) #endif #if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT) /* If you get an error here, it means that you need to define PB_FIELD_16BIT * compile-time option. You can do that in pb.h or on compiler command line. * * The reason you need to do this is that some of your messages contain tag * numbers or field sizes that are larger than what can fit in the default * 8 bit descriptors. */ PB_STATIC_ASSERT((pb_membersize(protocol_Command, issuedDT) < 256 && pb_membersize(protocol_CommandResponse, issuedDT) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_protocol_Command_protocol_CommandBatch_protocol_SecureCommandBatch_protocol_CommandResponse_protocol_CommandResponseBatch) #endif /* @@protoc_insertion_point(eof) */