// Generated by the protocol buffer compiler. DO NOT EDIT! // source: InputCoordinates.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "InputCoordinates.pb.h" #include #include #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) namespace Tango { namespace PMR { namespace ColorLab { class InputCoordinatesDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _InputCoordinates_default_instance_; namespace protobuf_InputCoordinates_2eproto { namespace { ::google::protobuf::Metadata file_level_metadata[1]; } // namespace PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0}, }; PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ::google::protobuf::internal::AuxillaryParseTableField(), }; PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, }; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, length_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, red_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, green_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, blue_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, cyan_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, magenta_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, yellow_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, l_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, a_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, b_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, pantoncode_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputCoordinates, inputliquids_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(InputCoordinates)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&_InputCoordinates_default_instance_), }; namespace { void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "InputCoordinates.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); } } // namespace void TableStruct::InitDefaultsImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::internal::InitProtobufDefaults(); ::Tango::PMR::ColorLab::protobuf_InputLiquid_2eproto::InitDefaults(); _InputCoordinates_default_instance_._instance.DefaultConstruct(); ::google::protobuf::internal::OnShutdownDestroyMessage( &_InputCoordinates_default_instance_);} void InitDefaults() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); } namespace { void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\026InputCoordinates.proto\022\022Tango.PMR.Colo" "rLab\032\021InputLiquid.proto\"\364\001\n\020InputCoordin" "ates\022\016\n\006Length\030\001 \001(\001\022\013\n\003Red\030\002 \001(\005\022\r\n\005Gre" "en\030\003 \001(\005\022\014\n\004Blue\030\004 \001(\005\022\014\n\004Cyan\030\005 \001(\001\022\017\n\007" "Magenta\030\006 \001(\001\022\016\n\006Yellow\030\007 \001(\001\022\013\n\003Key\030\010 \001" "(\001\022\t\n\001L\030\t \001(\001\022\t\n\001A\030\n \001(\001\022\t\n\001B\030\013 \001(\001\022\022\n\nP" "antonCode\030\014 \001(\005\0225\n\014InputLiquids\030\r \003(\0132\037." "Tango.PMR.ColorLab.InputLiquidB\036\n\034com.tw" "ine.tango.pmr.colorlabb\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 350); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "InputCoordinates.proto", &protobuf_RegisterTypes); ::Tango::PMR::ColorLab::protobuf_InputLiquid_2eproto::AddDescriptors(); } } // anonymous namespace void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_InputCoordinates_2eproto // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int InputCoordinates::kLengthFieldNumber; const int InputCoordinates::kRedFieldNumber; const int InputCoordinates::kGreenFieldNumber; const int InputCoordinates::kBlueFieldNumber; const int InputCoordinates::kCyanFieldNumber; const int InputCoordinates::kMagentaFieldNumber; const int InputCoordinates::kYellowFieldNumber; const int InputCoordinates::kKeyFieldNumber; const int InputCoordinates::kLFieldNumber; const int InputCoordinates::kAFieldNumber; const int InputCoordinates::kBFieldNumber; const int InputCoordinates::kPantonCodeFieldNumber; const int InputCoordinates::kInputLiquidsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 InputCoordinates::InputCoordinates() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_InputCoordinates_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:Tango.PMR.ColorLab.InputCoordinates) } InputCoordinates::InputCoordinates(const InputCoordinates& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), inputliquids_(from.inputliquids_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&length_, &from.length_, static_cast(reinterpret_cast(&b_) - reinterpret_cast(&length_)) + sizeof(b_)); // @@protoc_insertion_point(copy_constructor:Tango.PMR.ColorLab.InputCoordinates) } void InputCoordinates::SharedCtor() { ::memset(&length_, 0, static_cast( reinterpret_cast(&b_) - reinterpret_cast(&length_)) + sizeof(b_)); _cached_size_ = 0; } InputCoordinates::~InputCoordinates() { // @@protoc_insertion_point(destructor:Tango.PMR.ColorLab.InputCoordinates) SharedDtor(); } void InputCoordinates::SharedDtor() { } void InputCoordinates::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* InputCoordinates::descriptor() { protobuf_InputCoordinates_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_InputCoordinates_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const InputCoordinates& InputCoordinates::default_instance() { protobuf_InputCoordinates_2eproto::InitDefaults(); return *internal_default_instance(); } InputCoordinates* InputCoordinates::New(::google::protobuf::Arena* arena) const { InputCoordinates* n = new InputCoordinates; if (arena != NULL) { arena->Own(n); } return n; } void InputCoordinates::Clear() { // @@protoc_insertion_point(message_clear_start:Tango.PMR.ColorLab.InputCoordinates) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; inputliquids_.Clear(); ::memset(&length_, 0, static_cast( reinterpret_cast(&b_) - reinterpret_cast(&length_)) + sizeof(b_)); _internal_metadata_.Clear(); } bool InputCoordinates::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:Tango.PMR.ColorLab.InputCoordinates) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // double Length = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &length_))); } else { goto handle_unusual; } break; } // int32 Red = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &red_))); } else { goto handle_unusual; } break; } // int32 Green = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &green_))); } else { goto handle_unusual; } break; } // int32 Blue = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &blue_))); } else { goto handle_unusual; } break; } // double Cyan = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &cyan_))); } else { goto handle_unusual; } break; } // double Magenta = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &magenta_))); } else { goto handle_unusual; } break; } // double Yellow = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &yellow_))); } else { goto handle_unusual; } break; } // double Key = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &key_))); } else { goto handle_unusual; } break; } // double L = 9; case 9: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &l_))); } else { goto handle_unusual; } break; } // double A = 10; case 10: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &a_))); } else { goto handle_unusual; } break; } // double B = 11; case 11: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &b_))); } else { goto handle_unusual; } break; } // int32 PantonCode = 12; case 12: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &pantoncode_))); } else { goto handle_unusual; } break; } // repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; case 13: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, add_inputliquids())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:Tango.PMR.ColorLab.InputCoordinates) return true; failure: // @@protoc_insertion_point(parse_failure:Tango.PMR.ColorLab.InputCoordinates) return false; #undef DO_ } void InputCoordinates::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Tango.PMR.ColorLab.InputCoordinates) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // double Length = 1; if (this->length() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->length(), output); } // int32 Red = 2; if (this->red() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->red(), output); } // int32 Green = 3; if (this->green() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->green(), output); } // int32 Blue = 4; if (this->blue() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->blue(), output); } // double Cyan = 5; if (this->cyan() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->cyan(), output); } // double Magenta = 6; if (this->magenta() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->magenta(), output); } // double Yellow = 7; if (this->yellow() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->yellow(), output); } // double Key = 8; if (this->key() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->key(), output); } // double L = 9; if (this->l() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->l(), output); } // double A = 10; if (this->a() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->a(), output); } // double B = 11; if (this->b() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->b(), output); } // int32 PantonCode = 12; if (this->pantoncode() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->pantoncode(), output); } // repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; for (unsigned int i = 0, n = static_cast(this->inputliquids_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 13, this->inputliquids(static_cast(i)), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:Tango.PMR.ColorLab.InputCoordinates) } ::google::protobuf::uint8* InputCoordinates::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.ColorLab.InputCoordinates) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // double Length = 1; if (this->length() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->length(), target); } // int32 Red = 2; if (this->red() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->red(), target); } // int32 Green = 3; if (this->green() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->green(), target); } // int32 Blue = 4; if (this->blue() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->blue(), target); } // double Cyan = 5; if (this->cyan() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->cyan(), target); } // double Magenta = 6; if (this->magenta() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->magenta(), target); } // double Yellow = 7; if (this->yellow() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->yellow(), target); } // double Key = 8; if (this->key() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->key(), target); } // double L = 9; if (this->l() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->l(), target); } // double A = 10; if (this->a() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->a(), target); } // double B = 11; if (this->b() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->b(), target); } // int32 PantonCode = 12; if (this->pantoncode() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->pantoncode(), target); } // repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; for (unsigned int i = 0, n = static_cast(this->inputliquids_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 13, this->inputliquids(static_cast(i)), deterministic, target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:Tango.PMR.ColorLab.InputCoordinates) return target; } size_t InputCoordinates::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Tango.PMR.ColorLab.InputCoordinates) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; { unsigned int count = static_cast(this->inputliquids_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->inputliquids(static_cast(i))); } } // double Length = 1; if (this->length() != 0) { total_size += 1 + 8; } // int32 Red = 2; if (this->red() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->red()); } // int32 Green = 3; if (this->green() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->green()); } // double Cyan = 5; if (this->cyan() != 0) { total_size += 1 + 8; } // double Magenta = 6; if (this->magenta() != 0) { total_size += 1 + 8; } // double Yellow = 7; if (this->yellow() != 0) { total_size += 1 + 8; } // double Key = 8; if (this->key() != 0) { total_size += 1 + 8; } // int32 Blue = 4; if (this->blue() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->blue()); } // int32 PantonCode = 12; if (this->pantoncode() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->pantoncode()); } // double L = 9; if (this->l() != 0) { total_size += 1 + 8; } // double A = 10; if (this->a() != 0) { total_size += 1 + 8; } // double B = 11; if (this->b() != 0) { total_size += 1 + 8; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void InputCoordinates::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.ColorLab.InputCoordinates) GOOGLE_DCHECK_NE(&from, this); const InputCoordinates* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.ColorLab.InputCoordinates) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.ColorLab.InputCoordinates) MergeFrom(*source); } } void InputCoordinates::MergeFrom(const InputCoordinates& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.ColorLab.InputCoordinates) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; inputliquids_.MergeFrom(from.inputliquids_); if (from.length() != 0) { set_length(from.length()); } if (from.red() != 0) { set_red(from.red()); } if (from.green() != 0) { set_green(from.green()); } if (from.cyan() != 0) { set_cyan(from.cyan()); } if (from.magenta() != 0) { set_magenta(from.magenta()); } if (from.yellow() != 0) { set_yellow(from.yellow()); } if (from.key() != 0) { set_key(from.key()); } if (from.blue() != 0) { set_blue(from.blue()); } if (from.pantoncode() != 0) { set_pantoncode(from.pantoncode()); } if (from.l() != 0) { set_l(from.l()); } if (from.a() != 0) { set_a(from.a()); } if (from.b() != 0) { set_b(from.b()); } } void InputCoordinates::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.ColorLab.InputCoordinates) if (&from == this) return; Clear(); MergeFrom(from); } void InputCoordinates::CopyFrom(const InputCoordinates& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.ColorLab.InputCoordinates) if (&from == this) return; Clear(); MergeFrom(from); } bool InputCoordinates::IsInitialized() const { return true; } void InputCoordinates::Swap(InputCoordinates* other) { if (other == this) return; InternalSwap(other); } void InputCoordinates::InternalSwap(InputCoordinates* other) { using std::swap; inputliquids_.InternalSwap(&other->inputliquids_); swap(length_, other->length_); swap(red_, other->red_); swap(green_, other->green_); swap(cyan_, other->cyan_); swap(magenta_, other->magenta_); swap(yellow_, other->yellow_); swap(key_, other->key_); swap(blue_, other->blue_); swap(pantoncode_, other->pantoncode_); swap(l_, other->l_); swap(a_, other->a_); swap(b_, other->b_); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata InputCoordinates::GetMetadata() const { protobuf_InputCoordinates_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_InputCoordinates_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // InputCoordinates // double Length = 1; void InputCoordinates::clear_length() { length_ = 0; } double InputCoordinates::length() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.Length) return length_; } void InputCoordinates::set_length(double value) { length_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.Length) } // int32 Red = 2; void InputCoordinates::clear_red() { red_ = 0; } ::google::protobuf::int32 InputCoordinates::red() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.Red) return red_; } void InputCoordinates::set_red(::google::protobuf::int32 value) { red_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.Red) } // int32 Green = 3; void InputCoordinates::clear_green() { green_ = 0; } ::google::protobuf::int32 InputCoordinates::green() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.Green) return green_; } void InputCoordinates::set_green(::google::protobuf::int32 value) { green_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.Green) } // int32 Blue = 4; void InputCoordinates::clear_blue() { blue_ = 0; } ::google::protobuf::int32 InputCoordinates::blue() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.Blue) return blue_; } void InputCoordinates::set_blue(::google::protobuf::int32 value) { blue_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.Blue) } // double Cyan = 5; void InputCoordinates::clear_cyan() { cyan_ = 0; } double InputCoordinates::cyan() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.Cyan) return cyan_; } void InputCoordinates::set_cyan(double value) { cyan_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.Cyan) } // double Magenta = 6; void InputCoordinates::clear_magenta() { magenta_ = 0; } double InputCoordinates::magenta() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.Magenta) return magenta_; } void InputCoordinates::set_magenta(double value) { magenta_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.Magenta) } // double Yellow = 7; void InputCoordinates::clear_yellow() { yellow_ = 0; } double InputCoordinates::yellow() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.Yellow) return yellow_; } void InputCoordinates::set_yellow(double value) { yellow_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.Yellow) } // double Key = 8; void InputCoordinates::clear_key() { key_ = 0; } double InputCoordinates::key() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.Key) return key_; } void InputCoordinates::set_key(double value) { key_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.Key) } // double L = 9; void InputCoordinates::clear_l() { l_ = 0; } double InputCoordinates::l() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.L) return l_; } void InputCoordinates::set_l(double value) { l_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.L) } // double A = 10; void InputCoordinates::clear_a() { a_ = 0; } double InputCoordinates::a() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.A) return a_; } void InputCoordinates::set_a(double value) { a_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.A) } // double B = 11; void InputCoordinates::clear_b() { b_ = 0; } double InputCoordinates::b() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.B) return b_; } void InputCoordinates::set_b(double value) { b_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.B) } // int32 PantonCode = 12; void InputCoordinates::clear_pantoncode() { pantoncode_ = 0; } ::google::protobuf::int32 InputCoordinates::pantoncode() const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.PantonCode) return pantoncode_; } void InputCoordinates::set_pantoncode(::google::protobuf::int32 value) { pantoncode_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.InputCoordinates.PantonCode) } // repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; int InputCoordinates::inputliquids_size() const { return inputliquids_.size(); } void InputCoordinates::clear_inputliquids() { inputliquids_.Clear(); } const ::Tango::PMR::ColorLab::InputLiquid& InputCoordinates::inputliquids(int index) const { // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.InputCoordinates.InputLiquids) return inputliquids_.Get(index); } ::Tango::PMR::ColorLab::InputLiquid* InputCoordinates::mutable_inputliquids(int index) { // @@protoc_insertion_point(field_mutable:Tango.PMR.ColorLab.InputCoordinates.InputLiquids) return inputliquids_.Mutable(index); } ::Tango::PMR::ColorLab::InputLiquid* InputCoordinates::add_inputliquids() { // @@protoc_insertion_point(field_add:Tango.PMR.ColorLab.InputCoordinates.InputLiquids) return inputliquids_.Add(); } ::google::protobuf::RepeatedPtrField< ::Tango::PMR::ColorLab::InputLiquid >* InputCoordinates::mutable_inputliquids() { // @@protoc_insertion_point(field_mutable_list:Tango.PMR.ColorLab.InputCoordinates.InputLiquids) return &inputliquids_; } const ::google::protobuf::RepeatedPtrField< ::Tango::PMR::ColorLab::InputLiquid >& InputCoordinates::inputliquids() const { // @@protoc_insertion_point(field_list:Tango.PMR.ColorLab.InputCoordinates.InputLiquids) return inputliquids_; } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace ColorLab } // namespace PMR } // namespace Tango // @@protoc_insertion_point(global_scope)