aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItem.cs
blob: a9de336a1c4f25e1f5b74e1a8f22fecb5eb8e5db (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.PPC.Common.Notifications.NotificationItems
{
    /// <summary>
    /// Represents a simple text message notification item which can be inserted into the application notifications panel.
    /// </summary>
    /// <seealso cref="Tango.PPC.Common.Notifications.NotificationItem" />
    public class MessageNotificationItem : NotificationItem
    {
        /// <summary>
        /// Represents the available message notification types.
        /// </summary>
        public enum MessageNotificationItemTypes
        {
            Info,
            Success,
            Warning,
            Error,
            Critical,
        }

        private String _message;
        /// <summary>
        /// Gets or sets the message.
        /// </summary>
        public String Message
        {
            get { return _message; }
            set { _message = value; RaisePropertyChangedAuto(); }
        }

        private String _expandedMessage;
        /// <summary>
        /// Gets or sets the extra message when the notification panel is expanded.
        /// </summary>
        public String ExpandedMessage
        {
            get { return _expandedMessage; }
            set { _expandedMessage = value; RaisePropertyChangedAuto(); }
        }

        private MessageNotificationItemTypes _messageType;
        /// <summary>
        /// Gets or sets the type of the message.
        /// </summary>
        public MessageNotificationItemTypes MessageType
        {
            get { return _messageType; }
            set { _messageType = value; RaisePropertyChangedAuto(); }
        }

        /// <summary>
        /// Gets or sets the view type.
        /// </summary>
        public override Type ViewType
        {
            get { return typeof(MessageNotificationItemView); }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MessageNotificationItem"/> class.
        /// </summary>
        public MessageNotificationItem() : base()
        {

        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MessageNotificationItem"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="expandedMessage">The expanded message.</param>
        /// <param name="type">The type.</param>
        /// <param name="pressedAction">The pressed action.</param>
        public MessageNotificationItem(String message, String expandedMessage, MessageNotificationItemTypes type, Action pressedAction) : this()
        {
            Message = message;
            ExpandedMessage = expandedMessage;
            MessageType = type;
            Pressed += (_, __) => pressedAction?.Invoke();
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MessageNotificationItem"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="type">The type.</param>
        /// <param name="pressedAction">The pressed action.</param>
        public MessageNotificationItem(String message, MessageNotificationItemTypes type, Action pressedAction) : this(message, null, type, pressedAction)
        {

        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MessageNotificationItem"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="expandedMessage">The expanded message.</param>
        /// <param name="type">The type.</param>
        public MessageNotificationItem(String message, String expandedMessage, MessageNotificationItemTypes type) : this(message, expandedMessage, type, null)
        {

        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MessageNotificationItem"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="type">The type.</param>
        public MessageNotificationItem(String message, MessageNotificationItemTypes type) : this(message, null, type)
        {

        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MessageNotificationItem"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        public MessageNotificationItem(String message) : this(message, MessageNotificationItemTypes.Info)
        {

        }
    }
}
#888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: StartDebugLogResponse.proto

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "StartDebugLogResponse.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 Debugging {
class StartDebugLogResponseDefaultTypeInternal {
public:
 ::google::protobuf::internal::ExplicitlyConstructed<StartDebugLogResponse>
     _instance;
} _StartDebugLogResponse_default_instance_;

namespace protobuf_StartDebugLogResponse_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(StartDebugLogResponse, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartDebugLogResponse, category_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartDebugLogResponse, filename_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartDebugLogResponse, linenumber_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartDebugLogResponse, filter_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartDebugLogResponse, message_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartDebugLogResponse, moduleid_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, sizeof(StartDebugLogResponse)},
};

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

namespace {

void protobuf_AssignDescriptors() {
  AddDescriptors();
  ::google::protobuf::MessageFactory* factory = NULL;
  AssignDescriptors(
      "StartDebugLogResponse.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::Debugging::protobuf_DebugLogCategory_2eproto::InitDefaults();
  _StartDebugLogResponse_default_instance_._instance.DefaultConstruct();
  ::google::protobuf::internal::OnShutdownDestroyMessage(
      &_StartDebugLogResponse_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\033StartDebugLogResponse.proto\022\023Tango.PMR"
      ".Debugging\032\026DebugLogCategory.proto\"\251\001\n\025S"
      "tartDebugLogResponse\0227\n\010Category\030\001 \001(\0162%"
      ".Tango.PMR.Debugging.DebugLogCategory\022\020\n"
      "\010FileName\030\002 \001(\t\022\022\n\nLineNumber\030\003 \001(\r\022\016\n\006F"
      "ilter\030\004 \001(\r\022\017\n\007Message\030\005 \001(\t\022\020\n\010ModuleId"
      "\030\006 \001(\rB\037\n\035com.twine.tango.pmr.debuggingb"
      "\006proto3"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 287);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "StartDebugLogResponse.proto", &protobuf_RegisterTypes);
  ::Tango::PMR::Debugging::protobuf_DebugLogCategory_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_StartDebugLogResponse_2eproto


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

#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int StartDebugLogResponse::kCategoryFieldNumber;
const int StartDebugLogResponse::kFileNameFieldNumber;
const int StartDebugLogResponse::kLineNumberFieldNumber;
const int StartDebugLogResponse::kFilterFieldNumber;
const int StartDebugLogResponse::kMessageFieldNumber;
const int StartDebugLogResponse::kModuleIdFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

StartDebugLogResponse::StartDebugLogResponse()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    protobuf_StartDebugLogResponse_2eproto::InitDefaults();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Tango.PMR.Debugging.StartDebugLogResponse)
}
StartDebugLogResponse::StartDebugLogResponse(const StartDebugLogResponse& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.filename().size() > 0) {
    filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_);
  }
  message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.message().size() > 0) {
    message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
  }
  ::memcpy(&category_, &from.category_,
    static_cast<size_t>(reinterpret_cast<char*>(&moduleid_) -
    reinterpret_cast<char*>(&category_)) + sizeof(moduleid_));
  // @@protoc_insertion_point(copy_constructor:Tango.PMR.Debugging.StartDebugLogResponse)
}

void StartDebugLogResponse::SharedCtor() {
  filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  ::memset(&category_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&moduleid_) -
      reinterpret_cast<char*>(&category_)) + sizeof(moduleid_));
  _cached_size_ = 0;
}

StartDebugLogResponse::~StartDebugLogResponse() {
  // @@protoc_insertion_point(destructor:Tango.PMR.Debugging.StartDebugLogResponse)
  SharedDtor();
}

void StartDebugLogResponse::SharedDtor() {
  filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

const StartDebugLogResponse& StartDebugLogResponse::default_instance() {
  protobuf_StartDebugLogResponse_2eproto::InitDefaults();
  return *internal_default_instance();
}

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

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

  filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  ::memset(&category_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&moduleid_) -
      reinterpret_cast<char*>(&category_)) + sizeof(moduleid_));
  _internal_metadata_.Clear();
}

