aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ConversionInput.pb.cc
blob: 130f5b476d8236caf71cc86ed8238fdfae37dfd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Tango.BL.Entities;
using Tango.Integration.Operation;
using Tango.Integration.ExternalBridge;

namespace Tango.PPC.Common.Application
{
    /// <summary>
    /// Represents the application manager.
    /// </summary>
    public interface IPPCApplicationManager
    {
        /// <summary>
        /// Occurs when the application has started.
        /// </summary>
        event EventHandler ApplicationStarted;

        /// <summary>
        /// Occurs when the application is ready and all modules are views are loaded.
        /// </summary>
        event EventHandler ApplicationReady;

        /// <summary>
        /// Occurs when the main window content has been rendered.
        /// </summary>
        event EventHandler ContentRendered;

        /// <summary>
        /// Occurs when all PPC modules are ready and initialized.
        /// </summary>
        event EventHandler ModulesInitialized;

        /// <summary>
        /// Occurs when machine setup is required.
        /// </summary>
        event EventHandler SetupRequired;

        /// <summary>
        /// Occurs when a system restart is required.
        /// </summary>
        event EventHandler SystemRestartRequired;

        /// <summary>
        /// Occurs when the application has encountered an error when initializing.
        /// </summary>
        event EventHandler<Exception> ApplicationInitializationError;

        /// <summary>
        /// Gets a value indicating whether the application is shutting down.
        /// </summary>
        bool IsShuttingDown { get; }

        /// <summary>
        /// Gets a value indicating whether the application is in technician mode.
        /// </summary>
        bool IsInTechnicianMode { get; }

        /// <summary>
        /// Gets a value indicating whether an update has occurred before the application started.
        /// </summary>
        bool IsAfterUpdate { get;  }

        /// <summary>
        /// Shutdown the application.
        /// </summary>
        void ShutDown();

        /// <summary>
        /// Restarts the application.
        /// </summary>
        void Restart();

        /// <summary>
        /// Runs the updater utility and exits the application.
        /// </summary>
        void UpdateApplication(String updaterPath, String arguments);

        /// <summary>
        /// Enteres the application technician mode.
        /// </summary>
        void EnterTechnicianMode(bool displayNotification = true);

        /// <summary>
        /// Exits the application technician mode.
        /// </summary>
        void ExitTechnicianMode();

        /// <summary>
        /// Gets the application version.
        /// </summary>
        Version Version { get; }

        /// <summary>
        /// Gets the firmware version.
        /// </summary>
        Version FirmwareVersion { get; }

        /// <summary>
        /// Gets the application build date.
        /// </summary>
        String BuildDate { get; }

        /// <summary>
        /// Gets the application startup date.
        /// </summary>
        DateTime StartUpDate { get; }

        /// <summary>
        /// Gets or sets the application folder.
        /// </summary>
        String StartPath { get; }

        /// <summary>
        /// Gets or sets a value indicating whether the screen is currently locked.
        /// </summary>
        bool IsScreenLocked { get; set; }

        /// <summary>
        /// Resets the screen lock timer.
        /// </summary>
        void ResetScreenLockTimer();

        /// <summary>
        /// Invokes a dialog for entering a password and releasing the screen lock.
        /// </summary>
        void ReleaseScreenLock();

        /// <summary>
        /// Sets the state of the main window.
        /// </summary>
        /// <param name="state">The state.</param>
        void SetWindowState(WindowState state);
    }
}
25' href='#n725'>725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ConversionInput.proto

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "ConversionInput.pb.h"

#include <algorithm>

#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)

