4 #ifndef PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl1_2ftest_2eproto
5 #define PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl1_2ftest_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "dccl/option_extensions.pb.h"
35 #include <boost/units/quantity.hpp>
36 #include <boost/units/absolute.hpp>
37 #include <boost/units/dimensionless_type.hpp>
38 #include <boost/units/make_scaled_unit.hpp>
40 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2ftest_2facomms_2fdccl1_2ftest_2eproto
45 static const ::google::protobuf::internal::ParseTableField
entries[];
46 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
47 static const ::google::protobuf::internal::ParseTable
schema[3];
59 class EmbeddedMsg1DefaultTypeInternal;
62 class EmbeddedMsg2DefaultTypeInternal;
65 class TestMsgDefaultTypeInternal;
95 return ::google::protobuf::internal::NameOfEnum(
99 const ::std::string& name,
Enum1* value) {
100 return ::google::protobuf::internal::ParseNamedEnum<Enum1>(
119 *
this = ::std::move(from);
123 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
124 if (
this != &from) InternalSwap(&from);
132 return _internal_metadata_.unknown_fields();
135 return _internal_metadata_.mutable_unknown_fields();
138 static const ::google::protobuf::Descriptor*
descriptor();
157 return CreateMaybeMessage<EmbeddedMsg1>(NULL);
161 return CreateMaybeMessage<EmbeddedMsg1>(arena);
163 void CopyFrom(const ::google::protobuf::Message& from)
final;
164 void MergeFrom(const ::google::protobuf::Message& from)
final;
172 ::
google::protobuf::io::CodedInputStream* input) final;
174 ::
google::protobuf::io::CodedOutputStream* output) const final;
176 bool deterministic, ::
google::protobuf::uint8* target) const final;
182 void SetCachedSize(
int size)
const final;
185 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
188 inline void* MaybeArenaPtr()
const {
221 void clear_has_val();
223 void clear_has_msg();
225 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
226 ::
google::protobuf::internal::HasBits<1> _has_bits_;
227 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
248 *
this = ::std::move(from);
251 inline EmbeddedMsg2&
operator=(EmbeddedMsg2&& from) noexcept {
252 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
253 if (
this != &from) InternalSwap(&from);
261 return _internal_metadata_.unknown_fields();
264 return _internal_metadata_.mutable_unknown_fields();
267 static const ::google::protobuf::Descriptor*
descriptor();
286 return CreateMaybeMessage<EmbeddedMsg2>(NULL);
290 return CreateMaybeMessage<EmbeddedMsg2>(arena);
292 void CopyFrom(const ::google::protobuf::Message& from)
final;
293 void MergeFrom(const ::google::protobuf::Message& from)
final;
301 ::
google::protobuf::io::CodedInputStream* input) final;
303 ::
google::protobuf::io::CodedOutputStream* output) const final;
305 bool deterministic, ::
google::protobuf::uint8* target) const final;
311 void SetCachedSize(
int size)
const final;
314 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
317 inline void* MaybeArenaPtr()
const {
329 bool has_sval() const;
331 static const
int kSvalFieldNumber = 2;
332 const ::std::
string& sval() const;
333 void set_sval(const ::std::
string& value);
335 void set_sval(::std::string&& value);
337 void set_sval(
const char* value);
338 void set_sval(
const char* value,
size_t size);
339 ::std::string* mutable_sval();
340 ::std::string* release_sval();
341 void set_allocated_sval(::std::string* sval);
351 bool has_enum_default()
const;
352 void clear_enum_default();
353 static const int kEnumDefaultFieldNumber = 3;
360 void clear_has_val();
362 void clear_has_sval();
363 void set_has_enum_default();
364 void clear_has_enum_default();
366 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
367 ::google::protobuf::internal::HasBits<1> _has_bits_;
368 mutable ::google::protobuf::internal::CachedSize _cached_size_;
369 ::google::protobuf::internal::ArenaStringPtr sval_;
372 friend struct ::protobuf_goby_2ftest_2facomms_2fdccl1_2ftest_2eproto::TableStruct;
390 *
this = ::std::move(from);
393 inline TestMsg&
operator=(TestMsg&& from) noexcept {
394 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
395 if (
this != &from) InternalSwap(&from);
403 return _internal_metadata_.unknown_fields();
406 return _internal_metadata_.mutable_unknown_fields();
409 static const ::google::protobuf::Descriptor*
descriptor();
414 return reinterpret_cast<const TestMsg*
>(
428 return CreateMaybeMessage<TestMsg>(NULL);
432 return CreateMaybeMessage<TestMsg>(arena);
434 void CopyFrom(const ::google::protobuf::Message& from)
final;
435 void MergeFrom(const ::google::protobuf::Message& from)
final;
443 ::
google::protobuf::io::CodedInputStream* input) final;
445 ::
google::protobuf::io::CodedOutputStream* output) const final;
447 bool deterministic, ::
google::protobuf::uint8* target) const final;
453 void SetCachedSize(
int size)
const final;
454 void InternalSwap(
TestMsg* other);
456 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
459 inline void* MaybeArenaPtr()
const {
471 int double_default_repeat_size() const;
472 void clear_double_default_repeat();
473 static const
int kDoubleDefaultRepeatFieldNumber = 101;
474 double double_default_repeat(
int index) const;
475 void set_double_default_repeat(
int index,
double value);
476 void add_double_default_repeat(
double value);
477 const ::
google::protobuf::RepeatedField<
double >&
478 double_default_repeat() const;
479 ::
google::protobuf::RepeatedField<
double >*
480 mutable_double_default_repeat();
483 int float_default_repeat_size() const;
484 void clear_float_default_repeat();
485 static const
int kFloatDefaultRepeatFieldNumber = 102;
486 float float_default_repeat(
int index) const;
487 void set_float_default_repeat(
int index,
float value);
488 void add_float_default_repeat(
float value);
489 const ::
google::protobuf::RepeatedField<
float >&
490 float_default_repeat() const;
491 ::
google::protobuf::RepeatedField<
float >*
492 mutable_float_default_repeat();
495 int int32_default_repeat_size() const;
496 void clear_int32_default_repeat();
497 static const
int kInt32DefaultRepeatFieldNumber = 103;
498 ::
google::protobuf::
int32 int32_default_repeat(
int index) const;
499 void set_int32_default_repeat(
int index, ::
google::protobuf::
int32 value);
500 void add_int32_default_repeat(::
google::protobuf::
int32 value);
502 int32_default_repeat() const;
504 mutable_int32_default_repeat();
507 int int64_default_repeat_size() const;
508 void clear_int64_default_repeat();
509 static const
int kInt64DefaultRepeatFieldNumber = 104;
510 ::
google::protobuf::
int64 int64_default_repeat(
int index) const;
511 void set_int64_default_repeat(
int index, ::
google::protobuf::
int64 value);
512 void add_int64_default_repeat(::
google::protobuf::
int64 value);
514 int64_default_repeat() const;
516 mutable_int64_default_repeat();
519 int uint32_default_repeat_size() const;
520 void clear_uint32_default_repeat();
521 static const
int kUint32DefaultRepeatFieldNumber = 105;
522 ::
google::protobuf::
uint32 uint32_default_repeat(
int index) const;
523 void set_uint32_default_repeat(
int index, ::
google::protobuf::
uint32 value);
524 void add_uint32_default_repeat(::
google::protobuf::
uint32 value);
526 uint32_default_repeat() const;
528 mutable_uint32_default_repeat();
531 int uint64_default_repeat_size() const;
532 void clear_uint64_default_repeat();
533 static const
int kUint64DefaultRepeatFieldNumber = 106;
534 ::
google::protobuf::
uint64 uint64_default_repeat(
int index) const;
535 void set_uint64_default_repeat(
int index, ::
google::protobuf::
uint64 value);
536 void add_uint64_default_repeat(::
google::protobuf::
uint64 value);
538 uint64_default_repeat() const;
540 mutable_uint64_default_repeat();
543 int sint32_default_repeat_size() const;
544 void clear_sint32_default_repeat();
545 static const
int kSint32DefaultRepeatFieldNumber = 107;
546 ::
google::protobuf::
int32 sint32_default_repeat(
int index) const;
547 void set_sint32_default_repeat(
int index, ::
google::protobuf::
int32 value);
548 void add_sint32_default_repeat(::
google::protobuf::
int32 value);
550 sint32_default_repeat() const;
552 mutable_sint32_default_repeat();
555 int sint64_default_repeat_size() const;
556 void clear_sint64_default_repeat();
557 static const
int kSint64DefaultRepeatFieldNumber = 108;
558 ::
google::protobuf::
int64 sint64_default_repeat(
int index) const;
559 void set_sint64_default_repeat(
int index, ::
google::protobuf::
int64 value);
560 void add_sint64_default_repeat(::
google::protobuf::
int64 value);
562 sint64_default_repeat() const;
564 mutable_sint64_default_repeat();
567 int fixed32_default_repeat_size() const;
568 void clear_fixed32_default_repeat();
569 static const
int kFixed32DefaultRepeatFieldNumber = 109;
570 ::
google::protobuf::
uint32 fixed32_default_repeat(
int index) const;
571 void set_fixed32_default_repeat(
int index, ::
google::protobuf::
uint32 value);
572 void add_fixed32_default_repeat(::
google::protobuf::
uint32 value);
574 fixed32_default_repeat() const;
576 mutable_fixed32_default_repeat();
579 int fixed64_default_repeat_size() const;
580 void clear_fixed64_default_repeat();
581 static const
int kFixed64DefaultRepeatFieldNumber = 110;
582 ::
google::protobuf::
uint64 fixed64_default_repeat(
int index) const;
583 void set_fixed64_default_repeat(
int index, ::
google::protobuf::
uint64 value);
584 void add_fixed64_default_repeat(::
google::protobuf::
uint64 value);
586 fixed64_default_repeat() const;
588 mutable_fixed64_default_repeat();
591 int sfixed32_default_repeat_size() const;
592 void clear_sfixed32_default_repeat();
593 static const
int kSfixed32DefaultRepeatFieldNumber = 111;
594 ::
google::protobuf::
int32 sfixed32_default_repeat(
int index) const;
595 void set_sfixed32_default_repeat(
int index, ::
google::protobuf::
int32 value);
596 void add_sfixed32_default_repeat(::
google::protobuf::
int32 value);
598 sfixed32_default_repeat() const;
600 mutable_sfixed32_default_repeat();
603 int sfixed64_default_repeat_size() const;
604 void clear_sfixed64_default_repeat();
605 static const
int kSfixed64DefaultRepeatFieldNumber = 112;
606 ::
google::protobuf::
int64 sfixed64_default_repeat(
int index) const;
607 void set_sfixed64_default_repeat(
int index, ::
google::protobuf::
int64 value);
608 void add_sfixed64_default_repeat(::
google::protobuf::
int64 value);
610 sfixed64_default_repeat() const;
612 mutable_sfixed64_default_repeat();
615 int bool_default_repeat_size() const;
616 void clear_bool_default_repeat();
617 static const
int kBoolDefaultRepeatFieldNumber = 113;
618 bool bool_default_repeat(
int index) const;
619 void set_bool_default_repeat(
int index,
bool value);
620 void add_bool_default_repeat(
bool value);
621 const ::
google::protobuf::RepeatedField<
bool >&
622 bool_default_repeat() const;
623 ::
google::protobuf::RepeatedField<
bool >*
624 mutable_bool_default_repeat();
627 int string_default_repeat_size() const;
628 void clear_string_default_repeat();
629 static const
int kStringDefaultRepeatFieldNumber = 114;
630 const ::std::
string& string_default_repeat(
int index) const;
631 ::std::
string* mutable_string_default_repeat(
int index);
632 void set_string_default_repeat(
int index, const ::std::
string& value);
634 void set_string_default_repeat(
int index, ::std::string&& value);
636 void set_string_default_repeat(
int index,
const char* value);
637 void set_string_default_repeat(
int index,
const char* value,
size_t size);
638 ::std::string* add_string_default_repeat();
639 void add_string_default_repeat(const ::std::string& value);
641 void add_string_default_repeat(::std::string&& value);
643 void add_string_default_repeat(
const char* value);
644 void add_string_default_repeat(
const char* value,
size_t size);
645 const ::google::protobuf::RepeatedPtrField< ::std::string>& string_default_repeat()
const;
649 int bytes_default_repeat_size()
const;
650 void clear_bytes_default_repeat();
651 static const int kBytesDefaultRepeatFieldNumber = 115;
652 const ::std::string& bytes_default_repeat(
int index)
const;
653 ::std::string* mutable_bytes_default_repeat(
int index);
654 void set_bytes_default_repeat(
int index, const ::std::string& value);
656 void set_bytes_default_repeat(
int index, ::std::string&& value);
658 void set_bytes_default_repeat(
int index,
const char* value);
659 void set_bytes_default_repeat(
int index,
const void* value,
size_t size);
660 ::std::string* add_bytes_default_repeat();
661 void add_bytes_default_repeat(const ::std::string& value);
663 void add_bytes_default_repeat(::std::string&& value);
665 void add_bytes_default_repeat(
const char* value);
666 void add_bytes_default_repeat(
const void* value,
size_t size);
667 const ::google::protobuf::RepeatedPtrField< ::std::string>& bytes_default_repeat()
const;
671 int enum_default_repeat_size()
const;
672 void clear_enum_default_repeat();
673 static const int kEnumDefaultRepeatFieldNumber = 116;
677 const ::google::protobuf::RepeatedField<int>& enum_default_repeat()
const;
681 int msg_default_repeat_size()
const;
682 void clear_msg_default_repeat();
683 static const int kMsgDefaultRepeatFieldNumber = 117;
686 mutable_msg_default_repeat();
687 const ::goby::test::acomms::protobuf::EmbeddedMsg1& msg_default_repeat(
int index)
const;
689 const ::google::protobuf::RepeatedPtrField< ::goby::test::acomms::protobuf::EmbeddedMsg1 >&
690 msg_default_repeat()
const;
693 bool has_string_default_optional()
const;
694 void clear_string_default_optional();
695 static const int kStringDefaultOptionalFieldNumber = 14;
696 const ::std::string& string_default_optional()
const;
697 void set_string_default_optional(const ::std::string& value);
699 void set_string_default_optional(::std::string&& value);
701 void set_string_default_optional(
const char* value);
702 void set_string_default_optional(
const char* value,
size_t size);
703 ::std::string* mutable_string_default_optional();
704 ::std::string* release_string_default_optional();
705 void set_allocated_string_default_optional(::std::string* string_default_optional);
708 bool has_bytes_default_optional()
const;
709 void clear_bytes_default_optional();
710 static const int kBytesDefaultOptionalFieldNumber = 15;
711 const ::std::string& bytes_default_optional()
const;
712 void set_bytes_default_optional(const ::std::string& value);
714 void set_bytes_default_optional(::std::string&& value);
716 void set_bytes_default_optional(
const char* value);
717 void set_bytes_default_optional(
const void* value,
size_t size);
718 ::std::string* mutable_bytes_default_optional();
719 ::std::string* release_bytes_default_optional();
720 void set_allocated_bytes_default_optional(::std::string* bytes_default_optional);
723 bool has_string_default_required()
const;
724 void clear_string_default_required();
725 static const int kStringDefaultRequiredFieldNumber = 34;
726 const ::std::string& string_default_required()
const;
727 void set_string_default_required(const ::std::string& value);
729 void set_string_default_required(::std::string&& value);
731 void set_string_default_required(
const char* value);
732 void set_string_default_required(
const char* value,
size_t size);
733 ::std::string* mutable_string_default_required();
734 ::std::string* release_string_default_required();
735 void set_allocated_string_default_required(::std::string* string_default_required);
738 bool has_bytes_default_required()
const;
739 void clear_bytes_default_required();
740 static const int kBytesDefaultRequiredFieldNumber = 35;
741 const ::std::string& bytes_default_required()
const;
742 void set_bytes_default_required(const ::std::string& value);
744 void set_bytes_default_required(::std::string&& value);
746 void set_bytes_default_required(
const char* value);
747 void set_bytes_default_required(
const void* value,
size_t size);
748 ::std::string* mutable_bytes_default_required();
749 ::std::string* release_bytes_default_required();
750 void set_allocated_bytes_default_required(::std::string* bytes_default_required);
753 bool has_msg_default_optional()
const;
754 void clear_msg_default_optional();
755 static const int kMsgDefaultOptionalFieldNumber = 17;
757 const ::goby::test::acomms::protobuf::EmbeddedMsg1& _internal_msg_default_optional()
const;
759 const ::goby::test::acomms::protobuf::EmbeddedMsg1& msg_default_optional()
const;
765 bool has_msg_default_required()
const;
766 void clear_msg_default_required();
767 static const int kMsgDefaultRequiredFieldNumber = 37;
769 const ::goby::test::acomms::protobuf::EmbeddedMsg1& _internal_msg_default_required()
const;
771 const ::goby::test::acomms::protobuf::EmbeddedMsg1& msg_default_required()
const;
777 bool has_double_default_optional()
const;
778 void clear_double_default_optional();
779 static const int kDoubleDefaultOptionalFieldNumber = 1;
780 double double_default_optional()
const;
781 void set_double_default_optional(
double value);
784 bool has_float_default_optional()
const;
785 void clear_float_default_optional();
786 static const int kFloatDefaultOptionalFieldNumber = 2;
787 float float_default_optional()
const;
788 void set_float_default_optional(
float value);
791 bool has_int32_default_optional()
const;
792 void clear_int32_default_optional();
793 static const int kInt32DefaultOptionalFieldNumber = 3;
798 bool has_int64_default_optional()
const;
799 void clear_int64_default_optional();
800 static const int kInt64DefaultOptionalFieldNumber = 4;
805 bool has_uint64_default_optional()
const;
806 void clear_uint64_default_optional();
807 static const int kUint64DefaultOptionalFieldNumber = 6;
812 bool has_uint32_default_optional()
const;
813 void clear_uint32_default_optional();
814 static const int kUint32DefaultOptionalFieldNumber = 5;
819 bool has_sint32_default_optional()
const;
820 void clear_sint32_default_optional();
821 static const int kSint32DefaultOptionalFieldNumber = 7;
826 bool has_sint64_default_optional()
const;
827 void clear_sint64_default_optional();
828 static const int kSint64DefaultOptionalFieldNumber = 8;
833 bool has_fixed64_default_optional()
const;
834 void clear_fixed64_default_optional();
835 static const int kFixed64DefaultOptionalFieldNumber = 10;
840 bool has_fixed32_default_optional()
const;
841 void clear_fixed32_default_optional();
842 static const int kFixed32DefaultOptionalFieldNumber = 9;
847 bool has_sfixed32_default_optional()
const;
848 void clear_sfixed32_default_optional();
849 static const int kSfixed32DefaultOptionalFieldNumber = 11;
854 bool has_sfixed64_default_optional()
const;
855 void clear_sfixed64_default_optional();
856 static const int kSfixed64DefaultOptionalFieldNumber = 12;
861 bool has_double_default_required()
const;
862 void clear_double_default_required();
863 static const int kDoubleDefaultRequiredFieldNumber = 21;
864 double double_default_required()
const;
865 void set_double_default_required(
double value);
868 bool has_float_default_required()
const;
869 void clear_float_default_required();
870 static const int kFloatDefaultRequiredFieldNumber = 22;
871 float float_default_required()
const;
872 void set_float_default_required(
float value);
875 bool has_int32_default_required()
const;
876 void clear_int32_default_required();
877 static const int kInt32DefaultRequiredFieldNumber = 23;
882 bool has_bool_default_optional()
const;
883 void clear_bool_default_optional();
884 static const int kBoolDefaultOptionalFieldNumber = 13;
885 bool bool_default_optional()
const;
886 void set_bool_default_optional(
bool value);
889 bool has_bool_default_required()
const;
890 void clear_bool_default_required();
891 static const int kBoolDefaultRequiredFieldNumber = 33;
892 bool bool_default_required()
const;
893 void set_bool_default_required(
bool value);
896 bool has_uint32_default_required()
const;
897 void clear_uint32_default_required();
898 static const int kUint32DefaultRequiredFieldNumber = 25;
903 bool has_int64_default_required()
const;
904 void clear_int64_default_required();
905 static const int kInt64DefaultRequiredFieldNumber = 24;
910 bool has_uint64_default_required()
const;
911 void clear_uint64_default_required();
912 static const int kUint64DefaultRequiredFieldNumber = 26;
917 bool has_sint64_default_required()
const;
918 void clear_sint64_default_required();
919 static const int kSint64DefaultRequiredFieldNumber = 28;
924 bool has_sint32_default_required()
const;
925 void clear_sint32_default_required();
926 static const int kSint32DefaultRequiredFieldNumber = 27;
931 bool has_fixed32_default_required()
const;
932 void clear_fixed32_default_required();
933 static const int kFixed32DefaultRequiredFieldNumber = 29;
938 bool has_fixed64_default_required()
const;
939 void clear_fixed64_default_required();
940 static const int kFixed64DefaultRequiredFieldNumber = 30;
945 bool has_sfixed64_default_required()
const;
946 void clear_sfixed64_default_required();
947 static const int kSfixed64DefaultRequiredFieldNumber = 32;
952 bool has_sfixed32_default_required()
const;
953 void clear_sfixed32_default_required();
954 static const int kSfixed32DefaultRequiredFieldNumber = 31;
959 bool has_enum_default_optional()
const;
960 void clear_enum_default_optional();
961 static const int kEnumDefaultOptionalFieldNumber = 16;
966 bool has_enum_default_required()
const;
967 void clear_enum_default_required();
968 static const int kEnumDefaultRequiredFieldNumber = 36;
975 void set_has_double_default_optional();
976 void clear_has_double_default_optional();
977 void set_has_float_default_optional();
978 void clear_has_float_default_optional();
979 void set_has_int32_default_optional();
980 void clear_has_int32_default_optional();
981 void set_has_int64_default_optional();
982 void clear_has_int64_default_optional();
983 void set_has_uint32_default_optional();
984 void clear_has_uint32_default_optional();
985 void set_has_uint64_default_optional();
986 void clear_has_uint64_default_optional();
987 void set_has_sint32_default_optional();
988 void clear_has_sint32_default_optional();
989 void set_has_sint64_default_optional();
990 void clear_has_sint64_default_optional();
991 void set_has_fixed32_default_optional();
992 void clear_has_fixed32_default_optional();
993 void set_has_fixed64_default_optional();
994 void clear_has_fixed64_default_optional();
995 void set_has_sfixed32_default_optional();
996 void clear_has_sfixed32_default_optional();
997 void set_has_sfixed64_default_optional();
998 void clear_has_sfixed64_default_optional();
999 void set_has_bool_default_optional();
1000 void clear_has_bool_default_optional();
1001 void set_has_string_default_optional();
1002 void clear_has_string_default_optional();
1003 void set_has_bytes_default_optional();
1004 void clear_has_bytes_default_optional();
1005 void set_has_enum_default_optional();
1006 void clear_has_enum_default_optional();
1007 void set_has_msg_default_optional();
1008 void clear_has_msg_default_optional();
1009 void set_has_double_default_required();
1010 void clear_has_double_default_required();
1011 void set_has_float_default_required();
1012 void clear_has_float_default_required();
1013 void set_has_int32_default_required();
1014 void clear_has_int32_default_required();
1015 void set_has_int64_default_required();
1016 void clear_has_int64_default_required();
1017 void set_has_uint32_default_required();
1018 void clear_has_uint32_default_required();
1019 void set_has_uint64_default_required();
1020 void clear_has_uint64_default_required();
1021 void set_has_sint32_default_required();
1022 void clear_has_sint32_default_required();
1023 void set_has_sint64_default_required();
1024 void clear_has_sint64_default_required();
1025 void set_has_fixed32_default_required();
1026 void clear_has_fixed32_default_required();
1027 void set_has_fixed64_default_required();
1028 void clear_has_fixed64_default_required();
1029 void set_has_sfixed32_default_required();
1030 void clear_has_sfixed32_default_required();
1031 void set_has_sfixed64_default_required();
1032 void clear_has_sfixed64_default_required();
1033 void set_has_bool_default_required();
1034 void clear_has_bool_default_required();
1035 void set_has_string_default_required();
1036 void clear_has_string_default_required();
1037 void set_has_bytes_default_required();
1038 void clear_has_bytes_default_required();
1039 void set_has_enum_default_required();
1040 void clear_has_enum_default_required();
1041 void set_has_msg_default_required();
1042 void clear_has_msg_default_required();
1045 size_t RequiredFieldsByteSizeFallback()
const;
1047 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1048 ::google::protobuf::internal::HasBits<2> _has_bits_;
1066 ::google::protobuf::internal::ArenaStringPtr string_default_optional_;
1067 ::google::protobuf::internal::ArenaStringPtr bytes_default_optional_;
1068 ::google::protobuf::internal::ArenaStringPtr string_default_required_;
1069 ::google::protobuf::internal::ArenaStringPtr bytes_default_required_;
1072 double double_default_optional_;
1073 float float_default_optional_;
1084 double double_default_required_;
1085 float float_default_required_;
1087 bool bool_default_optional_;
1088 bool bool_default_required_;
1098 int enum_default_optional_;
1099 int enum_default_required_;
1100 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1101 friend struct ::protobuf_goby_2ftest_2facomms_2fdccl1_2ftest_2eproto::TableStruct;
1109 #pragma GCC diagnostic push
1110 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1116 return (_has_bits_[0] & 0x00000002u) != 0;
1118 inline void EmbeddedMsg1::set_has_val() {
1119 _has_bits_[0] |= 0x00000002u;
1121 inline void EmbeddedMsg1::clear_has_val() {
1122 _has_bits_[0] &= ~0x00000002u;
1140 return (_has_bits_[0] & 0x00000001u) != 0;
1142 inline void EmbeddedMsg1::set_has_msg() {
1143 _has_bits_[0] |= 0x00000001u;
1145 inline void EmbeddedMsg1::clear_has_msg() {
1146 _has_bits_[0] &= ~0x00000001u;
1149 if (msg_ != NULL) msg_->Clear();
1152 inline const ::goby::test::acomms::protobuf::EmbeddedMsg2& EmbeddedMsg1::_internal_msg()
const {
1156 const ::goby::test::acomms::protobuf::EmbeddedMsg2* p = msg_;
1171 auto* p = CreateMaybeMessage<::goby::test::acomms::protobuf::EmbeddedMsg2>(GetArenaNoVirtual());
1179 if (message_arena == NULL) {
1184 if (message_arena != submessage_arena) {
1185 msg = ::google::protobuf::internal::GetOwnedMessage(
1186 message_arena,
msg, submessage_arena);
1202 return (_has_bits_[0] & 0x00000002u) != 0;
1204 inline void EmbeddedMsg2::set_has_val() {
1205 _has_bits_[0] |= 0x00000002u;
1207 inline void EmbeddedMsg2::clear_has_val() {
1208 _has_bits_[0] &= ~0x00000002u;
1226 return (_has_bits_[0] & 0x00000001u) != 0;
1228 inline void EmbeddedMsg2::set_has_sval() {
1229 _has_bits_[0] |= 0x00000001u;
1231 inline void EmbeddedMsg2::clear_has_sval() {
1232 _has_bits_[0] &= ~0x00000001u;
1240 return sval_.GetNoArena();
1256 GOOGLE_DCHECK(value != NULL);
1264 ::std::string(
reinterpret_cast<const char*
>(value), size));
1292 return (_has_bits_[0] & 0x00000004u) != 0;
1294 inline void EmbeddedMsg2::set_has_enum_default() {
1295 _has_bits_[0] |= 0x00000004u;
1297 inline void EmbeddedMsg2::clear_has_enum_default() {
1298 _has_bits_[0] &= ~0x00000004u;
1302 clear_has_enum_default();
1310 set_has_enum_default();
1311 enum_default_ = value;
1321 return (_has_bits_[0] & 0x00000040u) != 0;
1323 inline void TestMsg::set_has_double_default_optional() {
1324 _has_bits_[0] |= 0x00000040u;
1326 inline void TestMsg::clear_has_double_default_optional() {
1327 _has_bits_[0] &= ~0x00000040u;
1330 double_default_optional_ = 0;
1331 clear_has_double_default_optional();
1335 return double_default_optional_;
1338 set_has_double_default_optional();
1339 double_default_optional_ = value;
1345 return (_has_bits_[0] & 0x00000080u) != 0;
1347 inline void TestMsg::set_has_float_default_optional() {
1348 _has_bits_[0] |= 0x00000080u;
1350 inline void TestMsg::clear_has_float_default_optional() {
1351 _has_bits_[0] &= ~0x00000080u;
1354 float_default_optional_ = 0;
1355 clear_has_float_default_optional();
1359 return float_default_optional_;
1362 set_has_float_default_optional();
1363 float_default_optional_ = value;
1369 return (_has_bits_[0] & 0x00000100u) != 0;
1371 inline void TestMsg::set_has_int32_default_optional() {
1372 _has_bits_[0] |= 0x00000100u;
1374 inline void TestMsg::clear_has_int32_default_optional() {
1375 _has_bits_[0] &= ~0x00000100u;
1378 int32_default_optional_ = 0;
1379 clear_has_int32_default_optional();
1383 return int32_default_optional_;
1386 set_has_int32_default_optional();
1387 int32_default_optional_ = value;
1393 return (_has_bits_[0] & 0x00000200u) != 0;
1395 inline void TestMsg::set_has_int64_default_optional() {
1396 _has_bits_[0] |= 0x00000200u;
1398 inline void TestMsg::clear_has_int64_default_optional() {
1399 _has_bits_[0] &= ~0x00000200u;
1402 int64_default_optional_ = GOOGLE_LONGLONG(0);
1403 clear_has_int64_default_optional();
1407 return int64_default_optional_;
1410 set_has_int64_default_optional();
1411 int64_default_optional_ = value;
1417 return (_has_bits_[0] & 0x00000800u) != 0;
1419 inline void TestMsg::set_has_uint32_default_optional() {
1420 _has_bits_[0] |= 0x00000800u;
1422 inline void TestMsg::clear_has_uint32_default_optional() {
1423 _has_bits_[0] &= ~0x00000800u;
1426 uint32_default_optional_ = 0u;
1427 clear_has_uint32_default_optional();
1431 return uint32_default_optional_;
1434 set_has_uint32_default_optional();
1435 uint32_default_optional_ = value;
1441 return (_has_bits_[0] & 0x00000400u) != 0;
1443 inline void TestMsg::set_has_uint64_default_optional() {
1444 _has_bits_[0] |= 0x00000400u;
1446 inline void TestMsg::clear_has_uint64_default_optional() {
1447 _has_bits_[0] &= ~0x00000400u;
1450 uint64_default_optional_ = GOOGLE_ULONGLONG(0);
1451 clear_has_uint64_default_optional();
1455 return uint64_default_optional_;
1458 set_has_uint64_default_optional();
1459 uint64_default_optional_ = value;
1465 return (_has_bits_[0] & 0x00001000u) != 0;
1467 inline void TestMsg::set_has_sint32_default_optional() {
1468 _has_bits_[0] |= 0x00001000u;
1470 inline void TestMsg::clear_has_sint32_default_optional() {
1471 _has_bits_[0] &= ~0x00001000u;
1474 sint32_default_optional_ = 0;
1475 clear_has_sint32_default_optional();
1479 return sint32_default_optional_;
1482 set_has_sint32_default_optional();
1483 sint32_default_optional_ = value;
1489 return (_has_bits_[0] & 0x00002000u) != 0;
1491 inline void TestMsg::set_has_sint64_default_optional() {
1492 _has_bits_[0] |= 0x00002000u;
1494 inline void TestMsg::clear_has_sint64_default_optional() {
1495 _has_bits_[0] &= ~0x00002000u;
1498 sint64_default_optional_ = GOOGLE_LONGLONG(0);
1499 clear_has_sint64_default_optional();
1503 return sint64_default_optional_;
1506 set_has_sint64_default_optional();
1507 sint64_default_optional_ = value;
1513 return (_has_bits_[0] & 0x00008000u) != 0;
1515 inline void TestMsg::set_has_fixed32_default_optional() {
1516 _has_bits_[0] |= 0x00008000u;
1518 inline void TestMsg::clear_has_fixed32_default_optional() {
1519 _has_bits_[0] &= ~0x00008000u;
1522 fixed32_default_optional_ = 0u;
1523 clear_has_fixed32_default_optional();
1527 return fixed32_default_optional_;
1530 set_has_fixed32_default_optional();
1531 fixed32_default_optional_ = value;
1537 return (_has_bits_[0] & 0x00004000u) != 0;
1539 inline void TestMsg::set_has_fixed64_default_optional() {
1540 _has_bits_[0] |= 0x00004000u;
1542 inline void TestMsg::clear_has_fixed64_default_optional() {
1543 _has_bits_[0] &= ~0x00004000u;
1546 fixed64_default_optional_ = GOOGLE_ULONGLONG(0);
1547 clear_has_fixed64_default_optional();
1551 return fixed64_default_optional_;
1554 set_has_fixed64_default_optional();
1555 fixed64_default_optional_ = value;
1561 return (_has_bits_[0] & 0x00010000u) != 0;
1563 inline void TestMsg::set_has_sfixed32_default_optional() {
1564 _has_bits_[0] |= 0x00010000u;
1566 inline void TestMsg::clear_has_sfixed32_default_optional() {
1567 _has_bits_[0] &= ~0x00010000u;
1570 sfixed32_default_optional_ = 0;
1571 clear_has_sfixed32_default_optional();
1575 return sfixed32_default_optional_;
1578 set_has_sfixed32_default_optional();
1579 sfixed32_default_optional_ = value;
1585 return (_has_bits_[0] & 0x00020000u) != 0;
1587 inline void TestMsg::set_has_sfixed64_default_optional() {
1588 _has_bits_[0] |= 0x00020000u;
1590 inline void TestMsg::clear_has_sfixed64_default_optional() {
1591 _has_bits_[0] &= ~0x00020000u;
1594 sfixed64_default_optional_ = GOOGLE_LONGLONG(0);
1595 clear_has_sfixed64_default_optional();
1599 return sfixed64_default_optional_;
1602 set_has_sfixed64_default_optional();
1603 sfixed64_default_optional_ = value;
1609 return (_has_bits_[0] & 0x00200000u) != 0;
1611 inline void TestMsg::set_has_bool_default_optional() {
1612 _has_bits_[0] |= 0x00200000u;
1614 inline void TestMsg::clear_has_bool_default_optional() {
1615 _has_bits_[0] &= ~0x00200000u;
1618 bool_default_optional_ =
false;
1619 clear_has_bool_default_optional();
1623 return bool_default_optional_;
1626 set_has_bool_default_optional();
1627 bool_default_optional_ = value;
1633 return (_has_bits_[0] & 0x00000001u) != 0;
1635 inline void TestMsg::set_has_string_default_optional() {
1636 _has_bits_[0] |= 0x00000001u;
1638 inline void TestMsg::clear_has_string_default_optional() {
1639 _has_bits_[0] &= ~0x00000001u;
1643 clear_has_string_default_optional();
1647 return string_default_optional_.GetNoArena();
1650 set_has_string_default_optional();
1656 set_has_string_default_optional();
1657 string_default_optional_.SetNoArena(
1663 GOOGLE_DCHECK(value != NULL);
1664 set_has_string_default_optional();
1669 set_has_string_default_optional();
1671 ::std::string(
reinterpret_cast<const char*
>(value), size));
1675 set_has_string_default_optional();
1681 if (!has_string_default_optional()) {
1684 clear_has_string_default_optional();
1688 if (string_default_optional != NULL) {
1689 set_has_string_default_optional();
1691 clear_has_string_default_optional();
1699 return (_has_bits_[0] & 0x00000002u) != 0;
1701 inline void TestMsg::set_has_bytes_default_optional() {
1702 _has_bits_[0] |= 0x00000002u;
1704 inline void TestMsg::clear_has_bytes_default_optional() {
1705 _has_bits_[0] &= ~0x00000002u;
1709 clear_has_bytes_default_optional();
1713 return bytes_default_optional_.GetNoArena();
1716 set_has_bytes_default_optional();
1722 set_has_bytes_default_optional();
1723 bytes_default_optional_.SetNoArena(
1729 GOOGLE_DCHECK(value != NULL);
1730 set_has_bytes_default_optional();
1735 set_has_bytes_default_optional();
1737 ::std::string(
reinterpret_cast<const char*
>(value), size));
1741 set_has_bytes_default_optional();
1747 if (!has_bytes_default_optional()) {
1750 clear_has_bytes_default_optional();
1754 if (bytes_default_optional != NULL) {
1755 set_has_bytes_default_optional();
1757 clear_has_bytes_default_optional();
1765 return (_has_bits_[1] & 0x00000001u) != 0;
1767 inline void TestMsg::set_has_enum_default_optional() {
1768 _has_bits_[1] |= 0x00000001u;
1770 inline void TestMsg::clear_has_enum_default_optional() {
1771 _has_bits_[1] &= ~0x00000001u;
1774 enum_default_optional_ = 1;
1775 clear_has_enum_default_optional();
1783 set_has_enum_default_optional();
1784 enum_default_optional_ = value;
1790 return (_has_bits_[0] & 0x00000010u) != 0;
1792 inline void TestMsg::set_has_msg_default_optional() {
1793 _has_bits_[0] |= 0x00000010u;
1795 inline void TestMsg::clear_has_msg_default_optional() {
1796 _has_bits_[0] &= ~0x00000010u;
1799 if (msg_default_optional_ != NULL) msg_default_optional_->Clear();
1800 clear_has_msg_default_optional();
1802 inline const ::goby::test::acomms::protobuf::EmbeddedMsg1& TestMsg::_internal_msg_default_optional()
const {
1803 return *msg_default_optional_;
1806 const ::goby::test::acomms::protobuf::EmbeddedMsg1* p = msg_default_optional_;
1813 clear_has_msg_default_optional();
1815 msg_default_optional_ = NULL;
1819 set_has_msg_default_optional();
1820 if (msg_default_optional_ == NULL) {
1821 auto* p = CreateMaybeMessage<::goby::test::acomms::protobuf::EmbeddedMsg1>(GetArenaNoVirtual());
1822 msg_default_optional_ = p;
1825 return msg_default_optional_;
1829 if (message_arena == NULL) {
1830 delete msg_default_optional_;
1832 if (msg_default_optional) {
1834 if (message_arena != submessage_arena) {
1835 msg_default_optional = ::google::protobuf::internal::GetOwnedMessage(
1836 message_arena, msg_default_optional, submessage_arena);
1838 set_has_msg_default_optional();
1840 clear_has_msg_default_optional();
1842 msg_default_optional_ = msg_default_optional;
1848 return (_has_bits_[0] & 0x00040000u) != 0;
1850 inline void TestMsg::set_has_double_default_required() {
1851 _has_bits_[0] |= 0x00040000u;
1853 inline void TestMsg::clear_has_double_default_required() {
1854 _has_bits_[0] &= ~0x00040000u;
1857 double_default_required_ = 0;
1858 clear_has_double_default_required();
1862 return double_default_required_;
1865 set_has_double_default_required();
1866 double_default_required_ = value;
1872 return (_has_bits_[0] & 0x00080000u) != 0;
1874 inline void TestMsg::set_has_float_default_required() {
1875 _has_bits_[0] |= 0x00080000u;
1877 inline void TestMsg::clear_has_float_default_required() {
1878 _has_bits_[0] &= ~0x00080000u;
1881 float_default_required_ = 0;
1882 clear_has_float_default_required();
1886 return float_default_required_;
1889 set_has_float_default_required();
1890 float_default_required_ = value;
1896 return (_has_bits_[0] & 0x00100000u) != 0;
1898 inline void TestMsg::set_has_int32_default_required() {
1899 _has_bits_[0] |= 0x00100000u;
1901 inline void TestMsg::clear_has_int32_default_required() {
1902 _has_bits_[0] &= ~0x00100000u;
1905 int32_default_required_ = 0;
1906 clear_has_int32_default_required();
1910 return int32_default_required_;
1913 set_has_int32_default_required();
1914 int32_default_required_ = value;
1920 return (_has_bits_[0] & 0x01000000u) != 0;
1922 inline void TestMsg::set_has_int64_default_required() {
1923 _has_bits_[0] |= 0x01000000u;
1925 inline void TestMsg::clear_has_int64_default_required() {
1926 _has_bits_[0] &= ~0x01000000u;
1929 int64_default_required_ = GOOGLE_LONGLONG(0);
1930 clear_has_int64_default_required();
1934 return int64_default_required_;
1937 set_has_int64_default_required();
1938 int64_default_required_ = value;
1944 return (_has_bits_[0] & 0x00800000u) != 0;
1946 inline void TestMsg::set_has_uint32_default_required() {
1947 _has_bits_[0] |= 0x00800000u;
1949 inline void TestMsg::clear_has_uint32_default_required() {
1950 _has_bits_[0] &= ~0x00800000u;
1953 uint32_default_required_ = 0u;
1954 clear_has_uint32_default_required();
1958 return uint32_default_required_;
1961 set_has_uint32_default_required();
1962 uint32_default_required_ = value;
1968 return (_has_bits_[0] & 0x02000000u) != 0;
1970 inline void TestMsg::set_has_uint64_default_required() {
1971 _has_bits_[0] |= 0x02000000u;
1973 inline void TestMsg::clear_has_uint64_default_required() {
1974 _has_bits_[0] &= ~0x02000000u;
1977 uint64_default_required_ = GOOGLE_ULONGLONG(0);
1978 clear_has_uint64_default_required();
1982 return uint64_default_required_;
1985 set_has_uint64_default_required();
1986 uint64_default_required_ = value;
1992 return (_has_bits_[0] & 0x08000000u) != 0;
1994 inline void TestMsg::set_has_sint32_default_required() {
1995 _has_bits_[0] |= 0x08000000u;
1997 inline void TestMsg::clear_has_sint32_default_required() {
1998 _has_bits_[0] &= ~0x08000000u;
2001 sint32_default_required_ = 0;
2002 clear_has_sint32_default_required();
2006 return sint32_default_required_;
2009 set_has_sint32_default_required();
2010 sint32_default_required_ = value;
2016 return (_has_bits_[0] & 0x04000000u) != 0;
2018 inline void TestMsg::set_has_sint64_default_required() {
2019 _has_bits_[0] |= 0x04000000u;
2021 inline void TestMsg::clear_has_sint64_default_required() {
2022 _has_bits_[0] &= ~0x04000000u;
2025 sint64_default_required_ = GOOGLE_LONGLONG(0);
2026 clear_has_sint64_default_required();
2030 return sint64_default_required_;
2033 set_has_sint64_default_required();
2034 sint64_default_required_ = value;
2040 return (_has_bits_[0] & 0x10000000u) != 0;
2042 inline void TestMsg::set_has_fixed32_default_required() {
2043 _has_bits_[0] |= 0x10000000u;
2045 inline void TestMsg::clear_has_fixed32_default_required() {
2046 _has_bits_[0] &= ~0x10000000u;
2049 fixed32_default_required_ = 0u;
2050 clear_has_fixed32_default_required();
2054 return fixed32_default_required_;
2057 set_has_fixed32_default_required();
2058 fixed32_default_required_ = value;
2064 return (_has_bits_[0] & 0x20000000u) != 0;
2066 inline void TestMsg::set_has_fixed64_default_required() {
2067 _has_bits_[0] |= 0x20000000u;
2069 inline void TestMsg::clear_has_fixed64_default_required() {
2070 _has_bits_[0] &= ~0x20000000u;
2073 fixed64_default_required_ = GOOGLE_ULONGLONG(0);
2074 clear_has_fixed64_default_required();
2078 return fixed64_default_required_;
2081 set_has_fixed64_default_required();
2082 fixed64_default_required_ = value;
2088 return (_has_bits_[0] & 0x80000000u) != 0;
2090 inline void TestMsg::set_has_sfixed32_default_required() {
2091 _has_bits_[0] |= 0x80000000u;
2093 inline void TestMsg::clear_has_sfixed32_default_required() {
2094 _has_bits_[0] &= ~0x80000000u;
2097 sfixed32_default_required_ = 0;
2098 clear_has_sfixed32_default_required();
2102 return sfixed32_default_required_;
2105 set_has_sfixed32_default_required();
2106 sfixed32_default_required_ = value;
2112 return (_has_bits_[0] & 0x40000000u) != 0;
2114 inline void TestMsg::set_has_sfixed64_default_required() {
2115 _has_bits_[0] |= 0x40000000u;
2117 inline void TestMsg::clear_has_sfixed64_default_required() {
2118 _has_bits_[0] &= ~0x40000000u;
2121 sfixed64_default_required_ = GOOGLE_LONGLONG(0);
2122 clear_has_sfixed64_default_required();
2126 return sfixed64_default_required_;
2129 set_has_sfixed64_default_required();
2130 sfixed64_default_required_ = value;
2136 return (_has_bits_[0] & 0x00400000u) != 0;
2138 inline void TestMsg::set_has_bool_default_required() {
2139 _has_bits_[0] |= 0x00400000u;
2141 inline void TestMsg::clear_has_bool_default_required() {
2142 _has_bits_[0] &= ~0x00400000u;
2145 bool_default_required_ =
false;
2146 clear_has_bool_default_required();
2150 return bool_default_required_;
2153 set_has_bool_default_required();
2154 bool_default_required_ = value;
2160 return (_has_bits_[0] & 0x00000004u) != 0;
2162 inline void TestMsg::set_has_string_default_required() {
2163 _has_bits_[0] |= 0x00000004u;
2165 inline void TestMsg::clear_has_string_default_required() {
2166 _has_bits_[0] &= ~0x00000004u;
2170 clear_has_string_default_required();
2174 return string_default_required_.GetNoArena();
2177 set_has_string_default_required();
2183 set_has_string_default_required();
2184 string_default_required_.SetNoArena(
2190 GOOGLE_DCHECK(value != NULL);
2191 set_has_string_default_required();
2196 set_has_string_default_required();
2198 ::std::string(
reinterpret_cast<const char*
>(value), size));
2202 set_has_string_default_required();
2208 if (!has_string_default_required()) {
2211 clear_has_string_default_required();
2215 if (string_default_required != NULL) {
2216 set_has_string_default_required();
2218 clear_has_string_default_required();
2226 return (_has_bits_[0] & 0x00000008u) != 0;
2228 inline void TestMsg::set_has_bytes_default_required() {
2229 _has_bits_[0] |= 0x00000008u;
2231 inline void TestMsg::clear_has_bytes_default_required() {
2232 _has_bits_[0] &= ~0x00000008u;
2236 clear_has_bytes_default_required();
2240 return bytes_default_required_.GetNoArena();
2243 set_has_bytes_default_required();
2249 set_has_bytes_default_required();
2250 bytes_default_required_.SetNoArena(
2256 GOOGLE_DCHECK(value != NULL);
2257 set_has_bytes_default_required();
2262 set_has_bytes_default_required();
2264 ::std::string(
reinterpret_cast<const char*
>(value), size));
2268 set_has_bytes_default_required();
2274 if (!has_bytes_default_required()) {
2277 clear_has_bytes_default_required();
2281 if (bytes_default_required != NULL) {
2282 set_has_bytes_default_required();
2284 clear_has_bytes_default_required();
2292 return (_has_bits_[1] & 0x00000002u) != 0;
2294 inline void TestMsg::set_has_enum_default_required() {
2295 _has_bits_[1] |= 0x00000002u;
2297 inline void TestMsg::clear_has_enum_default_required() {
2298 _has_bits_[1] &= ~0x00000002u;
2301 enum_default_required_ = 1;
2302 clear_has_enum_default_required();
2310 set_has_enum_default_required();
2311 enum_default_required_ = value;
2317 return (_has_bits_[0] & 0x00000020u) != 0;
2319 inline void TestMsg::set_has_msg_default_required() {
2320 _has_bits_[0] |= 0x00000020u;
2322 inline void TestMsg::clear_has_msg_default_required() {
2323 _has_bits_[0] &= ~0x00000020u;
2326 if (msg_default_required_ != NULL) msg_default_required_->Clear();
2327 clear_has_msg_default_required();
2329 inline const ::goby::test::acomms::protobuf::EmbeddedMsg1& TestMsg::_internal_msg_default_required()
const {
2330 return *msg_default_required_;
2333 const ::goby::test::acomms::protobuf::EmbeddedMsg1* p = msg_default_required_;
2340 clear_has_msg_default_required();
2342 msg_default_required_ = NULL;
2346 set_has_msg_default_required();
2347 if (msg_default_required_ == NULL) {
2348 auto* p = CreateMaybeMessage<::goby::test::acomms::protobuf::EmbeddedMsg1>(GetArenaNoVirtual());
2349 msg_default_required_ = p;
2352 return msg_default_required_;
2356 if (message_arena == NULL) {
2357 delete msg_default_required_;
2359 if (msg_default_required) {
2361 if (message_arena != submessage_arena) {
2362 msg_default_required = ::google::protobuf::internal::GetOwnedMessage(
2363 message_arena, msg_default_required, submessage_arena);
2365 set_has_msg_default_required();
2367 clear_has_msg_default_required();
2369 msg_default_required_ = msg_default_required;
2375 return double_default_repeat_.size();
2378 double_default_repeat_.Clear();
2382 return double_default_repeat_.Get(index);
2385 double_default_repeat_.Set(index, value);
2389 double_default_repeat_.Add(value);
2392 inline const ::google::protobuf::RepeatedField< double >&
2395 return double_default_repeat_;
2397 inline ::google::protobuf::RepeatedField< double >*
2400 return &double_default_repeat_;
2405 return float_default_repeat_.size();
2408 float_default_repeat_.Clear();
2412 return float_default_repeat_.Get(index);
2415 float_default_repeat_.Set(index, value);
2419 float_default_repeat_.Add(value);
2422 inline const ::google::protobuf::RepeatedField< float >&
2425 return float_default_repeat_;
2427 inline ::google::protobuf::RepeatedField< float >*
2430 return &float_default_repeat_;
2435 return int32_default_repeat_.size();
2438 int32_default_repeat_.Clear();
2442 return int32_default_repeat_.Get(index);
2445 int32_default_repeat_.Set(index, value);
2449 int32_default_repeat_.Add(value);
2452 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2455 return int32_default_repeat_;
2457 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2460 return &int32_default_repeat_;
2465 return int64_default_repeat_.size();
2468 int64_default_repeat_.Clear();
2472 return int64_default_repeat_.Get(index);
2475 int64_default_repeat_.Set(index, value);
2479 int64_default_repeat_.Add(value);
2482 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
2485 return int64_default_repeat_;
2487 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
2490 return &int64_default_repeat_;
2495 return uint32_default_repeat_.size();
2498 uint32_default_repeat_.Clear();
2502 return uint32_default_repeat_.Get(index);
2505 uint32_default_repeat_.Set(index, value);
2509 uint32_default_repeat_.Add(value);
2512 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2515 return uint32_default_repeat_;
2517 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2520 return &uint32_default_repeat_;
2525 return uint64_default_repeat_.size();
2528 uint64_default_repeat_.Clear();
2532 return uint64_default_repeat_.Get(index);
2535 uint64_default_repeat_.Set(index, value);
2539 uint64_default_repeat_.Add(value);
2542 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
2545 return uint64_default_repeat_;
2547 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
2550 return &uint64_default_repeat_;
2555 return sint32_default_repeat_.size();
2558 sint32_default_repeat_.Clear();
2562 return sint32_default_repeat_.Get(index);
2565 sint32_default_repeat_.Set(index, value);
2569 sint32_default_repeat_.Add(value);
2572 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2575 return sint32_default_repeat_;
2577 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2580 return &sint32_default_repeat_;
2585 return sint64_default_repeat_.size();
2588 sint64_default_repeat_.Clear();
2592 return sint64_default_repeat_.Get(index);
2595 sint64_default_repeat_.Set(index, value);
2599 sint64_default_repeat_.Add(value);
2602 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
2605 return sint64_default_repeat_;
2607 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
2610 return &sint64_default_repeat_;
2615 return fixed32_default_repeat_.size();
2618 fixed32_default_repeat_.Clear();
2622 return fixed32_default_repeat_.Get(index);
2625 fixed32_default_repeat_.Set(index, value);
2629 fixed32_default_repeat_.Add(value);
2632 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2635 return fixed32_default_repeat_;
2637 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2640 return &fixed32_default_repeat_;
2645 return fixed64_default_repeat_.size();
2648 fixed64_default_repeat_.Clear();
2652 return fixed64_default_repeat_.Get(index);
2655 fixed64_default_repeat_.Set(index, value);
2659 fixed64_default_repeat_.Add(value);
2662 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
2665 return fixed64_default_repeat_;
2667 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
2670 return &fixed64_default_repeat_;
2675 return sfixed32_default_repeat_.size();
2678 sfixed32_default_repeat_.Clear();
2682 return sfixed32_default_repeat_.Get(index);
2685 sfixed32_default_repeat_.Set(index, value);
2689 sfixed32_default_repeat_.Add(value);
2692 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2695 return sfixed32_default_repeat_;
2697 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2700 return &sfixed32_default_repeat_;
2705 return sfixed64_default_repeat_.size();
2708 sfixed64_default_repeat_.Clear();
2712 return sfixed64_default_repeat_.Get(index);
2715 sfixed64_default_repeat_.Set(index, value);
2719 sfixed64_default_repeat_.Add(value);
2722 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
2725 return sfixed64_default_repeat_;
2727 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
2730 return &sfixed64_default_repeat_;
2735 return bool_default_repeat_.size();
2738 bool_default_repeat_.Clear();
2742 return bool_default_repeat_.Get(index);
2745 bool_default_repeat_.Set(index, value);
2749 bool_default_repeat_.Add(value);
2752 inline const ::google::protobuf::RepeatedField< bool >&
2755 return bool_default_repeat_;
2757 inline ::google::protobuf::RepeatedField< bool >*
2760 return &bool_default_repeat_;
2765 return string_default_repeat_.size();
2768 string_default_repeat_.Clear();
2772 return string_default_repeat_.Get(index);
2776 return string_default_repeat_.Mutable(index);
2780 string_default_repeat_.Mutable(index)->assign(value);
2785 string_default_repeat_.Mutable(index)->assign(std::move(value));
2789 GOOGLE_DCHECK(value != NULL);
2790 string_default_repeat_.Mutable(index)->assign(value);
2794 string_default_repeat_.Mutable(index)->assign(
2795 reinterpret_cast<const char*
>(value), size);
2800 return string_default_repeat_.Add();
2803 string_default_repeat_.Add()->assign(value);
2808 string_default_repeat_.Add(std::move(value));
2813 GOOGLE_DCHECK(value != NULL);
2814 string_default_repeat_.Add()->assign(value);
2818 string_default_repeat_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
2821 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
2824 return string_default_repeat_;
2826 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
2829 return &string_default_repeat_;
2834 return bytes_default_repeat_.size();
2837 bytes_default_repeat_.Clear();
2841 return bytes_default_repeat_.Get(index);
2845 return bytes_default_repeat_.Mutable(index);
2849 bytes_default_repeat_.Mutable(index)->assign(value);
2854 bytes_default_repeat_.Mutable(index)->assign(std::move(value));
2858 GOOGLE_DCHECK(value != NULL);
2859 bytes_default_repeat_.Mutable(index)->assign(value);
2863 bytes_default_repeat_.Mutable(index)->assign(
2864 reinterpret_cast<const char*
>(value), size);
2869 return bytes_default_repeat_.Add();
2872 bytes_default_repeat_.Add()->assign(value);
2877 bytes_default_repeat_.Add(std::move(value));
2882 GOOGLE_DCHECK(value != NULL);
2883 bytes_default_repeat_.Add()->assign(value);
2887 bytes_default_repeat_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
2890 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
2893 return bytes_default_repeat_;
2895 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
2898 return &bytes_default_repeat_;
2903 return enum_default_repeat_.size();
2906 enum_default_repeat_.Clear();
2914 enum_default_repeat_.Set(index, value);
2919 enum_default_repeat_.Add(value);
2922 inline const ::google::protobuf::RepeatedField<int>&
2925 return enum_default_repeat_;
2927 inline ::google::protobuf::RepeatedField<int>*
2930 return &enum_default_repeat_;
2935 return msg_default_repeat_.size();
2938 msg_default_repeat_.Clear();
2942 return msg_default_repeat_.Mutable(index);
2944 inline ::google::protobuf::RepeatedPtrField< ::goby::test::acomms::protobuf::EmbeddedMsg1 >*
2947 return &msg_default_repeat_;
2951 return msg_default_repeat_.Get(index);
2955 return msg_default_repeat_.Add();
2957 inline const ::google::protobuf::RepeatedPtrField< ::goby::test::acomms::protobuf::EmbeddedMsg1 >&
2960 return msg_default_repeat_;
2964 #pragma GCC diagnostic pop
2979 namespace protobuf {
2983 inline const EnumDescriptor* GetEnumDescriptor< ::goby::test::acomms::protobuf::Enum1>() {
2992 #endif // PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl1_2ftest_2eproto