Updating a set of supported NR metrics
[ric-app/mc.git] / mc-core / mc / local_datasource / ricgeomessages.pb-c.c
1 /* Generated by the protocol buffer compiler.  DO NOT EDIT! */
2 /* Generated from: ricgeomessages.proto */
3
4 /* Do not generate deprecated warnings for self */
5 #ifndef PROTOBUF_C__NO_DEPRECATED
6 #define PROTOBUF_C__NO_DEPRECATED
7 #endif
8
9 #include "ricgeomessages.pb-c.h"
10 void   geo_hdr__init
11                      (GeoHdr         *message)
12 {
13   static const GeoHdr init_value = GEO_HDR__INIT;
14   *message = init_value;
15 }
16 size_t geo_hdr__get_packed_size
17                      (const GeoHdr *message)
18 {
19   assert(message->base.descriptor == &geo_hdr__descriptor);
20   return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
21 }
22 size_t geo_hdr__pack
23                      (const GeoHdr *message,
24                       uint8_t       *out)
25 {
26   assert(message->base.descriptor == &geo_hdr__descriptor);
27   return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
28 }
29 size_t geo_hdr__pack_to_buffer
30                      (const GeoHdr *message,
31                       ProtobufCBuffer *buffer)
32 {
33   assert(message->base.descriptor == &geo_hdr__descriptor);
34   return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
35 }
36 GeoHdr *
37        geo_hdr__unpack
38                      (ProtobufCAllocator  *allocator,
39                       size_t               len,
40                       const uint8_t       *data)
41 {
42   return (GeoHdr *)
43      protobuf_c_message_unpack (&geo_hdr__descriptor,
44                                 allocator, len, data);
45 }
46 void   geo_hdr__free_unpacked
47                      (GeoHdr *message,
48                       ProtobufCAllocator *allocator)
49 {
50   if(!message)
51     return;
52   assert(message->base.descriptor == &geo_hdr__descriptor);
53   protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
54 }
55 void   geo_msg__init
56                      (GeoMsg         *message)
57 {
58   static const GeoMsg init_value = GEO_MSG__INIT;
59   *message = init_value;
60 }
61 size_t geo_msg__get_packed_size
62                      (const GeoMsg *message)
63 {
64   assert(message->base.descriptor == &geo_msg__descriptor);
65   return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
66 }
67 size_t geo_msg__pack
68                      (const GeoMsg *message,
69                       uint8_t       *out)
70 {
71   assert(message->base.descriptor == &geo_msg__descriptor);
72   return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
73 }
74 size_t geo_msg__pack_to_buffer
75                      (const GeoMsg *message,
76                       ProtobufCBuffer *buffer)
77 {
78   assert(message->base.descriptor == &geo_msg__descriptor);
79   return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
80 }
81 GeoMsg *
82        geo_msg__unpack
83                      (ProtobufCAllocator  *allocator,
84                       size_t               len,
85                       const uint8_t       *data)
86 {
87   return (GeoMsg *)
88      protobuf_c_message_unpack (&geo_msg__descriptor,
89                                 allocator, len, data);
90 }
91 void   geo_msg__free_unpacked
92                      (GeoMsg *message,
93                       ProtobufCAllocator *allocator)
94 {
95   if(!message)
96     return;
97   assert(message->base.descriptor == &geo_msg__descriptor);
98   protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
99 }
100 static const ProtobufCFieldDescriptor geo_hdr__field_descriptors[6] =
101 {
102   {
103     "SequenceNumber",
104     1,
105     PROTOBUF_C_LABEL_NONE,
106     PROTOBUF_C_TYPE_UINT64,
107     0,   /* quantifier_offset */
108     offsetof(GeoHdr, sequencenumber),
109     NULL,
110     NULL,
111     0,             /* flags */
112     0,NULL,NULL    /* reserved1,reserved2, etc */
113   },
114   {
115     "Timestamp",
116     2,
117     PROTOBUF_C_LABEL_NONE,
118     PROTOBUF_C_TYPE_UINT64,
119     0,   /* quantifier_offset */
120     offsetof(GeoHdr, timestamp),
121     NULL,
122     NULL,
123     0,             /* flags */
124     0,NULL,NULL    /* reserved1,reserved2, etc */
125   },
126   {
127     "Eci",
128     3,
129     PROTOBUF_C_LABEL_NONE,
130     PROTOBUF_C_TYPE_UINT32,
131     0,   /* quantifier_offset */
132     offsetof(GeoHdr, eci),
133     NULL,
134     NULL,
135     0,             /* flags */
136     0,NULL,NULL    /* reserved1,reserved2, etc */
137   },
138   {
139     "Plmn",
140     4,
141     PROTOBUF_C_LABEL_NONE,
142     PROTOBUF_C_TYPE_UINT32,
143     0,   /* quantifier_offset */
144     offsetof(GeoHdr, plmn),
145     NULL,
146     NULL,
147     0,             /* flags */
148     0,NULL,NULL    /* reserved1,reserved2, etc */
149   },
150   {
151     "EUtranTraceID",
152     5,
153     PROTOBUF_C_LABEL_NONE,
154     PROTOBUF_C_TYPE_UINT64,
155     0,   /* quantifier_offset */
156     offsetof(GeoHdr, eutrantraceid),
157     NULL,
158     NULL,
159     0,             /* flags */
160     0,NULL,NULL    /* reserved1,reserved2, etc */
161   },
162   {
163     "CRNTI",
164     6,
165     PROTOBUF_C_LABEL_NONE,
166     PROTOBUF_C_TYPE_UINT32,
167     0,   /* quantifier_offset */
168     offsetof(GeoHdr, crnti),
169     NULL,
170     NULL,
171     0,             /* flags */
172     0,NULL,NULL    /* reserved1,reserved2, etc */
173   },
174 };
175 static const unsigned geo_hdr__field_indices_by_name[] = {
176   5,   /* field[5] = CRNTI */
177   4,   /* field[4] = EUtranTraceID */
178   2,   /* field[2] = Eci */
179   3,   /* field[3] = Plmn */
180   0,   /* field[0] = SequenceNumber */
181   1,   /* field[1] = Timestamp */
182 };
183 static const ProtobufCIntRange geo_hdr__number_ranges[1 + 1] =
184 {
185   { 1, 0 },
186   { 0, 6 }
187 };
188 const ProtobufCMessageDescriptor geo_hdr__descriptor =
189 {
190   PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
191   "GeoHdr",
192   "GeoHdr",
193   "GeoHdr",
194   "",
195   sizeof(GeoHdr),
196   6,
197   geo_hdr__field_descriptors,
198   geo_hdr__field_indices_by_name,
199   1,  geo_hdr__number_ranges,
200   (ProtobufCMessageInit) geo_hdr__init,
201   NULL,NULL,NULL    /* reserved[123] */
202 };
203 static const ProtobufCEnumValue geo_msg__types__enum_values_by_number[1] =
204 {
205   { "PCMDREPORT", "GEO_MSG__TYPES__PCMDREPORT", 0 },
206 };
207 static const ProtobufCIntRange geo_msg__types__value_ranges[] = {
208 {0, 0},{0, 1}
209 };
210 static const ProtobufCEnumValueIndex geo_msg__types__enum_values_by_name[1] =
211 {
212   { "PCMDREPORT", 0 },
213 };
214 const ProtobufCEnumDescriptor geo_msg__types__descriptor =
215 {
216   PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
217   "GeoMsg.Types",
218   "Types",
219   "GeoMsg__Types",
220   "",
221   1,
222   geo_msg__types__enum_values_by_number,
223   1,
224   geo_msg__types__enum_values_by_name,
225   1,
226   geo_msg__types__value_ranges,
227   NULL,NULL,NULL,NULL   /* reserved[1234] */
228 };
229 static const ProtobufCFieldDescriptor geo_msg__field_descriptors[3] =
230 {
231   {
232     "type",
233     1,
234     PROTOBUF_C_LABEL_NONE,
235     PROTOBUF_C_TYPE_ENUM,
236     0,   /* quantifier_offset */
237     offsetof(GeoMsg, type),
238     &geo_msg__types__descriptor,
239     NULL,
240     0,             /* flags */
241     0,NULL,NULL    /* reserved1,reserved2, etc */
242   },
243   {
244     "report",
245     2,
246     PROTOBUF_C_LABEL_NONE,
247     PROTOBUF_C_TYPE_MESSAGE,
248     offsetof(GeoMsg, geo_msg_oneof_case),
249     offsetof(GeoMsg, report),
250     &pcmd_report__descriptor,
251     NULL,
252     0 | PROTOBUF_C_FIELD_FLAG_ONEOF,             /* flags */
253     0,NULL,NULL    /* reserved1,reserved2, etc */
254   },
255   {
256     "hdr",
257     3,
258     PROTOBUF_C_LABEL_NONE,
259     PROTOBUF_C_TYPE_MESSAGE,
260     0,   /* quantifier_offset */
261     offsetof(GeoMsg, hdr),
262     &geo_hdr__descriptor,
263     NULL,
264     0,             /* flags */
265     0,NULL,NULL    /* reserved1,reserved2, etc */
266   },
267 };
268 static const unsigned geo_msg__field_indices_by_name[] = {
269   2,   /* field[2] = hdr */
270   1,   /* field[1] = report */
271   0,   /* field[0] = type */
272 };
273 static const ProtobufCIntRange geo_msg__number_ranges[1 + 1] =
274 {
275   { 1, 0 },
276   { 0, 3 }
277 };
278 const ProtobufCMessageDescriptor geo_msg__descriptor =
279 {
280   PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
281   "GeoMsg",
282   "GeoMsg",
283   "GeoMsg",
284   "",
285   sizeof(GeoMsg),
286   3,
287   geo_msg__field_descriptors,
288   geo_msg__field_indices_by_name,
289   1,  geo_msg__number_ranges,
290   (ProtobufCMessageInit) geo_msg__init,
291   NULL,NULL,NULL    /* reserved[123] */
292 };