namespace Tango {
namespace PMR {
namespace ColorLab {
class ConversionInputDefaultTypeInternal {
public:
 ::google::protobuf::internal::ExplicitlyConstructed<ConversionInput>
     _instance;
} _ConversionInput_default_instance_;

namespace protobuf_ConversionInput_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(ConversionInput, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConversionInput, threadl_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConversionInput, threada_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConversionInput, threadb_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConversionInput, colorspace_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConversionInput, inputcoordinates_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConversionInput, forwarddata_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConversionInput, inversedata_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConversionInput, segmentlength_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConversionInput, deltachroma_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConversionInput, deltal_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, sizeof(ConversionInput)},
};

static ::google::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::google::protobuf::Message*>(&_ConversionInput_default_instance_),
};

namespace {

void protobuf_AssignDescriptors() {
  AddDescriptors();
  ::google::protobuf::MessageFactory* factory = NULL;
  AssignDescriptors(
      "ConversionInput.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_InputCoordinates_2eproto::InitDefaults();
  ::Tango::PMR::ColorLab::protobuf_ColorSpace_2eproto::InitDefaults();
  _ConversionInput_default_instance_._instance.DefaultConstruct();
  ::google::protobuf::internal::OnShutdownDestroyMessage(
      &_ConversionInput_default_instance_);_ConversionInput_default_instance_._instance.get_mutable()->inputcoordinates_ = const_cast< ::Tango::PMR::ColorLab::InputCoordinates*>(
      ::Tango::PMR::ColorLab::InputCoordinates::internal_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\025ConversionInput.proto\022\022Tango.PMR.Color"
      "Lab\032\026InputCoordinates.proto\032\020ColorSpace."
      "proto\"\236\002\n\017ConversionInput\022\017\n\007ThreadL\030\001 \001"
      "(\001\022\017\n\007ThreadA\030\002 \001(\001\022\017\n\007ThreadB\030\003 \001(\001\0222\n\n"
      "ColorSpace\030\004 \001(\0162\036.Tango.PMR.ColorLab.Co"
      "lorSpace\022>\n\020InputCoordinates\030\005 \001(\0132$.Tan"
      "go.PMR.ColorLab.InputCoordinates\022\023\n\013Forw"
      "ardData\030\006 \001(\014\022\023\n\013InverseData\030\007 \001(\014\022\025\n\rSe"
      "gmentLength\030\010 \001(\001\022\023\n\013DeltaChroma\030\t \001(\001\022\016"
      "\n\006DeltaL\030\n \001(\001B\036\n\034com.twine.tango.pmr.co"
      "lorlabb\006proto3"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 414);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "ConversionInput.proto", &protobuf_RegisterTypes);
  ::Tango::PMR::ColorLab::protobuf_InputCoordinates_2eproto::AddDescriptors();
  ::Tango::PMR::ColorLab::protobuf_ColorSpace_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_ConversionInput_2eproto


// ===================================================================

#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ConversionInput::kThreadLFieldNumber;
const int ConversionInput::kThreadAFieldNumber;
const int ConversionInput::kThreadBFieldNumber;
const int ConversionInput::kColorSpaceFieldNumber;
const int ConversionInput::kInputCoordinatesFieldNumber;
const int ConversionInput::kForwardDataFieldNumber;
const int ConversionInput::kInverseDataFieldNumber;
const int ConversionInput::kSegmentLengthFieldNumber;
const int ConversionInput::kDeltaChromaFieldNumber;
const int ConversionInput::kDeltaLFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

ConversionInput::ConversionInput()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    protobuf_ConversionInput_2eproto::InitDefaults();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Tango.PMR.ColorLab.ConversionInput)
}
ConversionInput::ConversionInput(const ConversionInput& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  forwarddata_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.forwarddata().size() > 0) {
    forwarddata_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.forwarddata_);
  }
  inversedata_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.inversedata().size() > 0) {
    inversedata_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inversedata_);
  }
  if (from.has_inputcoordinates()) {
    inputcoordinates_ = new ::Tango::PMR::ColorLab::InputCoordinates(*from.inputcoordinates_);
  } else {
    inputcoordinates_ = NULL;
  }
  ::memcpy(&threadl_, &from.threadl_,
    static_cast<size_t>(reinterpret_cast<char*>(&colorspace_) -
    reinterpret_cast<char*>(&threadl_)) + sizeof(colorspace_));
  // @@protoc_insertion_point(copy_constructor:Tango.PMR.ColorLab.ConversionInput)
}

