aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/Connection/ConnectRequest.cs
blob: 27d5d6cb2b943539bfafb3c5d67776f99d6fcc99 (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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ConnectRequest.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code

using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Tango.PMR.Connection {

  /// <summary>Holder for reflection information generated from ConnectRequest.proto</summary>
  public static partial class ConnectRequestReflection {

    #region Descriptor
    /// <summary>File descriptor for ConnectRequest.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static ConnectRequestReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChRDb25uZWN0UmVxdWVzdC5wcm90bxIUVGFuZ28uUE1SLkNvbm5lY3Rpb24a",
            "EkpvYlNwb29sVHlwZS5wcm90bxoRTWFjaGluZVR5cGUucHJvdG8iwgEKDkNv",
            "bm5lY3RSZXF1ZXN0EhAKCFBhc3N3b3JkGAEgASgJEhAKCFVuaXhUaW1lGAIg",
            "ASgDEjMKCVNwb29sVHlwZRgDIAEoDjIgLlRhbmdvLlBNUi5QcmludGluZy5K",
            "b2JTcG9vbFR5cGUSMgoLTWFjaGluZVR5cGUYBCABKA4yHS5UYW5nby5QTVIu",
            "Q29tbW9uLk1hY2hpbmVUeXBlEiMKG1N1cHBvcnRzNjRCaXREaXNwZW5zZXJM",
            "ZXZlbBgFIAEoCEIgCh5jb20udHdpbmUudGFuZ28ucG1yLmNvbm5lY3Rpb25i",
            "BnByb3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Tango.PMR.Printing.JobSpoolTypeReflection.Descriptor, global::Tango.PMR.Common.MachineTypeReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Connection.ConnectRequest), global::Tango.PMR.Connection.ConnectRequest.Parser, new[]{ "Password", "UnixTime", "SpoolType", "MachineType", "Supports64BitDispenserLevel" }, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  public sealed partial class ConnectRequest : pb::IMessage<ConnectRequest> {
    private static readonly pb::MessageParser<ConnectRequest> _parser = new pb::MessageParser<ConnectRequest>(() => new ConnectRequest());
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pb::MessageParser<ConnectRequest> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Tango.PMR.Connection.ConnectRequestReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public ConnectRequest() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public ConnectRequest(ConnectRequest other) : this() {
      password_ = other.password_;
      unixTime_ = other.unixTime_;
      spoolType_ = other.spoolType_;
      machineType_ = other.machineType_;
      supports64BitDispenserLevel_ = other.supports64BitDispenserLevel_;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public ConnectRequest Clone() {
      return new ConnectRequest(this);
    }

    /// <summary>Field number for the "Password" field.</summary>
    public const int PasswordFieldNumber = 1;
    private string password_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public string Password {
      get { return password_; }
      set {
        password_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "UnixTime" field.</summary>
    public const int UnixTimeFieldNumber = 2;
    private long unixTime_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public long UnixTime {
      get { return unixTime_; }
      set {
        unixTime_ = value;
      }
    }

    /// <summary>Field number for the "SpoolType" field.</summary>
    public const int SpoolTypeFieldNumber = 3;
    private global::Tango.PMR.Printing.JobSpoolType spoolType_ = 0;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public global::Tango.PMR.Printing.JobSpoolType SpoolType {
      get { return spoolType_; }
      set {
        spoolType_ = value;
      }
    }

    /// <summary>Field number for the "MachineType" field.</summary>
    public const int MachineTypeFieldNumber = 4;
    private global::Tango.PMR.Common.MachineType machineType_ = 0;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public global::Tango.PMR.Common.MachineType MachineType {
      get { return machineType_; }
      set {
        machineType_ = value;
      }
    }

    /// <summary>Field number for the "Supports64BitDispenserLevel" field.</summary>
    public const int Supports64BitDispenserLevelFieldNumber = 5;
    private bool supports64BitDispenserLevel_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool Supports64BitDispenserLevel {
      get { return supports64BitDispenserLevel_; }
      set {
        supports64BitDispenserLevel_ = value;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override bool Equals(object other) {
      return Equals(other as ConnectRequest);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool Equals(ConnectRequest other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Password != other.Password) return false;
      if (UnixTime != other.UnixTime) return false;
      if (SpoolType != other.SpoolType) return false;
      if (MachineType != other.MachineType) return false;
      if (Supports64BitDispenserLevel != other.Supports64BitDispenserLevel) return false;
      return true;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override int GetHashCode() {
      int hash = 1;
      if (Password.Length != 0) hash ^= Password.GetHashCode();
      if (UnixTime != 0L) hash ^= UnixTime.GetHashCode();
      if (SpoolType != 0) hash ^= SpoolType.GetHashCode();
      if (MachineType != 0) hash ^= MachineType.GetHashCode();
      if (Supports64BitDispenserLevel != false) hash ^= Supports64BitDispenserLevel.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 (Password.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Password);
      }
      if (UnixTime != 0L) {
        output.WriteRawTag(16);
        output.WriteInt64(UnixTime);
      }
      if (SpoolType != 0) {
        output.WriteRawTag(24);
        output.WriteEnum((int) SpoolType);
      }
      if (MachineType != 0) {
        output.WriteRawTag(32);
        output.WriteEnum((int) MachineType);
      }
      if (Supports64BitDispenserLevel != false) {
        output.WriteRawTag(40);
        output.WriteBool(Supports64BitDispenserLevel);
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int CalculateSize() {
      int size = 0;
      if (Password.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Password);
      }
      if (UnixTime != 0L) {
        size += 1 + pb::CodedOutputStream.ComputeInt64Size(UnixTime);
      }
      if (SpoolType != 0) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SpoolType);
      }
      if (MachineType != 0) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MachineType);
      }
      if (Supports64BitDispenserLevel != false) {
        size += 1 + 1;
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(ConnectRequest other) {
      if (other == null) {
        return;
      }
      if (other.Password.Length != 0) {
        Password = other.Password;
      }
      if (other.UnixTime != 0L) {
        UnixTime = other.UnixTime;
      }
      if (other.SpoolType != 0) {
        SpoolType = other.SpoolType;
      }
      if (other.MachineType != 0) {
        MachineType = other.MachineType;
      }
      if (other.Supports64BitDispenserLevel != false) {
        Supports64BitDispenserLevel = other.Supports64BitDispenserLevel;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            input.SkipLastField();
            break;
          case 10: {
            Password = input.ReadString();
            break;
          }
          case 16: {
            UnixTime = input.ReadInt64();
            break;
          }
          case 24: {
            spoolType_ = (global::Tango.PMR.Printing.JobSpoolType) input.ReadEnum();
            break;
          }
          case 32: {
            machineType_ = (global::Tango.PMR.Common.MachineType) input.ReadEnum();
            break;
          }
          case 40: {
            Supports64BitDispenserLevel = input.ReadBool();
            break;
          }
        }
      }
    }

  }

  #endregion

}

#endregion Designer generated code