bool StartDebugLogResponse::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.Debugging.StartDebugLogResponse)
  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)) {
      // .Tango.PMR.Debugging.DebugLogCategory Category = 1;
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
          int value;
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
                 input, &value)));
          set_category(static_cast< ::Tango::PMR::Debugging::DebugLogCategory >(value));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // string FileName = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_filename()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->filename().data(), static_cast<int>(this->filename().length()),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "Tango.PMR.Debugging.StartDebugLogResponse.FileName"));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // uint32 LineNumber = 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::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
                 input, &linenumber_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // uint32 Filter = 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::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
                 input, &filter_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // string Message = 5;
      case 5: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_message()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->message().data(), static_cast<int>(this->message().length()),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "Tango.PMR.Debugging.StartDebugLogResponse.Message"));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // uint32 ModuleId = 6;
      case 6: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
                 input, &moduleid_)));
        } 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.Debugging.StartDebugLogResponse)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Tango.PMR.Debugging.StartDebugLogResponse)
  return false;
#undef DO_
}

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

  // .Tango.PMR.Debugging.DebugLogCategory Category = 1;
  if (this->category() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
      1, this->category(), output);
  }

  // string FileName = 2;
  if (this->filename().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->filename().data(), static_cast<int>(this->filename().length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "Tango.PMR.Debugging.StartDebugLogResponse.FileName");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      2, this->filename(), output);
  }

  // uint32 LineNumber = 3;
  if (this->linenumber() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->linenumber(), output);
  }

  // uint32 Filter = 4;
  if (this->filter() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->filter(), output);
  }

  // string Message = 5;
  if (this->message().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->message().data(), static_cast<int>(this->message().length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "Tango.PMR.Debugging.StartDebugLogResponse.Message");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      5, this->message(), output);
  }

  // uint32 ModuleId = 6;
  if (this->moduleid() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->moduleid(), 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.Debugging.StartDebugLogResponse)
}

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

  // .Tango.PMR.Debugging.DebugLogCategory Category = 1;
  if (this->category() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
      1, this->category(), target);
  }

  // string FileName = 2;
  if (this->filename().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->filename().data(), static_cast<int>(this->filename().length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "Tango.PMR.Debugging.StartDebugLogResponse.FileName");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        2, this->filename(), target);
  }

  // uint32 LineNumber = 3;
  if (this->linenumber() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->linenumber(), target);
  }

  // uint32 Filter = 4;
  if (this->filter() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->filter(), target);
  }

  // string Message = 5;
  if (this->message().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->message().data(), static_cast<int>(this->message().length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "Tango.PMR.Debugging.StartDebugLogResponse.Message");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        5, this->message(), target);
  }

  // uint32 ModuleId = 6;
  if (this->moduleid() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->moduleid(), 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.Debugging.StartDebugLogResponse)
  return target;
}

