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

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

#include "ConnectResponse.pb-c.h"
void   connect_response__init
                     (ConnectResponse         *message)
{
  static const ConnectResponse init_value = CONNECT_RESPONSE__INIT;
  *message = init_value;
}
size_t connect_response__get_packed_size
                     (const ConnectResponse *message)
{
  assert(message->base.descriptor == &connect_response__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t connect_response__pack
                     (const ConnectResponse *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &connect_response__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t connect_response__pack_to_buffer
                     (const ConnectResponse *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &connect_response__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
ConnectResponse *
       connect_response__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (ConnectResponse *)
     protobuf_c_message_unpack (&connect_response__descriptor,
                                allocator, len, data);
}
void   connect_response__free_unpacked
                     (ConnectResponse *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &connect_response__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor connect_response__field_descriptors[1] =
{
  {
    "DeviceInformation",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(ConnectResponse, deviceinformation),
    &device_information__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned connect_response__field_indices_by_name[] = {
  0,   /* field[0] = DeviceInformation */
};
static const ProtobufCIntRange connect_response__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 1 }
};
const ProtobufCMessageDescriptor connect_response__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "ConnectResponse",
  "ConnectResponse",
  "ConnectResponse",
  "",
  sizeof(ConnectResponse),
  1,
  connect_response__field_descriptors,
  connect_response__field_indices_by_name,
  1,  connect_response__number_ranges,
  (ProtobufCMessageInit) connect_response__init,
  NULL,NULL,NULL    /* reserved[123] */
};
an class="n">SpoolType> SpoolTypeChanged; protected String _spooltypeguid; /// <summary> /// Gets or sets the rmlsspoolbase spool type guid. /// </summary> [Column("SPOOL_TYPE_GUID")] [ForeignKey("SpoolType")] public String SpoolTypeGuid { get { return _spooltypeguid; } set { if (_spooltypeguid != value) { _spooltypeguid = value; } } } protected String _rmlguid; /// <summary> /// Gets or sets the rmlsspoolbase rml guid. /// </summary> [Column("RML_GUID")] [ForeignKey("Rml")] public String RmlGuid { get { return _rmlguid; } set { if (_rmlguid != value) { _rmlguid = value; } } } protected Nullable<Double> _rotationsperpassage; /// <summary> /// Gets or sets the rmlsspoolbase rotations per passage. /// </summary> [Column("ROTATIONS_PER_PASSAGE")] public Nullable<Double> RotationsPerPassage { get { return _rotationsperpassage; } set { if (_rotationsperpassage != value) { _rotationsperpassage = value; OnRotationsPerPassageChanged(value); } } } protected Nullable<Double> _length; /// <summary> /// Gets or sets the rmlsspoolbase length. /// </summary> [Column("LENGTH")] public Nullable<Double> Length { get { return _length; } set { if (_length != value) { _length = value; OnLengthChanged(value); } } } protected Nullable<Int32> _backingrate; /// <summary> /// Gets or sets the rmlsspoolbase backing rate. /// </summary> [Column("BACKING_RATE")] public Nullable<Int32> BackingRate { get { return _backingrate; } set { if (_backingrate != value) { _backingrate = value; OnBackingRateChanged(value); } } } protected Nullable<Int32> _bottombackingrate; /// <summary> /// Gets or sets the rmlsspoolbase bottom backing rate. /// </summary> [Column("BOTTOM_BACKING_RATE")] public Nullable<Int32> BottomBackingRate { get { return _bottombackingrate; } set { if (_bottombackingrate != value) { _bottombackingrate = value; OnBottomBackingRateChanged(value); } } } protected Nullable<Int32> _btsrspooltension; /// <summary> /// Gets or sets the rmlsspoolbase btsr spool tension. /// </summary> [Column("BTSR_SPOOL_TENSION")] public Nullable<Int32> BtsrSpoolTension { get { return _btsrspooltension; } set { if (_btsrspooltension != value) { _btsrspooltension = value; OnBtsrSpoolTensionChanged(value); } } } protected Rml _rml; /// <summary> /// Gets or sets the rmlsspoolbase rml. /// </summary> [XmlIgnore] [JsonIgnore] public virtual Rml Rml { get { return _rml; } set { if (_rml != value) { _rml = value; if (Rml != null) { RmlGuid = Rml.Guid; } OnRmlChanged(value); } } } protected SpoolType _spooltype; /// <summary> /// Gets or sets the rmlsspoolbase spool types. /// </summary> [XmlIgnore] [JsonIgnore] public virtual SpoolType SpoolType { get { return _spooltype; } set { if (_spooltype != value) { _spooltype = value; if (SpoolType != null) { SpoolTypeGuid = SpoolType.Guid; } OnSpoolTypeChanged(value); } } } /// <summary> /// Called when the RotationsPerPassage has changed. /// </summary> protected virtual void OnRotationsPerPassageChanged(Nullable<Double> rotationsperpassage) { RotationsPerPassageChanged?.Invoke(this, rotationsperpassage); RaisePropertyChanged(nameof(RotationsPerPassage)); } /// <summary> /// Called when the Length has changed. /// </summary> protected virtual void OnLengthChanged(Nullable<Double> length) { LengthChanged?.Invoke(this, length); RaisePropertyChanged(nameof(Length)); } /// <summary> /// Called when the BackingRate has changed. /// </summary> protected virtual void OnBackingRateChanged(Nullable<Int32> backingrate) { BackingRateChanged?.Invoke(this, backingrate); RaisePropertyChanged(nameof(BackingRate)); } /// <summary> /// Called when the BottomBackingRate has changed. /// </summary> protected virtual void OnBottomBackingRateChanged(Nullable<Int32> bottombackingrate) { BottomBackingRateChanged?.Invoke(this, bottombackingrate); RaisePropertyChanged(nameof(BottomBackingRate)); } /// <summary> /// Called when the BtsrSpoolTension has changed. /// </summary> protected virtual void OnBtsrSpoolTensionChanged(Nullable<Int32> btsrspooltension) { BtsrSpoolTensionChanged?.Invoke(this, btsrspooltension); RaisePropertyChanged(nameof(BtsrSpoolTension)); } /// <summary> /// Called when the Rml has changed. /// </summary> protected virtual void OnRmlChanged(Rml rml) { RmlChanged?.Invoke(this, rml); RaisePropertyChanged(nameof(Rml)); } /// <summary> /// Called when the SpoolType has changed. /// </summary> protected virtual void OnSpoolTypeChanged(SpoolType spooltype) { SpoolTypeChanged?.Invoke(this, spooltype); RaisePropertyChanged(nameof(SpoolType)); } /// <summary> /// Initializes a new instance of the <see cref="RmlsSpoolBase" /> class. /// </summary> public RmlsSpoolBase() : base() { } } }