aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/PMR/Debugging/StopDebugLogRequest.pb-c.c
blob: 74194f1d3c44cc1ae9e5b8350485bef1ce4e208d (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
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: StopDebugLogRequest.proto */

/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif

#include "StopDebugLogRequest.pb-c.h"
void   stop_debug_log_request__init
                     (StopDebugLogRequest         *message)
{
  static const StopDebugLogRequest init_value = STOP_DEBUG_LOG_REQUEST__INIT;
  *message = init_value;
}
size_t stop_debug_log_request__get_packed_size
                     (const StopDebugLogRequest *message)
{
  assert(message->base.descriptor == &stop_debug_log_request__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t stop_debug_log_request__pack
                     (const StopDebugLogRequest *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &stop_debug_log_request__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t stop_debug_log_request__pack_to_buffer
                     (const StopDebugLogRequest *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &stop_debug_log_request__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
StopDebugLogRequest *
       stop_debug_log_request__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (StopDebugLogRequest *)
     protobuf_c_message_unpack (&stop_debug_log_request__descriptor,
                                allocator, len, data);
}
void   stop_debug_log_request__free_unpacked
                     (StopDebugLogRequest *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &stop_debug_log_request__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
#define stop_debug_log_request__field_descriptors NULL
#define stop_debug_log_request__field_indices_by_name NULL
#define stop_debug_log_request__number_ranges NULL
const ProtobufCMessageDescriptor stop_debug_log_request__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "StopDebugLogRequest",
  "StopDebugLogRequest",
  "StopDebugLogRequest",
  "",
  sizeof(StopDebugLogRequest),
  0,
  stop_debug_log_request__field_descriptors,
  stop_debug_log_request__field_indices_by_name,
  0,  stop_debug_log_request__number_ranges,
  (ProtobufCMessageInit) stop_debug_log_request__init,
  NULL,NULL,NULL    /* reserved[123] */
};
>= global::System.Convert.FromBase64String( string.Concat( "ChZEZWJ1Z0xvZ1Jlc3BvbnNlLnByb3RvEhNUYW5nby5QTVIuRGVidWdnaW5n", "GhZEZWJ1Z0xvZ0NhdGVnb3J5LnByb3RvIqQBChBEZWJ1Z0xvZ1Jlc3BvbnNl", "EjcKCENhdGVnb3J5GAEgASgOMiUuVGFuZ28uUE1SLkRlYnVnZ2luZy5EZWJ1", "Z0xvZ0NhdGVnb3J5EhAKCEZpbGVOYW1lGAIgASgJEhIKCkxpbmVOdW1iZXIY", "AyABKA0SDgoGRmlsdGVyGAQgASgNEg8KB01lc3NhZ2UYBSABKAkSEAoITW9k", "dWxlSWQYBiABKA1CHwodY29tLnR3aW5lLnRhbmdvLnBtci5kZWJ1Z2dpbmdi", "BnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Debugging.DebugLogCategoryReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Debugging.DebugLogResponse), global::Tango.PMR.Debugging.DebugLogResponse.Parser, new[]{ "Category", "FileName", "LineNumber", "Filter", "Message", "ModuleId" }, null, null, null) })); } #endregion } #region Messages public sealed partial class DebugLogResponse : pb::IMessage<DebugLogResponse> { private static readonly pb::MessageParser<DebugLogResponse> _parser = new pb::MessageParser<DebugLogResponse>(() => new DebugLogResponse()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser<DebugLogResponse> Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tango.PMR.Debugging.DebugLogResponseReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public DebugLogResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public DebugLogResponse(DebugLogResponse other) : this() { category_ = other.category_; fileName_ = other.fileName_; lineNumber_ = other.lineNumber_; filter_ = other.filter_; message_ = other.message_; moduleId_ = other.moduleId_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public DebugLogResponse Clone() { return new DebugLogResponse(this); } /// <summary>Field number for the "Category" field.</summary> public const int CategoryFieldNumber = 1; private global::Tango.PMR.Debugging.DebugLogCategory category_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Debugging.DebugLogCategory Category { get { return category_; } set { category_ = value; } } /// <summary>Field number for the "FileName" field.</summary> public const int FileNameFieldNumber = 2; private string fileName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FileName { get { return fileName_; } set { fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// <summary>Field number for the "LineNumber" field.</summary> public const int LineNumberFieldNumber = 3; private uint lineNumber_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint LineNumber { get { return lineNumber_; } set { lineNumber_ = value; } } /// <summary>Field number for the "Filter" field.</summary> public const int FilterFieldNumber = 4; private uint filter_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Filter { get { return filter_; } set { filter_ = value; } } /// <summary>Field number for the "Message" field.</summary> public const int MessageFieldNumber = 5; private string message_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// <summary>Field number for the "ModuleId" field.</summary> public const int ModuleIdFieldNumber = 6; private uint moduleId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint ModuleId { get { return moduleId_; } set { moduleId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as DebugLogResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(DebugLogResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Category != other.Category) return false; if (FileName != other.FileName) return false; if (LineNumber != other.LineNumber) return false; if (Filter != other.Filter) return false; if (Message != other.Message) return false; if (ModuleId != other.ModuleId) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Category != 0) hash ^= Category.GetHashCode(); if (FileName.Length != 0) hash ^= FileName.GetHashCode(); if (LineNumber != 0) hash ^= LineNumber.GetHashCode(); if (Filter != 0) hash ^= Filter.GetHashCode(); if (Message.Length != 0) hash ^= Message.GetHashCode(); if (ModuleId != 0) hash ^= ModuleId.GetHashCode(); return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (Category != 0) { output.WriteRawTag(8); output.WriteEnum((int) Category); } if (FileName.Length != 0) { output.WriteRawTag(18); output.WriteString(FileName); } if (LineNumber != 0) { output.WriteRawTag(24); output.WriteUInt32(LineNumber); } if (Filter != 0) { output.WriteRawTag(32); output.WriteUInt32(Filter); } if (Message.Length != 0) { output.WriteRawTag(42); output.WriteString(Message); } if (ModuleId != 0) { output.WriteRawTag(48); output.WriteUInt32(ModuleId); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Category != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category); } if (FileName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); } if (LineNumber != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LineNumber); } if (Filter != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Filter); } if (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (ModuleId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ModuleId); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(DebugLogResponse other) { if (other == null) { return; } if (other.Category != 0) { Category = other.Category; } if (other.FileName.Length != 0) { FileName = other.FileName; } if (other.LineNumber != 0) { LineNumber = other.LineNumber; } if (other.Filter != 0) { Filter = other.Filter; } if (other.Message.Length != 0) { Message = other.Message; } if (other.ModuleId != 0) { ModuleId = other.ModuleId; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { category_ = (global::Tango.PMR.Debugging.DebugLogCategory) input.ReadEnum(); break; } case 18: { FileName = input.ReadString(); break; } case 24: { LineNumber = input.ReadUInt32(); break; } case 32: { Filter = input.ReadUInt32(); break; } case 42: { Message = input.ReadString(); break; } case 48: { ModuleId = input.ReadUInt32(); break; } } } } } #endregion } #endregion Designer generated code