• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 
3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4 #include "debugger_message.pb.h"
5 #include <google/protobuf/stubs/once.h>
6 #include <google/protobuf/io/coded_stream.h>
7 #include <google/protobuf/wire_format_lite_inl.h>
8 // @@protoc_insertion_point(includes)
9 
10 namespace com {
11 namespace android {
12 namespace glesv2debugger {
13 
protobuf_ShutdownFile_debugger_5fmessage_2eproto()14 void protobuf_ShutdownFile_debugger_5fmessage_2eproto() {
15   delete Message::default_instance_;
16 }
17 
protobuf_AddDesc_debugger_5fmessage_2eproto()18 void protobuf_AddDesc_debugger_5fmessage_2eproto() {
19   static bool already_here = false;
20   if (already_here) return;
21   already_here = true;
22   GOOGLE_PROTOBUF_VERIFY_VERSION;
23 
24   Message::default_instance_ = new Message();
25   Message::default_instance_->InitAsDefaultInstance();
26   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_debugger_5fmessage_2eproto);
27 }
28 
29 // Force AddDescriptors() to be called at static initialization time.
30 struct StaticDescriptorInitializer_debugger_5fmessage_2eproto {
StaticDescriptorInitializer_debugger_5fmessage_2eprotocom::android::glesv2debugger::StaticDescriptorInitializer_debugger_5fmessage_2eproto31   StaticDescriptorInitializer_debugger_5fmessage_2eproto() {
32     protobuf_AddDesc_debugger_5fmessage_2eproto();
33   }
34 } static_descriptor_initializer_debugger_5fmessage_2eproto_;
35 
36 
37 // ===================================================================
38 
Message_Function_IsValid(int value)39 bool Message_Function_IsValid(int value) {
40   switch(value) {
41     case 0:
42     case 1:
43     case 2:
44     case 3:
45     case 4:
46     case 5:
47     case 6:
48     case 7:
49     case 8:
50     case 9:
51     case 10:
52     case 11:
53     case 12:
54     case 13:
55     case 14:
56     case 15:
57     case 16:
58     case 17:
59     case 18:
60     case 19:
61     case 20:
62     case 21:
63     case 22:
64     case 23:
65     case 24:
66     case 25:
67     case 26:
68     case 27:
69     case 28:
70     case 29:
71     case 30:
72     case 31:
73     case 32:
74     case 33:
75     case 34:
76     case 35:
77     case 36:
78     case 37:
79     case 38:
80     case 39:
81     case 40:
82     case 41:
83     case 42:
84     case 43:
85     case 44:
86     case 45:
87     case 46:
88     case 47:
89     case 48:
90     case 49:
91     case 50:
92     case 51:
93     case 52:
94     case 53:
95     case 54:
96     case 55:
97     case 56:
98     case 57:
99     case 58:
100     case 59:
101     case 60:
102     case 61:
103     case 62:
104     case 63:
105     case 64:
106     case 65:
107     case 66:
108     case 67:
109     case 68:
110     case 69:
111     case 70:
112     case 71:
113     case 72:
114     case 73:
115     case 74:
116     case 75:
117     case 76:
118     case 77:
119     case 78:
120     case 79:
121     case 80:
122     case 81:
123     case 82:
124     case 83:
125     case 84:
126     case 85:
127     case 86:
128     case 87:
129     case 88:
130     case 89:
131     case 90:
132     case 91:
133     case 92:
134     case 93:
135     case 94:
136     case 95:
137     case 96:
138     case 97:
139     case 98:
140     case 99:
141     case 100:
142     case 101:
143     case 102:
144     case 103:
145     case 104:
146     case 105:
147     case 106:
148     case 107:
149     case 108:
150     case 109:
151     case 110:
152     case 111:
153     case 112:
154     case 113:
155     case 114:
156     case 115:
157     case 116:
158     case 117:
159     case 118:
160     case 119:
161     case 120:
162     case 121:
163     case 122:
164     case 123:
165     case 124:
166     case 125:
167     case 126:
168     case 127:
169     case 128:
170     case 129:
171     case 130:
172     case 131:
173     case 132:
174     case 133:
175     case 134:
176     case 135:
177     case 136:
178     case 137:
179     case 138:
180     case 139:
181     case 140:
182     case 141:
183     case 142:
184     case 143:
185     case 144:
186     case 145:
187     case 146:
188     case 147:
189     case 148:
190     case 149:
191     case 150:
192     case 151:
193     case 152:
194     case 153:
195     case 154:
196     case 155:
197     case 156:
198     case 157:
199     case 158:
200     case 159:
201     case 160:
202     case 161:
203     case 162:
204     case 163:
205     case 164:
206     case 165:
207     case 166:
208     case 167:
209     case 168:
210     case 169:
211     case 170:
212     case 171:
213     case 172:
214     case 173:
215     case 174:
216     case 175:
217     case 176:
218     case 177:
219     case 178:
220     case 179:
221     case 180:
222     case 181:
223     case 182:
224     case 183:
225     case 184:
226     case 185:
227     case 186:
228     case 187:
229     case 188:
230     case 189:
231     case 190:
232       return true;
233     default:
234       return false;
235   }
236 }
237 
238 #ifndef _MSC_VER
239 const Message_Function Message::glActiveTexture;
240 const Message_Function Message::glAttachShader;
241 const Message_Function Message::glBindAttribLocation;
242 const Message_Function Message::glBindBuffer;
243 const Message_Function Message::glBindFramebuffer;
244 const Message_Function Message::glBindRenderbuffer;
245 const Message_Function Message::glBindTexture;
246 const Message_Function Message::glBlendColor;
247 const Message_Function Message::glBlendEquation;
248 const Message_Function Message::glBlendEquationSeparate;
249 const Message_Function Message::glBlendFunc;
250 const Message_Function Message::glBlendFuncSeparate;
251 const Message_Function Message::glBufferData;
252 const Message_Function Message::glBufferSubData;
253 const Message_Function Message::glCheckFramebufferStatus;
254 const Message_Function Message::glClear;
255 const Message_Function Message::glClearColor;
256 const Message_Function Message::glClearDepthf;
257 const Message_Function Message::glClearStencil;
258 const Message_Function Message::glColorMask;
259 const Message_Function Message::glCompileShader;
260 const Message_Function Message::glCompressedTexImage2D;
261 const Message_Function Message::glCompressedTexSubImage2D;
262 const Message_Function Message::glCopyTexImage2D;
263 const Message_Function Message::glCopyTexSubImage2D;
264 const Message_Function Message::glCreateProgram;
265 const Message_Function Message::glCreateShader;
266 const Message_Function Message::glCullFace;
267 const Message_Function Message::glDeleteBuffers;
268 const Message_Function Message::glDeleteFramebuffers;
269 const Message_Function Message::glDeleteProgram;
270 const Message_Function Message::glDeleteRenderbuffers;
271 const Message_Function Message::glDeleteShader;
272 const Message_Function Message::glDeleteTextures;
273 const Message_Function Message::glDepthFunc;
274 const Message_Function Message::glDepthMask;
275 const Message_Function Message::glDepthRangef;
276 const Message_Function Message::glDetachShader;
277 const Message_Function Message::glDisable;
278 const Message_Function Message::glDisableVertexAttribArray;
279 const Message_Function Message::glDrawArrays;
280 const Message_Function Message::glDrawElements;
281 const Message_Function Message::glEnable;
282 const Message_Function Message::glEnableVertexAttribArray;
283 const Message_Function Message::glFinish;
284 const Message_Function Message::glFlush;
285 const Message_Function Message::glFramebufferRenderbuffer;
286 const Message_Function Message::glFramebufferTexture2D;
287 const Message_Function Message::glFrontFace;
288 const Message_Function Message::glGenBuffers;
289 const Message_Function Message::glGenerateMipmap;
290 const Message_Function Message::glGenFramebuffers;
291 const Message_Function Message::glGenRenderbuffers;
292 const Message_Function Message::glGenTextures;
293 const Message_Function Message::glGetActiveAttrib;
294 const Message_Function Message::glGetActiveUniform;
295 const Message_Function Message::glGetAttachedShaders;
296 const Message_Function Message::glGetAttribLocation;
297 const Message_Function Message::glGetBooleanv;
298 const Message_Function Message::glGetBufferParameteriv;
299 const Message_Function Message::glGetError;
300 const Message_Function Message::glGetFloatv;
301 const Message_Function Message::glGetFramebufferAttachmentParameteriv;
302 const Message_Function Message::glGetIntegerv;
303 const Message_Function Message::glGetProgramiv;
304 const Message_Function Message::glGetProgramInfoLog;
305 const Message_Function Message::glGetRenderbufferParameteriv;
306 const Message_Function Message::glGetShaderiv;
307 const Message_Function Message::glGetShaderInfoLog;
308 const Message_Function Message::glGetShaderPrecisionFormat;
309 const Message_Function Message::glGetShaderSource;
310 const Message_Function Message::glGetString;
311 const Message_Function Message::glGetTexParameterfv;
312 const Message_Function Message::glGetTexParameteriv;
313 const Message_Function Message::glGetUniformfv;
314 const Message_Function Message::glGetUniformiv;
315 const Message_Function Message::glGetUniformLocation;
316 const Message_Function Message::glGetVertexAttribfv;
317 const Message_Function Message::glGetVertexAttribiv;
318 const Message_Function Message::glGetVertexAttribPointerv;
319 const Message_Function Message::glHint;
320 const Message_Function Message::glIsBuffer;
321 const Message_Function Message::glIsEnabled;
322 const Message_Function Message::glIsFramebuffer;
323 const Message_Function Message::glIsProgram;
324 const Message_Function Message::glIsRenderbuffer;
325 const Message_Function Message::glIsShader;
326 const Message_Function Message::glIsTexture;
327 const Message_Function Message::glLineWidth;
328 const Message_Function Message::glLinkProgram;
329 const Message_Function Message::glPixelStorei;
330 const Message_Function Message::glPolygonOffset;
331 const Message_Function Message::glReadPixels;
332 const Message_Function Message::glReleaseShaderCompiler;
333 const Message_Function Message::glRenderbufferStorage;
334 const Message_Function Message::glSampleCoverage;
335 const Message_Function Message::glScissor;
336 const Message_Function Message::glShaderBinary;
337 const Message_Function Message::glShaderSource;
338 const Message_Function Message::glStencilFunc;
339 const Message_Function Message::glStencilFuncSeparate;
340 const Message_Function Message::glStencilMask;
341 const Message_Function Message::glStencilMaskSeparate;
342 const Message_Function Message::glStencilOp;
343 const Message_Function Message::glStencilOpSeparate;
344 const Message_Function Message::glTexImage2D;
345 const Message_Function Message::glTexParameterf;
346 const Message_Function Message::glTexParameterfv;
347 const Message_Function Message::glTexParameteri;
348 const Message_Function Message::glTexParameteriv;
349 const Message_Function Message::glTexSubImage2D;
350 const Message_Function Message::glUniform1f;
351 const Message_Function Message::glUniform1fv;
352 const Message_Function Message::glUniform1i;
353 const Message_Function Message::glUniform1iv;
354 const Message_Function Message::glUniform2f;
355 const Message_Function Message::glUniform2fv;
356 const Message_Function Message::glUniform2i;
357 const Message_Function Message::glUniform2iv;
358 const Message_Function Message::glUniform3f;
359 const Message_Function Message::glUniform3fv;
360 const Message_Function Message::glUniform3i;
361 const Message_Function Message::glUniform3iv;
362 const Message_Function Message::glUniform4f;
363 const Message_Function Message::glUniform4fv;
364 const Message_Function Message::glUniform4i;
365 const Message_Function Message::glUniform4iv;
366 const Message_Function Message::glUniformMatrix2fv;
367 const Message_Function Message::glUniformMatrix3fv;
368 const Message_Function Message::glUniformMatrix4fv;
369 const Message_Function Message::glUseProgram;
370 const Message_Function Message::glValidateProgram;
371 const Message_Function Message::glVertexAttrib1f;
372 const Message_Function Message::glVertexAttrib1fv;
373 const Message_Function Message::glVertexAttrib2f;
374 const Message_Function Message::glVertexAttrib2fv;
375 const Message_Function Message::glVertexAttrib3f;
376 const Message_Function Message::glVertexAttrib3fv;
377 const Message_Function Message::glVertexAttrib4f;
378 const Message_Function Message::glVertexAttrib4fv;
379 const Message_Function Message::glVertexAttribPointer;
380 const Message_Function Message::glViewport;
381 const Message_Function Message::eglGetDisplay;
382 const Message_Function Message::eglInitialize;
383 const Message_Function Message::eglTerminate;
384 const Message_Function Message::eglGetConfigs;
385 const Message_Function Message::eglChooseConfig;
386 const Message_Function Message::eglGetConfigAttrib;
387 const Message_Function Message::eglCreateWindowSurface;
388 const Message_Function Message::eglCreatePixmapSurface;
389 const Message_Function Message::eglCreatePbufferSurface;
390 const Message_Function Message::eglDestroySurface;
391 const Message_Function Message::eglQuerySurface;
392 const Message_Function Message::eglCreateContext;
393 const Message_Function Message::eglDestroyContext;
394 const Message_Function Message::eglMakeCurrent;
395 const Message_Function Message::eglGetCurrentContext;
396 const Message_Function Message::eglGetCurrentSurface;
397 const Message_Function Message::eglGetCurrentDisplay;
398 const Message_Function Message::eglQueryContext;
399 const Message_Function Message::eglWaitGL;
400 const Message_Function Message::eglWaitNative;
401 const Message_Function Message::eglSwapBuffers;
402 const Message_Function Message::eglCopyBuffers;
403 const Message_Function Message::eglGetError;
404 const Message_Function Message::eglQueryString;
405 const Message_Function Message::eglGetProcAddress;
406 const Message_Function Message::eglSurfaceAttrib;
407 const Message_Function Message::eglBindTexImage;
408 const Message_Function Message::eglReleaseTexImage;
409 const Message_Function Message::eglSwapInterval;
410 const Message_Function Message::eglBindAPI;
411 const Message_Function Message::eglQueryAPI;
412 const Message_Function Message::eglWaitClient;
413 const Message_Function Message::eglReleaseThread;
414 const Message_Function Message::eglCreatePbufferFromClientBuffer;
415 const Message_Function Message::eglLockSurfaceKHR;
416 const Message_Function Message::eglUnlockSurfaceKHR;
417 const Message_Function Message::eglCreateImageKHR;
418 const Message_Function Message::eglDestroyImageKHR;
419 const Message_Function Message::eglCreateSyncKHR;
420 const Message_Function Message::eglDestroySyncKHR;
421 const Message_Function Message::eglClientWaitSyncKHR;
422 const Message_Function Message::eglGetSyncAttribKHR;
423 const Message_Function Message::eglSetSwapRectangleANDROID;
424 const Message_Function Message::eglGetRenderBufferANDROID;
425 const Message_Function Message::ACK;
426 const Message_Function Message::NEG;
427 const Message_Function Message::CONTINUE;
428 const Message_Function Message::SKIP;
429 const Message_Function Message::SETPROP;
430 const Message_Function Message::Function_MIN;
431 const Message_Function Message::Function_MAX;
432 const int Message::Function_ARRAYSIZE;
433 #endif  // _MSC_VER
Message_Type_IsValid(int value)434 bool Message_Type_IsValid(int value) {
435   switch(value) {
436     case 0:
437     case 1:
438     case 2:
439     case 3:
440     case 4:
441       return true;
442     default:
443       return false;
444   }
445 }
446 
447 #ifndef _MSC_VER
448 const Message_Type Message::BeforeCall;
449 const Message_Type Message::AfterCall;
450 const Message_Type Message::AfterGeneratedCall;
451 const Message_Type Message::Response;
452 const Message_Type Message::CompleteCall;
453 const Message_Type Message::Type_MIN;
454 const Message_Type Message::Type_MAX;
455 const int Message::Type_ARRAYSIZE;
456 #endif  // _MSC_VER
Message_DataType_IsValid(int value)457 bool Message_DataType_IsValid(int value) {
458   switch(value) {
459     case 0:
460     case 1:
461       return true;
462     default:
463       return false;
464   }
465 }
466 
467 #ifndef _MSC_VER
468 const Message_DataType Message::ReferencedImage;
469 const Message_DataType Message::NonreferencedImage;
470 const Message_DataType Message::DataType_MIN;
471 const Message_DataType Message::DataType_MAX;
472 const int Message::DataType_ARRAYSIZE;
473 #endif  // _MSC_VER
Message_Prop_IsValid(int value)474 bool Message_Prop_IsValid(int value) {
475   switch(value) {
476     case 0:
477     case 1:
478     case 2:
479     case 3:
480     case 4:
481       return true;
482     default:
483       return false;
484   }
485 }
486 
487 #ifndef _MSC_VER
488 const Message_Prop Message::CaptureDraw;
489 const Message_Prop Message::TimeMode;
490 const Message_Prop Message::ExpectResponse;
491 const Message_Prop Message::CaptureSwap;
492 const Message_Prop Message::GLConstant;
493 const Message_Prop Message::Prop_MIN;
494 const Message_Prop Message::Prop_MAX;
495 const int Message::Prop_ARRAYSIZE;
496 #endif  // _MSC_VER
497 const ::std::string Message::_default_data_;
498 #ifndef _MSC_VER
499 const int Message::kContextIdFieldNumber;
500 const int Message::kFunctionFieldNumber;
501 const int Message::kTypeFieldNumber;
502 const int Message::kExpectResponseFieldNumber;
503 const int Message::kRetFieldNumber;
504 const int Message::kArg0FieldNumber;
505 const int Message::kArg1FieldNumber;
506 const int Message::kArg2FieldNumber;
507 const int Message::kArg3FieldNumber;
508 const int Message::kArg4FieldNumber;
509 const int Message::kArg5FieldNumber;
510 const int Message::kArg6FieldNumber;
511 const int Message::kArg7FieldNumber;
512 const int Message::kArg8FieldNumber;
513 const int Message::kDataFieldNumber;
514 const int Message::kDataTypeFieldNumber;
515 const int Message::kPixelFormatFieldNumber;
516 const int Message::kPixelTypeFieldNumber;
517 const int Message::kImageWidthFieldNumber;
518 const int Message::kImageHeightFieldNumber;
519 const int Message::kTimeFieldNumber;
520 const int Message::kPropFieldNumber;
521 const int Message::kClockFieldNumber;
522 #endif  // !_MSC_VER
523 
Message()524 Message::Message()
525   : ::google::protobuf::MessageLite() {
526   SharedCtor();
527 }
528 
InitAsDefaultInstance()529 void Message::InitAsDefaultInstance() {
530 }
531 
Message(const Message & from)532 Message::Message(const Message& from)
533   : ::google::protobuf::MessageLite() {
534   SharedCtor();
535   MergeFrom(from);
536 }
537 
SharedCtor()538 void Message::SharedCtor() {
539   _cached_size_ = 0;
540   context_id_ = 0;
541   function_ = 187;
542   type_ = 0;
543   expect_response_ = false;
544   ret_ = 0;
545   arg0_ = 0;
546   arg1_ = 0;
547   arg2_ = 0;
548   arg3_ = 0;
549   arg4_ = 0;
550   arg5_ = 0;
551   arg6_ = 0;
552   arg7_ = 0;
553   arg8_ = 0;
554   data_ = const_cast< ::std::string*>(&_default_data_);
555   data_type_ = 0;
556   pixel_format_ = 0;
557   pixel_type_ = 0;
558   image_width_ = 0;
559   image_height_ = 0;
560   time_ = 0;
561   prop_ = 0;
562   clock_ = 0;
563   ::memset(_has_bits_, 0, sizeof(_has_bits_));
564 }
565 
~Message()566 Message::~Message() {
567   SharedDtor();
568 }
569 
SharedDtor()570 void Message::SharedDtor() {
571   if (data_ != &_default_data_) {
572     delete data_;
573   }
574   if (this != default_instance_) {
575   }
576 }
577 
SetCachedSize(int size) const578 void Message::SetCachedSize(int size) const {
579   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
580   _cached_size_ = size;
581   GOOGLE_SAFE_CONCURRENT_WRITES_END();
582 }
default_instance()583 const Message& Message::default_instance() {
584   if (default_instance_ == NULL) protobuf_AddDesc_debugger_5fmessage_2eproto();  return *default_instance_;
585 }
586 
587 Message* Message::default_instance_ = NULL;
588 
New() const589 Message* Message::New() const {
590   return new Message;
591 }
592 
Clear()593 void Message::Clear() {
594   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
595     context_id_ = 0;
596     function_ = 187;
597     type_ = 0;
598     expect_response_ = false;
599     ret_ = 0;
600     arg0_ = 0;
601     arg1_ = 0;
602     arg2_ = 0;
603   }
604   if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
605     arg3_ = 0;
606     arg4_ = 0;
607     arg5_ = 0;
608     arg6_ = 0;
609     arg7_ = 0;
610     arg8_ = 0;
611     if (_has_bit(14)) {
612       if (data_ != &_default_data_) {
613         data_->clear();
614       }
615     }
616     data_type_ = 0;
617   }
618   if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
619     pixel_format_ = 0;
620     pixel_type_ = 0;
621     image_width_ = 0;
622     image_height_ = 0;
623     time_ = 0;
624     prop_ = 0;
625     clock_ = 0;
626   }
627   ::memset(_has_bits_, 0, sizeof(_has_bits_));
628 }
629 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)630 bool Message::MergePartialFromCodedStream(
631     ::google::protobuf::io::CodedInputStream* input) {
632 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
633   ::google::protobuf::uint32 tag;
634   while ((tag = input->ReadTag()) != 0) {
635     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
636       // required int32 context_id = 1;
637       case 1: {
638         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
639             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
640           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
641                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
642                  input, &context_id_)));
643           _set_bit(0);
644         } else {
645           goto handle_uninterpreted;
646         }
647         if (input->ExpectTag(16)) goto parse_function;
648         break;
649       }
650 
651       // required .com.android.glesv2debugger.Message.Function function = 2 [default = NEG];
652       case 2: {
653         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
654             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
655          parse_function:
656           int value;
657           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
658                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
659                  input, &value)));
660           if (::com::android::glesv2debugger::Message_Function_IsValid(value)) {
661             set_function(static_cast< ::com::android::glesv2debugger::Message_Function >(value));
662           }
663         } else {
664           goto handle_uninterpreted;
665         }
666         if (input->ExpectTag(24)) goto parse_type;
667         break;
668       }
669 
670       // required .com.android.glesv2debugger.Message.Type type = 3;
671       case 3: {
672         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
673             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
674          parse_type:
675           int value;
676           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
677                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
678                  input, &value)));
679           if (::com::android::glesv2debugger::Message_Type_IsValid(value)) {
680             set_type(static_cast< ::com::android::glesv2debugger::Message_Type >(value));
681           }
682         } else {
683           goto handle_uninterpreted;
684         }
685         if (input->ExpectTag(32)) goto parse_expect_response;
686         break;
687       }
688 
689       // required bool expect_response = 4;
690       case 4: {
691         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
692             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
693          parse_expect_response:
694           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
695                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
696                  input, &expect_response_)));
697           _set_bit(3);
698         } else {
699           goto handle_uninterpreted;
700         }
701         if (input->ExpectTag(40)) goto parse_ret;
702         break;
703       }
704 
705       // optional int32 ret = 5;
706       case 5: {
707         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
708             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
709          parse_ret:
710           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
711                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
712                  input, &ret_)));
713           _set_bit(4);
714         } else {
715           goto handle_uninterpreted;
716         }
717         if (input->ExpectTag(48)) goto parse_arg0;
718         break;
719       }
720 
721       // optional int32 arg0 = 6;
722       case 6: {
723         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
724             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
725          parse_arg0:
726           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
727                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
728                  input, &arg0_)));
729           _set_bit(5);
730         } else {
731           goto handle_uninterpreted;
732         }
733         if (input->ExpectTag(56)) goto parse_arg1;
734         break;
735       }
736 
737       // optional int32 arg1 = 7;
738       case 7: {
739         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
740             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
741          parse_arg1:
742           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
743                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
744                  input, &arg1_)));
745           _set_bit(6);
746         } else {
747           goto handle_uninterpreted;
748         }
749         if (input->ExpectTag(64)) goto parse_arg2;
750         break;
751       }
752 
753       // optional int32 arg2 = 8;
754       case 8: {
755         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
756             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
757          parse_arg2:
758           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
759                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
760                  input, &arg2_)));
761           _set_bit(7);
762         } else {
763           goto handle_uninterpreted;
764         }
765         if (input->ExpectTag(72)) goto parse_arg3;
766         break;
767       }
768 
769       // optional int32 arg3 = 9;
770       case 9: {
771         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
772             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
773          parse_arg3:
774           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
775                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
776                  input, &arg3_)));
777           _set_bit(8);
778         } else {
779           goto handle_uninterpreted;
780         }
781         if (input->ExpectTag(82)) goto parse_data;
782         break;
783       }
784 
785       // optional bytes data = 10;
786       case 10: {
787         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
788             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
789          parse_data:
790           DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
791                 input, this->mutable_data()));
792         } else {
793           goto handle_uninterpreted;
794         }
795         if (input->ExpectTag(93)) goto parse_time;
796         break;
797       }
798 
799       // optional float time = 11;
800       case 11: {
801         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
802             ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
803          parse_time:
804           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
805                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
806                  input, &time_)));
807           _set_bit(20);
808         } else {
809           goto handle_uninterpreted;
810         }
811         if (input->ExpectTag(128)) goto parse_arg4;
812         break;
813       }
814 
815       // optional int32 arg4 = 16;
816       case 16: {
817         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
818             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
819          parse_arg4:
820           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
821                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
822                  input, &arg4_)));
823           _set_bit(9);
824         } else {
825           goto handle_uninterpreted;
826         }
827         if (input->ExpectTag(136)) goto parse_arg5;
828         break;
829       }
830 
831       // optional int32 arg5 = 17;
832       case 17: {
833         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
834             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
835          parse_arg5:
836           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
837                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
838                  input, &arg5_)));
839           _set_bit(10);
840         } else {
841           goto handle_uninterpreted;
842         }
843         if (input->ExpectTag(144)) goto parse_arg6;
844         break;
845       }
846 
847       // optional int32 arg6 = 18;
848       case 18: {
849         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
850             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
851          parse_arg6:
852           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
853                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
854                  input, &arg6_)));
855           _set_bit(11);
856         } else {
857           goto handle_uninterpreted;
858         }
859         if (input->ExpectTag(152)) goto parse_arg7;
860         break;
861       }
862 
863       // optional int32 arg7 = 19;
864       case 19: {
865         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
866             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
867          parse_arg7:
868           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
869                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
870                  input, &arg7_)));
871           _set_bit(12);
872         } else {
873           goto handle_uninterpreted;
874         }
875         if (input->ExpectTag(160)) goto parse_arg8;
876         break;
877       }
878 
879       // optional int32 arg8 = 20;
880       case 20: {
881         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
882             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
883          parse_arg8:
884           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
885                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
886                  input, &arg8_)));
887           _set_bit(13);
888         } else {
889           goto handle_uninterpreted;
890         }
891         if (input->ExpectTag(168)) goto parse_prop;
892         break;
893       }
894 
895       // optional .com.android.glesv2debugger.Message.Prop prop = 21;
896       case 21: {
897         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
898             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
899          parse_prop:
900           int value;
901           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
902                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
903                  input, &value)));
904           if (::com::android::glesv2debugger::Message_Prop_IsValid(value)) {
905             set_prop(static_cast< ::com::android::glesv2debugger::Message_Prop >(value));
906           }
907         } else {
908           goto handle_uninterpreted;
909         }
910         if (input->ExpectTag(181)) goto parse_clock;
911         break;
912       }
913 
914       // optional float clock = 22;
915       case 22: {
916         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
917             ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
918          parse_clock:
919           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
920                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
921                  input, &clock_)));
922           _set_bit(22);
923         } else {
924           goto handle_uninterpreted;
925         }
926         if (input->ExpectTag(184)) goto parse_data_type;
927         break;
928       }
929 
930       // optional .com.android.glesv2debugger.Message.DataType data_type = 23;
931       case 23: {
932         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
933             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
934          parse_data_type:
935           int value;
936           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
937                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
938                  input, &value)));
939           if (::com::android::glesv2debugger::Message_DataType_IsValid(value)) {
940             set_data_type(static_cast< ::com::android::glesv2debugger::Message_DataType >(value));
941           }
942         } else {
943           goto handle_uninterpreted;
944         }
945         if (input->ExpectTag(192)) goto parse_pixel_format;
946         break;
947       }
948 
949       // optional int32 pixel_format = 24;
950       case 24: {
951         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
952             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
953          parse_pixel_format:
954           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
955                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
956                  input, &pixel_format_)));
957           _set_bit(16);
958         } else {
959           goto handle_uninterpreted;
960         }
961         if (input->ExpectTag(200)) goto parse_pixel_type;
962         break;
963       }
964 
965       // optional int32 pixel_type = 25;
966       case 25: {
967         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
968             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
969          parse_pixel_type:
970           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
971                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
972                  input, &pixel_type_)));
973           _set_bit(17);
974         } else {
975           goto handle_uninterpreted;
976         }
977         if (input->ExpectTag(208)) goto parse_image_width;
978         break;
979       }
980 
981       // optional int32 image_width = 26;
982       case 26: {
983         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
984             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
985          parse_image_width:
986           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
987                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
988                  input, &image_width_)));
989           _set_bit(18);
990         } else {
991           goto handle_uninterpreted;
992         }
993         if (input->ExpectTag(216)) goto parse_image_height;
994         break;
995       }
996 
997       // optional int32 image_height = 27;
998       case 27: {
999         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1000             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1001          parse_image_height:
1002           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1003                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1004                  input, &image_height_)));
1005           _set_bit(19);
1006         } else {
1007           goto handle_uninterpreted;
1008         }
1009         if (input->ExpectAtEnd()) return true;
1010         break;
1011       }
1012 
1013       default: {
1014       handle_uninterpreted:
1015         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1016             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1017           return true;
1018         }
1019         DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
1020         break;
1021       }
1022     }
1023   }
1024   return true;
1025 #undef DO_
1026 }
1027 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1028 void Message::SerializeWithCachedSizes(
1029     ::google::protobuf::io::CodedOutputStream* output) const {
1030   // required int32 context_id = 1;
1031   if (_has_bit(0)) {
1032     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->context_id(), output);
1033   }
1034 
1035   // required .com.android.glesv2debugger.Message.Function function = 2 [default = NEG];
1036   if (_has_bit(1)) {
1037     ::google::protobuf::internal::WireFormatLite::WriteEnum(
1038       2, this->function(), output);
1039   }
1040 
1041   // required .com.android.glesv2debugger.Message.Type type = 3;
1042   if (_has_bit(2)) {
1043     ::google::protobuf::internal::WireFormatLite::WriteEnum(
1044       3, this->type(), output);
1045   }
1046 
1047   // required bool expect_response = 4;
1048   if (_has_bit(3)) {
1049     ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->expect_response(), output);
1050   }
1051 
1052   // optional int32 ret = 5;
1053   if (_has_bit(4)) {
1054     ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->ret(), output);
1055   }
1056 
1057   // optional int32 arg0 = 6;
1058   if (_has_bit(5)) {
1059     ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->arg0(), output);
1060   }
1061 
1062   // optional int32 arg1 = 7;
1063   if (_has_bit(6)) {
1064     ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->arg1(), output);
1065   }
1066 
1067   // optional int32 arg2 = 8;
1068   if (_has_bit(7)) {
1069     ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->arg2(), output);
1070   }
1071 
1072   // optional int32 arg3 = 9;
1073   if (_has_bit(8)) {
1074     ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->arg3(), output);
1075   }
1076 
1077   // optional bytes data = 10;
1078   if (_has_bit(14)) {
1079     ::google::protobuf::internal::WireFormatLite::WriteBytes(
1080       10, this->data(), output);
1081   }
1082 
1083   // optional float time = 11;
1084   if (_has_bit(20)) {
1085     ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->time(), output);
1086   }
1087 
1088   // optional int32 arg4 = 16;
1089   if (_has_bit(9)) {
1090     ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->arg4(), output);
1091   }
1092 
1093   // optional int32 arg5 = 17;
1094   if (_has_bit(10)) {
1095     ::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->arg5(), output);
1096   }
1097 
1098   // optional int32 arg6 = 18;
1099   if (_has_bit(11)) {
1100     ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->arg6(), output);
1101   }
1102 
1103   // optional int32 arg7 = 19;
1104   if (_has_bit(12)) {
1105     ::google::protobuf::internal::WireFormatLite::WriteInt32(19, this->arg7(), output);
1106   }
1107 
1108   // optional int32 arg8 = 20;
1109   if (_has_bit(13)) {
1110     ::google::protobuf::internal::WireFormatLite::WriteInt32(20, this->arg8(), output);
1111   }
1112 
1113   // optional .com.android.glesv2debugger.Message.Prop prop = 21;
1114   if (_has_bit(21)) {
1115     ::google::protobuf::internal::WireFormatLite::WriteEnum(
1116       21, this->prop(), output);
1117   }
1118 
1119   // optional float clock = 22;
1120   if (_has_bit(22)) {
1121     ::google::protobuf::internal::WireFormatLite::WriteFloat(22, this->clock(), output);
1122   }
1123 
1124   // optional .com.android.glesv2debugger.Message.DataType data_type = 23;
1125   if (_has_bit(15)) {
1126     ::google::protobuf::internal::WireFormatLite::WriteEnum(
1127       23, this->data_type(), output);
1128   }
1129 
1130   // optional int32 pixel_format = 24;
1131   if (_has_bit(16)) {
1132     ::google::protobuf::internal::WireFormatLite::WriteInt32(24, this->pixel_format(), output);
1133   }
1134 
1135   // optional int32 pixel_type = 25;
1136   if (_has_bit(17)) {
1137     ::google::protobuf::internal::WireFormatLite::WriteInt32(25, this->pixel_type(), output);
1138   }
1139 
1140   // optional int32 image_width = 26;
1141   if (_has_bit(18)) {
1142     ::google::protobuf::internal::WireFormatLite::WriteInt32(26, this->image_width(), output);
1143   }
1144 
1145   // optional int32 image_height = 27;
1146   if (_has_bit(19)) {
1147     ::google::protobuf::internal::WireFormatLite::WriteInt32(27, this->image_height(), output);
1148   }
1149 
1150 }
1151 
ByteSize() const1152 int Message::ByteSize() const {
1153   int total_size = 0;
1154 
1155   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1156     // required int32 context_id = 1;
1157     if (has_context_id()) {
1158       total_size += 1 +
1159         ::google::protobuf::internal::WireFormatLite::Int32Size(
1160           this->context_id());
1161     }
1162 
1163     // required .com.android.glesv2debugger.Message.Function function = 2 [default = NEG];
1164     if (has_function()) {
1165       total_size += 1 +
1166         ::google::protobuf::internal::WireFormatLite::EnumSize(this->function());
1167     }
1168 
1169     // required .com.android.glesv2debugger.Message.Type type = 3;
1170     if (has_type()) {
1171       total_size += 1 +
1172         ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
1173     }
1174 
1175     // required bool expect_response = 4;
1176     if (has_expect_response()) {
1177       total_size += 1 + 1;
1178     }
1179 
1180     // optional int32 ret = 5;
1181     if (has_ret()) {
1182       total_size += 1 +
1183         ::google::protobuf::internal::WireFormatLite::Int32Size(
1184           this->ret());
1185     }
1186 
1187     // optional int32 arg0 = 6;
1188     if (has_arg0()) {
1189       total_size += 1 +
1190         ::google::protobuf::internal::WireFormatLite::Int32Size(
1191           this->arg0());
1192     }
1193 
1194     // optional int32 arg1 = 7;
1195     if (has_arg1()) {
1196       total_size += 1 +
1197         ::google::protobuf::internal::WireFormatLite::Int32Size(
1198           this->arg1());
1199     }
1200 
1201     // optional int32 arg2 = 8;
1202     if (has_arg2()) {
1203       total_size += 1 +
1204         ::google::protobuf::internal::WireFormatLite::Int32Size(
1205           this->arg2());
1206     }
1207 
1208   }
1209   if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1210     // optional int32 arg3 = 9;
1211     if (has_arg3()) {
1212       total_size += 1 +
1213         ::google::protobuf::internal::WireFormatLite::Int32Size(
1214           this->arg3());
1215     }
1216 
1217     // optional int32 arg4 = 16;
1218     if (has_arg4()) {
1219       total_size += 2 +
1220         ::google::protobuf::internal::WireFormatLite::Int32Size(
1221           this->arg4());
1222     }
1223 
1224     // optional int32 arg5 = 17;
1225     if (has_arg5()) {
1226       total_size += 2 +
1227         ::google::protobuf::internal::WireFormatLite::Int32Size(
1228           this->arg5());
1229     }
1230 
1231     // optional int32 arg6 = 18;
1232     if (has_arg6()) {
1233       total_size += 2 +
1234         ::google::protobuf::internal::WireFormatLite::Int32Size(
1235           this->arg6());
1236     }
1237 
1238     // optional int32 arg7 = 19;
1239     if (has_arg7()) {
1240       total_size += 2 +
1241         ::google::protobuf::internal::WireFormatLite::Int32Size(
1242           this->arg7());
1243     }
1244 
1245     // optional int32 arg8 = 20;
1246     if (has_arg8()) {
1247       total_size += 2 +
1248         ::google::protobuf::internal::WireFormatLite::Int32Size(
1249           this->arg8());
1250     }
1251 
1252     // optional bytes data = 10;
1253     if (has_data()) {
1254       total_size += 1 +
1255         ::google::protobuf::internal::WireFormatLite::BytesSize(
1256           this->data());
1257     }
1258 
1259     // optional .com.android.glesv2debugger.Message.DataType data_type = 23;
1260     if (has_data_type()) {
1261       total_size += 2 +
1262         ::google::protobuf::internal::WireFormatLite::EnumSize(this->data_type());
1263     }
1264 
1265   }
1266   if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
1267     // optional int32 pixel_format = 24;
1268     if (has_pixel_format()) {
1269       total_size += 2 +
1270         ::google::protobuf::internal::WireFormatLite::Int32Size(
1271           this->pixel_format());
1272     }
1273 
1274     // optional int32 pixel_type = 25;
1275     if (has_pixel_type()) {
1276       total_size += 2 +
1277         ::google::protobuf::internal::WireFormatLite::Int32Size(
1278           this->pixel_type());
1279     }
1280 
1281     // optional int32 image_width = 26;
1282     if (has_image_width()) {
1283       total_size += 2 +
1284         ::google::protobuf::internal::WireFormatLite::Int32Size(
1285           this->image_width());
1286     }
1287 
1288     // optional int32 image_height = 27;
1289     if (has_image_height()) {
1290       total_size += 2 +
1291         ::google::protobuf::internal::WireFormatLite::Int32Size(
1292           this->image_height());
1293     }
1294 
1295     // optional float time = 11;
1296     if (has_time()) {
1297       total_size += 1 + 4;
1298     }
1299 
1300     // optional .com.android.glesv2debugger.Message.Prop prop = 21;
1301     if (has_prop()) {
1302       total_size += 2 +
1303         ::google::protobuf::internal::WireFormatLite::EnumSize(this->prop());
1304     }
1305 
1306     // optional float clock = 22;
1307     if (has_clock()) {
1308       total_size += 2 + 4;
1309     }
1310 
1311   }
1312   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1313   _cached_size_ = total_size;
1314   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1315   return total_size;
1316 }
1317 
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)1318 void Message::CheckTypeAndMergeFrom(
1319     const ::google::protobuf::MessageLite& from) {
1320   MergeFrom(*::google::protobuf::down_cast<const Message*>(&from));
1321 }
1322 
MergeFrom(const Message & from)1323 void Message::MergeFrom(const Message& from) {
1324   GOOGLE_CHECK_NE(&from, this);
1325   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1326     if (from._has_bit(0)) {
1327       set_context_id(from.context_id());
1328     }
1329     if (from._has_bit(1)) {
1330       set_function(from.function());
1331     }
1332     if (from._has_bit(2)) {
1333       set_type(from.type());
1334     }
1335     if (from._has_bit(3)) {
1336       set_expect_response(from.expect_response());
1337     }
1338     if (from._has_bit(4)) {
1339       set_ret(from.ret());
1340     }
1341     if (from._has_bit(5)) {
1342       set_arg0(from.arg0());
1343     }
1344     if (from._has_bit(6)) {
1345       set_arg1(from.arg1());
1346     }
1347     if (from._has_bit(7)) {
1348       set_arg2(from.arg2());
1349     }
1350   }
1351   if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1352     if (from._has_bit(8)) {
1353       set_arg3(from.arg3());
1354     }
1355     if (from._has_bit(9)) {
1356       set_arg4(from.arg4());
1357     }
1358     if (from._has_bit(10)) {
1359       set_arg5(from.arg5());
1360     }
1361     if (from._has_bit(11)) {
1362       set_arg6(from.arg6());
1363     }
1364     if (from._has_bit(12)) {
1365       set_arg7(from.arg7());
1366     }
1367     if (from._has_bit(13)) {
1368       set_arg8(from.arg8());
1369     }
1370     if (from._has_bit(14)) {
1371       set_data(from.data());
1372     }
1373     if (from._has_bit(15)) {
1374       set_data_type(from.data_type());
1375     }
1376   }
1377   if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
1378     if (from._has_bit(16)) {
1379       set_pixel_format(from.pixel_format());
1380     }
1381     if (from._has_bit(17)) {
1382       set_pixel_type(from.pixel_type());
1383     }
1384     if (from._has_bit(18)) {
1385       set_image_width(from.image_width());
1386     }
1387     if (from._has_bit(19)) {
1388       set_image_height(from.image_height());
1389     }
1390     if (from._has_bit(20)) {
1391       set_time(from.time());
1392     }
1393     if (from._has_bit(21)) {
1394       set_prop(from.prop());
1395     }
1396     if (from._has_bit(22)) {
1397       set_clock(from.clock());
1398     }
1399   }
1400 }
1401 
CopyFrom(const Message & from)1402 void Message::CopyFrom(const Message& from) {
1403   if (&from == this) return;
1404   Clear();
1405   MergeFrom(from);
1406 }
1407 
IsInitialized() const1408 bool Message::IsInitialized() const {
1409   if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
1410 
1411   return true;
1412 }
1413 
Swap(Message * other)1414 void Message::Swap(Message* other) {
1415   if (other != this) {
1416     std::swap(context_id_, other->context_id_);
1417     std::swap(function_, other->function_);
1418     std::swap(type_, other->type_);
1419     std::swap(expect_response_, other->expect_response_);
1420     std::swap(ret_, other->ret_);
1421     std::swap(arg0_, other->arg0_);
1422     std::swap(arg1_, other->arg1_);
1423     std::swap(arg2_, other->arg2_);
1424     std::swap(arg3_, other->arg3_);
1425     std::swap(arg4_, other->arg4_);
1426     std::swap(arg5_, other->arg5_);
1427     std::swap(arg6_, other->arg6_);
1428     std::swap(arg7_, other->arg7_);
1429     std::swap(arg8_, other->arg8_);
1430     std::swap(data_, other->data_);
1431     std::swap(data_type_, other->data_type_);
1432     std::swap(pixel_format_, other->pixel_format_);
1433     std::swap(pixel_type_, other->pixel_type_);
1434     std::swap(image_width_, other->image_width_);
1435     std::swap(image_height_, other->image_height_);
1436     std::swap(time_, other->time_);
1437     std::swap(prop_, other->prop_);
1438     std::swap(clock_, other->clock_);
1439     std::swap(_has_bits_[0], other->_has_bits_[0]);
1440     std::swap(_cached_size_, other->_cached_size_);
1441   }
1442 }
1443 
GetTypeName() const1444 ::std::string Message::GetTypeName() const {
1445   return "com.android.glesv2debugger.Message";
1446 }
1447 
1448 
1449 // @@protoc_insertion_point(namespace_scope)
1450 
1451 }  // namespace glesv2debugger
1452 }  // namespace android
1453 }  // namespace com
1454 
1455 // @@protoc_insertion_point(global_scope)
1456