Support for additional NR metrics
[ric-app/mc.git] / mc-core / mc / local_datasource / rrc_general_message_types.pb-c.c
1 /* Generated by the protocol buffer compiler.  DO NOT EDIT! */
2 /* Generated from: rrc_general_message_types.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 "rrc_general_message_types.pb-c.h"
10 void   streaming_protobufs__rrccontainer__init
11                      (StreamingProtobufs__RRCContainer         *message)
12 {
13   static const StreamingProtobufs__RRCContainer init_value = STREAMING_PROTOBUFS__RRCCONTAINER__INIT;
14   *message = init_value;
15 }
16 size_t streaming_protobufs__rrccontainer__get_packed_size
17                      (const StreamingProtobufs__RRCContainer *message)
18 {
19   assert(message->base.descriptor == &streaming_protobufs__rrccontainer__descriptor);
20   return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
21 }
22 size_t streaming_protobufs__rrccontainer__pack
23                      (const StreamingProtobufs__RRCContainer *message,
24                       uint8_t       *out)
25 {
26   assert(message->base.descriptor == &streaming_protobufs__rrccontainer__descriptor);
27   return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
28 }
29 size_t streaming_protobufs__rrccontainer__pack_to_buffer
30                      (const StreamingProtobufs__RRCContainer *message,
31                       ProtobufCBuffer *buffer)
32 {
33   assert(message->base.descriptor == &streaming_protobufs__rrccontainer__descriptor);
34   return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
35 }
36 StreamingProtobufs__RRCContainer *
37        streaming_protobufs__rrccontainer__unpack
38                      (ProtobufCAllocator  *allocator,
39                       size_t               len,
40                       const uint8_t       *data)
41 {
42   return (StreamingProtobufs__RRCContainer *)
43      protobuf_c_message_unpack (&streaming_protobufs__rrccontainer__descriptor,
44                                 allocator, len, data);
45 }
46 void   streaming_protobufs__rrccontainer__free_unpacked
47                      (StreamingProtobufs__RRCContainer *message,
48                       ProtobufCAllocator *allocator)
49 {
50   if(!message)
51     return;
52   assert(message->base.descriptor == &streaming_protobufs__rrccontainer__descriptor);
53   protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
54 }
55 void   streaming_protobufs__ul__dcch__message_type__init
56                      (StreamingProtobufs__ULDCCHMessageType         *message)
57 {
58   static const StreamingProtobufs__ULDCCHMessageType init_value = STREAMING_PROTOBUFS__UL__DCCH__MESSAGE_TYPE__INIT;
59   *message = init_value;
60 }
61 size_t streaming_protobufs__ul__dcch__message_type__get_packed_size
62                      (const StreamingProtobufs__ULDCCHMessageType *message)
63 {
64   assert(message->base.descriptor == &streaming_protobufs__ul__dcch__message_type__descriptor);
65   return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
66 }
67 size_t streaming_protobufs__ul__dcch__message_type__pack
68                      (const StreamingProtobufs__ULDCCHMessageType *message,
69                       uint8_t       *out)
70 {
71   assert(message->base.descriptor == &streaming_protobufs__ul__dcch__message_type__descriptor);
72   return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
73 }
74 size_t streaming_protobufs__ul__dcch__message_type__pack_to_buffer
75                      (const StreamingProtobufs__ULDCCHMessageType *message,
76                       ProtobufCBuffer *buffer)
77 {
78   assert(message->base.descriptor == &streaming_protobufs__ul__dcch__message_type__descriptor);
79   return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
80 }
81 StreamingProtobufs__ULDCCHMessageType *
82        streaming_protobufs__ul__dcch__message_type__unpack
83                      (ProtobufCAllocator  *allocator,
84                       size_t               len,
85                       const uint8_t       *data)
86 {
87   return (StreamingProtobufs__ULDCCHMessageType *)
88      protobuf_c_message_unpack (&streaming_protobufs__ul__dcch__message_type__descriptor,
89                                 allocator, len, data);
90 }
91 void   streaming_protobufs__ul__dcch__message_type__free_unpacked
92                      (StreamingProtobufs__ULDCCHMessageType *message,
93                       ProtobufCAllocator *allocator)
94 {
95   if(!message)
96     return;
97   assert(message->base.descriptor == &streaming_protobufs__ul__dcch__message_type__descriptor);
98   protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
99 }
100 static const ProtobufCFieldDescriptor streaming_protobufs__rrccontainer__field_descriptors[1] =
101 {
102   {
103     "UL_DCCH_message",
104     1,
105     PROTOBUF_C_LABEL_NONE,
106     PROTOBUF_C_TYPE_MESSAGE,
107     0,   /* quantifier_offset */
108     offsetof(StreamingProtobufs__RRCContainer, ul_dcch_message),
109     &streaming_protobufs__ul__dcch__message_type__descriptor,
110     NULL,
111     0,             /* flags */
112     0,NULL,NULL    /* reserved1,reserved2, etc */
113   },
114 };
115 static const unsigned streaming_protobufs__rrccontainer__field_indices_by_name[] = {
116   0,   /* field[0] = UL_DCCH_message */
117 };
118 static const ProtobufCIntRange streaming_protobufs__rrccontainer__number_ranges[1 + 1] =
119 {
120   { 1, 0 },
121   { 0, 1 }
122 };
123 const ProtobufCMessageDescriptor streaming_protobufs__rrccontainer__descriptor =
124 {
125   PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
126   "streaming_protobufs.RRCContainer",
127   "RRCContainer",
128   "StreamingProtobufs__RRCContainer",
129   "streaming_protobufs",
130   sizeof(StreamingProtobufs__RRCContainer),
131   1,
132   streaming_protobufs__rrccontainer__field_descriptors,
133   streaming_protobufs__rrccontainer__field_indices_by_name,
134   1,  streaming_protobufs__rrccontainer__number_ranges,
135   (ProtobufCMessageInit) streaming_protobufs__rrccontainer__init,
136   NULL,NULL,NULL    /* reserved[123] */
137 };
138 static const ProtobufCFieldDescriptor streaming_protobufs__ul__dcch__message_type__field_descriptors[2] =
139 {
140   {
141     "measurementReport",
142     1,
143     PROTOBUF_C_LABEL_NONE,
144     PROTOBUF_C_TYPE_MESSAGE,
145     offsetof(StreamingProtobufs__ULDCCHMessageType, c1_case),
146     offsetof(StreamingProtobufs__ULDCCHMessageType, measurementreport),
147     &streaming_protobufs__measurement_report__descriptor,
148     NULL,
149     0 | PROTOBUF_C_FIELD_FLAG_ONEOF,             /* flags */
150     0,NULL,NULL    /* reserved1,reserved2, etc */
151   },
152   {
153     "failureInformation",
154     2,
155     PROTOBUF_C_LABEL_NONE,
156     PROTOBUF_C_TYPE_MESSAGE,
157     offsetof(StreamingProtobufs__ULDCCHMessageType, c1_case),
158     offsetof(StreamingProtobufs__ULDCCHMessageType, failureinformation),
159     &streaming_protobufs__failure_information__descriptor,
160     NULL,
161     0 | PROTOBUF_C_FIELD_FLAG_ONEOF,             /* flags */
162     0,NULL,NULL    /* reserved1,reserved2, etc */
163   },
164 };
165 static const unsigned streaming_protobufs__ul__dcch__message_type__field_indices_by_name[] = {
166   1,   /* field[1] = failureInformation */
167   0,   /* field[0] = measurementReport */
168 };
169 static const ProtobufCIntRange streaming_protobufs__ul__dcch__message_type__number_ranges[1 + 1] =
170 {
171   { 1, 0 },
172   { 0, 2 }
173 };
174 const ProtobufCMessageDescriptor streaming_protobufs__ul__dcch__message_type__descriptor =
175 {
176   PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
177   "streaming_protobufs.UL_DCCH_MessageType",
178   "ULDCCHMessageType",
179   "StreamingProtobufs__ULDCCHMessageType",
180   "streaming_protobufs",
181   sizeof(StreamingProtobufs__ULDCCHMessageType),
182   2,
183   streaming_protobufs__ul__dcch__message_type__field_descriptors,
184   streaming_protobufs__ul__dcch__message_type__field_indices_by_name,
185   1,  streaming_protobufs__ul__dcch__message_type__number_ranges,
186   (ProtobufCMessageInit) streaming_protobufs__ul__dcch__message_type__init,
187   NULL,NULL,NULL    /* reserved[123] */
188 };