void ConversionInput::SharedCtor() {
  forwarddata_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  inversedata_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  ::memset(&inputcoordinates_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&colorspace_) -
      reinterpret_cast<char*>(&inputcoordinates_)) + sizeof(colorspace_));
  _cached_size_ = 0;
}

ConversionInput::~ConversionInput() {
  // @@protoc_insertion_point(destructor:Tango.PMR.ColorLab.ConversionInput)
  SharedDtor();
}

void ConversionInput::SharedDtor() {
  forwarddata_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  inversedata_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (this != internal_default_instance()) delete inputcoordinates_;
}

void ConversionInput::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ConversionInput::descriptor() {
  protobuf_ConversionInput_2eproto::protobuf_AssignDescriptorsOnce();
  return protobuf_ConversionInput_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const ConversionInput& ConversionInput::default_instance() {
  protobuf_ConversionInput_2eproto::InitDefaults();
  return *internal_default_instance();
}

ConversionInput* ConversionInput::New(::google::protobuf::Arena* arena) const {
  ConversionInput* n = new ConversionInput;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

void ConversionInput::Clear() {
// @@protoc_insertion_point(message_clear_start:Tango.PMR.ColorLab.ConversionInput)
  ::google::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  forwarddata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  inversedata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (GetArenaNoVirtual() == NULL && inputcoordinates_ != NULL) {
    delete inputcoordinates_;
  }
  inputcoordinates_ = NULL;
  ::memset(&threadl_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&colorspace_) -
      reinterpret_cast<char*>(&threadl_)) + sizeof(colorspace_));
  _internal_metadata_.Clear();
}

bool ConversionInput::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.ConversionInput)
  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 ThreadL = 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, &threadl_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // double ThreadA = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
                 input, &threada_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // double ThreadB = 3;
      case 3: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
                 input, &threadb_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4;
      case 4: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
          int value;
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
                 input, &value)));
          set_colorspace(static_cast< ::Tango::PMR::ColorLab::ColorSpace >(value));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5;
      case 5: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
               input, mutable_inputcoordinates()));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bytes ForwardData = 6;
      case 6: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
                input, this->mutable_forwarddata()));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bytes InverseData = 7;
      case 7: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
                input, this->mutable_inversedata()));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // double SegmentLength = 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, &segmentlength_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // double DeltaChroma = 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, &deltachroma_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // double DeltaL = 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, &deltal_)));
        } 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.ConversionInput)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Tango.PMR.ColorLab.ConversionInput)
  return false;
#undef DO_
}

void ConversionInput::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:Tango.PMR.ColorLab.ConversionInput)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // double ThreadL = 1;
  if (this->threadl() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->threadl(), output);
  }

  // double ThreadA = 2;
  if (this->threada() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->threada(), output);
  }

  // double ThreadB = 3;
  if (this->threadb() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->threadb(), output);
  }

  // .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4;
  if (this->colorspace() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
      4, this->colorspace(), output);
  }

  // .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5;
  if (this->has_inputcoordinates()) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      5, *this->inputcoordinates_, output);
  }

  // bytes ForwardData = 6;
  if (this->forwarddata().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
      6, this->forwarddata(), output);
  }

  // bytes InverseData = 7;
  if (this->inversedata().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
      7, this->inversedata(), output);
  }

  // double SegmentLength = 8;
  if (this->segmentlength() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->segmentlength(), output);
  }

  // double DeltaChroma = 9;
  if (this->deltachroma() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->deltachroma(), output);
  }

  // double DeltaL = 10;
  if (this->deltal() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->deltal(), 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.ConversionInput)
}

::google::protobuf::uint8* ConversionInput::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.ColorLab.ConversionInput)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // double ThreadL = 1;
  if (this->threadl() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->threadl(), target);
  }

  // double ThreadA = 2;
  if (this->threada() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->threada(), target);
  }

  // double ThreadB = 3;
  if (this->threadb() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->threadb(), target);
  }

  // .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4;
  if (this->colorspace() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
      4, this->colorspace(), target);
  }

  // .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5;
  if (this->has_inputcoordinates()) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageNoVirtualToArray(
        5, *this->inputcoordinates_, deterministic, target);
  }

  // bytes ForwardData = 6;
  if (this->forwarddata().size() > 0) {
    target =
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
        6, this->forwarddata(), target);
  }

  // bytes InverseData = 7;
  if (this->inversedata().size() > 0) {
    target =
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
        7, this->inversedata(), target);
  }

  // double SegmentLength = 8;
  if (this->segmentlength() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->segmentlength(), target);
  }

  // double DeltaChroma = 9;
  if (this->deltachroma() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->deltachroma(), target);
  }

  // double DeltaL = 10;
  if (this->deltal() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->deltal(), 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.ConversionInput)
  return target;
}