size_t StartDebugLogResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Debugging.StartDebugLogResponse)
  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()));
  }
  // string FileName = 2;
  if (this->filename().size() > 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->filename());
  }

  // string Message = 5;
  if (this->message().size() > 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->message());
  }

  // .Tango.PMR.Debugging.DebugLogCategory Category = 1;
  if (this->category() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->category());
  }

  // uint32 LineNumber = 3;
  if (this->linenumber() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->linenumber());
  }

  // uint32 Filter = 4;
  if (this->filter() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->filter());
  }

  // uint32 ModuleId = 6;
  if (this->moduleid() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->moduleid());
  }

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

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

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

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

    message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
  }
  if (from.category() != 0) {
    set_category(from.category());
  }
  if (from.linenumber() != 0) {
    set_linenumber(from.linenumber());
  }
  if (from.filter() != 0) {
    set_filter(from.filter());
  }
  if (from.moduleid() != 0) {
    set_moduleid(from.moduleid());
  }
}

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

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

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

void StartDebugLogResponse::Swap(StartDebugLogResponse* other) {
  if (other == this) return;
  InternalSwap(other);
}
void StartDebugLogResponse::InternalSwap(StartDebugLogResponse* other) {
  using std::swap;
  filename_.Swap(&other->filename_);
  message_.Swap(&other->message_);
  swap(category_, other->category_);
  swap(linenumber_, other->linenumber_);
  swap(filter_, other->filter_);
  swap(moduleid_, other->moduleid_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

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

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// StartDebugLogResponse

// .Tango.PMR.Debugging.DebugLogCategory Category = 1;
void StartDebugLogResponse::clear_category() {
  category_ = 0;
}
::Tango::PMR::Debugging::DebugLogCategory StartDebugLogResponse::category() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Debugging.StartDebugLogResponse.Category)
  return static_cast< ::Tango::PMR::Debugging::DebugLogCategory >(category_);
}
void StartDebugLogResponse::set_category(::Tango::PMR::Debugging::DebugLogCategory value) {
  
  category_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Debugging.StartDebugLogResponse.Category)
}

