|
@@ -16,6 +16,8 @@
|
|
|
#include <google/protobuf/port_def.inc>
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_setting_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_box_param_setting_2eproto;
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_setting_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_lidar_parameter_setting_2eproto;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_setting_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_plc_param_setting_2eproto;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_setting_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_shutter_param_setting_2eproto;
|
|
|
namespace shutter {
|
|
|
class lidar_parameterDefaultTypeInternal {
|
|
|
public:
|
|
@@ -25,10 +27,18 @@ class box_paramDefaultTypeInternal {
|
|
|
public:
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<box_param> _instance;
|
|
|
} _box_param_default_instance_;
|
|
|
+class plc_paramDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<plc_param> _instance;
|
|
|
+} _plc_param_default_instance_;
|
|
|
class shutter_paramDefaultTypeInternal {
|
|
|
public:
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<shutter_param> _instance;
|
|
|
} _shutter_param_default_instance_;
|
|
|
+class setting_parameterDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<setting_parameter> _instance;
|
|
|
+} _setting_parameter_default_instance_;
|
|
|
} // namespace shutter
|
|
|
static void InitDefaultsscc_info_box_param_setting_2eproto() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
@@ -58,6 +68,36 @@ static void InitDefaultsscc_info_lidar_parameter_setting_2eproto() {
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_lidar_parameter_setting_2eproto =
|
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_lidar_parameter_setting_2eproto}, {}};
|
|
|
|
|
|
+static void InitDefaultsscc_info_plc_param_setting_2eproto() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::shutter::_plc_param_default_instance_;
|
|
|
+ new (ptr) ::shutter::plc_param();
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::shutter::plc_param::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_plc_param_setting_2eproto =
|
|
|
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_plc_param_setting_2eproto}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsscc_info_setting_parameter_setting_2eproto() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::shutter::_setting_parameter_default_instance_;
|
|
|
+ new (ptr) ::shutter::setting_parameter();
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::shutter::setting_parameter::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_setting_parameter_setting_2eproto =
|
|
|
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_setting_parameter_setting_2eproto}, {
|
|
|
+ &scc_info_shutter_param_setting_2eproto.base,
|
|
|
+ &scc_info_plc_param_setting_2eproto.base,}};
|
|
|
+
|
|
|
static void InitDefaultsscc_info_shutter_param_setting_2eproto() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
@@ -74,7 +114,7 @@ static void InitDefaultsscc_info_shutter_param_setting_2eproto() {
|
|
|
&scc_info_lidar_parameter_setting_2eproto.base,
|
|
|
&scc_info_box_param_setting_2eproto.base,}};
|
|
|
|
|
|
-static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_setting_2eproto[3];
|
|
|
+static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_setting_2eproto[5];
|
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_setting_2eproto = nullptr;
|
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_setting_2eproto = nullptr;
|
|
|
|
|
@@ -117,6 +157,17 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_setting_2eproto::offsets[] PRO
|
|
|
3,
|
|
|
4,
|
|
|
5,
|
|
|
+ PROTOBUF_FIELD_OFFSET(::shutter::plc_param, _has_bits_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::shutter::plc_param, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ PROTOBUF_FIELD_OFFSET(::shutter::plc_param, ip_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::shutter::plc_param, dbnumber_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::shutter::plc_param, start_id_),
|
|
|
+ 0,
|
|
|
+ 1,
|
|
|
+ 2,
|
|
|
PROTOBUF_FIELD_OFFSET(::shutter::shutter_param, _has_bits_),
|
|
|
PROTOBUF_FIELD_OFFSET(::shutter::shutter_param, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -130,17 +181,32 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_setting_2eproto::offsets[] PRO
|
|
|
0,
|
|
|
1,
|
|
|
2,
|
|
|
+ PROTOBUF_FIELD_OFFSET(::shutter::setting_parameter, _has_bits_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::shutter::setting_parameter, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ PROTOBUF_FIELD_OFFSET(::shutter::setting_parameter, entrance_parameter_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::shutter::setting_parameter, export_parameter_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::shutter::setting_parameter, plc_setting_),
|
|
|
+ 0,
|
|
|
+ 1,
|
|
|
+ 2,
|
|
|
};
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, 13, sizeof(::shutter::lidar_parameter)},
|
|
|
{ 21, 32, sizeof(::shutter::box_param)},
|
|
|
- { 38, 47, sizeof(::shutter::shutter_param)},
|
|
|
+ { 38, 46, sizeof(::shutter::plc_param)},
|
|
|
+ { 49, 58, sizeof(::shutter::shutter_param)},
|
|
|
+ { 62, 70, sizeof(::shutter::setting_parameter)},
|
|
|
};
|
|
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::shutter::_lidar_parameter_default_instance_),
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::shutter::_box_param_default_instance_),
|
|
|
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::shutter::_plc_param_default_instance_),
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::shutter::_shutter_param_default_instance_),
|
|
|
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::shutter::_setting_parameter_default_instance_),
|
|
|
};
|
|
|
|
|
|
const char descriptor_table_protodef_setting_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
|
@@ -150,25 +216,33 @@ const char descriptor_table_protodef_setting_2eproto[] PROTOBUF_SECTION_VARIABLE
|
|
|
"\002ty\030\006 \001(\001:\0011\022\r\n\002tz\030\007 \001(\001:\0011\022\017\n\003fps\030\010 \001(\001"
|
|
|
":\00210\"_\n\tbox_param\022\014\n\004minx\030\001 \001(\001\022\014\n\004maxx\030"
|
|
|
"\002 \001(\001\022\014\n\004miny\030\003 \001(\001\022\014\n\004maxy\030\004 \001(\001\022\014\n\004min"
|
|
|
- "z\030\005 \001(\001\022\014\n\004maxz\030\006 \001(\001\"\254\001\n\rshutter_param\022"
|
|
|
- "(\n\006lidars\030\001 \003(\0132\030.shutter.lidar_paramete"
|
|
|
- "r\022\037\n\003box\030\002 \001(\0132\022.shutter.box_param\022\'\n\013ve"
|
|
|
- "rify_box1\030\003 \001(\0132\022.shutter.box_param\022\'\n\013v"
|
|
|
- "erify_box2\030\004 \001(\0132\022.shutter.box_param"
|
|
|
+ "z\030\005 \001(\001\022\014\n\004maxz\030\006 \001(\001\">\n\tplc_param\022\n\n\002ip"
|
|
|
+ "\030\001 \002(\t\022\020\n\010dbnumber\030\002 \002(\005\022\023\n\010start_id\030\003 \001"
|
|
|
+ "(\005:\0010\"\254\001\n\rshutter_param\022(\n\006lidars\030\001 \003(\0132"
|
|
|
+ "\030.shutter.lidar_parameter\022\037\n\003box\030\002 \001(\0132\022"
|
|
|
+ ".shutter.box_param\022\'\n\013verify_box1\030\003 \001(\0132"
|
|
|
+ "\022.shutter.box_param\022\'\n\013verify_box2\030\004 \001(\013"
|
|
|
+ "2\022.shutter.box_param\"\242\001\n\021setting_paramet"
|
|
|
+ "er\0222\n\022entrance_parameter\030\001 \001(\0132\026.shutter"
|
|
|
+ ".shutter_param\0220\n\020export_parameter\030\002 \001(\013"
|
|
|
+ "2\026.shutter.shutter_param\022\'\n\013plc_setting\030"
|
|
|
+ "\003 \002(\0132\022.shutter.plc_param"
|
|
|
;
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_setting_2eproto_deps[1] = {
|
|
|
};
|
|
|
-static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_setting_2eproto_sccs[3] = {
|
|
|
+static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_setting_2eproto_sccs[5] = {
|
|
|
&scc_info_box_param_setting_2eproto.base,
|
|
|
&scc_info_lidar_parameter_setting_2eproto.base,
|
|
|
+ &scc_info_plc_param_setting_2eproto.base,
|
|
|
+ &scc_info_setting_parameter_setting_2eproto.base,
|
|
|
&scc_info_shutter_param_setting_2eproto.base,
|
|
|
};
|
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_setting_2eproto_once;
|
|
|
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_setting_2eproto = {
|
|
|
- false, false, descriptor_table_protodef_setting_2eproto, "setting.proto", 436,
|
|
|
- &descriptor_table_setting_2eproto_once, descriptor_table_setting_2eproto_sccs, descriptor_table_setting_2eproto_deps, 3, 0,
|
|
|
+ false, false, descriptor_table_protodef_setting_2eproto, "setting.proto", 665,
|
|
|
+ &descriptor_table_setting_2eproto_once, descriptor_table_setting_2eproto_sccs, descriptor_table_setting_2eproto_deps, 5, 0,
|
|
|
schemas, file_default_instances, TableStruct_setting_2eproto::offsets,
|
|
|
- file_level_metadata_setting_2eproto, 3, file_level_enum_descriptors_setting_2eproto, file_level_service_descriptors_setting_2eproto,
|
|
|
+ file_level_metadata_setting_2eproto, 5, file_level_enum_descriptors_setting_2eproto, file_level_service_descriptors_setting_2eproto,
|
|
|
};
|
|
|
|
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
|
@@ -962,6 +1036,330 @@ void box_param::InternalSwap(box_param* other) {
|
|
|
}
|
|
|
|
|
|
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void plc_param::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+class plc_param::_Internal {
|
|
|
+ public:
|
|
|
+ using HasBits = decltype(std::declval<plc_param>()._has_bits_);
|
|
|
+ static void set_has_ip(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 1u;
|
|
|
+ }
|
|
|
+ static void set_has_dbnumber(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 2u;
|
|
|
+ }
|
|
|
+ static void set_has_start_id(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 4u;
|
|
|
+ }
|
|
|
+ static bool MissingRequiredFields(const HasBits& has_bits) {
|
|
|
+ return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0;
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+plc_param::plc_param(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
|
+ SharedCtor();
|
|
|
+ RegisterArenaDtor(arena);
|
|
|
+ // @@protoc_insertion_point(arena_constructor:shutter.plc_param)
|
|
|
+}
|
|
|
+plc_param::plc_param(const plc_param& from)
|
|
|
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
+ ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (from._internal_has_ip()) {
|
|
|
+ ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_ip(),
|
|
|
+ GetArena());
|
|
|
+ }
|
|
|
+ ::memcpy(&dbnumber_, &from.dbnumber_,
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&start_id_) -
|
|
|
+ reinterpret_cast<char*>(&dbnumber_)) + sizeof(start_id_));
|
|
|
+ // @@protoc_insertion_point(copy_constructor:shutter.plc_param)
|
|
|
+}
|
|
|
+
|
|
|
+void plc_param::SharedCtor() {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_plc_param_setting_2eproto.base);
|
|
|
+ ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ ::memset(&dbnumber_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&start_id_) -
|
|
|
+ reinterpret_cast<char*>(&dbnumber_)) + sizeof(start_id_));
|
|
|
+}
|
|
|
+
|
|
|
+plc_param::~plc_param() {
|
|
|
+ // @@protoc_insertion_point(destructor:shutter.plc_param)
|
|
|
+ SharedDtor();
|
|
|
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
+}
|
|
|
+
|
|
|
+void plc_param::SharedDtor() {
|
|
|
+ GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
+ ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+}
|
|
|
+
|
|
|
+void plc_param::ArenaDtor(void* object) {
|
|
|
+ plc_param* _this = reinterpret_cast< plc_param* >(object);
|
|
|
+ (void)_this;
|
|
|
+}
|
|
|
+void plc_param::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
+}
|
|
|
+void plc_param::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const plc_param& plc_param::default_instance() {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_plc_param_setting_2eproto.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void plc_param::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:shutter.plc_param)
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ip_.ClearNonDefaultToEmpty();
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000006u) {
|
|
|
+ ::memset(&dbnumber_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&start_id_) -
|
|
|
+ reinterpret_cast<char*>(&dbnumber_)) + sizeof(start_id_));
|
|
|
+ }
|
|
|
+ _has_bits_.Clear();
|
|
|
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
+}
|
|
|
+
|
|
|
+const char* plc_param::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
+ _Internal::HasBits has_bits{};
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
|
|
|
+ while (!ctx->Done(&ptr)) {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
+ CHK_(ptr);
|
|
|
+ switch (tag >> 3) {
|
|
|
+ // required string ip = 1;
|
|
|
+ case 1:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
+ auto str = _internal_mutable_ip();
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
+ #ifndef NDEBUG
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "shutter.plc_param.ip");
|
|
|
+ #endif // !NDEBUG
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // required int32 dbnumber = 2;
|
|
|
+ case 2:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
|
+ _Internal::set_has_dbnumber(&has_bits);
|
|
|
+ dbnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // optional int32 start_id = 3 [default = 0];
|
|
|
+ case 3:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
|
+ _Internal::set_has_start_id(&has_bits);
|
|
|
+ start_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if ((tag & 7) == 4 || tag == 0) {
|
|
|
+ ctx->SetLastTag(tag);
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ ptr = UnknownFieldParse(tag,
|
|
|
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
+ ptr, ctx);
|
|
|
+ CHK_(ptr != nullptr);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ } // switch
|
|
|
+ } // while
|
|
|
+success:
|
|
|
+ _has_bits_.Or(has_bits);
|
|
|
+ return ptr;
|
|
|
+failure:
|
|
|
+ ptr = nullptr;
|
|
|
+ goto success;
|
|
|
+#undef CHK_
|
|
|
+}
|
|
|
+
|
|
|
+::PROTOBUF_NAMESPACE_ID::uint8* plc_param::_InternalSerialize(
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:shutter.plc_param)
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ // required string ip = 1;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->_internal_ip().data(), static_cast<int>(this->_internal_ip().length()),
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
|
|
|
+ "shutter.plc_param.ip");
|
|
|
+ target = stream->WriteStringMaybeAliased(
|
|
|
+ 1, this->_internal_ip(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int32 dbnumber = 2;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_dbnumber(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional int32 start_id = 3 [default = 0];
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_start_id(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:shutter.plc_param)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t plc_param::RequiredFieldsByteSizeFallback() const {
|
|
|
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:shutter.plc_param)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if (_internal_has_ip()) {
|
|
|
+ // required string ip = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
+ this->_internal_ip());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_internal_has_dbnumber()) {
|
|
|
+ // required int32 dbnumber = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
+ this->_internal_dbnumber());
|
|
|
+ }
|
|
|
+
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+size_t plc_param::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:shutter.plc_param)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
|
|
|
+ // required string ip = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
+ this->_internal_ip());
|
|
|
+
|
|
|
+ // required int32 dbnumber = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
+ this->_internal_dbnumber());
|
|
|
+
|
|
|
+ } else {
|
|
|
+ total_size += RequiredFieldsByteSizeFallback();
|
|
|
+ }
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // optional int32 start_id = 3 [default = 0];
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
+ this->_internal_start_id());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
+ _internal_metadata_, total_size, &_cached_size_);
|
|
|
+ }
|
|
|
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void plc_param::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:shutter.plc_param)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const plc_param* source =
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<plc_param>(
|
|
|
+ &from);
|
|
|
+ if (source == nullptr) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:shutter.plc_param)
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:shutter.plc_param)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void plc_param::MergeFrom(const plc_param& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:shutter.plc_param)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = from._has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000007u) {
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ _internal_set_ip(from._internal_ip());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ dbnumber_ = from.dbnumber_;
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ start_id_ = from.start_id_;
|
|
|
+ }
|
|
|
+ _has_bits_[0] |= cached_has_bits;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void plc_param::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:shutter.plc_param)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void plc_param::CopyFrom(const plc_param& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:shutter.plc_param)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool plc_param::IsInitialized() const {
|
|
|
+ if (_Internal::MissingRequiredFields(_has_bits_)) return false;
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void plc_param::InternalSwap(plc_param* other) {
|
|
|
+ using std::swap;
|
|
|
+ _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
+ swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
+ ip_.Swap(&other->ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
+ PROTOBUF_FIELD_OFFSET(plc_param, start_id_)
|
|
|
+ + sizeof(plc_param::start_id_)
|
|
|
+ - PROTOBUF_FIELD_OFFSET(plc_param, dbnumber_)>(
|
|
|
+ reinterpret_cast<char*>(&dbnumber_),
|
|
|
+ reinterpret_cast<char*>(&other->dbnumber_));
|
|
|
+}
|
|
|
+
|
|
|
+::PROTOBUF_NAMESPACE_ID::Metadata plc_param::GetMetadata() const {
|
|
|
+ return GetMetadataStatic();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
// ===================================================================
|
|
|
|
|
|
void shutter_param::InitAsDefaultInstance() {
|
|
@@ -1325,6 +1723,343 @@ void shutter_param::InternalSwap(shutter_param* other) {
|
|
|
}
|
|
|
|
|
|
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void setting_parameter::InitAsDefaultInstance() {
|
|
|
+ ::shutter::_setting_parameter_default_instance_._instance.get_mutable()->entrance_parameter_ = const_cast< ::shutter::shutter_param*>(
|
|
|
+ ::shutter::shutter_param::internal_default_instance());
|
|
|
+ ::shutter::_setting_parameter_default_instance_._instance.get_mutable()->export_parameter_ = const_cast< ::shutter::shutter_param*>(
|
|
|
+ ::shutter::shutter_param::internal_default_instance());
|
|
|
+ ::shutter::_setting_parameter_default_instance_._instance.get_mutable()->plc_setting_ = const_cast< ::shutter::plc_param*>(
|
|
|
+ ::shutter::plc_param::internal_default_instance());
|
|
|
+}
|
|
|
+class setting_parameter::_Internal {
|
|
|
+ public:
|
|
|
+ using HasBits = decltype(std::declval<setting_parameter>()._has_bits_);
|
|
|
+ static const ::shutter::shutter_param& entrance_parameter(const setting_parameter* msg);
|
|
|
+ static void set_has_entrance_parameter(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 1u;
|
|
|
+ }
|
|
|
+ static const ::shutter::shutter_param& export_parameter(const setting_parameter* msg);
|
|
|
+ static void set_has_export_parameter(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 2u;
|
|
|
+ }
|
|
|
+ static const ::shutter::plc_param& plc_setting(const setting_parameter* msg);
|
|
|
+ static void set_has_plc_setting(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 4u;
|
|
|
+ }
|
|
|
+ static bool MissingRequiredFields(const HasBits& has_bits) {
|
|
|
+ return ((has_bits[0] & 0x00000004) ^ 0x00000004) != 0;
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+const ::shutter::shutter_param&
|
|
|
+setting_parameter::_Internal::entrance_parameter(const setting_parameter* msg) {
|
|
|
+ return *msg->entrance_parameter_;
|
|
|
+}
|
|
|
+const ::shutter::shutter_param&
|
|
|
+setting_parameter::_Internal::export_parameter(const setting_parameter* msg) {
|
|
|
+ return *msg->export_parameter_;
|
|
|
+}
|
|
|
+const ::shutter::plc_param&
|
|
|
+setting_parameter::_Internal::plc_setting(const setting_parameter* msg) {
|
|
|
+ return *msg->plc_setting_;
|
|
|
+}
|
|
|
+setting_parameter::setting_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
|
+ SharedCtor();
|
|
|
+ RegisterArenaDtor(arena);
|
|
|
+ // @@protoc_insertion_point(arena_constructor:shutter.setting_parameter)
|
|
|
+}
|
|
|
+setting_parameter::setting_parameter(const setting_parameter& from)
|
|
|
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
+ if (from._internal_has_entrance_parameter()) {
|
|
|
+ entrance_parameter_ = new ::shutter::shutter_param(*from.entrance_parameter_);
|
|
|
+ } else {
|
|
|
+ entrance_parameter_ = nullptr;
|
|
|
+ }
|
|
|
+ if (from._internal_has_export_parameter()) {
|
|
|
+ export_parameter_ = new ::shutter::shutter_param(*from.export_parameter_);
|
|
|
+ } else {
|
|
|
+ export_parameter_ = nullptr;
|
|
|
+ }
|
|
|
+ if (from._internal_has_plc_setting()) {
|
|
|
+ plc_setting_ = new ::shutter::plc_param(*from.plc_setting_);
|
|
|
+ } else {
|
|
|
+ plc_setting_ = nullptr;
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(copy_constructor:shutter.setting_parameter)
|
|
|
+}
|
|
|
+
|
|
|
+void setting_parameter::SharedCtor() {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_setting_parameter_setting_2eproto.base);
|
|
|
+ ::memset(&entrance_parameter_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&plc_setting_) -
|
|
|
+ reinterpret_cast<char*>(&entrance_parameter_)) + sizeof(plc_setting_));
|
|
|
+}
|
|
|
+
|
|
|
+setting_parameter::~setting_parameter() {
|
|
|
+ // @@protoc_insertion_point(destructor:shutter.setting_parameter)
|
|
|
+ SharedDtor();
|
|
|
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
+}
|
|
|
+
|
|
|
+void setting_parameter::SharedDtor() {
|
|
|
+ GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
+ if (this != internal_default_instance()) delete entrance_parameter_;
|
|
|
+ if (this != internal_default_instance()) delete export_parameter_;
|
|
|
+ if (this != internal_default_instance()) delete plc_setting_;
|
|
|
+}
|
|
|
+
|
|
|
+void setting_parameter::ArenaDtor(void* object) {
|
|
|
+ setting_parameter* _this = reinterpret_cast< setting_parameter* >(object);
|
|
|
+ (void)_this;
|
|
|
+}
|
|
|
+void setting_parameter::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
+}
|
|
|
+void setting_parameter::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const setting_parameter& setting_parameter::default_instance() {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_setting_parameter_setting_2eproto.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void setting_parameter::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:shutter.setting_parameter)
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000007u) {
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ GOOGLE_DCHECK(entrance_parameter_ != nullptr);
|
|
|
+ entrance_parameter_->Clear();
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ GOOGLE_DCHECK(export_parameter_ != nullptr);
|
|
|
+ export_parameter_->Clear();
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ GOOGLE_DCHECK(plc_setting_ != nullptr);
|
|
|
+ plc_setting_->Clear();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ _has_bits_.Clear();
|
|
|
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
+}
|
|
|
+
|
|
|
+const char* setting_parameter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
+ _Internal::HasBits has_bits{};
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
|
|
|
+ while (!ctx->Done(&ptr)) {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
+ CHK_(ptr);
|
|
|
+ switch (tag >> 3) {
|
|
|
+ // optional .shutter.shutter_param entrance_parameter = 1;
|
|
|
+ case 1:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
+ ptr = ctx->ParseMessage(_internal_mutable_entrance_parameter(), ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // optional .shutter.shutter_param export_parameter = 2;
|
|
|
+ case 2:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
+ ptr = ctx->ParseMessage(_internal_mutable_export_parameter(), ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // required .shutter.plc_param plc_setting = 3;
|
|
|
+ case 3:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
+ ptr = ctx->ParseMessage(_internal_mutable_plc_setting(), ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if ((tag & 7) == 4 || tag == 0) {
|
|
|
+ ctx->SetLastTag(tag);
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ ptr = UnknownFieldParse(tag,
|
|
|
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
+ ptr, ctx);
|
|
|
+ CHK_(ptr != nullptr);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ } // switch
|
|
|
+ } // while
|
|
|
+success:
|
|
|
+ _has_bits_.Or(has_bits);
|
|
|
+ return ptr;
|
|
|
+failure:
|
|
|
+ ptr = nullptr;
|
|
|
+ goto success;
|
|
|
+#undef CHK_
|
|
|
+}
|
|
|
+
|
|
|
+::PROTOBUF_NAMESPACE_ID::uint8* setting_parameter::_InternalSerialize(
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:shutter.setting_parameter)
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ // optional .shutter.shutter_param entrance_parameter = 1;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
+ InternalWriteMessage(
|
|
|
+ 1, _Internal::entrance_parameter(this), target, stream);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional .shutter.shutter_param export_parameter = 2;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
+ InternalWriteMessage(
|
|
|
+ 2, _Internal::export_parameter(this), target, stream);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .shutter.plc_param plc_setting = 3;
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
+ InternalWriteMessage(
|
|
|
+ 3, _Internal::plc_setting(this), target, stream);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:shutter.setting_parameter)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t setting_parameter::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:shutter.setting_parameter)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ // required .shutter.plc_param plc_setting = 3;
|
|
|
+ if (_internal_has_plc_setting()) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
+ *plc_setting_);
|
|
|
+ }
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000003u) {
|
|
|
+ // optional .shutter.shutter_param entrance_parameter = 1;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
+ *entrance_parameter_);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional .shutter.shutter_param export_parameter = 2;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
+ *export_parameter_);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
+ _internal_metadata_, total_size, &_cached_size_);
|
|
|
+ }
|
|
|
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void setting_parameter::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:shutter.setting_parameter)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const setting_parameter* source =
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<setting_parameter>(
|
|
|
+ &from);
|
|
|
+ if (source == nullptr) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:shutter.setting_parameter)
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:shutter.setting_parameter)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void setting_parameter::MergeFrom(const setting_parameter& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:shutter.setting_parameter)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = from._has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000007u) {
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ _internal_mutable_entrance_parameter()->::shutter::shutter_param::MergeFrom(from._internal_entrance_parameter());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ _internal_mutable_export_parameter()->::shutter::shutter_param::MergeFrom(from._internal_export_parameter());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ _internal_mutable_plc_setting()->::shutter::plc_param::MergeFrom(from._internal_plc_setting());
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void setting_parameter::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:shutter.setting_parameter)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void setting_parameter::CopyFrom(const setting_parameter& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:shutter.setting_parameter)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool setting_parameter::IsInitialized() const {
|
|
|
+ if (_Internal::MissingRequiredFields(_has_bits_)) return false;
|
|
|
+ if (_internal_has_plc_setting()) {
|
|
|
+ if (!plc_setting_->IsInitialized()) return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void setting_parameter::InternalSwap(setting_parameter* other) {
|
|
|
+ using std::swap;
|
|
|
+ _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
+ swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
+ PROTOBUF_FIELD_OFFSET(setting_parameter, plc_setting_)
|
|
|
+ + sizeof(setting_parameter::plc_setting_)
|
|
|
+ - PROTOBUF_FIELD_OFFSET(setting_parameter, entrance_parameter_)>(
|
|
|
+ reinterpret_cast<char*>(&entrance_parameter_),
|
|
|
+ reinterpret_cast<char*>(&other->entrance_parameter_));
|
|
|
+}
|
|
|
+
|
|
|
+::PROTOBUF_NAMESPACE_ID::Metadata setting_parameter::GetMetadata() const {
|
|
|
+ return GetMetadataStatic();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
} // namespace shutter
|
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
@@ -1334,9 +2069,15 @@ template<> PROTOBUF_NOINLINE ::shutter::lidar_parameter* Arena::CreateMaybeMessa
|
|
|
template<> PROTOBUF_NOINLINE ::shutter::box_param* Arena::CreateMaybeMessage< ::shutter::box_param >(Arena* arena) {
|
|
|
return Arena::CreateMessageInternal< ::shutter::box_param >(arena);
|
|
|
}
|
|
|
+template<> PROTOBUF_NOINLINE ::shutter::plc_param* Arena::CreateMaybeMessage< ::shutter::plc_param >(Arena* arena) {
|
|
|
+ return Arena::CreateMessageInternal< ::shutter::plc_param >(arena);
|
|
|
+}
|
|
|
template<> PROTOBUF_NOINLINE ::shutter::shutter_param* Arena::CreateMaybeMessage< ::shutter::shutter_param >(Arena* arena) {
|
|
|
return Arena::CreateMessageInternal< ::shutter::shutter_param >(arena);
|
|
|
}
|
|
|
+template<> PROTOBUF_NOINLINE ::shutter::setting_parameter* Arena::CreateMaybeMessage< ::shutter::setting_parameter >(Arena* arena) {
|
|
|
+ return Arena::CreateMessageInternal< ::shutter::setting_parameter >(arena);
|
|
|
+}
|
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|