aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/PMR/Debugging/StartDebugLogRequest.pb-c.c
blob: 4c9f854c8c9a16155715cf3028936694df422f09 (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: StartDebugLogRequest.proto */

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

#include "StartDebugLogRequest.pb-c.h"
void   start_debug_log_request__init
                     (StartDebugLogRequest         *message)
{
  static const StartDebugLogRequest init_value = START_DEBUG_LOG_REQUEST__INIT;
  *message = init_value;
}
size_t start_debug_log_request__get_packed_size
                     (const StartDebugLogRequest *message)
{
  assert(message->base.descriptor == &start_debug_log_request__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t start_debug_log_request__pack
                     (const StartDebugLogRequest *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &start_debug_log_request__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t start_debug_log_request__pack_to_buffer
                     (const StartDebugLogRequest *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &start_debug_log_request__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
StartDebugLogRequest *
       start_debug_log_request__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (StartDebugLogRequest *)
     protobuf_c_message_unpack (&start_debug_log_request__descriptor,
                                allocator, len, data);
}
void   start_debug_log_request__free_unpacked
                     (StartDebugLogRequest *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &start_debug_log_request__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
#define start_debug_log_request__field_descriptors NULL
#define start_debug_log_request__field_indices_by_name NULL
#define start_debug_log_request__number_ranges NULL
const ProtobufCMessageDescriptor start_debug_log_request__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "StartDebugLogRequest",
  "StartDebugLogRequest",
  "StartDebugLogRequest",
  "",
  sizeof(StartDebugLogRequest),
  0,
  start_debug_log_request__field_descriptors,
  start_debug_log_request__field_indices_by_name,
  0,  start_debug_log_request__number_ranges,
  (ProtobufCMessageInit) start_debug_log_request__init,
  NULL,NULL,NULL    /* reserved[123] */
};
s="k">new List<JobRunLiquidQuantity>(); } } return _liquidQuantities; } set { _liquidQuantities = value; if (_liquidQuantities != null) { LiquidQuantityString = JsonConvert.SerializeObject(_liquidQuantities); } } } private List<JobRunLiquidQuantity> _liquidQuantitiesFast; [NotMapped] [JsonIgnore] public List<JobRunLiquidQuantity> LiquidQuantitiesFast { get { if (_liquidQuantitiesFast == null) { _liquidQuantitiesFast = new List<JobRunLiquidQuantity>(); _liquidQuantitiesFast.Add(new JobRunLiquidQuantity() { LiquidType = LiquidTypes.Cyan, Quantity = CyanQuantity }); _liquidQuantitiesFast.Add(new JobRunLiquidQuantity() { LiquidType = LiquidTypes.Magenta, Quantity = MagentaQuantity }); _liquidQuantitiesFast.Add(new JobRunLiquidQuantity() { LiquidType = LiquidTypes.Yellow, Quantity = YellowQuantity }); _liquidQuantitiesFast.Add(new JobRunLiquidQuantity() { LiquidType = LiquidTypes.Black, Quantity = BlackQuantity }); _liquidQuantitiesFast.Add(new JobRunLiquidQuantity() { LiquidType = LiquidTypes.TransparentInk, Quantity = TransparentQuantity }); _liquidQuantitiesFast.Add(new JobRunLiquidQuantity() { LiquidType = LiquidTypes.Lubricant, Quantity = LubricantQuantity }); _liquidQuantitiesFast.Add(new JobRunLiquidQuantity() { LiquidType = LiquidTypes.Cleaner, Quantity = CleanerQuantity }); } return _liquidQuantitiesFast; } } private JobFile _jobFile; [NotMapped] [JsonIgnore] public JobFile JobFile { get { if (_jobFile == null && JobString != null) { _jobFile = JobFile.Parser.ParseJson(JobString); } return _jobFile; } set { _jobFile = value; } } public Task<Job> CreateAssociatedJob() { return Job.FromJobFile(JobFile, MachineGuid, UserGuid); } protected override void RaisePropertyChanged(string propName) { base.RaisePropertyChanged(propName); if (propName == nameof(Status)) { RaisePropertyChanged(nameof(JobRunStatus)); } } /// <summary> /// Initializes a new instance of the <see cref="JobRun" /> class. /// </summary> public JobRun() : base() { } } }