AERA
tcp_data_message.pb.cc
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tcp_data_message.proto
3 
4 #ifdef ENABLE_PROTOBUF
5 
6 #include "tcp_data_message.pb.h"
7 
8 #include <algorithm>
9 
10 #include <google/protobuf/io/coded_stream.h>
11 #include <google/protobuf/extension_set.h>
12 #include <google/protobuf/wire_format_lite.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
17 // @@protoc_insertion_point(includes)
18 #include <google/protobuf/port_def.inc>
19 
20 PROTOBUF_PRAGMA_INIT_SEG
21 
22 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
23 namespace _pbi = _pb::internal;
24 
25 namespace tcp_io_device {
26 PROTOBUF_CONSTEXPR TCPMessage::TCPMessage(
27  ::_pbi::ConstantInitialized): _impl_{
28  /*decltype(_impl_.timestamp_)*/uint64_t{0u}
29  , /*decltype(_impl_.messagetype_)*/0
30  , /*decltype(_impl_.message_)*/{}
31  , /*decltype(_impl_._cached_size_)*/{}
32  , /*decltype(_impl_._oneof_case_)*/{}} {}
33 struct TCPMessageDefaultTypeInternal {
34  PROTOBUF_CONSTEXPR TCPMessageDefaultTypeInternal()
35  : _instance(::_pbi::ConstantInitialized{}) {}
36  ~TCPMessageDefaultTypeInternal() {}
37  union {
38  TCPMessage _instance;
39  };
40 };
41 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TCPMessageDefaultTypeInternal _TCPMessage_default_instance_;
42 PROTOBUF_CONSTEXPR StartMessage::StartMessage(
43  ::_pbi::ConstantInitialized): _impl_{
44  /*decltype(_impl_.diagnosticmode_)*/false
45  , /*decltype(_impl_.reconnectiontype_)*/0
46  , /*decltype(_impl_._cached_size_)*/{}} {}
47 struct StartMessageDefaultTypeInternal {
48  PROTOBUF_CONSTEXPR StartMessageDefaultTypeInternal()
49  : _instance(::_pbi::ConstantInitialized{}) {}
50  ~StartMessageDefaultTypeInternal() {}
51  union {
52  StartMessage _instance;
53  };
54 };
55 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartMessageDefaultTypeInternal _StartMessage_default_instance_;
56 PROTOBUF_CONSTEXPR StopMessage::StopMessage(
57  ::_pbi::ConstantInitialized) {}
58 struct StopMessageDefaultTypeInternal {
59  PROTOBUF_CONSTEXPR StopMessageDefaultTypeInternal()
60  : _instance(::_pbi::ConstantInitialized{}) {}
61  ~StopMessageDefaultTypeInternal() {}
62  union {
63  StopMessage _instance;
64  };
65 };
66 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopMessageDefaultTypeInternal _StopMessage_default_instance_;
67 PROTOBUF_CONSTEXPR SetupMessage_EntitiesEntry_DoNotUse::SetupMessage_EntitiesEntry_DoNotUse(
68  ::_pbi::ConstantInitialized) {}
69 struct SetupMessage_EntitiesEntry_DoNotUseDefaultTypeInternal {
70  PROTOBUF_CONSTEXPR SetupMessage_EntitiesEntry_DoNotUseDefaultTypeInternal()
71  : _instance(::_pbi::ConstantInitialized{}) {}
72  ~SetupMessage_EntitiesEntry_DoNotUseDefaultTypeInternal() {}
73  union {
74  SetupMessage_EntitiesEntry_DoNotUse _instance;
75  };
76 };
77 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetupMessage_EntitiesEntry_DoNotUseDefaultTypeInternal _SetupMessage_EntitiesEntry_DoNotUse_default_instance_;
78 PROTOBUF_CONSTEXPR SetupMessage_ObjectsEntry_DoNotUse::SetupMessage_ObjectsEntry_DoNotUse(
79  ::_pbi::ConstantInitialized) {}
80 struct SetupMessage_ObjectsEntry_DoNotUseDefaultTypeInternal {
81  PROTOBUF_CONSTEXPR SetupMessage_ObjectsEntry_DoNotUseDefaultTypeInternal()
82  : _instance(::_pbi::ConstantInitialized{}) {}
83  ~SetupMessage_ObjectsEntry_DoNotUseDefaultTypeInternal() {}
84  union {
85  SetupMessage_ObjectsEntry_DoNotUse _instance;
86  };
87 };
88 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetupMessage_ObjectsEntry_DoNotUseDefaultTypeInternal _SetupMessage_ObjectsEntry_DoNotUse_default_instance_;
89 PROTOBUF_CONSTEXPR SetupMessage_CommandsEntry_DoNotUse::SetupMessage_CommandsEntry_DoNotUse(
90  ::_pbi::ConstantInitialized) {}
91 struct SetupMessage_CommandsEntry_DoNotUseDefaultTypeInternal {
92  PROTOBUF_CONSTEXPR SetupMessage_CommandsEntry_DoNotUseDefaultTypeInternal()
93  : _instance(::_pbi::ConstantInitialized{}) {}
94  ~SetupMessage_CommandsEntry_DoNotUseDefaultTypeInternal() {}
95  union {
96  SetupMessage_CommandsEntry_DoNotUse _instance;
97  };
98 };
99 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetupMessage_CommandsEntry_DoNotUseDefaultTypeInternal _SetupMessage_CommandsEntry_DoNotUse_default_instance_;
100 PROTOBUF_CONSTEXPR SetupMessage::SetupMessage(
101  ::_pbi::ConstantInitialized): _impl_{
102  /*decltype(_impl_.entities_)*/{::_pbi::ConstantInitialized()}
103  , /*decltype(_impl_.objects_)*/{::_pbi::ConstantInitialized()}
104  , /*decltype(_impl_.commands_)*/{::_pbi::ConstantInitialized()}
105  , /*decltype(_impl_.commanddescriptions_)*/{}
106  , /*decltype(_impl_._cached_size_)*/{}} {}
107 struct SetupMessageDefaultTypeInternal {
108  PROTOBUF_CONSTEXPR SetupMessageDefaultTypeInternal()
109  : _instance(::_pbi::ConstantInitialized{}) {}
110  ~SetupMessageDefaultTypeInternal() {}
111  union {
112  SetupMessage _instance;
113  };
114 };
115 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetupMessageDefaultTypeInternal _SetupMessage_default_instance_;
116 PROTOBUF_CONSTEXPR CommandDescription::CommandDescription(
117  ::_pbi::ConstantInitialized): _impl_{
118  /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
119  , /*decltype(_impl_.description_)*/nullptr
120  , /*decltype(_impl_._cached_size_)*/{}} {}
121 struct CommandDescriptionDefaultTypeInternal {
122  PROTOBUF_CONSTEXPR CommandDescriptionDefaultTypeInternal()
123  : _instance(::_pbi::ConstantInitialized{}) {}
124  ~CommandDescriptionDefaultTypeInternal() {}
125  union {
126  CommandDescription _instance;
127  };
128 };
129 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommandDescriptionDefaultTypeInternal _CommandDescription_default_instance_;
130 PROTOBUF_CONSTEXPR DataMessage::DataMessage(
131  ::_pbi::ConstantInitialized): _impl_{
132  /*decltype(_impl_.variables_)*/{}
133  , /*decltype(_impl_.timespan_)*/uint64_t{0u}
134  , /*decltype(_impl_._cached_size_)*/{}} {}
135 struct DataMessageDefaultTypeInternal {
136  PROTOBUF_CONSTEXPR DataMessageDefaultTypeInternal()
137  : _instance(::_pbi::ConstantInitialized{}) {}
138  ~DataMessageDefaultTypeInternal() {}
139  union {
140  DataMessage _instance;
141  };
142 };
143 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataMessageDefaultTypeInternal _DataMessage_default_instance_;
144 PROTOBUF_CONSTEXPR VariableDescription::VariableDescription(
145  ::_pbi::ConstantInitialized): _impl_{
146  /*decltype(_impl_.dimensions_)*/{}
147  , /*decltype(_impl_._dimensions_cached_byte_size_)*/{0}
148  , /*decltype(_impl_.opcode_string_handle_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
149  , /*decltype(_impl_.entityid_)*/0
150  , /*decltype(_impl_.id_)*/0
151  , /*decltype(_impl_.datatype_)*/0
152  , /*decltype(_impl_._cached_size_)*/{}} {}
153 struct VariableDescriptionDefaultTypeInternal {
154  PROTOBUF_CONSTEXPR VariableDescriptionDefaultTypeInternal()
155  : _instance(::_pbi::ConstantInitialized{}) {}
156  ~VariableDescriptionDefaultTypeInternal() {}
157  union {
158  VariableDescription _instance;
159  };
160 };
161 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VariableDescriptionDefaultTypeInternal _VariableDescription_default_instance_;
162 PROTOBUF_CONSTEXPR ProtoVariable::ProtoVariable(
163  ::_pbi::ConstantInitialized): _impl_{
164  /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
165  , /*decltype(_impl_.metadata_)*/nullptr
166  , /*decltype(_impl_._cached_size_)*/{}} {}
167 struct ProtoVariableDefaultTypeInternal {
168  PROTOBUF_CONSTEXPR ProtoVariableDefaultTypeInternal()
169  : _instance(::_pbi::ConstantInitialized{}) {}
170  ~ProtoVariableDefaultTypeInternal() {}
171  union {
172  ProtoVariable _instance;
173  };
174 };
175 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProtoVariableDefaultTypeInternal _ProtoVariable_default_instance_;
176 } // namespace tcp_io_device
177 static ::_pb::Metadata file_level_metadata_tcp_5fdata_5fmessage_2eproto[11];
178 static const ::_pb::EnumDescriptor* file_level_enum_descriptors_tcp_5fdata_5fmessage_2eproto[3];
179 static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_tcp_5fdata_5fmessage_2eproto = nullptr;
180 
181 const uint32_t TableStruct_tcp_5fdata_5fmessage_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
182  ~0u, // no _has_bits_
183  PROTOBUF_FIELD_OFFSET(::tcp_io_device::TCPMessage, _internal_metadata_),
184  ~0u, // no _extensions_
185  PROTOBUF_FIELD_OFFSET(::tcp_io_device::TCPMessage, _impl_._oneof_case_[0]),
186  ~0u, // no _weak_field_map_
187  ~0u, // no _inlined_string_donated_
188  PROTOBUF_FIELD_OFFSET(::tcp_io_device::TCPMessage, _impl_.messagetype_),
189  ::_pbi::kInvalidFieldOffsetTag,
190  ::_pbi::kInvalidFieldOffsetTag,
191  ::_pbi::kInvalidFieldOffsetTag,
192  ::_pbi::kInvalidFieldOffsetTag,
193  PROTOBUF_FIELD_OFFSET(::tcp_io_device::TCPMessage, _impl_.timestamp_),
194  PROTOBUF_FIELD_OFFSET(::tcp_io_device::TCPMessage, _impl_.message_),
195  ~0u, // no _has_bits_
196  PROTOBUF_FIELD_OFFSET(::tcp_io_device::StartMessage, _internal_metadata_),
197  ~0u, // no _extensions_
198  ~0u, // no _oneof_case_
199  ~0u, // no _weak_field_map_
200  ~0u, // no _inlined_string_donated_
201  PROTOBUF_FIELD_OFFSET(::tcp_io_device::StartMessage, _impl_.diagnosticmode_),
202  PROTOBUF_FIELD_OFFSET(::tcp_io_device::StartMessage, _impl_.reconnectiontype_),
203  ~0u, // no _has_bits_
204  PROTOBUF_FIELD_OFFSET(::tcp_io_device::StopMessage, _internal_metadata_),
205  ~0u, // no _extensions_
206  ~0u, // no _oneof_case_
207  ~0u, // no _weak_field_map_
208  ~0u, // no _inlined_string_donated_
209  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_EntitiesEntry_DoNotUse, _has_bits_),
210  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_EntitiesEntry_DoNotUse, _internal_metadata_),
211  ~0u, // no _extensions_
212  ~0u, // no _oneof_case_
213  ~0u, // no _weak_field_map_
214  ~0u, // no _inlined_string_donated_
215  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_EntitiesEntry_DoNotUse, key_),
216  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_EntitiesEntry_DoNotUse, value_),
217  0,
218  1,
219  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_ObjectsEntry_DoNotUse, _has_bits_),
220  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_ObjectsEntry_DoNotUse, _internal_metadata_),
221  ~0u, // no _extensions_
222  ~0u, // no _oneof_case_
223  ~0u, // no _weak_field_map_
224  ~0u, // no _inlined_string_donated_
225  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_ObjectsEntry_DoNotUse, key_),
226  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_ObjectsEntry_DoNotUse, value_),
227  0,
228  1,
229  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_CommandsEntry_DoNotUse, _has_bits_),
230  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_CommandsEntry_DoNotUse, _internal_metadata_),
231  ~0u, // no _extensions_
232  ~0u, // no _oneof_case_
233  ~0u, // no _weak_field_map_
234  ~0u, // no _inlined_string_donated_
235  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_CommandsEntry_DoNotUse, key_),
236  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage_CommandsEntry_DoNotUse, value_),
237  0,
238  1,
239  ~0u, // no _has_bits_
240  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage, _internal_metadata_),
241  ~0u, // no _extensions_
242  ~0u, // no _oneof_case_
243  ~0u, // no _weak_field_map_
244  ~0u, // no _inlined_string_donated_
245  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage, _impl_.entities_),
246  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage, _impl_.objects_),
247  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage, _impl_.commands_),
248  PROTOBUF_FIELD_OFFSET(::tcp_io_device::SetupMessage, _impl_.commanddescriptions_),
249  ~0u, // no _has_bits_
250  PROTOBUF_FIELD_OFFSET(::tcp_io_device::CommandDescription, _internal_metadata_),
251  ~0u, // no _extensions_
252  ~0u, // no _oneof_case_
253  ~0u, // no _weak_field_map_
254  ~0u, // no _inlined_string_donated_
255  PROTOBUF_FIELD_OFFSET(::tcp_io_device::CommandDescription, _impl_.description_),
256  PROTOBUF_FIELD_OFFSET(::tcp_io_device::CommandDescription, _impl_.name_),
257  ~0u, // no _has_bits_
258  PROTOBUF_FIELD_OFFSET(::tcp_io_device::DataMessage, _internal_metadata_),
259  ~0u, // no _extensions_
260  ~0u, // no _oneof_case_
261  ~0u, // no _weak_field_map_
262  ~0u, // no _inlined_string_donated_
263  PROTOBUF_FIELD_OFFSET(::tcp_io_device::DataMessage, _impl_.variables_),
264  PROTOBUF_FIELD_OFFSET(::tcp_io_device::DataMessage, _impl_.timespan_),
265  ~0u, // no _has_bits_
266  PROTOBUF_FIELD_OFFSET(::tcp_io_device::VariableDescription, _internal_metadata_),
267  ~0u, // no _extensions_
268  ~0u, // no _oneof_case_
269  ~0u, // no _weak_field_map_
270  ~0u, // no _inlined_string_donated_
271  PROTOBUF_FIELD_OFFSET(::tcp_io_device::VariableDescription, _impl_.entityid_),
272  PROTOBUF_FIELD_OFFSET(::tcp_io_device::VariableDescription, _impl_.id_),
273  PROTOBUF_FIELD_OFFSET(::tcp_io_device::VariableDescription, _impl_.datatype_),
274  PROTOBUF_FIELD_OFFSET(::tcp_io_device::VariableDescription, _impl_.dimensions_),
275  PROTOBUF_FIELD_OFFSET(::tcp_io_device::VariableDescription, _impl_.opcode_string_handle_),
276  ~0u, // no _has_bits_
277  PROTOBUF_FIELD_OFFSET(::tcp_io_device::ProtoVariable, _internal_metadata_),
278  ~0u, // no _extensions_
279  ~0u, // no _oneof_case_
280  ~0u, // no _weak_field_map_
281  ~0u, // no _inlined_string_donated_
282  PROTOBUF_FIELD_OFFSET(::tcp_io_device::ProtoVariable, _impl_.metadata_),
283  PROTOBUF_FIELD_OFFSET(::tcp_io_device::ProtoVariable, _impl_.data_),
284 };
285 static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
286  { 0, -1, -1, sizeof(::tcp_io_device::TCPMessage)},
287  { 13, -1, -1, sizeof(::tcp_io_device::StartMessage)},
288  { 21, -1, -1, sizeof(::tcp_io_device::StopMessage)},
292  { 57, -1, -1, sizeof(::tcp_io_device::SetupMessage)},
293  { 67, -1, -1, sizeof(::tcp_io_device::CommandDescription)},
294  { 75, -1, -1, sizeof(::tcp_io_device::DataMessage)},
295  { 83, -1, -1, sizeof(::tcp_io_device::VariableDescription)},
296  { 94, -1, -1, sizeof(::tcp_io_device::ProtoVariable)},
297 };
298 
299 static const ::_pb::Message* const file_default_instances[] = {
300  &::tcp_io_device::_TCPMessage_default_instance_._instance,
301  &::tcp_io_device::_StartMessage_default_instance_._instance,
302  &::tcp_io_device::_StopMessage_default_instance_._instance,
303  &::tcp_io_device::_SetupMessage_EntitiesEntry_DoNotUse_default_instance_._instance,
304  &::tcp_io_device::_SetupMessage_ObjectsEntry_DoNotUse_default_instance_._instance,
305  &::tcp_io_device::_SetupMessage_CommandsEntry_DoNotUse_default_instance_._instance,
306  &::tcp_io_device::_SetupMessage_default_instance_._instance,
307  &::tcp_io_device::_CommandDescription_default_instance_._instance,
308  &::tcp_io_device::_DataMessage_default_instance_._instance,
309  &::tcp_io_device::_VariableDescription_default_instance_._instance,
310  &::tcp_io_device::_ProtoVariable_default_instance_._instance,
311 };
312 
313 const char descriptor_table_protodef_tcp_5fdata_5fmessage_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
314  "\n\026tcp_data_message.proto\022\rtcp_io_device\""
315  "\360\002\n\nTCPMessage\0223\n\013messageType\030\001 \001(\0162\036.tc"
316  "p_io_device.TCPMessage.Type\0223\n\014setupMess"
317  "age\030\002 \001(\0132\033.tcp_io_device.SetupMessageH\000"
318  "\0221\n\013dataMessage\030\003 \001(\0132\032.tcp_io_device.Da"
319  "taMessageH\000\0223\n\014startMessage\030\004 \001(\0132\033.tcp_"
320  "io_device.StartMessageH\000\0221\n\013stopMessage\030"
321  "\005 \001(\0132\032.tcp_io_device.StopMessageH\000\022\021\n\tt"
322  "imestamp\030\006 \001(\004\"\?\n\004Type\022\t\n\005SETUP\020\000\022\010\n\004DAT"
323  "A\020\001\022\t\n\005START\020\002\022\010\n\004STOP\020\003\022\r\n\tRECONNECT\020\004B"
324  "\t\n\007message\"\247\001\n\014StartMessage\022\026\n\016diagnosti"
325  "cMode\030\001 \001(\010\022F\n\020reconnectionType\030\002 \001(\0162,."
326  "tcp_io_device.StartMessage.ReconnectionT"
327  "ype\"7\n\020ReconnectionType\022\013\n\007RE_INIT\020\000\022\014\n\010"
328  "RE_SETUP\020\001\022\010\n\004NONE\020\002\"\r\n\013StopMessage\"\225\003\n\014"
329  "SetupMessage\022;\n\010entities\030\001 \003(\0132).tcp_io_"
330  "device.SetupMessage.EntitiesEntry\0229\n\007obj"
331  "ects\030\002 \003(\0132(.tcp_io_device.SetupMessage."
332  "ObjectsEntry\022;\n\010commands\030\003 \003(\0132).tcp_io_"
333  "device.SetupMessage.CommandsEntry\022>\n\023com"
334  "mandDescriptions\030\004 \003(\0132!.tcp_io_device.C"
335  "ommandDescription\032/\n\rEntitiesEntry\022\013\n\003ke"
336  "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032.\n\014ObjectsEnt"
337  "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032/\n\rCo"
338  "mmandsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:"
339  "\0028\001\"[\n\022CommandDescription\0227\n\013description"
340  "\030\001 \001(\0132\".tcp_io_device.VariableDescripti"
341  "on\022\014\n\004name\030\002 \001(\t\"P\n\013DataMessage\022/\n\tvaria"
342  "bles\030\001 \003(\0132\034.tcp_io_device.ProtoVariable"
343  "\022\020\n\010timeSpan\030\002 \001(\004\"\376\001\n\023VariableDescripti"
344  "on\022\020\n\010entityID\030\001 \001(\005\022\n\n\002ID\030\002 \001(\005\022=\n\010data"
345  "Type\030\003 \001(\0162+.tcp_io_device.VariableDescr"
346  "iption.DataType\022\022\n\ndimensions\030\004 \003(\004\022\034\n\024o"
347  "pcode_string_handle\030\005 \001(\t\"X\n\010DataType\022\n\n"
348  "\006DOUBLE\020\000\022\t\n\005INT64\020\003\022\010\n\004BOOL\020\014\022\n\n\006STRING"
349  "\020\r\022\t\n\005BYTES\020\016\022\024\n\020COMMUNICATION_ID\020\017\"S\n\rP"
350  "rotoVariable\0224\n\010metaData\030\001 \001(\0132\".tcp_io_"
351  "device.VariableDescription\022\014\n\004data\030\002 \001(\014"
352  "b\006proto3"
353  ;
354 static ::_pbi::once_flag descriptor_table_tcp_5fdata_5fmessage_2eproto_once;
355 const ::_pbi::DescriptorTable descriptor_table_tcp_5fdata_5fmessage_2eproto = {
356  false, false, 1528, descriptor_table_protodef_tcp_5fdata_5fmessage_2eproto,
357  "tcp_data_message.proto",
358  &descriptor_table_tcp_5fdata_5fmessage_2eproto_once, nullptr, 0, 11,
359  schemas, file_default_instances, TableStruct_tcp_5fdata_5fmessage_2eproto::offsets,
360  file_level_metadata_tcp_5fdata_5fmessage_2eproto, file_level_enum_descriptors_tcp_5fdata_5fmessage_2eproto,
361  file_level_service_descriptors_tcp_5fdata_5fmessage_2eproto,
362 };
363 PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_tcp_5fdata_5fmessage_2eproto_getter() {
364  return &descriptor_table_tcp_5fdata_5fmessage_2eproto;
365 }
366 
367 // Force running AddDescriptors() at dynamic initialization time.
368 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_tcp_5fdata_5fmessage_2eproto(&descriptor_table_tcp_5fdata_5fmessage_2eproto);
369 namespace tcp_io_device {
370 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TCPMessage_Type_descriptor() {
371  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tcp_5fdata_5fmessage_2eproto);
372  return file_level_enum_descriptors_tcp_5fdata_5fmessage_2eproto[0];
373 }
374 bool TCPMessage_Type_IsValid(int value) {
375  switch (value) {
376  case 0:
377  case 1:
378  case 2:
379  case 3:
380  case 4:
381  return true;
382  default:
383  return false;
384  }
385 }
386 
387 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
388 constexpr TCPMessage_Type TCPMessage::SETUP;
389 constexpr TCPMessage_Type TCPMessage::DATA;
390 constexpr TCPMessage_Type TCPMessage::START;
391 constexpr TCPMessage_Type TCPMessage::STOP;
392 constexpr TCPMessage_Type TCPMessage::RECONNECT;
393 constexpr TCPMessage_Type TCPMessage::Type_MIN;
394 constexpr TCPMessage_Type TCPMessage::Type_MAX;
395 constexpr int TCPMessage::Type_ARRAYSIZE;
396 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
397 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* StartMessage_ReconnectionType_descriptor() {
398  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tcp_5fdata_5fmessage_2eproto);
399  return file_level_enum_descriptors_tcp_5fdata_5fmessage_2eproto[1];
400 }
401 bool StartMessage_ReconnectionType_IsValid(int value) {
402  switch (value) {
403  case 0:
404  case 1:
405  case 2:
406  return true;
407  default:
408  return false;
409  }
410 }
411 
412 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
413 constexpr StartMessage_ReconnectionType StartMessage::RE_INIT;
414 constexpr StartMessage_ReconnectionType StartMessage::RE_SETUP;
415 constexpr StartMessage_ReconnectionType StartMessage::NONE;
416 constexpr StartMessage_ReconnectionType StartMessage::ReconnectionType_MIN;
417 constexpr StartMessage_ReconnectionType StartMessage::ReconnectionType_MAX;
418 constexpr int StartMessage::ReconnectionType_ARRAYSIZE;
419 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
420 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VariableDescription_DataType_descriptor() {
421  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tcp_5fdata_5fmessage_2eproto);
422  return file_level_enum_descriptors_tcp_5fdata_5fmessage_2eproto[2];
423 }
424 bool VariableDescription_DataType_IsValid(int value) {
425  switch (value) {
426  case 0:
427  case 3:
428  case 12:
429  case 13:
430  case 14:
431  case 15:
432  return true;
433  default:
434  return false;
435  }
436 }
437 
438 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
439 constexpr VariableDescription_DataType VariableDescription::DOUBLE;
440 constexpr VariableDescription_DataType VariableDescription::INT64;
441 constexpr VariableDescription_DataType VariableDescription::BOOL;
442 constexpr VariableDescription_DataType VariableDescription::STRING;
443 constexpr VariableDescription_DataType VariableDescription::BYTES;
444 constexpr VariableDescription_DataType VariableDescription::COMMUNICATION_ID;
445 constexpr VariableDescription_DataType VariableDescription::DataType_MIN;
446 constexpr VariableDescription_DataType VariableDescription::DataType_MAX;
447 constexpr int VariableDescription::DataType_ARRAYSIZE;
448 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
449 
450 // ===================================================================
451 
452 class TCPMessage::_Internal {
453  public:
454  static const ::tcp_io_device::SetupMessage& setupmessage(const TCPMessage* msg);
455  static const ::tcp_io_device::DataMessage& datamessage(const TCPMessage* msg);
456  static const ::tcp_io_device::StartMessage& startmessage(const TCPMessage* msg);
457  static const ::tcp_io_device::StopMessage& stopmessage(const TCPMessage* msg);
458 };
459 
460 const ::tcp_io_device::SetupMessage&
461 TCPMessage::_Internal::setupmessage(const TCPMessage* msg) {
462  return *msg->_impl_.message_.setupmessage_;
463 }
464 const ::tcp_io_device::DataMessage&
465 TCPMessage::_Internal::datamessage(const TCPMessage* msg) {
466  return *msg->_impl_.message_.datamessage_;
467 }
468 const ::tcp_io_device::StartMessage&
469 TCPMessage::_Internal::startmessage(const TCPMessage* msg) {
470  return *msg->_impl_.message_.startmessage_;
471 }
472 const ::tcp_io_device::StopMessage&
473 TCPMessage::_Internal::stopmessage(const TCPMessage* msg) {
474  return *msg->_impl_.message_.stopmessage_;
475 }
476 void TCPMessage::set_allocated_setupmessage(::tcp_io_device::SetupMessage* setupmessage) {
477  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
478  clear_message();
479  if (setupmessage) {
480  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
481  ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(setupmessage);
482  if (message_arena != submessage_arena) {
483  setupmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
484  message_arena, setupmessage, submessage_arena);
485  }
486  set_has_setupmessage();
487  _impl_.message_.setupmessage_ = setupmessage;
488  }
489  // @@protoc_insertion_point(field_set_allocated:tcp_io_device.TCPMessage.setupMessage)
490 }
491 void TCPMessage::set_allocated_datamessage(::tcp_io_device::DataMessage* datamessage) {
492  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
493  clear_message();
494  if (datamessage) {
495  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
496  ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(datamessage);
497  if (message_arena != submessage_arena) {
498  datamessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
499  message_arena, datamessage, submessage_arena);
500  }
501  set_has_datamessage();
502  _impl_.message_.datamessage_ = datamessage;
503  }
504  // @@protoc_insertion_point(field_set_allocated:tcp_io_device.TCPMessage.dataMessage)
505 }
506 void TCPMessage::set_allocated_startmessage(::tcp_io_device::StartMessage* startmessage) {
507  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
508  clear_message();
509  if (startmessage) {
510  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
511  ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(startmessage);
512  if (message_arena != submessage_arena) {
513  startmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
514  message_arena, startmessage, submessage_arena);
515  }
516  set_has_startmessage();
517  _impl_.message_.startmessage_ = startmessage;
518  }
519  // @@protoc_insertion_point(field_set_allocated:tcp_io_device.TCPMessage.startMessage)
520 }
521 void TCPMessage::set_allocated_stopmessage(::tcp_io_device::StopMessage* stopmessage) {
522  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
523  clear_message();
524  if (stopmessage) {
525  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
526  ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(stopmessage);
527  if (message_arena != submessage_arena) {
528  stopmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
529  message_arena, stopmessage, submessage_arena);
530  }
531  set_has_stopmessage();
532  _impl_.message_.stopmessage_ = stopmessage;
533  }
534  // @@protoc_insertion_point(field_set_allocated:tcp_io_device.TCPMessage.stopMessage)
535 }
536 TCPMessage::TCPMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
537  bool is_message_owned)
538  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
539  SharedCtor(arena, is_message_owned);
540  // @@protoc_insertion_point(arena_constructor:tcp_io_device.TCPMessage)
541 }
542 TCPMessage::TCPMessage(const TCPMessage& from)
543  : ::PROTOBUF_NAMESPACE_ID::Message() {
544  TCPMessage* const _this = this; (void)_this;
545  new (&_impl_) Impl_{
546  decltype(_impl_.timestamp_){}
547  , decltype(_impl_.messagetype_){}
548  , decltype(_impl_.message_){}
549  , /*decltype(_impl_._cached_size_)*/{}
550  , /*decltype(_impl_._oneof_case_)*/{}};
551 
552  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
553  ::memcpy(&_impl_.timestamp_, &from._impl_.timestamp_,
554  static_cast<size_t>(reinterpret_cast<char*>(&_impl_.messagetype_) -
555  reinterpret_cast<char*>(&_impl_.timestamp_)) + sizeof(_impl_.messagetype_));
556  clear_has_message();
557  switch (from.message_case()) {
558  case kSetupMessage: {
559  _this->_internal_mutable_setupmessage()->::tcp_io_device::SetupMessage::MergeFrom(
560  from._internal_setupmessage());
561  break;
562  }
563  case kDataMessage: {
564  _this->_internal_mutable_datamessage()->::tcp_io_device::DataMessage::MergeFrom(
565  from._internal_datamessage());
566  break;
567  }
568  case kStartMessage: {
569  _this->_internal_mutable_startmessage()->::tcp_io_device::StartMessage::MergeFrom(
570  from._internal_startmessage());
571  break;
572  }
573  case kStopMessage: {
574  _this->_internal_mutable_stopmessage()->::tcp_io_device::StopMessage::MergeFrom(
575  from._internal_stopmessage());
576  break;
577  }
578  case MESSAGE_NOT_SET: {
579  break;
580  }
581  }
582  // @@protoc_insertion_point(copy_constructor:tcp_io_device.TCPMessage)
583 }
584 
585 inline void TCPMessage::SharedCtor(
586  ::_pb::Arena* arena, bool is_message_owned) {
587  (void)arena;
588  (void)is_message_owned;
589  new (&_impl_) Impl_{
590  decltype(_impl_.timestamp_){uint64_t{0u}}
591  , decltype(_impl_.messagetype_){0}
592  , decltype(_impl_.message_){}
593  , /*decltype(_impl_._cached_size_)*/{}
594  , /*decltype(_impl_._oneof_case_)*/{}
595  };
596  clear_has_message();
597 }
598 
599 TCPMessage::~TCPMessage() {
600  // @@protoc_insertion_point(destructor:tcp_io_device.TCPMessage)
601  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
602  (void)arena;
603  return;
604  }
605  SharedDtor();
606 }
607 
608 inline void TCPMessage::SharedDtor() {
609  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
610  if (has_message()) {
611  clear_message();
612  }
613 }
614 
615 void TCPMessage::SetCachedSize(int size) const {
616  _impl_._cached_size_.Set(size);
617 }
618 
619 void TCPMessage::clear_message() {
620 // @@protoc_insertion_point(one_of_clear_start:tcp_io_device.TCPMessage)
621  switch (message_case()) {
622  case kSetupMessage: {
623  if (GetArenaForAllocation() == nullptr) {
624  delete _impl_.message_.setupmessage_;
625  }
626  break;
627  }
628  case kDataMessage: {
629  if (GetArenaForAllocation() == nullptr) {
630  delete _impl_.message_.datamessage_;
631  }
632  break;
633  }
634  case kStartMessage: {
635  if (GetArenaForAllocation() == nullptr) {
636  delete _impl_.message_.startmessage_;
637  }
638  break;
639  }
640  case kStopMessage: {
641  if (GetArenaForAllocation() == nullptr) {
642  delete _impl_.message_.stopmessage_;
643  }
644  break;
645  }
646  case MESSAGE_NOT_SET: {
647  break;
648  }
649  }
650  _impl_._oneof_case_[0] = MESSAGE_NOT_SET;
651 }
652 
653 
654 void TCPMessage::Clear() {
655 // @@protoc_insertion_point(message_clear_start:tcp_io_device.TCPMessage)
656  uint32_t cached_has_bits = 0;
657  // Prevent compiler warnings about cached_has_bits being unused
658  (void) cached_has_bits;
659 
660  ::memset(&_impl_.timestamp_, 0, static_cast<size_t>(
661  reinterpret_cast<char*>(&_impl_.messagetype_) -
662  reinterpret_cast<char*>(&_impl_.timestamp_)) + sizeof(_impl_.messagetype_));
663  clear_message();
664  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
665 }
666 
667 const char* TCPMessage::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
668 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
669  while (!ctx->Done(&ptr)) {
670  uint32_t tag;
671  ptr = ::_pbi::ReadTag(ptr, &tag);
672  switch (tag >> 3) {
673  // .tcp_io_device.TCPMessage.Type messageType = 1;
674  case 1:
675  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
676  uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
677  CHK_(ptr);
678  _internal_set_messagetype(static_cast<::tcp_io_device::TCPMessage_Type>(val));
679  } else
680  goto handle_unusual;
681  continue;
682  // .tcp_io_device.SetupMessage setupMessage = 2;
683  case 2:
684  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
685  ptr = ctx->ParseMessage(_internal_mutable_setupmessage(), ptr);
686  CHK_(ptr);
687  } else
688  goto handle_unusual;
689  continue;
690  // .tcp_io_device.DataMessage dataMessage = 3;
691  case 3:
692  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
693  ptr = ctx->ParseMessage(_internal_mutable_datamessage(), ptr);
694  CHK_(ptr);
695  } else
696  goto handle_unusual;
697  continue;
698  // .tcp_io_device.StartMessage startMessage = 4;
699  case 4:
700  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
701  ptr = ctx->ParseMessage(_internal_mutable_startmessage(), ptr);
702  CHK_(ptr);
703  } else
704  goto handle_unusual;
705  continue;
706  // .tcp_io_device.StopMessage stopMessage = 5;
707  case 5:
708  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
709  ptr = ctx->ParseMessage(_internal_mutable_stopmessage(), ptr);
710  CHK_(ptr);
711  } else
712  goto handle_unusual;
713  continue;
714  // uint64 timestamp = 6;
715  case 6:
716  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
717  _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
718  CHK_(ptr);
719  } else
720  goto handle_unusual;
721  continue;
722  default:
723  goto handle_unusual;
724  } // switch
725  handle_unusual:
726  if ((tag == 0) || ((tag & 7) == 4)) {
727  CHK_(ptr);
728  ctx->SetLastTag(tag);
729  goto message_done;
730  }
731  ptr = UnknownFieldParse(
732  tag,
733  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
734  ptr, ctx);
735  CHK_(ptr != nullptr);
736  } // while
737 message_done:
738  return ptr;
739 failure:
740  ptr = nullptr;
741  goto message_done;
742 #undef CHK_
743 }
744 
745 uint8_t* TCPMessage::_InternalSerialize(
746  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
747  // @@protoc_insertion_point(serialize_to_array_start:tcp_io_device.TCPMessage)
748  uint32_t cached_has_bits = 0;
749  (void) cached_has_bits;
750 
751  // .tcp_io_device.TCPMessage.Type messageType = 1;
752  if (this->_internal_messagetype() != 0) {
753  target = stream->EnsureSpace(target);
754  target = ::_pbi::WireFormatLite::WriteEnumToArray(
755  1, this->_internal_messagetype(), target);
756  }
757 
758  // .tcp_io_device.SetupMessage setupMessage = 2;
759  if (_internal_has_setupmessage()) {
760  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
761  InternalWriteMessage(2, _Internal::setupmessage(this),
762  _Internal::setupmessage(this).GetCachedSize(), target, stream);
763  }
764 
765  // .tcp_io_device.DataMessage dataMessage = 3;
766  if (_internal_has_datamessage()) {
767  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
768  InternalWriteMessage(3, _Internal::datamessage(this),
769  _Internal::datamessage(this).GetCachedSize(), target, stream);
770  }
771 
772  // .tcp_io_device.StartMessage startMessage = 4;
773  if (_internal_has_startmessage()) {
774  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
775  InternalWriteMessage(4, _Internal::startmessage(this),
776  _Internal::startmessage(this).GetCachedSize(), target, stream);
777  }
778 
779  // .tcp_io_device.StopMessage stopMessage = 5;
780  if (_internal_has_stopmessage()) {
781  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
782  InternalWriteMessage(5, _Internal::stopmessage(this),
783  _Internal::stopmessage(this).GetCachedSize(), target, stream);
784  }
785 
786  // uint64 timestamp = 6;
787  if (this->_internal_timestamp() != 0) {
788  target = stream->EnsureSpace(target);
789  target = ::_pbi::WireFormatLite::WriteUInt64ToArray(6, this->_internal_timestamp(), target);
790  }
791 
792  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
793  target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
794  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
795  }
796  // @@protoc_insertion_point(serialize_to_array_end:tcp_io_device.TCPMessage)
797  return target;
798 }
799 
800 size_t TCPMessage::ByteSizeLong() const {
801 // @@protoc_insertion_point(message_byte_size_start:tcp_io_device.TCPMessage)
802  size_t total_size = 0;
803 
804  uint32_t cached_has_bits = 0;
805  // Prevent compiler warnings about cached_has_bits being unused
806  (void) cached_has_bits;
807 
808  // uint64 timestamp = 6;
809  if (this->_internal_timestamp() != 0) {
810  total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_timestamp());
811  }
812 
813  // .tcp_io_device.TCPMessage.Type messageType = 1;
814  if (this->_internal_messagetype() != 0) {
815  total_size += 1 +
816  ::_pbi::WireFormatLite::EnumSize(this->_internal_messagetype());
817  }
818 
819  switch (message_case()) {
820  // .tcp_io_device.SetupMessage setupMessage = 2;
821  case kSetupMessage: {
822  total_size += 1 +
823  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
824  *_impl_.message_.setupmessage_);
825  break;
826  }
827  // .tcp_io_device.DataMessage dataMessage = 3;
828  case kDataMessage: {
829  total_size += 1 +
830  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
831  *_impl_.message_.datamessage_);
832  break;
833  }
834  // .tcp_io_device.StartMessage startMessage = 4;
835  case kStartMessage: {
836  total_size += 1 +
837  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
838  *_impl_.message_.startmessage_);
839  break;
840  }
841  // .tcp_io_device.StopMessage stopMessage = 5;
842  case kStopMessage: {
843  total_size += 1 +
844  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
845  *_impl_.message_.stopmessage_);
846  break;
847  }
848  case MESSAGE_NOT_SET: {
849  break;
850  }
851  }
852  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
853 }
854 
855 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TCPMessage::_class_data_ = {
856  ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
857  TCPMessage::MergeImpl
858 };
859 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TCPMessage::GetClassData() const { return &_class_data_; }
860 
861 
862 void TCPMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
863  auto* const _this = static_cast<TCPMessage*>(&to_msg);
864  auto& from = static_cast<const TCPMessage&>(from_msg);
865  // @@protoc_insertion_point(class_specific_merge_from_start:tcp_io_device.TCPMessage)
866  GOOGLE_DCHECK_NE(&from, _this);
867  uint32_t cached_has_bits = 0;
868  (void) cached_has_bits;
869 
870  if (from._internal_timestamp() != 0) {
871  _this->_internal_set_timestamp(from._internal_timestamp());
872  }
873  if (from._internal_messagetype() != 0) {
874  _this->_internal_set_messagetype(from._internal_messagetype());
875  }
876  switch (from.message_case()) {
877  case kSetupMessage: {
878  _this->_internal_mutable_setupmessage()->::tcp_io_device::SetupMessage::MergeFrom(
879  from._internal_setupmessage());
880  break;
881  }
882  case kDataMessage: {
883  _this->_internal_mutable_datamessage()->::tcp_io_device::DataMessage::MergeFrom(
884  from._internal_datamessage());
885  break;
886  }
887  case kStartMessage: {
888  _this->_internal_mutable_startmessage()->::tcp_io_device::StartMessage::MergeFrom(
889  from._internal_startmessage());
890  break;
891  }
892  case kStopMessage: {
893  _this->_internal_mutable_stopmessage()->::tcp_io_device::StopMessage::MergeFrom(
894  from._internal_stopmessage());
895  break;
896  }
897  case MESSAGE_NOT_SET: {
898  break;
899  }
900  }
901  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
902 }
903 
904 void TCPMessage::CopyFrom(const TCPMessage& from) {
905 // @@protoc_insertion_point(class_specific_copy_from_start:tcp_io_device.TCPMessage)
906  if (&from == this) return;
907  Clear();
908  MergeFrom(from);
909 }
910 
911 bool TCPMessage::IsInitialized() const {
912  return true;
913 }
914 
915 void TCPMessage::InternalSwap(TCPMessage* other) {
916  using std::swap;
917  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
918  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
919  PROTOBUF_FIELD_OFFSET(TCPMessage, _impl_.messagetype_)
920  + sizeof(TCPMessage::_impl_.messagetype_)
921  - PROTOBUF_FIELD_OFFSET(TCPMessage, _impl_.timestamp_)>(
922  reinterpret_cast<char*>(&_impl_.timestamp_),
923  reinterpret_cast<char*>(&other->_impl_.timestamp_));
924  swap(_impl_.message_, other->_impl_.message_);
925  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
926 }
927 
928 ::PROTOBUF_NAMESPACE_ID::Metadata TCPMessage::GetMetadata() const {
929  return ::_pbi::AssignDescriptors(
930  &descriptor_table_tcp_5fdata_5fmessage_2eproto_getter, &descriptor_table_tcp_5fdata_5fmessage_2eproto_once,
931  file_level_metadata_tcp_5fdata_5fmessage_2eproto[0]);
932 }
933 
934 // ===================================================================
935 
936 class StartMessage::_Internal {
937  public:
938 };
939 
940 StartMessage::StartMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
941  bool is_message_owned)
942  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
943  SharedCtor(arena, is_message_owned);
944  // @@protoc_insertion_point(arena_constructor:tcp_io_device.StartMessage)
945 }
946 StartMessage::StartMessage(const StartMessage& from)
947  : ::PROTOBUF_NAMESPACE_ID::Message() {
948  StartMessage* const _this = this; (void)_this;
949  new (&_impl_) Impl_{
950  decltype(_impl_.diagnosticmode_){}
951  , decltype(_impl_.reconnectiontype_){}
952  , /*decltype(_impl_._cached_size_)*/{}};
953 
954  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
955  ::memcpy(&_impl_.diagnosticmode_, &from._impl_.diagnosticmode_,
956  static_cast<size_t>(reinterpret_cast<char*>(&_impl_.reconnectiontype_) -
957  reinterpret_cast<char*>(&_impl_.diagnosticmode_)) + sizeof(_impl_.reconnectiontype_));
958  // @@protoc_insertion_point(copy_constructor:tcp_io_device.StartMessage)
959 }
960 
961 inline void StartMessage::SharedCtor(
962  ::_pb::Arena* arena, bool is_message_owned) {
963  (void)arena;
964  (void)is_message_owned;
965  new (&_impl_) Impl_{
966  decltype(_impl_.diagnosticmode_){false}
967  , decltype(_impl_.reconnectiontype_){0}
968  , /*decltype(_impl_._cached_size_)*/{}
969  };
970 }
971 
972 StartMessage::~StartMessage() {
973  // @@protoc_insertion_point(destructor:tcp_io_device.StartMessage)
974  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
975  (void)arena;
976  return;
977  }
978  SharedDtor();
979 }
980 
981 inline void StartMessage::SharedDtor() {
982  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
983 }
984 
985 void StartMessage::SetCachedSize(int size) const {
986  _impl_._cached_size_.Set(size);
987 }
988 
989 void StartMessage::Clear() {
990 // @@protoc_insertion_point(message_clear_start:tcp_io_device.StartMessage)
991  uint32_t cached_has_bits = 0;
992  // Prevent compiler warnings about cached_has_bits being unused
993  (void) cached_has_bits;
994 
995  ::memset(&_impl_.diagnosticmode_, 0, static_cast<size_t>(
996  reinterpret_cast<char*>(&_impl_.reconnectiontype_) -
997  reinterpret_cast<char*>(&_impl_.diagnosticmode_)) + sizeof(_impl_.reconnectiontype_));
998  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
999 }
1000 
1001 const char* StartMessage::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1002 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1003  while (!ctx->Done(&ptr)) {
1004  uint32_t tag;
1005  ptr = ::_pbi::ReadTag(ptr, &tag);
1006  switch (tag >> 3) {
1007  // bool diagnosticMode = 1;
1008  case 1:
1009  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
1010  _impl_.diagnosticmode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1011  CHK_(ptr);
1012  } else
1013  goto handle_unusual;
1014  continue;
1015  // .tcp_io_device.StartMessage.ReconnectionType reconnectionType = 2;
1016  case 2:
1017  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
1018  uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1019  CHK_(ptr);
1020  _internal_set_reconnectiontype(static_cast<::tcp_io_device::StartMessage_ReconnectionType>(val));
1021  } else
1022  goto handle_unusual;
1023  continue;
1024  default:
1025  goto handle_unusual;
1026  } // switch
1027  handle_unusual:
1028  if ((tag == 0) || ((tag & 7) == 4)) {
1029  CHK_(ptr);
1030  ctx->SetLastTag(tag);
1031  goto message_done;
1032  }
1033  ptr = UnknownFieldParse(
1034  tag,
1035  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1036  ptr, ctx);
1037  CHK_(ptr != nullptr);
1038  } // while
1039 message_done:
1040  return ptr;
1041 failure:
1042  ptr = nullptr;
1043  goto message_done;
1044 #undef CHK_
1045 }
1046 
1047 uint8_t* StartMessage::_InternalSerialize(
1048  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1049  // @@protoc_insertion_point(serialize_to_array_start:tcp_io_device.StartMessage)
1050  uint32_t cached_has_bits = 0;
1051  (void) cached_has_bits;
1052 
1053  // bool diagnosticMode = 1;
1054  if (this->_internal_diagnosticmode() != 0) {
1055  target = stream->EnsureSpace(target);
1056  target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_diagnosticmode(), target);
1057  }
1058 
1059  // .tcp_io_device.StartMessage.ReconnectionType reconnectionType = 2;
1060  if (this->_internal_reconnectiontype() != 0) {
1061  target = stream->EnsureSpace(target);
1062  target = ::_pbi::WireFormatLite::WriteEnumToArray(
1063  2, this->_internal_reconnectiontype(), target);
1064  }
1065 
1066  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1067  target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1068  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1069  }
1070  // @@protoc_insertion_point(serialize_to_array_end:tcp_io_device.StartMessage)
1071  return target;
1072 }
1073 
1074 size_t StartMessage::ByteSizeLong() const {
1075 // @@protoc_insertion_point(message_byte_size_start:tcp_io_device.StartMessage)
1076  size_t total_size = 0;
1077 
1078  uint32_t cached_has_bits = 0;
1079  // Prevent compiler warnings about cached_has_bits being unused
1080  (void) cached_has_bits;
1081 
1082  // bool diagnosticMode = 1;
1083  if (this->_internal_diagnosticmode() != 0) {
1084  total_size += 1 + 1;
1085  }
1086 
1087  // .tcp_io_device.StartMessage.ReconnectionType reconnectionType = 2;
1088  if (this->_internal_reconnectiontype() != 0) {
1089  total_size += 1 +
1090  ::_pbi::WireFormatLite::EnumSize(this->_internal_reconnectiontype());
1091  }
1092 
1093  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1094 }
1095 
1096 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartMessage::_class_data_ = {
1097  ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1098  StartMessage::MergeImpl
1099 };
1100 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartMessage::GetClassData() const { return &_class_data_; }
1101 
1102 
1103 void StartMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1104  auto* const _this = static_cast<StartMessage*>(&to_msg);
1105  auto& from = static_cast<const StartMessage&>(from_msg);
1106  // @@protoc_insertion_point(class_specific_merge_from_start:tcp_io_device.StartMessage)
1107  GOOGLE_DCHECK_NE(&from, _this);
1108  uint32_t cached_has_bits = 0;
1109  (void) cached_has_bits;
1110 
1111  if (from._internal_diagnosticmode() != 0) {
1112  _this->_internal_set_diagnosticmode(from._internal_diagnosticmode());
1113  }
1114  if (from._internal_reconnectiontype() != 0) {
1115  _this->_internal_set_reconnectiontype(from._internal_reconnectiontype());
1116  }
1117  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1118 }
1119 
1120 void StartMessage::CopyFrom(const StartMessage& from) {
1121 // @@protoc_insertion_point(class_specific_copy_from_start:tcp_io_device.StartMessage)
1122  if (&from == this) return;
1123  Clear();
1124  MergeFrom(from);
1125 }
1126 
1127 bool StartMessage::IsInitialized() const {
1128  return true;
1129 }
1130 
1131 void StartMessage::InternalSwap(StartMessage* other) {
1132  using std::swap;
1133  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1134  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1135  PROTOBUF_FIELD_OFFSET(StartMessage, _impl_.reconnectiontype_)
1136  + sizeof(StartMessage::_impl_.reconnectiontype_)
1137  - PROTOBUF_FIELD_OFFSET(StartMessage, _impl_.diagnosticmode_)>(
1138  reinterpret_cast<char*>(&_impl_.diagnosticmode_),
1139  reinterpret_cast<char*>(&other->_impl_.diagnosticmode_));
1140 }
1141 
1142 ::PROTOBUF_NAMESPACE_ID::Metadata StartMessage::GetMetadata() const {
1143  return ::_pbi::AssignDescriptors(
1144  &descriptor_table_tcp_5fdata_5fmessage_2eproto_getter, &descriptor_table_tcp_5fdata_5fmessage_2eproto_once,
1145  file_level_metadata_tcp_5fdata_5fmessage_2eproto[1]);
1146 }
1147 
1148 // ===================================================================
1149 
1150 class StopMessage::_Internal {
1151  public:
1152 };
1153 
1154 StopMessage::StopMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1155  bool is_message_owned)
1156  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
1157  // @@protoc_insertion_point(arena_constructor:tcp_io_device.StopMessage)
1158 }
1159 StopMessage::StopMessage(const StopMessage& from)
1160  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
1161  StopMessage* const _this = this; (void)_this;
1162  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1163  // @@protoc_insertion_point(copy_constructor:tcp_io_device.StopMessage)
1164 }
1165 
1166 
1167 
1168 
1169 
1170 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopMessage::_class_data_ = {
1171  ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
1172  ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
1173 };
1174 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopMessage::GetClassData() const { return &_class_data_; }
1175 
1176 
1177 
1178 
1179 
1180 
1181 
1182 ::PROTOBUF_NAMESPACE_ID::Metadata StopMessage::GetMetadata() const {
1183  return ::_pbi::AssignDescriptors(
1184  &descriptor_table_tcp_5fdata_5fmessage_2eproto_getter, &descriptor_table_tcp_5fdata_5fmessage_2eproto_once,
1185  file_level_metadata_tcp_5fdata_5fmessage_2eproto[2]);
1186 }
1187 
1188 // ===================================================================
1189 
1190 SetupMessage_EntitiesEntry_DoNotUse::SetupMessage_EntitiesEntry_DoNotUse() {}
1191 SetupMessage_EntitiesEntry_DoNotUse::SetupMessage_EntitiesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1192  : SuperType(arena) {}
1193 void SetupMessage_EntitiesEntry_DoNotUse::MergeFrom(const SetupMessage_EntitiesEntry_DoNotUse& other) {
1194  MergeFromInternal(other);
1195 }
1196 ::PROTOBUF_NAMESPACE_ID::Metadata SetupMessage_EntitiesEntry_DoNotUse::GetMetadata() const {
1197  return ::_pbi::AssignDescriptors(
1198  &descriptor_table_tcp_5fdata_5fmessage_2eproto_getter, &descriptor_table_tcp_5fdata_5fmessage_2eproto_once,
1199  file_level_metadata_tcp_5fdata_5fmessage_2eproto[3]);
1200 }
1201 
1202 // ===================================================================
1203 
1204 SetupMessage_ObjectsEntry_DoNotUse::SetupMessage_ObjectsEntry_DoNotUse() {}
1205 SetupMessage_ObjectsEntry_DoNotUse::SetupMessage_ObjectsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1206  : SuperType(arena) {}
1207 void SetupMessage_ObjectsEntry_DoNotUse::MergeFrom(const SetupMessage_ObjectsEntry_DoNotUse& other) {
1208  MergeFromInternal(other);
1209 }
1210 ::PROTOBUF_NAMESPACE_ID::Metadata SetupMessage_ObjectsEntry_DoNotUse::GetMetadata() const {
1211  return ::_pbi::AssignDescriptors(
1212  &descriptor_table_tcp_5fdata_5fmessage_2eproto_getter, &descriptor_table_tcp_5fdata_5fmessage_2eproto_once,
1213  file_level_metadata_tcp_5fdata_5fmessage_2eproto[4]);
1214 }
1215 
1216 // ===================================================================
1217 
1218 SetupMessage_CommandsEntry_DoNotUse::SetupMessage_CommandsEntry_DoNotUse() {}
1219 SetupMessage_CommandsEntry_DoNotUse::SetupMessage_CommandsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1220  : SuperType(arena) {}
1221 void SetupMessage_CommandsEntry_DoNotUse::MergeFrom(const SetupMessage_CommandsEntry_DoNotUse& other) {
1222  MergeFromInternal(other);
1223 }
1224 ::PROTOBUF_NAMESPACE_ID::Metadata SetupMessage_CommandsEntry_DoNotUse::GetMetadata() const {
1225  return ::_pbi::AssignDescriptors(
1226  &descriptor_table_tcp_5fdata_5fmessage_2eproto_getter, &descriptor_table_tcp_5fdata_5fmessage_2eproto_once,
1227  file_level_metadata_tcp_5fdata_5fmessage_2eproto[5]);
1228 }
1229 
1230 // ===================================================================
1231 
1232 class SetupMessage::_Internal {
1233  public:
1234 };
1235 
1236 SetupMessage::SetupMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1237  bool is_message_owned)
1238  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1239  SharedCtor(arena, is_message_owned);
1240  if (arena != nullptr && !is_message_owned) {
1241  arena->OwnCustomDestructor(this, &SetupMessage::ArenaDtor);
1242  }
1243  // @@protoc_insertion_point(arena_constructor:tcp_io_device.SetupMessage)
1244 }
1245 SetupMessage::SetupMessage(const SetupMessage& from)
1246  : ::PROTOBUF_NAMESPACE_ID::Message() {
1247  SetupMessage* const _this = this; (void)_this;
1248  new (&_impl_) Impl_{
1249  /*decltype(_impl_.entities_)*/{}
1250  , /*decltype(_impl_.objects_)*/{}
1251  , /*decltype(_impl_.commands_)*/{}
1252  , decltype(_impl_.commanddescriptions_){from._impl_.commanddescriptions_}
1253  , /*decltype(_impl_._cached_size_)*/{}};
1254 
1255  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1256  _this->_impl_.entities_.MergeFrom(from._impl_.entities_);
1257  _this->_impl_.objects_.MergeFrom(from._impl_.objects_);
1258  _this->_impl_.commands_.MergeFrom(from._impl_.commands_);
1259  // @@protoc_insertion_point(copy_constructor:tcp_io_device.SetupMessage)
1260 }
1261 
1262 inline void SetupMessage::SharedCtor(
1263  ::_pb::Arena* arena, bool is_message_owned) {
1264  (void)arena;
1265  (void)is_message_owned;
1266  new (&_impl_) Impl_{
1267  /*decltype(_impl_.entities_)*/{::_pbi::ArenaInitialized(), arena}
1268  , /*decltype(_impl_.objects_)*/{::_pbi::ArenaInitialized(), arena}
1269  , /*decltype(_impl_.commands_)*/{::_pbi::ArenaInitialized(), arena}
1270  , decltype(_impl_.commanddescriptions_){arena}
1271  , /*decltype(_impl_._cached_size_)*/{}
1272  };
1273 }
1274 
1275 SetupMessage::~SetupMessage() {
1276  // @@protoc_insertion_point(destructor:tcp_io_device.SetupMessage)
1277  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1278  (void)arena;
1279  ArenaDtor(this);
1280  return;
1281  }
1282  SharedDtor();
1283 }
1284 
1285 inline void SetupMessage::SharedDtor() {
1286  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1287  _impl_.entities_.Destruct();
1288  _impl_.entities_.~MapField();
1289  _impl_.objects_.Destruct();
1290  _impl_.objects_.~MapField();
1291  _impl_.commands_.Destruct();
1292  _impl_.commands_.~MapField();
1293  _impl_.commanddescriptions_.~RepeatedPtrField();
1294 }
1295 
1296 void SetupMessage::ArenaDtor(void* object) {
1297  SetupMessage* _this = reinterpret_cast< SetupMessage* >(object);
1298  _this->_impl_.entities_.Destruct();
1299  _this->_impl_.objects_.Destruct();
1300  _this->_impl_.commands_.Destruct();
1301 }
1302 void SetupMessage::SetCachedSize(int size) const {
1303  _impl_._cached_size_.Set(size);
1304 }
1305 
1306 void SetupMessage::Clear() {
1307 // @@protoc_insertion_point(message_clear_start:tcp_io_device.SetupMessage)
1308  uint32_t cached_has_bits = 0;
1309  // Prevent compiler warnings about cached_has_bits being unused
1310  (void) cached_has_bits;
1311 
1312  _impl_.entities_.Clear();
1313  _impl_.objects_.Clear();
1314  _impl_.commands_.Clear();
1315  _impl_.commanddescriptions_.Clear();
1316  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1317 }
1318 
1319 const char* SetupMessage::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1320 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1321  while (!ctx->Done(&ptr)) {
1322  uint32_t tag;
1323  ptr = ::_pbi::ReadTag(ptr, &tag);
1324  switch (tag >> 3) {
1325  // map<string, int32> entities = 1;
1326  case 1:
1327  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1328  ptr -= 1;
1329  do {
1330  ptr += 1;
1331  ptr = ctx->ParseMessage(&_impl_.entities_, ptr);
1332  CHK_(ptr);
1333  if (!ctx->DataAvailable(ptr)) break;
1334  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1335  } else
1336  goto handle_unusual;
1337  continue;
1338  // map<string, int32> objects = 2;
1339  case 2:
1340  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
1341  ptr -= 1;
1342  do {
1343  ptr += 1;
1344  ptr = ctx->ParseMessage(&_impl_.objects_, ptr);
1345  CHK_(ptr);
1346  if (!ctx->DataAvailable(ptr)) break;
1347  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
1348  } else
1349  goto handle_unusual;
1350  continue;
1351  // map<string, int32> commands = 3;
1352  case 3:
1353  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
1354  ptr -= 1;
1355  do {
1356  ptr += 1;
1357  ptr = ctx->ParseMessage(&_impl_.commands_, ptr);
1358  CHK_(ptr);
1359  if (!ctx->DataAvailable(ptr)) break;
1360  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
1361  } else
1362  goto handle_unusual;
1363  continue;
1364  // repeated .tcp_io_device.CommandDescription commandDescriptions = 4;
1365  case 4:
1366  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
1367  ptr -= 1;
1368  do {
1369  ptr += 1;
1370  ptr = ctx->ParseMessage(_internal_add_commanddescriptions(), ptr);
1371  CHK_(ptr);
1372  if (!ctx->DataAvailable(ptr)) break;
1373  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
1374  } else
1375  goto handle_unusual;
1376  continue;
1377  default:
1378  goto handle_unusual;
1379  } // switch
1380  handle_unusual:
1381  if ((tag == 0) || ((tag & 7) == 4)) {
1382  CHK_(ptr);
1383  ctx->SetLastTag(tag);
1384  goto message_done;
1385  }
1386  ptr = UnknownFieldParse(
1387  tag,
1388  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1389  ptr, ctx);
1390  CHK_(ptr != nullptr);
1391  } // while
1392 message_done:
1393  return ptr;
1394 failure:
1395  ptr = nullptr;
1396  goto message_done;
1397 #undef CHK_
1398 }
1399 
1400 uint8_t* SetupMessage::_InternalSerialize(
1401  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1402  // @@protoc_insertion_point(serialize_to_array_start:tcp_io_device.SetupMessage)
1403  uint32_t cached_has_bits = 0;
1404  (void) cached_has_bits;
1405 
1406  // map<string, int32> entities = 1;
1407  if (!this->_internal_entities().empty()) {
1408  using MapType = ::_pb::Map<std::string, int32_t>;
1409  using WireHelper = SetupMessage_EntitiesEntry_DoNotUse::Funcs;
1410  const auto& map_field = this->_internal_entities();
1411  auto check_utf8 = [](const MapType::value_type& entry) {
1412  (void)entry;
1413  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1414  entry.first.data(), static_cast<int>(entry.first.length()),
1415  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1416  "tcp_io_device.SetupMessage.EntitiesEntry.key");
1417  };
1418 
1419  if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
1420  for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
1421  target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream);
1422  check_utf8(entry);
1423  }
1424  } else {
1425  for (const auto& entry : map_field) {
1426  target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream);
1427  check_utf8(entry);
1428  }
1429  }
1430  }
1431 
1432  // map<string, int32> objects = 2;
1433  if (!this->_internal_objects().empty()) {
1434  using MapType = ::_pb::Map<std::string, int32_t>;
1435  using WireHelper = SetupMessage_ObjectsEntry_DoNotUse::Funcs;
1436  const auto& map_field = this->_internal_objects();
1437  auto check_utf8 = [](const MapType::value_type& entry) {
1438  (void)entry;
1439  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1440  entry.first.data(), static_cast<int>(entry.first.length()),
1441  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1442  "tcp_io_device.SetupMessage.ObjectsEntry.key");
1443  };
1444 
1445  if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
1446  for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
1447  target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream);
1448  check_utf8(entry);
1449  }
1450  } else {
1451  for (const auto& entry : map_field) {
1452  target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream);
1453  check_utf8(entry);
1454  }
1455  }
1456  }
1457 
1458  // map<string, int32> commands = 3;
1459  if (!this->_internal_commands().empty()) {
1460  using MapType = ::_pb::Map<std::string, int32_t>;
1461  using WireHelper = SetupMessage_CommandsEntry_DoNotUse::Funcs;
1462  const auto& map_field = this->_internal_commands();
1463  auto check_utf8 = [](const MapType::value_type& entry) {
1464  (void)entry;
1465  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1466  entry.first.data(), static_cast<int>(entry.first.length()),
1467  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1468  "tcp_io_device.SetupMessage.CommandsEntry.key");
1469  };
1470 
1471  if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
1472  for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
1473  target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream);
1474  check_utf8(entry);
1475  }
1476  } else {
1477  for (const auto& entry : map_field) {
1478  target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream);
1479  check_utf8(entry);
1480  }
1481  }
1482  }
1483 
1484  // repeated .tcp_io_device.CommandDescription commandDescriptions = 4;
1485  for (unsigned i = 0,
1486  n = static_cast<unsigned>(this->_internal_commanddescriptions_size()); i < n; i++) {
1487  const auto& repfield = this->_internal_commanddescriptions(i);
1488  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1489  InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
1490  }
1491 
1492  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1493  target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1494  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1495  }
1496  // @@protoc_insertion_point(serialize_to_array_end:tcp_io_device.SetupMessage)
1497  return target;
1498 }
1499 
1500 size_t SetupMessage::ByteSizeLong() const {
1501 // @@protoc_insertion_point(message_byte_size_start:tcp_io_device.SetupMessage)
1502  size_t total_size = 0;
1503 
1504  uint32_t cached_has_bits = 0;
1505  // Prevent compiler warnings about cached_has_bits being unused
1506  (void) cached_has_bits;
1507 
1508  // map<string, int32> entities = 1;
1509  total_size += 1 *
1510  ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_entities_size());
1511  for (::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >::const_iterator
1512  it = this->_internal_entities().begin();
1513  it != this->_internal_entities().end(); ++it) {
1514  total_size += SetupMessage_EntitiesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1515  }
1516 
1517  // map<string, int32> objects = 2;
1518  total_size += 1 *
1519  ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_objects_size());
1520  for (::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >::const_iterator
1521  it = this->_internal_objects().begin();
1522  it != this->_internal_objects().end(); ++it) {
1523  total_size += SetupMessage_ObjectsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1524  }
1525 
1526  // map<string, int32> commands = 3;
1527  total_size += 1 *
1528  ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_commands_size());
1529  for (::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >::const_iterator
1530  it = this->_internal_commands().begin();
1531  it != this->_internal_commands().end(); ++it) {
1532  total_size += SetupMessage_CommandsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1533  }
1534 
1535  // repeated .tcp_io_device.CommandDescription commandDescriptions = 4;
1536  total_size += 1UL * this->_internal_commanddescriptions_size();
1537  for (const auto& msg : this->_impl_.commanddescriptions_) {
1538  total_size +=
1539  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1540  }
1541 
1542  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1543 }
1544 
1545 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetupMessage::_class_data_ = {
1546  ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1547  SetupMessage::MergeImpl
1548 };
1549 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetupMessage::GetClassData() const { return &_class_data_; }
1550 
1551 
1552 void SetupMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1553  auto* const _this = static_cast<SetupMessage*>(&to_msg);
1554  auto& from = static_cast<const SetupMessage&>(from_msg);
1555  // @@protoc_insertion_point(class_specific_merge_from_start:tcp_io_device.SetupMessage)
1556  GOOGLE_DCHECK_NE(&from, _this);
1557  uint32_t cached_has_bits = 0;
1558  (void) cached_has_bits;
1559 
1560  _this->_impl_.entities_.MergeFrom(from._impl_.entities_);
1561  _this->_impl_.objects_.MergeFrom(from._impl_.objects_);
1562  _this->_impl_.commands_.MergeFrom(from._impl_.commands_);
1563  _this->_impl_.commanddescriptions_.MergeFrom(from._impl_.commanddescriptions_);
1564  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1565 }
1566 
1567 void SetupMessage::CopyFrom(const SetupMessage& from) {
1568 // @@protoc_insertion_point(class_specific_copy_from_start:tcp_io_device.SetupMessage)
1569  if (&from == this) return;
1570  Clear();
1571  MergeFrom(from);
1572 }
1573 
1574 bool SetupMessage::IsInitialized() const {
1575  return true;
1576 }
1577 
1578 void SetupMessage::InternalSwap(SetupMessage* other) {
1579  using std::swap;
1580  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1581  _impl_.entities_.InternalSwap(&other->_impl_.entities_);
1582  _impl_.objects_.InternalSwap(&other->_impl_.objects_);
1583  _impl_.commands_.InternalSwap(&other->_impl_.commands_);
1584  _impl_.commanddescriptions_.InternalSwap(&other->_impl_.commanddescriptions_);
1585 }
1586 
1587 ::PROTOBUF_NAMESPACE_ID::Metadata SetupMessage::GetMetadata() const {
1588  return ::_pbi::AssignDescriptors(
1589  &descriptor_table_tcp_5fdata_5fmessage_2eproto_getter, &descriptor_table_tcp_5fdata_5fmessage_2eproto_once,
1590  file_level_metadata_tcp_5fdata_5fmessage_2eproto[6]);
1591 }
1592 
1593 // ===================================================================
1594 
1595 class CommandDescription::_Internal {
1596  public:
1597  static const ::tcp_io_device::VariableDescription& description(const CommandDescription* msg);
1598 };
1599 
1600 const ::tcp_io_device::VariableDescription&
1601 CommandDescription::_Internal::description(const CommandDescription* msg) {
1602  return *msg->_impl_.description_;
1603 }
1604 CommandDescription::CommandDescription(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1605  bool is_message_owned)
1606  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1607  SharedCtor(arena, is_message_owned);
1608  // @@protoc_insertion_point(arena_constructor:tcp_io_device.CommandDescription)
1609 }
1610 CommandDescription::CommandDescription(const CommandDescription& from)
1611  : ::PROTOBUF_NAMESPACE_ID::Message() {
1612  CommandDescription* const _this = this; (void)_this;
1613  new (&_impl_) Impl_{
1614  decltype(_impl_.name_){}
1615  , decltype(_impl_.description_){nullptr}
1616  , /*decltype(_impl_._cached_size_)*/{}};
1617 
1618  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1619  _impl_.name_.InitDefault();
1620  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1621  _impl_.name_.Set("", GetArenaForAllocation());
1622  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1623  if (!from._internal_name().empty()) {
1624  _this->_impl_.name_.Set(from._internal_name(),
1625  _this->GetArenaForAllocation());
1626  }
1627  if (from._internal_has_description()) {
1628  _this->_impl_.description_ = new ::tcp_io_device::VariableDescription(*from._impl_.description_);
1629  }
1630  // @@protoc_insertion_point(copy_constructor:tcp_io_device.CommandDescription)
1631 }
1632 
1633 inline void CommandDescription::SharedCtor(
1634  ::_pb::Arena* arena, bool is_message_owned) {
1635  (void)arena;
1636  (void)is_message_owned;
1637  new (&_impl_) Impl_{
1638  decltype(_impl_.name_){}
1639  , decltype(_impl_.description_){nullptr}
1640  , /*decltype(_impl_._cached_size_)*/{}
1641  };
1642  _impl_.name_.InitDefault();
1643  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1644  _impl_.name_.Set("", GetArenaForAllocation());
1645  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1646 }
1647 
1648 CommandDescription::~CommandDescription() {
1649  // @@protoc_insertion_point(destructor:tcp_io_device.CommandDescription)
1650  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1651  (void)arena;
1652  return;
1653  }
1654  SharedDtor();
1655 }
1656 
1657 inline void CommandDescription::SharedDtor() {
1658  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1659  _impl_.name_.Destroy();
1660  if (this != internal_default_instance()) delete _impl_.description_;
1661 }
1662 
1663 void CommandDescription::SetCachedSize(int size) const {
1664  _impl_._cached_size_.Set(size);
1665 }
1666 
1667 void CommandDescription::Clear() {
1668 // @@protoc_insertion_point(message_clear_start:tcp_io_device.CommandDescription)
1669  uint32_t cached_has_bits = 0;
1670  // Prevent compiler warnings about cached_has_bits being unused
1671  (void) cached_has_bits;
1672 
1673  _impl_.name_.ClearToEmpty();
1674  if (GetArenaForAllocation() == nullptr && _impl_.description_ != nullptr) {
1675  delete _impl_.description_;
1676  }
1677  _impl_.description_ = nullptr;
1678  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1679 }
1680 
1681 const char* CommandDescription::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1682 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1683  while (!ctx->Done(&ptr)) {
1684  uint32_t tag;
1685  ptr = ::_pbi::ReadTag(ptr, &tag);
1686  switch (tag >> 3) {
1687  // .tcp_io_device.VariableDescription description = 1;
1688  case 1:
1689  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1690  ptr = ctx->ParseMessage(_internal_mutable_description(), ptr);
1691  CHK_(ptr);
1692  } else
1693  goto handle_unusual;
1694  continue;
1695  // string name = 2;
1696  case 2:
1697  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
1698  auto str = _internal_mutable_name();
1699  ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1700  CHK_(ptr);
1701  CHK_(::_pbi::VerifyUTF8(str, "tcp_io_device.CommandDescription.name"));
1702  } else
1703  goto handle_unusual;
1704  continue;
1705  default:
1706  goto handle_unusual;
1707  } // switch
1708  handle_unusual:
1709  if ((tag == 0) || ((tag & 7) == 4)) {
1710  CHK_(ptr);
1711  ctx->SetLastTag(tag);
1712  goto message_done;
1713  }
1714  ptr = UnknownFieldParse(
1715  tag,
1716  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1717  ptr, ctx);
1718  CHK_(ptr != nullptr);
1719  } // while
1720 message_done:
1721  return ptr;
1722 failure:
1723  ptr = nullptr;
1724  goto message_done;
1725 #undef CHK_
1726 }
1727 
1728 uint8_t* CommandDescription::_InternalSerialize(
1729  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1730  // @@protoc_insertion_point(serialize_to_array_start:tcp_io_device.CommandDescription)
1731  uint32_t cached_has_bits = 0;
1732  (void) cached_has_bits;
1733 
1734  // .tcp_io_device.VariableDescription description = 1;
1735  if (this->_internal_has_description()) {
1736  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1737  InternalWriteMessage(1, _Internal::description(this),
1738  _Internal::description(this).GetCachedSize(), target, stream);
1739  }
1740 
1741  // string name = 2;
1742  if (!this->_internal_name().empty()) {
1743  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1744  this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
1745  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1746  "tcp_io_device.CommandDescription.name");
1747  target = stream->WriteStringMaybeAliased(
1748  2, this->_internal_name(), target);
1749  }
1750 
1751  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1752  target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1753  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1754  }
1755  // @@protoc_insertion_point(serialize_to_array_end:tcp_io_device.CommandDescription)
1756  return target;
1757 }
1758 
1759 size_t CommandDescription::ByteSizeLong() const {
1760 // @@protoc_insertion_point(message_byte_size_start:tcp_io_device.CommandDescription)
1761  size_t total_size = 0;
1762 
1763  uint32_t cached_has_bits = 0;
1764  // Prevent compiler warnings about cached_has_bits being unused
1765  (void) cached_has_bits;
1766 
1767  // string name = 2;
1768  if (!this->_internal_name().empty()) {
1769  total_size += 1 +
1770  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1771  this->_internal_name());
1772  }
1773 
1774  // .tcp_io_device.VariableDescription description = 1;
1775  if (this->_internal_has_description()) {
1776  total_size += 1 +
1777  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1778  *_impl_.description_);
1779  }
1780 
1781  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1782 }
1783 
1784 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CommandDescription::_class_data_ = {
1785  ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1786  CommandDescription::MergeImpl
1787 };
1788 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CommandDescription::GetClassData() const { return &_class_data_; }
1789 
1790 
1791 void CommandDescription::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1792  auto* const _this = static_cast<CommandDescription*>(&to_msg);
1793  auto& from = static_cast<const CommandDescription&>(from_msg);
1794  // @@protoc_insertion_point(class_specific_merge_from_start:tcp_io_device.CommandDescription)
1795  GOOGLE_DCHECK_NE(&from, _this);
1796  uint32_t cached_has_bits = 0;
1797  (void) cached_has_bits;
1798 
1799  if (!from._internal_name().empty()) {
1800  _this->_internal_set_name(from._internal_name());
1801  }
1802  if (from._internal_has_description()) {
1803  _this->_internal_mutable_description()->::tcp_io_device::VariableDescription::MergeFrom(
1804  from._internal_description());
1805  }
1806  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1807 }
1808 
1809 void CommandDescription::CopyFrom(const CommandDescription& from) {
1810 // @@protoc_insertion_point(class_specific_copy_from_start:tcp_io_device.CommandDescription)
1811  if (&from == this) return;
1812  Clear();
1813  MergeFrom(from);
1814 }
1815 
1816 bool CommandDescription::IsInitialized() const {
1817  return true;
1818 }
1819 
1820 void CommandDescription::InternalSwap(CommandDescription* other) {
1821  using std::swap;
1822  auto* lhs_arena = GetArenaForAllocation();
1823  auto* rhs_arena = other->GetArenaForAllocation();
1824  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1825  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1826  &_impl_.name_, lhs_arena,
1827  &other->_impl_.name_, rhs_arena
1828  );
1829  swap(_impl_.description_, other->_impl_.description_);
1830 }
1831 
1832 ::PROTOBUF_NAMESPACE_ID::Metadata CommandDescription::GetMetadata() const {
1833  return ::_pbi::AssignDescriptors(
1834  &descriptor_table_tcp_5fdata_5fmessage_2eproto_getter, &descriptor_table_tcp_5fdata_5fmessage_2eproto_once,
1835  file_level_metadata_tcp_5fdata_5fmessage_2eproto[7]);
1836 }
1837 
1838 // ===================================================================
1839 
1840 class DataMessage::_Internal {
1841  public:
1842 };
1843 
1844 DataMessage::DataMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1845  bool is_message_owned)
1846  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1847  SharedCtor(arena, is_message_owned);
1848  // @@protoc_insertion_point(arena_constructor:tcp_io_device.DataMessage)
1849 }
1850 DataMessage::DataMessage(const DataMessage& from)
1851  : ::PROTOBUF_NAMESPACE_ID::Message() {
1852  DataMessage* const _this = this; (void)_this;
1853  new (&_impl_) Impl_{
1854  decltype(_impl_.variables_){from._impl_.variables_}
1855  , decltype(_impl_.timespan_){}
1856  , /*decltype(_impl_._cached_size_)*/{}};
1857 
1858  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1859  _this->_impl_.timespan_ = from._impl_.timespan_;
1860  // @@protoc_insertion_point(copy_constructor:tcp_io_device.DataMessage)
1861 }
1862 
1863 inline void DataMessage::SharedCtor(
1864  ::_pb::Arena* arena, bool is_message_owned) {
1865  (void)arena;
1866  (void)is_message_owned;
1867  new (&_impl_) Impl_{
1868  decltype(_impl_.variables_){arena}
1869  , decltype(_impl_.timespan_){uint64_t{0u}}
1870  , /*decltype(_impl_._cached_size_)*/{}
1871  };
1872 }
1873 
1874 DataMessage::~DataMessage() {
1875  // @@protoc_insertion_point(destructor:tcp_io_device.DataMessage)
1876  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1877  (void)arena;
1878  return;
1879  }
1880  SharedDtor();
1881 }
1882 
1883 inline void DataMessage::SharedDtor() {
1884  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1885  _impl_.variables_.~RepeatedPtrField();
1886 }
1887 
1888 void DataMessage::SetCachedSize(int size) const {
1889  _impl_._cached_size_.Set(size);
1890 }
1891 
1892 void DataMessage::Clear() {
1893 // @@protoc_insertion_point(message_clear_start:tcp_io_device.DataMessage)
1894  uint32_t cached_has_bits = 0;
1895  // Prevent compiler warnings about cached_has_bits being unused
1896  (void) cached_has_bits;
1897 
1898  _impl_.variables_.Clear();
1899  _impl_.timespan_ = uint64_t{0u};
1900  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1901 }
1902 
1903 const char* DataMessage::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1904 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1905  while (!ctx->Done(&ptr)) {
1906  uint32_t tag;
1907  ptr = ::_pbi::ReadTag(ptr, &tag);
1908  switch (tag >> 3) {
1909  // repeated .tcp_io_device.ProtoVariable variables = 1;
1910  case 1:
1911  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1912  ptr -= 1;
1913  do {
1914  ptr += 1;
1915  ptr = ctx->ParseMessage(_internal_add_variables(), ptr);
1916  CHK_(ptr);
1917  if (!ctx->DataAvailable(ptr)) break;
1918  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1919  } else
1920  goto handle_unusual;
1921  continue;
1922  // uint64 timeSpan = 2;
1923  case 2:
1924  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
1925  _impl_.timespan_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1926  CHK_(ptr);
1927  } else
1928  goto handle_unusual;
1929  continue;
1930  default:
1931  goto handle_unusual;
1932  } // switch
1933  handle_unusual:
1934  if ((tag == 0) || ((tag & 7) == 4)) {
1935  CHK_(ptr);
1936  ctx->SetLastTag(tag);
1937  goto message_done;
1938  }
1939  ptr = UnknownFieldParse(
1940  tag,
1941  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1942  ptr, ctx);
1943  CHK_(ptr != nullptr);
1944  } // while
1945 message_done:
1946  return ptr;
1947 failure:
1948  ptr = nullptr;
1949  goto message_done;
1950 #undef CHK_
1951 }
1952 
1953 uint8_t* DataMessage::_InternalSerialize(
1954  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1955  // @@protoc_insertion_point(serialize_to_array_start:tcp_io_device.DataMessage)
1956  uint32_t cached_has_bits = 0;
1957  (void) cached_has_bits;
1958 
1959  // repeated .tcp_io_device.ProtoVariable variables = 1;
1960  for (unsigned i = 0,
1961  n = static_cast<unsigned>(this->_internal_variables_size()); i < n; i++) {
1962  const auto& repfield = this->_internal_variables(i);
1963  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1964  InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
1965  }
1966 
1967  // uint64 timeSpan = 2;
1968  if (this->_internal_timespan() != 0) {
1969  target = stream->EnsureSpace(target);
1970  target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_timespan(), target);
1971  }
1972 
1973  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1974  target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1975  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1976  }
1977  // @@protoc_insertion_point(serialize_to_array_end:tcp_io_device.DataMessage)
1978  return target;
1979 }
1980 
1981 size_t DataMessage::ByteSizeLong() const {
1982 // @@protoc_insertion_point(message_byte_size_start:tcp_io_device.DataMessage)
1983  size_t total_size = 0;
1984 
1985  uint32_t cached_has_bits = 0;
1986  // Prevent compiler warnings about cached_has_bits being unused
1987  (void) cached_has_bits;
1988 
1989  // repeated .tcp_io_device.ProtoVariable variables = 1;
1990  total_size += 1UL * this->_internal_variables_size();
1991  for (const auto& msg : this->_impl_.variables_) {
1992  total_size +=
1993  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1994  }
1995 
1996  // uint64 timeSpan = 2;
1997  if (this->_internal_timespan() != 0) {
1998  total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_timespan());
1999  }
2000 
2001  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2002 }
2003 
2004 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DataMessage::_class_data_ = {
2005  ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2006  DataMessage::MergeImpl
2007 };
2008 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DataMessage::GetClassData() const { return &_class_data_; }
2009 
2010 
2011 void DataMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2012  auto* const _this = static_cast<DataMessage*>(&to_msg);
2013  auto& from = static_cast<const DataMessage&>(from_msg);
2014  // @@protoc_insertion_point(class_specific_merge_from_start:tcp_io_device.DataMessage)
2015  GOOGLE_DCHECK_NE(&from, _this);
2016  uint32_t cached_has_bits = 0;
2017  (void) cached_has_bits;
2018 
2019  _this->_impl_.variables_.MergeFrom(from._impl_.variables_);
2020  if (from._internal_timespan() != 0) {
2021  _this->_internal_set_timespan(from._internal_timespan());
2022  }
2023  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2024 }
2025 
2026 void DataMessage::CopyFrom(const DataMessage& from) {
2027 // @@protoc_insertion_point(class_specific_copy_from_start:tcp_io_device.DataMessage)
2028  if (&from == this) return;
2029  Clear();
2030  MergeFrom(from);
2031 }
2032 
2033 bool DataMessage::IsInitialized() const {
2034  return true;
2035 }
2036 
2037 void DataMessage::InternalSwap(DataMessage* other) {
2038  using std::swap;
2039  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2040  _impl_.variables_.InternalSwap(&other->_impl_.variables_);
2041  swap(_impl_.timespan_, other->_impl_.timespan_);
2042 }
2043 
2044 ::PROTOBUF_NAMESPACE_ID::Metadata DataMessage::GetMetadata() const {
2045  return ::_pbi::AssignDescriptors(
2046  &descriptor_table_tcp_5fdata_5fmessage_2eproto_getter, &descriptor_table_tcp_5fdata_5fmessage_2eproto_once,
2047  file_level_metadata_tcp_5fdata_5fmessage_2eproto[8]);
2048 }
2049 
2050 // ===================================================================
2051 
2052 class VariableDescription::_Internal {
2053  public:
2054 };
2055 
2056 VariableDescription::VariableDescription(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2057  bool is_message_owned)
2058  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2059  SharedCtor(arena, is_message_owned);
2060  // @@protoc_insertion_point(arena_constructor:tcp_io_device.VariableDescription)
2061 }
2062 VariableDescription::VariableDescription(const VariableDescription& from)
2063  : ::PROTOBUF_NAMESPACE_ID::Message() {
2064  VariableDescription* const _this = this; (void)_this;
2065  new (&_impl_) Impl_{
2066  decltype(_impl_.dimensions_){from._impl_.dimensions_}
2067  , /*decltype(_impl_._dimensions_cached_byte_size_)*/{0}
2068  , decltype(_impl_.opcode_string_handle_){}
2069  , decltype(_impl_.entityid_){}
2070  , decltype(_impl_.id_){}
2071  , decltype(_impl_.datatype_){}
2072  , /*decltype(_impl_._cached_size_)*/{}};
2073 
2074  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2075  _impl_.opcode_string_handle_.InitDefault();
2076  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2077  _impl_.opcode_string_handle_.Set("", GetArenaForAllocation());
2078  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2079  if (!from._internal_opcode_string_handle().empty()) {
2080  _this->_impl_.opcode_string_handle_.Set(from._internal_opcode_string_handle(),
2081  _this->GetArenaForAllocation());
2082  }
2083  ::memcpy(&_impl_.entityid_, &from._impl_.entityid_,
2084  static_cast<size_t>(reinterpret_cast<char*>(&_impl_.datatype_) -
2085  reinterpret_cast<char*>(&_impl_.entityid_)) + sizeof(_impl_.datatype_));
2086  // @@protoc_insertion_point(copy_constructor:tcp_io_device.VariableDescription)
2087 }
2088 
2089 inline void VariableDescription::SharedCtor(
2090  ::_pb::Arena* arena, bool is_message_owned) {
2091  (void)arena;
2092  (void)is_message_owned;
2093  new (&_impl_) Impl_{
2094  decltype(_impl_.dimensions_){arena}
2095  , /*decltype(_impl_._dimensions_cached_byte_size_)*/{0}
2096  , decltype(_impl_.opcode_string_handle_){}
2097  , decltype(_impl_.entityid_){0}
2098  , decltype(_impl_.id_){0}
2099  , decltype(_impl_.datatype_){0}
2100  , /*decltype(_impl_._cached_size_)*/{}
2101  };
2102  _impl_.opcode_string_handle_.InitDefault();
2103  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2104  _impl_.opcode_string_handle_.Set("", GetArenaForAllocation());
2105  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2106 }
2107 
2108 VariableDescription::~VariableDescription() {
2109  // @@protoc_insertion_point(destructor:tcp_io_device.VariableDescription)
2110  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2111  (void)arena;
2112  return;
2113  }
2114  SharedDtor();
2115 }
2116 
2117 inline void VariableDescription::SharedDtor() {
2118  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2119  _impl_.dimensions_.~RepeatedField();
2120  _impl_.opcode_string_handle_.Destroy();
2121 }
2122 
2123 void VariableDescription::SetCachedSize(int size) const {
2124  _impl_._cached_size_.Set(size);
2125 }
2126 
2127 void VariableDescription::Clear() {
2128 // @@protoc_insertion_point(message_clear_start:tcp_io_device.VariableDescription)
2129  uint32_t cached_has_bits = 0;
2130  // Prevent compiler warnings about cached_has_bits being unused
2131  (void) cached_has_bits;
2132 
2133  _impl_.dimensions_.Clear();
2134  _impl_.opcode_string_handle_.ClearToEmpty();
2135  ::memset(&_impl_.entityid_, 0, static_cast<size_t>(
2136  reinterpret_cast<char*>(&_impl_.datatype_) -
2137  reinterpret_cast<char*>(&_impl_.entityid_)) + sizeof(_impl_.datatype_));
2138  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2139 }
2140 
2141 const char* VariableDescription::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2142 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2143  while (!ctx->Done(&ptr)) {
2144  uint32_t tag;
2145  ptr = ::_pbi::ReadTag(ptr, &tag);
2146  switch (tag >> 3) {
2147  // int32 entityID = 1;
2148  case 1:
2149  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
2150  _impl_.entityid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2151  CHK_(ptr);
2152  } else
2153  goto handle_unusual;
2154  continue;
2155  // int32 ID = 2;
2156  case 2:
2157  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
2158  _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2159  CHK_(ptr);
2160  } else
2161  goto handle_unusual;
2162  continue;
2163  // .tcp_io_device.VariableDescription.DataType dataType = 3;
2164  case 3:
2165  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
2166  uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2167  CHK_(ptr);
2168  _internal_set_datatype(static_cast<::tcp_io_device::VariableDescription_DataType>(val));
2169  } else
2170  goto handle_unusual;
2171  continue;
2172  // repeated uint64 dimensions = 4;
2173  case 4:
2174  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
2175  ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_dimensions(), ptr, ctx);
2176  CHK_(ptr);
2177  } else if (static_cast<uint8_t>(tag) == 32) {
2178  _internal_add_dimensions(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
2179  CHK_(ptr);
2180  } else
2181  goto handle_unusual;
2182  continue;
2183  // string opcode_string_handle = 5;
2184  case 5:
2185  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
2186  auto str = _internal_mutable_opcode_string_handle();
2187  ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2188  CHK_(ptr);
2189  CHK_(::_pbi::VerifyUTF8(str, "tcp_io_device.VariableDescription.opcode_string_handle"));
2190  } else
2191  goto handle_unusual;
2192  continue;
2193  default:
2194  goto handle_unusual;
2195  } // switch
2196  handle_unusual:
2197  if ((tag == 0) || ((tag & 7) == 4)) {
2198  CHK_(ptr);
2199  ctx->SetLastTag(tag);
2200  goto message_done;
2201  }
2202  ptr = UnknownFieldParse(
2203  tag,
2204  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2205  ptr, ctx);
2206  CHK_(ptr != nullptr);
2207  } // while
2208 message_done:
2209  return ptr;
2210 failure:
2211  ptr = nullptr;
2212  goto message_done;
2213 #undef CHK_
2214 }
2215 
2216 uint8_t* VariableDescription::_InternalSerialize(
2217  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2218  // @@protoc_insertion_point(serialize_to_array_start:tcp_io_device.VariableDescription)
2219  uint32_t cached_has_bits = 0;
2220  (void) cached_has_bits;
2221 
2222  // int32 entityID = 1;
2223  if (this->_internal_entityid() != 0) {
2224  target = stream->EnsureSpace(target);
2225  target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_entityid(), target);
2226  }
2227 
2228  // int32 ID = 2;
2229  if (this->_internal_id() != 0) {
2230  target = stream->EnsureSpace(target);
2231  target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_id(), target);
2232  }
2233 
2234  // .tcp_io_device.VariableDescription.DataType dataType = 3;
2235  if (this->_internal_datatype() != 0) {
2236  target = stream->EnsureSpace(target);
2237  target = ::_pbi::WireFormatLite::WriteEnumToArray(
2238  3, this->_internal_datatype(), target);
2239  }
2240 
2241  // repeated uint64 dimensions = 4;
2242  {
2243  int byte_size = _impl_._dimensions_cached_byte_size_.load(std::memory_order_relaxed);
2244  if (byte_size > 0) {
2245  target = stream->WriteUInt64Packed(
2246  4, _internal_dimensions(), byte_size, target);
2247  }
2248  }
2249 
2250  // string opcode_string_handle = 5;
2251  if (!this->_internal_opcode_string_handle().empty()) {
2252  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2253  this->_internal_opcode_string_handle().data(), static_cast<int>(this->_internal_opcode_string_handle().length()),
2254  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2255  "tcp_io_device.VariableDescription.opcode_string_handle");
2256  target = stream->WriteStringMaybeAliased(
2257  5, this->_internal_opcode_string_handle(), target);
2258  }
2259 
2260  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2261  target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2262  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2263  }
2264  // @@protoc_insertion_point(serialize_to_array_end:tcp_io_device.VariableDescription)
2265  return target;
2266 }
2267 
2268 size_t VariableDescription::ByteSizeLong() const {
2269 // @@protoc_insertion_point(message_byte_size_start:tcp_io_device.VariableDescription)
2270  size_t total_size = 0;
2271 
2272  uint32_t cached_has_bits = 0;
2273  // Prevent compiler warnings about cached_has_bits being unused
2274  (void) cached_has_bits;
2275 
2276  // repeated uint64 dimensions = 4;
2277  {
2278  size_t data_size = ::_pbi::WireFormatLite::
2279  UInt64Size(this->_impl_.dimensions_);
2280  if (data_size > 0) {
2281  total_size += 1 +
2282  ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
2283  }
2284  int cached_size = ::_pbi::ToCachedSize(data_size);
2285  _impl_._dimensions_cached_byte_size_.store(cached_size,
2286  std::memory_order_relaxed);
2287  total_size += data_size;
2288  }
2289 
2290  // string opcode_string_handle = 5;
2291  if (!this->_internal_opcode_string_handle().empty()) {
2292  total_size += 1 +
2293  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2294  this->_internal_opcode_string_handle());
2295  }
2296 
2297  // int32 entityID = 1;
2298  if (this->_internal_entityid() != 0) {
2299  total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_entityid());
2300  }
2301 
2302  // int32 ID = 2;
2303  if (this->_internal_id() != 0) {
2304  total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id());
2305  }
2306 
2307  // .tcp_io_device.VariableDescription.DataType dataType = 3;
2308  if (this->_internal_datatype() != 0) {
2309  total_size += 1 +
2310  ::_pbi::WireFormatLite::EnumSize(this->_internal_datatype());
2311  }
2312 
2313  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2314 }
2315 
2316 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VariableDescription::_class_data_ = {
2317  ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2318  VariableDescription::MergeImpl
2319 };
2320 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VariableDescription::GetClassData() const { return &_class_data_; }
2321 
2322 
2323 void VariableDescription::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2324  auto* const _this = static_cast<VariableDescription*>(&to_msg);
2325  auto& from = static_cast<const VariableDescription&>(from_msg);
2326  // @@protoc_insertion_point(class_specific_merge_from_start:tcp_io_device.VariableDescription)
2327  GOOGLE_DCHECK_NE(&from, _this);
2328  uint32_t cached_has_bits = 0;
2329  (void) cached_has_bits;
2330 
2331  _this->_impl_.dimensions_.MergeFrom(from._impl_.dimensions_);
2332  if (!from._internal_opcode_string_handle().empty()) {
2333  _this->_internal_set_opcode_string_handle(from._internal_opcode_string_handle());
2334  }
2335  if (from._internal_entityid() != 0) {
2336  _this->_internal_set_entityid(from._internal_entityid());
2337  }
2338  if (from._internal_id() != 0) {
2339  _this->_internal_set_id(from._internal_id());
2340  }
2341  if (from._internal_datatype() != 0) {
2342  _this->_internal_set_datatype(from._internal_datatype());
2343  }
2344  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2345 }
2346 
2347 void VariableDescription::CopyFrom(const VariableDescription& from) {
2348 // @@protoc_insertion_point(class_specific_copy_from_start:tcp_io_device.VariableDescription)
2349  if (&from == this) return;
2350  Clear();
2351  MergeFrom(from);
2352 }
2353 
2354 bool VariableDescription::IsInitialized() const {
2355  return true;
2356 }
2357 
2358 void VariableDescription::InternalSwap(VariableDescription* other) {
2359  using std::swap;
2360  auto* lhs_arena = GetArenaForAllocation();
2361  auto* rhs_arena = other->GetArenaForAllocation();
2362  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2363  _impl_.dimensions_.InternalSwap(&other->_impl_.dimensions_);
2364  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2365  &_impl_.opcode_string_handle_, lhs_arena,
2366  &other->_impl_.opcode_string_handle_, rhs_arena
2367  );
2368  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2369  PROTOBUF_FIELD_OFFSET(VariableDescription, _impl_.datatype_)
2370  + sizeof(VariableDescription::_impl_.datatype_)
2371  - PROTOBUF_FIELD_OFFSET(VariableDescription, _impl_.entityid_)>(
2372  reinterpret_cast<char*>(&_impl_.entityid_),
2373  reinterpret_cast<char*>(&other->_impl_.entityid_));
2374 }
2375 
2376 ::PROTOBUF_NAMESPACE_ID::Metadata VariableDescription::GetMetadata() const {
2377  return ::_pbi::AssignDescriptors(
2378  &descriptor_table_tcp_5fdata_5fmessage_2eproto_getter, &descriptor_table_tcp_5fdata_5fmessage_2eproto_once,
2379  file_level_metadata_tcp_5fdata_5fmessage_2eproto[9]);
2380 }
2381 
2382 // ===================================================================
2383 
2384 class ProtoVariable::_Internal {
2385  public:
2386  static const ::tcp_io_device::VariableDescription& metadata(const ProtoVariable* msg);
2387 };
2388 
2389 const ::tcp_io_device::VariableDescription&
2390 ProtoVariable::_Internal::metadata(const ProtoVariable* msg) {
2391  return *msg->_impl_.metadata_;
2392 }
2393 ProtoVariable::ProtoVariable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2394  bool is_message_owned)
2395  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2396  SharedCtor(arena, is_message_owned);
2397  // @@protoc_insertion_point(arena_constructor:tcp_io_device.ProtoVariable)
2398 }
2399 ProtoVariable::ProtoVariable(const ProtoVariable& from)
2400  : ::PROTOBUF_NAMESPACE_ID::Message() {
2401  ProtoVariable* const _this = this; (void)_this;
2402  new (&_impl_) Impl_{
2403  decltype(_impl_.data_){}
2404  , decltype(_impl_.metadata_){nullptr}
2405  , /*decltype(_impl_._cached_size_)*/{}};
2406 
2407  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2408  _impl_.data_.InitDefault();
2409  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2410  _impl_.data_.Set("", GetArenaForAllocation());
2411  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2412  if (!from._internal_data().empty()) {
2413  _this->_impl_.data_.Set(from._internal_data(),
2414  _this->GetArenaForAllocation());
2415  }
2416  if (from._internal_has_metadata()) {
2417  _this->_impl_.metadata_ = new ::tcp_io_device::VariableDescription(*from._impl_.metadata_);
2418  }
2419  // @@protoc_insertion_point(copy_constructor:tcp_io_device.ProtoVariable)
2420 }
2421 
2422 inline void ProtoVariable::SharedCtor(
2423  ::_pb::Arena* arena, bool is_message_owned) {
2424  (void)arena;
2425  (void)is_message_owned;
2426  new (&_impl_) Impl_{
2427  decltype(_impl_.data_){}
2428  , decltype(_impl_.metadata_){nullptr}
2429  , /*decltype(_impl_._cached_size_)*/{}
2430  };
2431  _impl_.data_.InitDefault();
2432  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2433  _impl_.data_.Set("", GetArenaForAllocation());
2434  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2435 }
2436 
2437 ProtoVariable::~ProtoVariable() {
2438  // @@protoc_insertion_point(destructor:tcp_io_device.ProtoVariable)
2439  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2440  (void)arena;
2441  return;
2442  }
2443  SharedDtor();
2444 }
2445 
2446 inline void ProtoVariable::SharedDtor() {
2447  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2448  _impl_.data_.Destroy();
2449  if (this != internal_default_instance()) delete _impl_.metadata_;
2450 }
2451 
2452 void ProtoVariable::SetCachedSize(int size) const {
2453  _impl_._cached_size_.Set(size);
2454 }
2455 
2456 void ProtoVariable::Clear() {
2457 // @@protoc_insertion_point(message_clear_start:tcp_io_device.ProtoVariable)
2458  uint32_t cached_has_bits = 0;
2459  // Prevent compiler warnings about cached_has_bits being unused
2460  (void) cached_has_bits;
2461 
2462  _impl_.data_.ClearToEmpty();
2463  if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) {
2464  delete _impl_.metadata_;
2465  }
2466  _impl_.metadata_ = nullptr;
2467  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2468 }
2469 
2470 const char* ProtoVariable::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2471 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2472  while (!ctx->Done(&ptr)) {
2473  uint32_t tag;
2474  ptr = ::_pbi::ReadTag(ptr, &tag);
2475  switch (tag >> 3) {
2476  // .tcp_io_device.VariableDescription metaData = 1;
2477  case 1:
2478  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
2479  ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr);
2480  CHK_(ptr);
2481  } else
2482  goto handle_unusual;
2483  continue;
2484  // bytes data = 2;
2485  case 2:
2486  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
2487  auto str = _internal_mutable_data();
2488  ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2489  CHK_(ptr);
2490  } else
2491  goto handle_unusual;
2492  continue;
2493  default:
2494  goto handle_unusual;
2495  } // switch
2496  handle_unusual:
2497  if ((tag == 0) || ((tag & 7) == 4)) {
2498  CHK_(ptr);
2499  ctx->SetLastTag(tag);
2500  goto message_done;
2501  }
2502  ptr = UnknownFieldParse(
2503  tag,
2504  _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2505  ptr, ctx);
2506  CHK_(ptr != nullptr);
2507  } // while
2508 message_done:
2509  return ptr;
2510 failure:
2511  ptr = nullptr;
2512  goto message_done;
2513 #undef CHK_
2514 }
2515 
2516 uint8_t* ProtoVariable::_InternalSerialize(
2517  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2518  // @@protoc_insertion_point(serialize_to_array_start:tcp_io_device.ProtoVariable)
2519  uint32_t cached_has_bits = 0;
2520  (void) cached_has_bits;
2521 
2522  // .tcp_io_device.VariableDescription metaData = 1;
2523  if (this->_internal_has_metadata()) {
2524  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2525  InternalWriteMessage(1, _Internal::metadata(this),
2526  _Internal::metadata(this).GetCachedSize(), target, stream);
2527  }
2528 
2529  // bytes data = 2;
2530  if (!this->_internal_data().empty()) {
2531  target = stream->WriteBytesMaybeAliased(
2532  2, this->_internal_data(), target);
2533  }
2534 
2535  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2536  target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2537  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2538  }
2539  // @@protoc_insertion_point(serialize_to_array_end:tcp_io_device.ProtoVariable)
2540  return target;
2541 }
2542 
2543 size_t ProtoVariable::ByteSizeLong() const {
2544 // @@protoc_insertion_point(message_byte_size_start:tcp_io_device.ProtoVariable)
2545  size_t total_size = 0;
2546 
2547  uint32_t cached_has_bits = 0;
2548  // Prevent compiler warnings about cached_has_bits being unused
2549  (void) cached_has_bits;
2550 
2551  // bytes data = 2;
2552  if (!this->_internal_data().empty()) {
2553  total_size += 1 +
2554  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
2555  this->_internal_data());
2556  }
2557 
2558  // .tcp_io_device.VariableDescription metaData = 1;
2559  if (this->_internal_has_metadata()) {
2560  total_size += 1 +
2561  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2562  *_impl_.metadata_);
2563  }
2564 
2565  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2566 }
2567 
2568 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProtoVariable::_class_data_ = {
2569  ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2570  ProtoVariable::MergeImpl
2571 };
2572 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProtoVariable::GetClassData() const { return &_class_data_; }
2573 
2574 
2575 void ProtoVariable::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2576  auto* const _this = static_cast<ProtoVariable*>(&to_msg);
2577  auto& from = static_cast<const ProtoVariable&>(from_msg);
2578  // @@protoc_insertion_point(class_specific_merge_from_start:tcp_io_device.ProtoVariable)
2579  GOOGLE_DCHECK_NE(&from, _this);
2580  uint32_t cached_has_bits = 0;
2581  (void) cached_has_bits;
2582 
2583  if (!from._internal_data().empty()) {
2584  _this->_internal_set_data(from._internal_data());
2585  }
2586  if (from._internal_has_metadata()) {
2587  _this->_internal_mutable_metadata()->::tcp_io_device::VariableDescription::MergeFrom(
2588  from._internal_metadata());
2589  }
2590  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2591 }
2592 
2593 void ProtoVariable::CopyFrom(const ProtoVariable& from) {
2594 // @@protoc_insertion_point(class_specific_copy_from_start:tcp_io_device.ProtoVariable)
2595  if (&from == this) return;
2596  Clear();
2597  MergeFrom(from);
2598 }
2599 
2600 bool ProtoVariable::IsInitialized() const {
2601  return true;
2602 }
2603 
2604 void ProtoVariable::InternalSwap(ProtoVariable* other) {
2605  using std::swap;
2606  auto* lhs_arena = GetArenaForAllocation();
2607  auto* rhs_arena = other->GetArenaForAllocation();
2608  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2609  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2610  &_impl_.data_, lhs_arena,
2611  &other->_impl_.data_, rhs_arena
2612  );
2613  swap(_impl_.metadata_, other->_impl_.metadata_);
2614 }
2615 
2616 ::PROTOBUF_NAMESPACE_ID::Metadata ProtoVariable::GetMetadata() const {
2617  return ::_pbi::AssignDescriptors(
2618  &descriptor_table_tcp_5fdata_5fmessage_2eproto_getter, &descriptor_table_tcp_5fdata_5fmessage_2eproto_once,
2619  file_level_metadata_tcp_5fdata_5fmessage_2eproto[10]);
2620 }
2621 
2622 // @@protoc_insertion_point(namespace_scope)
2623 } // namespace tcp_io_device
2624 PROTOBUF_NAMESPACE_OPEN
2625 template<> PROTOBUF_NOINLINE ::tcp_io_device::TCPMessage*
2626 Arena::CreateMaybeMessage< ::tcp_io_device::TCPMessage >(Arena* arena) {
2627  return Arena::CreateMessageInternal< ::tcp_io_device::TCPMessage >(arena);
2628 }
2629 template<> PROTOBUF_NOINLINE ::tcp_io_device::StartMessage*
2630 Arena::CreateMaybeMessage< ::tcp_io_device::StartMessage >(Arena* arena) {
2631  return Arena::CreateMessageInternal< ::tcp_io_device::StartMessage >(arena);
2632 }
2633 template<> PROTOBUF_NOINLINE ::tcp_io_device::StopMessage*
2634 Arena::CreateMaybeMessage< ::tcp_io_device::StopMessage >(Arena* arena) {
2635  return Arena::CreateMessageInternal< ::tcp_io_device::StopMessage >(arena);
2636 }
2637 template<> PROTOBUF_NOINLINE ::tcp_io_device::SetupMessage_EntitiesEntry_DoNotUse*
2638 Arena::CreateMaybeMessage< ::tcp_io_device::SetupMessage_EntitiesEntry_DoNotUse >(Arena* arena) {
2639  return Arena::CreateMessageInternal< ::tcp_io_device::SetupMessage_EntitiesEntry_DoNotUse >(arena);
2640 }
2641 template<> PROTOBUF_NOINLINE ::tcp_io_device::SetupMessage_ObjectsEntry_DoNotUse*
2642 Arena::CreateMaybeMessage< ::tcp_io_device::SetupMessage_ObjectsEntry_DoNotUse >(Arena* arena) {
2643  return Arena::CreateMessageInternal< ::tcp_io_device::SetupMessage_ObjectsEntry_DoNotUse >(arena);
2644 }
2645 template<> PROTOBUF_NOINLINE ::tcp_io_device::SetupMessage_CommandsEntry_DoNotUse*
2646 Arena::CreateMaybeMessage< ::tcp_io_device::SetupMessage_CommandsEntry_DoNotUse >(Arena* arena) {
2647  return Arena::CreateMessageInternal< ::tcp_io_device::SetupMessage_CommandsEntry_DoNotUse >(arena);
2648 }
2649 template<> PROTOBUF_NOINLINE ::tcp_io_device::SetupMessage*
2650 Arena::CreateMaybeMessage< ::tcp_io_device::SetupMessage >(Arena* arena) {
2651  return Arena::CreateMessageInternal< ::tcp_io_device::SetupMessage >(arena);
2652 }
2653 template<> PROTOBUF_NOINLINE ::tcp_io_device::CommandDescription*
2654 Arena::CreateMaybeMessage< ::tcp_io_device::CommandDescription >(Arena* arena) {
2655  return Arena::CreateMessageInternal< ::tcp_io_device::CommandDescription >(arena);
2656 }
2657 template<> PROTOBUF_NOINLINE ::tcp_io_device::DataMessage*
2658 Arena::CreateMaybeMessage< ::tcp_io_device::DataMessage >(Arena* arena) {
2659  return Arena::CreateMessageInternal< ::tcp_io_device::DataMessage >(arena);
2660 }
2661 template<> PROTOBUF_NOINLINE ::tcp_io_device::VariableDescription*
2662 Arena::CreateMaybeMessage< ::tcp_io_device::VariableDescription >(Arena* arena) {
2663  return Arena::CreateMessageInternal< ::tcp_io_device::VariableDescription >(arena);
2664 }
2665 template<> PROTOBUF_NOINLINE ::tcp_io_device::ProtoVariable*
2666 Arena::CreateMaybeMessage< ::tcp_io_device::ProtoVariable >(Arena* arena) {
2667  return Arena::CreateMessageInternal< ::tcp_io_device::ProtoVariable >(arena);
2668 }
2669 PROTOBUF_NAMESPACE_CLOSE
2670 
2671 // @@protoc_insertion_point(global_scope)
2672 #include <google/protobuf/port_undef.inc>
2673 
2674 #endif // ENABLE_PROTOBUF
tcp_io_device::StartMessage
Definition: tcp_data_message.pb.h:486
tcp_io_device::CommandDescription
Definition: tcp_data_message.pb.h:1102
tcp_io_device::SetupMessage_ObjectsEntry_DoNotUse
Definition: tcp_data_message.pb.h:823
tcp_io_device::SetupMessage
Definition: tcp_data_message.pb.h:873
tcp_io_device::ProtoVariable
Definition: tcp_data_message.pb.h:1692
tcp_io_device::DataMessage
Definition: tcp_data_message.pb.h:1275
tcp_io_device::VariableDescription
Definition: tcp_data_message.pb.h:1443
tcp_io_device::SetupMessage_EntitiesEntry_DoNotUse
Definition: tcp_data_message.pb.h:797
tcp_io_device::SetupMessage_CommandsEntry_DoNotUse
Definition: tcp_data_message.pb.h:849
tcp_io_device::StopMessage
Definition: tcp_data_message.pb.h:677
tcp_io_device::TCPMessage
Definition: tcp_data_message.pb.h:188