size_t ConversionInput::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.ColorLab.ConversionInput)
  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()));
  }
  // bytes ForwardData = 6;
  if (this->forwarddata().size() > 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::BytesSize(
        this->forwarddata());
  }

  // bytes InverseData = 7;
  if (this->inversedata().size() > 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::BytesSize(
        this->inversedata());
  }

  // .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5;
  if (this->has_inputcoordinates()) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
        *this->inputcoordinates_);
  }

  // double ThreadL = 1;
  if (this->threadl() != 0) {
    total_size += 1 + 8;
  }

  // double ThreadA = 2;
  if (this->threada() != 0) {
    total_size += 1 + 8;
  }

  // double ThreadB = 3;
  if (this->threadb() != 0) {
    total_size += 1 + 8;
  }

  // double SegmentLength = 8;
  if (this->segmentlength() != 0) {
    total_size += 1 + 8;
  }

  // double DeltaChroma = 9;
  if (this->deltachroma() != 0) {
    total_size += 1 + 8;
  }

  // double DeltaL = 10;
  if (this->deltal() != 0) {
    total_size += 1 + 8;
  }

  // .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4;
  if (this->colorspace() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->colorspace());
  }

  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 ConversionInput::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.ColorLab.ConversionInput)
  GOOGLE_DCHECK_NE(&from, this);
  const ConversionInput* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const ConversionInput>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.ColorLab.ConversionInput)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.ColorLab.ConversionInput)
    MergeFrom(*source);
  }
}

void ConversionInput::MergeFrom(const ConversionInput& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.ColorLab.ConversionInput)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (from.forwarddata().size() > 0) {

    forwarddata_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.forwarddata_);
  }
  if (from.inversedata().size() > 0) {

    inversedata_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inversedata_);
  }
  if (from.has_inputcoordinates()) {
    mutable_inputcoordinates()->::Tango::PMR::ColorLab::InputCoordinates::MergeFrom(from.inputcoordinates());
  }
  if (from.threadl() != 0) {
    set_threadl(from.threadl());
  }
  if (from.threada() != 0) {
    set_threada(from.threada());
  }
  if (from.threadb() != 0) {
    set_threadb(from.threadb());
  }
  if (from.segmentlength() != 0) {
    set_segmentlength(from.segmentlength());
  }
  if (from.deltachroma() != 0) {
    set_deltachroma(from.deltachroma());
  }
  if (from.deltal() != 0) {
    set_deltal(from.deltal());
  }
  if (from.colorspace() != 0) {
    set_colorspace(from.colorspace());
  }
}

void ConversionInput::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.ColorLab.ConversionInput)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void ConversionInput::CopyFrom(const ConversionInput& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.ColorLab.ConversionInput)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool ConversionInput::IsInitialized() const {
  return true;
}

void ConversionInput::Swap(ConversionInput* other) {
  if (other == this) return;
  InternalSwap(other);
}
void ConversionInput::InternalSwap(ConversionInput* other) {
  using std::swap;
  forwarddata_.Swap(&other->forwarddata_);
  inversedata_.Swap(&other->inversedata_);
  swap(inputcoordinates_, other->inputcoordinates_);
  swap(threadl_, other->threadl_);
  swap(threada_, other->threada_);
  swap(threadb_, other->threadb_);
  swap(segmentlength_, other->segmentlength_);
  swap(deltachroma_, other->deltachroma_);
  swap(deltal_, other->deltal_);
  swap(colorspace_, other->colorspace_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata ConversionInput::GetMetadata() const {
  protobuf_ConversionInput_2eproto::protobuf_AssignDescriptorsOnce();
  return protobuf_ConversionInput_2eproto::file_level_metadata[kIndexInFileMessages];
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// ConversionInput

// double ThreadL = 1;
void ConversionInput::clear_threadl() {
  threadl_ = 0;
}
double ConversionInput::threadl() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.ConversionInput.ThreadL)
  return threadl_;
}
void ConversionInput::set_threadl(double value) {
  
  threadl_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.ConversionInput.ThreadL)
}

