1 /* Generated by the protocol buffer compiler.  DO NOT EDIT! */
2 /* Generated from: Parameters.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 "Parameters.pb-c.h"
core_ml__specification__int64_parameter__init(CoreML__Specification__Int64Parameter * message)10 void   core_ml__specification__int64_parameter__init
11                      (CoreML__Specification__Int64Parameter         *message)
12 {
13   static const CoreML__Specification__Int64Parameter init_value = CORE_ML__SPECIFICATION__INT64_PARAMETER__INIT;
14   *message = init_value;
15 }
core_ml__specification__int64_parameter__get_packed_size(const CoreML__Specification__Int64Parameter * message)16 size_t core_ml__specification__int64_parameter__get_packed_size
17                      (const CoreML__Specification__Int64Parameter *message)
18 {
19   assert(message->base.descriptor == &core_ml__specification__int64_parameter__descriptor);
20   return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
21 }
core_ml__specification__int64_parameter__pack(const CoreML__Specification__Int64Parameter * message,uint8_t * out)22 size_t core_ml__specification__int64_parameter__pack
23                      (const CoreML__Specification__Int64Parameter *message,
24                       uint8_t       *out)
25 {
26   assert(message->base.descriptor == &core_ml__specification__int64_parameter__descriptor);
27   return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
28 }
core_ml__specification__int64_parameter__pack_to_buffer(const CoreML__Specification__Int64Parameter * message,ProtobufCBuffer * buffer)29 size_t core_ml__specification__int64_parameter__pack_to_buffer
30                      (const CoreML__Specification__Int64Parameter *message,
31                       ProtobufCBuffer *buffer)
32 {
33   assert(message->base.descriptor == &core_ml__specification__int64_parameter__descriptor);
34   return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
35 }
36 CoreML__Specification__Int64Parameter *
core_ml__specification__int64_parameter__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)37        core_ml__specification__int64_parameter__unpack
38                      (ProtobufCAllocator  *allocator,
39                       size_t               len,
40                       const uint8_t       *data)
41 {
42   return (CoreML__Specification__Int64Parameter *)
43      protobuf_c_message_unpack (&core_ml__specification__int64_parameter__descriptor,
44                                 allocator, len, data);
45 }
core_ml__specification__int64_parameter__free_unpacked(CoreML__Specification__Int64Parameter * message,ProtobufCAllocator * allocator)46 void   core_ml__specification__int64_parameter__free_unpacked
47                      (CoreML__Specification__Int64Parameter *message,
48                       ProtobufCAllocator *allocator)
49 {
50   if(!message)
51     return;
52   assert(message->base.descriptor == &core_ml__specification__int64_parameter__descriptor);
53   protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
54 }
core_ml__specification__double_parameter__init(CoreML__Specification__DoubleParameter * message)55 void   core_ml__specification__double_parameter__init
56                      (CoreML__Specification__DoubleParameter         *message)
57 {
58   static const CoreML__Specification__DoubleParameter init_value = CORE_ML__SPECIFICATION__DOUBLE_PARAMETER__INIT;
59   *message = init_value;
60 }
core_ml__specification__double_parameter__get_packed_size(const CoreML__Specification__DoubleParameter * message)61 size_t core_ml__specification__double_parameter__get_packed_size
62                      (const CoreML__Specification__DoubleParameter *message)
63 {
64   assert(message->base.descriptor == &core_ml__specification__double_parameter__descriptor);
65   return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
66 }
core_ml__specification__double_parameter__pack(const CoreML__Specification__DoubleParameter * message,uint8_t * out)67 size_t core_ml__specification__double_parameter__pack
68                      (const CoreML__Specification__DoubleParameter *message,
69                       uint8_t       *out)
70 {
71   assert(message->base.descriptor == &core_ml__specification__double_parameter__descriptor);
72   return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
73 }
core_ml__specification__double_parameter__pack_to_buffer(const CoreML__Specification__DoubleParameter * message,ProtobufCBuffer * buffer)74 size_t core_ml__specification__double_parameter__pack_to_buffer
75                      (const CoreML__Specification__DoubleParameter *message,
76                       ProtobufCBuffer *buffer)
77 {
78   assert(message->base.descriptor == &core_ml__specification__double_parameter__descriptor);
79   return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
80 }
81 CoreML__Specification__DoubleParameter *
core_ml__specification__double_parameter__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)82        core_ml__specification__double_parameter__unpack
83                      (ProtobufCAllocator  *allocator,
84                       size_t               len,
85                       const uint8_t       *data)
86 {
87   return (CoreML__Specification__DoubleParameter *)
88      protobuf_c_message_unpack (&core_ml__specification__double_parameter__descriptor,
89                                 allocator, len, data);
90 }
core_ml__specification__double_parameter__free_unpacked(CoreML__Specification__DoubleParameter * message,ProtobufCAllocator * allocator)91 void   core_ml__specification__double_parameter__free_unpacked
92                      (CoreML__Specification__DoubleParameter *message,
93                       ProtobufCAllocator *allocator)
94 {
95   if(!message)
96     return;
97   assert(message->base.descriptor == &core_ml__specification__double_parameter__descriptor);
98   protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
99 }
core_ml__specification__string_parameter__init(CoreML__Specification__StringParameter * message)100 void   core_ml__specification__string_parameter__init
101                      (CoreML__Specification__StringParameter         *message)
102 {
103   static const CoreML__Specification__StringParameter init_value = CORE_ML__SPECIFICATION__STRING_PARAMETER__INIT;
104   *message = init_value;
105 }
core_ml__specification__string_parameter__get_packed_size(const CoreML__Specification__StringParameter * message)106 size_t core_ml__specification__string_parameter__get_packed_size
107                      (const CoreML__Specification__StringParameter *message)
108 {
109   assert(message->base.descriptor == &core_ml__specification__string_parameter__descriptor);
110   return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
111 }
core_ml__specification__string_parameter__pack(const CoreML__Specification__StringParameter * message,uint8_t * out)112 size_t core_ml__specification__string_parameter__pack
113                      (const CoreML__Specification__StringParameter *message,
114                       uint8_t       *out)
115 {
116   assert(message->base.descriptor == &core_ml__specification__string_parameter__descriptor);
117   return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
118 }
core_ml__specification__string_parameter__pack_to_buffer(const CoreML__Specification__StringParameter * message,ProtobufCBuffer * buffer)119 size_t core_ml__specification__string_parameter__pack_to_buffer
120                      (const CoreML__Specification__StringParameter *message,
121                       ProtobufCBuffer *buffer)
122 {
123   assert(message->base.descriptor == &core_ml__specification__string_parameter__descriptor);
124   return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
125 }
126 CoreML__Specification__StringParameter *
core_ml__specification__string_parameter__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)127        core_ml__specification__string_parameter__unpack
128                      (ProtobufCAllocator  *allocator,
129                       size_t               len,
130                       const uint8_t       *data)
131 {
132   return (CoreML__Specification__StringParameter *)
133      protobuf_c_message_unpack (&core_ml__specification__string_parameter__descriptor,
134                                 allocator, len, data);
135 }
core_ml__specification__string_parameter__free_unpacked(CoreML__Specification__StringParameter * message,ProtobufCAllocator * allocator)136 void   core_ml__specification__string_parameter__free_unpacked
137                      (CoreML__Specification__StringParameter *message,
138                       ProtobufCAllocator *allocator)
139 {
140   if(!message)
141     return;
142   assert(message->base.descriptor == &core_ml__specification__string_parameter__descriptor);
143   protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
144 }
core_ml__specification__bool_parameter__init(CoreML__Specification__BoolParameter * message)145 void   core_ml__specification__bool_parameter__init
146                      (CoreML__Specification__BoolParameter         *message)
147 {
148   static const CoreML__Specification__BoolParameter init_value = CORE_ML__SPECIFICATION__BOOL_PARAMETER__INIT;
149   *message = init_value;
150 }
core_ml__specification__bool_parameter__get_packed_size(const CoreML__Specification__BoolParameter * message)151 size_t core_ml__specification__bool_parameter__get_packed_size
152                      (const CoreML__Specification__BoolParameter *message)
153 {
154   assert(message->base.descriptor == &core_ml__specification__bool_parameter__descriptor);
155   return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
156 }
core_ml__specification__bool_parameter__pack(const CoreML__Specification__BoolParameter * message,uint8_t * out)157 size_t core_ml__specification__bool_parameter__pack
158                      (const CoreML__Specification__BoolParameter *message,
159                       uint8_t       *out)
160 {
161   assert(message->base.descriptor == &core_ml__specification__bool_parameter__descriptor);
162   return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
163 }
core_ml__specification__bool_parameter__pack_to_buffer(const CoreML__Specification__BoolParameter * message,ProtobufCBuffer * buffer)164 size_t core_ml__specification__bool_parameter__pack_to_buffer
165                      (const CoreML__Specification__BoolParameter *message,
166                       ProtobufCBuffer *buffer)
167 {
168   assert(message->base.descriptor == &core_ml__specification__bool_parameter__descriptor);
169   return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
170 }
171 CoreML__Specification__BoolParameter *
core_ml__specification__bool_parameter__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)172        core_ml__specification__bool_parameter__unpack
173                      (ProtobufCAllocator  *allocator,
174                       size_t               len,
175                       const uint8_t       *data)
176 {
177   return (CoreML__Specification__BoolParameter *)
178      protobuf_c_message_unpack (&core_ml__specification__bool_parameter__descriptor,
179                                 allocator, len, data);
180 }
core_ml__specification__bool_parameter__free_unpacked(CoreML__Specification__BoolParameter * message,ProtobufCAllocator * allocator)181 void   core_ml__specification__bool_parameter__free_unpacked
182                      (CoreML__Specification__BoolParameter *message,
183                       ProtobufCAllocator *allocator)
184 {
185   if(!message)
186     return;
187   assert(message->base.descriptor == &core_ml__specification__bool_parameter__descriptor);
188   protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
189 }
190 static const ProtobufCFieldDescriptor core_ml__specification__int64_parameter__field_descriptors[3] =
191 {
192   {
193     "defaultValue",
194     1,
195     PROTOBUF_C_LABEL_NONE,
196     PROTOBUF_C_TYPE_INT64,
197     0,   /* quantifier_offset */
198     offsetof(CoreML__Specification__Int64Parameter, defaultvalue),
199     NULL,
200     NULL,
201     0,             /* flags */
202     0,NULL,NULL    /* reserved1,reserved2, etc */
203   },
204   {
205     "range",
206     10,
207     PROTOBUF_C_LABEL_NONE,
208     PROTOBUF_C_TYPE_MESSAGE,
209     offsetof(CoreML__Specification__Int64Parameter, allowed_values_case),
210     offsetof(CoreML__Specification__Int64Parameter, range),
211     &core_ml__specification__int64_range__descriptor,
212     NULL,
213     0 | PROTOBUF_C_FIELD_FLAG_ONEOF,             /* flags */
214     0,NULL,NULL    /* reserved1,reserved2, etc */
215   },
216   {
217     "set",
218     11,
219     PROTOBUF_C_LABEL_NONE,
220     PROTOBUF_C_TYPE_MESSAGE,
221     offsetof(CoreML__Specification__Int64Parameter, allowed_values_case),
222     offsetof(CoreML__Specification__Int64Parameter, set),
223     &core_ml__specification__int64_set__descriptor,
224     NULL,
225     0 | PROTOBUF_C_FIELD_FLAG_ONEOF,             /* flags */
226     0,NULL,NULL    /* reserved1,reserved2, etc */
227   },
228 };
229 static const unsigned core_ml__specification__int64_parameter__field_indices_by_name[] = {
230   0,   /* field[0] = defaultValue */
231   1,   /* field[1] = range */
232   2,   /* field[2] = set */
233 };
234 static const ProtobufCIntRange core_ml__specification__int64_parameter__number_ranges[2 + 1] =
235 {
236   { 1, 0 },
237   { 10, 1 },
238   { 0, 3 }
239 };
240 const ProtobufCMessageDescriptor core_ml__specification__int64_parameter__descriptor =
241 {
242   PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
243   "CoreML.Specification.Int64Parameter",
244   "Int64Parameter",
245   "CoreML__Specification__Int64Parameter",
246   "CoreML.Specification",
247   sizeof(CoreML__Specification__Int64Parameter),
248   3,
249   core_ml__specification__int64_parameter__field_descriptors,
250   core_ml__specification__int64_parameter__field_indices_by_name,
251   2,  core_ml__specification__int64_parameter__number_ranges,
252   (ProtobufCMessageInit) core_ml__specification__int64_parameter__init,
253   NULL,NULL,NULL    /* reserved[123] */
254 };
255 static const ProtobufCFieldDescriptor core_ml__specification__double_parameter__field_descriptors[2] =
256 {
257   {
258     "defaultValue",
259     1,
260     PROTOBUF_C_LABEL_NONE,
261     PROTOBUF_C_TYPE_DOUBLE,
262     0,   /* quantifier_offset */
263     offsetof(CoreML__Specification__DoubleParameter, defaultvalue),
264     NULL,
265     NULL,
266     0,             /* flags */
267     0,NULL,NULL    /* reserved1,reserved2, etc */
268   },
269   {
270     "range",
271     10,
272     PROTOBUF_C_LABEL_NONE,
273     PROTOBUF_C_TYPE_MESSAGE,
274     offsetof(CoreML__Specification__DoubleParameter, allowed_values_case),
275     offsetof(CoreML__Specification__DoubleParameter, range),
276     &core_ml__specification__double_range__descriptor,
277     NULL,
278     0 | PROTOBUF_C_FIELD_FLAG_ONEOF,             /* flags */
279     0,NULL,NULL    /* reserved1,reserved2, etc */
280   },
281 };
282 static const unsigned core_ml__specification__double_parameter__field_indices_by_name[] = {
283   0,   /* field[0] = defaultValue */
284   1,   /* field[1] = range */
285 };
286 static const ProtobufCIntRange core_ml__specification__double_parameter__number_ranges[2 + 1] =
287 {
288   { 1, 0 },
289   { 10, 1 },
290   { 0, 2 }
291 };
292 const ProtobufCMessageDescriptor core_ml__specification__double_parameter__descriptor =
293 {
294   PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
295   "CoreML.Specification.DoubleParameter",
296   "DoubleParameter",
297   "CoreML__Specification__DoubleParameter",
298   "CoreML.Specification",
299   sizeof(CoreML__Specification__DoubleParameter),
300   2,
301   core_ml__specification__double_parameter__field_descriptors,
302   core_ml__specification__double_parameter__field_indices_by_name,
303   2,  core_ml__specification__double_parameter__number_ranges,
304   (ProtobufCMessageInit) core_ml__specification__double_parameter__init,
305   NULL,NULL,NULL    /* reserved[123] */
306 };
307 static const ProtobufCFieldDescriptor core_ml__specification__string_parameter__field_descriptors[1] =
308 {
309   {
310     "defaultValue",
311     1,
312     PROTOBUF_C_LABEL_NONE,
313     PROTOBUF_C_TYPE_STRING,
314     0,   /* quantifier_offset */
315     offsetof(CoreML__Specification__StringParameter, defaultvalue),
316     NULL,
317     &protobuf_c_empty_string,
318     0,             /* flags */
319     0,NULL,NULL    /* reserved1,reserved2, etc */
320   },
321 };
322 static const unsigned core_ml__specification__string_parameter__field_indices_by_name[] = {
323   0,   /* field[0] = defaultValue */
324 };
325 static const ProtobufCIntRange core_ml__specification__string_parameter__number_ranges[1 + 1] =
326 {
327   { 1, 0 },
328   { 0, 1 }
329 };
330 const ProtobufCMessageDescriptor core_ml__specification__string_parameter__descriptor =
331 {
332   PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
333   "CoreML.Specification.StringParameter",
334   "StringParameter",
335   "CoreML__Specification__StringParameter",
336   "CoreML.Specification",
337   sizeof(CoreML__Specification__StringParameter),
338   1,
339   core_ml__specification__string_parameter__field_descriptors,
340   core_ml__specification__string_parameter__field_indices_by_name,
341   1,  core_ml__specification__string_parameter__number_ranges,
342   (ProtobufCMessageInit) core_ml__specification__string_parameter__init,
343   NULL,NULL,NULL    /* reserved[123] */
344 };
345 static const ProtobufCFieldDescriptor core_ml__specification__bool_parameter__field_descriptors[1] =
346 {
347   {
348     "defaultValue",
349     1,
350     PROTOBUF_C_LABEL_NONE,
351     PROTOBUF_C_TYPE_BOOL,
352     0,   /* quantifier_offset */
353     offsetof(CoreML__Specification__BoolParameter, defaultvalue),
354     NULL,
355     NULL,
356     0,             /* flags */
357     0,NULL,NULL    /* reserved1,reserved2, etc */
358   },
359 };
360 static const unsigned core_ml__specification__bool_parameter__field_indices_by_name[] = {
361   0,   /* field[0] = defaultValue */
362 };
363 static const ProtobufCIntRange core_ml__specification__bool_parameter__number_ranges[1 + 1] =
364 {
365   { 1, 0 },
366   { 0, 1 }
367 };
368 const ProtobufCMessageDescriptor core_ml__specification__bool_parameter__descriptor =
369 {
370   PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
371   "CoreML.Specification.BoolParameter",
372   "BoolParameter",
373   "CoreML__Specification__BoolParameter",
374   "CoreML.Specification",
375   sizeof(CoreML__Specification__BoolParameter),
376   1,
377   core_ml__specification__bool_parameter__field_descriptors,
378   core_ml__specification__bool_parameter__field_indices_by_name,
379   1,  core_ml__specification__bool_parameter__number_ranges,
380   (ProtobufCMessageInit) core_ml__specification__bool_parameter__init,
381   NULL,NULL,NULL    /* reserved[123] */
382 };
383