// string FileName = 2;
void StartDebugLogResponse::clear_filename() {
  filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& StartDebugLogResponse::filename() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Debugging.StartDebugLogResponse.FileName)
  return filename_.GetNoArena();
}
void StartDebugLogResponse::set_filename(const ::std::string& value) {
  
  filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:Tango.PMR.Debugging.StartDebugLogResponse.FileName)
}
#if LANG_CXX11
void StartDebugLogResponse::set_filename(::std::string&& value) {
  
  filename_.SetNoArena(
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Debugging.StartDebugLogResponse.FileName)
}
#endif
void StartDebugLogResponse::set_filename(const char* value) {
  GOOGLE_DCHECK(value != NULL);
  
  filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:Tango.PMR.Debugging.StartDebugLogResponse.FileName)
}
void StartDebugLogResponse::set_filename(const char* value, size_t size) {
  
  filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Debugging.StartDebugLogResponse.FileName)
}
::std::string* StartDebugLogResponse::mutable_filename() {
  
  // @@protoc_insertion_point(field_mutable:Tango.PMR.Debugging.StartDebugLogResponse.FileName)
  return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* StartDebugLogResponse::release_filename() {
  // @@protoc_insertion_point(field_release:Tango.PMR.Debugging.StartDebugLogResponse.FileName)
  
  return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void StartDebugLogResponse::set_allocated_filename(::std::string* filename) {
  if (filename != NULL) {
    
  } else {
    
  }
  filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename);
  // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Debugging.StartDebugLogResponse.FileName)
}

// uint32 LineNumber = 3;
void StartDebugLogResponse::clear_linenumber() {
  linenumber_ = 0u;
}
::google::protobuf::uint32 StartDebugLogResponse::linenumber() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Debugging.StartDebugLogResponse.LineNumber)
  return linenumber_;
}
void StartDebugLogResponse::set_linenumber(::google::protobuf::uint32 value) {
  
  linenumber_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Debugging.StartDebugLogResponse.LineNumber)
}

// uint32 Filter = 4;
void StartDebugLogResponse::clear_filter() {
  filter_ = 0u;
}
::google::protobuf::uint32 StartDebugLogResponse::filter() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Debugging.StartDebugLogResponse.Filter)
  return filter_;
}
void StartDebugLogResponse::set_filter(::google::protobuf::uint32 value) {
  
  filter_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Debugging.StartDebugLogResponse.Filter)
}

// string Message = 5;
void StartDebugLogResponse::clear_message() {
  message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& StartDebugLogResponse::message() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Debugging.StartDebugLogResponse.Message)
  return message_.GetNoArena();
}
void StartDebugLogResponse::set_message(const ::std::string& value) {
  
  message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:Tango.PMR.Debugging.StartDebugLogResponse.Message)
}
#if LANG_CXX11
void StartDebugLogResponse::set_message(::std::string&& value) {
  
  message_.SetNoArena(
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Debugging.StartDebugLogResponse.Message)
}
#endif
void StartDebugLogResponse::set_message(const char* value) {
  GOOGLE_DCHECK(value != NULL);
  
  message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:Tango.PMR.Debugging.StartDebugLogResponse.Message)
}
void StartDebugLogResponse::set_message(const char* value, size_t size) {
  
  message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Debugging.StartDebugLogResponse.Message)
}
::std::string* StartDebugLogResponse::mutable_message() {
  
  // @@protoc_insertion_point(field_mutable:Tango.PMR.Debugging.StartDebugLogResponse.Message)
  return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* StartDebugLogResponse::release_message() {
  // @@protoc_insertion_point(field_release:Tango.PMR.Debugging.StartDebugLogResponse.Message)
  
  return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void StartDebugLogResponse::set_allocated_message(::std::string* message) {
  if (message != NULL) {
    
  } else {
    
  }
  message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message);
  // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Debugging.StartDebugLogResponse.Message)
}

// uint32 ModuleId = 6;
void StartDebugLogResponse::clear_moduleid() {
  moduleid_ = 0u;
}
::google::protobuf::uint32 StartDebugLogResponse::moduleid() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Debugging.StartDebugLogResponse.ModuleId)
  return moduleid_;
}
void StartDebugLogResponse::set_moduleid(::google::protobuf::uint32 value) {
  
  moduleid_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Debugging.StartDebugLogResponse.ModuleId)
}

#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS

// @@protoc_insertion_point(namespace_scope)

}  // namespace Debugging
}  // namespace PMR
}  // namespace Tango

// @@protoc_insertion_point(global_scope)