// double ThreadA = 2;
void ConversionInput::clear_threada() {
  threada_ = 0;
}
double ConversionInput::threada() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.ConversionInput.ThreadA)
  return threada_;
}
void ConversionInput::set_threada(double value) {
  
  threada_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.ConversionInput.ThreadA)
}

// double ThreadB = 3;
void ConversionInput::clear_threadb() {
  threadb_ = 0;
}
double ConversionInput::threadb() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.ConversionInput.ThreadB)
  return threadb_;
}
void ConversionInput::set_threadb(double value) {
  
  threadb_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.ConversionInput.ThreadB)
}

// .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4;
void ConversionInput::clear_colorspace() {
  colorspace_ = 0;
}
::Tango::PMR::ColorLab::ColorSpace ConversionInput::colorspace() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.ConversionInput.ColorSpace)
  return static_cast< ::Tango::PMR::ColorLab::ColorSpace >(colorspace_);
}
void ConversionInput::set_colorspace(::Tango::PMR::ColorLab::ColorSpace value) {
  
  colorspace_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.ConversionInput.ColorSpace)
}

// .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5;
bool ConversionInput::has_inputcoordinates() const {
  return this != internal_default_instance() && inputcoordinates_ != NULL;
}
void ConversionInput::clear_inputcoordinates() {
  if (GetArenaNoVirtual() == NULL && inputcoordinates_ != NULL) delete inputcoordinates_;
  inputcoordinates_ = NULL;
}
const ::Tango::PMR::ColorLab::InputCoordinates& ConversionInput::inputcoordinates() const {
  const ::Tango::PMR::ColorLab::InputCoordinates* p = inputcoordinates_;
  // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.ConversionInput.InputCoordinates)
  return p != NULL ? *p : *reinterpret_cast<const ::Tango::PMR::ColorLab::InputCoordinates*>(
      &::Tango::PMR::ColorLab::_InputCoordinates_default_instance_);
}
::Tango::PMR::ColorLab::InputCoordinates* ConversionInput::mutable_inputcoordinates() {
  
  if (inputcoordinates_ == NULL) {
    inputcoordinates_ = new ::Tango::PMR::ColorLab::InputCoordinates;
  }
  // @@protoc_insertion_point(field_mutable:Tango.PMR.ColorLab.ConversionInput.InputCoordinates)
  return inputcoordinates_;
}
::Tango::PMR::ColorLab::InputCoordinates* ConversionInput::release_inputcoordinates() {
  // @@protoc_insertion_point(field_release:Tango.PMR.ColorLab.ConversionInput.InputCoordinates)
  
  ::Tango::PMR::ColorLab::InputCoordinates* temp = inputcoordinates_;
  inputcoordinates_ = NULL;
  return temp;
}
void ConversionInput::set_allocated_inputcoordinates(::Tango::PMR::ColorLab::InputCoordinates* inputcoordinates) {
  delete inputcoordinates_;
  inputcoordinates_ = inputcoordinates;
  if (inputcoordinates) {
    
  } else {
    
  }
  // @@protoc_insertion_point(field_set_allocated:Tango.PMR.ColorLab.ConversionInput.InputCoordinates)
}

// bytes ForwardData = 6;
void ConversionInput::clear_forwarddata() {
  forwarddata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& ConversionInput::forwarddata() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.ConversionInput.ForwardData)
  return forwarddata_.GetNoArena();
}
void ConversionInput::set_forwarddata(const ::std::string& value) {
  
  forwarddata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.ConversionInput.ForwardData)
}
#if LANG_CXX11
void ConversionInput::set_forwarddata(::std::string&& value) {
  
  forwarddata_.SetNoArena(
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.ColorLab.ConversionInput.ForwardData)
}
#endif
void ConversionInput::set_forwarddata(const char* value) {
  GOOGLE_DCHECK(value != NULL);
  
  forwarddata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:Tango.PMR.ColorLab.ConversionInput.ForwardData)
}
void ConversionInput::set_forwarddata(const void* value, size_t size) {
  
  forwarddata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:Tango.PMR.ColorLab.ConversionInput.ForwardData)
}
::std::string* ConversionInput::mutable_forwarddata() {
  
  // @@protoc_insertion_point(field_mutable:Tango.PMR.ColorLab.ConversionInput.ForwardData)
  return forwarddata_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* ConversionInput::release_forwarddata() {
  // @@protoc_insertion_point(field_release:Tango.PMR.ColorLab.ConversionInput.ForwardData)
  
  return forwarddata_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void ConversionInput::set_allocated_forwarddata(::std::string* forwarddata) {
  if (forwarddata != NULL) {
    
  } else {
    
  }
  forwarddata_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), forwarddata);
  // @@protoc_insertion_point(field_set_allocated:Tango.PMR.ColorLab.ConversionInput.ForwardData)
}

// bytes InverseData = 7;
void ConversionInput::clear_inversedata() {
  inversedata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& ConversionInput::inversedata() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.ConversionInput.InverseData)
  return inversedata_.GetNoArena();
}
void ConversionInput::set_inversedata(const ::std::string& value) {
  
  inversedata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.ConversionInput.InverseData)
}
#if LANG_CXX11
void ConversionInput::set_inversedata(::std::string&& value) {
  
  inversedata_.SetNoArena(
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.ColorLab.ConversionInput.InverseData)
}
#endif
void ConversionInput::set_inversedata(const char* value) {
  GOOGLE_DCHECK(value != NULL);
  
  inversedata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:Tango.PMR.ColorLab.ConversionInput.InverseData)
}
void ConversionInput::set_inversedata(const void* value, size_t size) {
  
  inversedata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:Tango.PMR.ColorLab.ConversionInput.InverseData)
}
::std::string* ConversionInput::mutable_inversedata() {
  
  // @@protoc_insertion_point(field_mutable:Tango.PMR.ColorLab.ConversionInput.InverseData)
  return inversedata_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* ConversionInput::release_inversedata() {
  // @@protoc_insertion_point(field_release:Tango.PMR.ColorLab.ConversionInput.InverseData)
  
  return inversedata_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void ConversionInput::set_allocated_inversedata(::std::string* inversedata) {
  if (inversedata != NULL) {
    
  } else {
    
  }
  inversedata_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), inversedata);
  // @@protoc_insertion_point(field_set_allocated:Tango.PMR.ColorLab.ConversionInput.InverseData)
}

// double SegmentLength = 8;
void ConversionInput::clear_segmentlength() {
  segmentlength_ = 0;
}
double ConversionInput::segmentlength() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.ConversionInput.SegmentLength)
  return segmentlength_;
}
void ConversionInput::set_segmentlength(double value) {
  
  segmentlength_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.ConversionInput.SegmentLength)
}

// double DeltaChroma = 9;
void ConversionInput::clear_deltachroma() {
  deltachroma_ = 0;
}
double ConversionInput::deltachroma() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.ConversionInput.DeltaChroma)
  return deltachroma_;
}
void ConversionInput::set_deltachroma(double value) {
  
  deltachroma_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.ConversionInput.DeltaChroma)
}

// double DeltaL = 10;
void ConversionInput::clear_deltal() {
  deltal_ = 0;
}
double ConversionInput::deltal() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.ColorLab.ConversionInput.DeltaL)
  return deltal_;
}
void ConversionInput::set_deltal(double value) {
  
  deltal_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.ColorLab.ConversionInput.DeltaL)
}

#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS

// @@protoc_insertion_point(namespace_scope)

}  // namespace ColorLab
}  // namespace PMR
}  // namespace Tango

// @@protoc_insertion_point(global_scope)