blob: c8867d0e259c03bc809665811e5dc5b63c4b26ea [file] [log] [blame]
Jon Skeet62a4aa52015-07-14 14:26:49 +01001// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: google/protobuf/wrappers.proto
3#pragma warning disable 1591, 0612, 3021
4#region Designer generated code
5
6using pb = global::Google.Protobuf;
7using pbc = global::Google.Protobuf.Collections;
8using pbr = global::Google.Protobuf.Reflection;
9using scg = global::System.Collections.Generic;
10namespace Google.Protobuf.WellKnownTypes {
11
Jon Skeetb0888a42015-09-29 13:37:30 +010012 /// <summary>Holder for reflection information generated from google/protobuf/wrappers.proto</summary>
Jon Skeete2c82302015-09-29 14:34:31 +010013 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet284bb452015-11-05 09:13:53 +000014 public static partial class WrappersReflection {
Jon Skeet62a4aa52015-07-14 14:26:49 +010015
Jon Skeet62a4aa52015-07-14 14:26:49 +010016 #region Descriptor
Jon Skeetb0888a42015-09-29 13:37:30 +010017 /// <summary>File descriptor for google/protobuf/wrappers.proto</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +010018 public static pbr::FileDescriptor Descriptor {
19 get { return descriptor; }
20 }
21 private static pbr::FileDescriptor descriptor;
22
Jon Skeet284bb452015-11-05 09:13:53 +000023 static WrappersReflection() {
Jon Skeet62a4aa52015-07-14 14:26:49 +010024 byte[] descriptorData = global::System.Convert.FromBase64String(
25 string.Concat(
Jon Skeet94898172015-09-01 15:47:48 +010026 "Ch5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8SD2dvb2dsZS5wcm90",
27 "b2J1ZiIcCgtEb3VibGVWYWx1ZRINCgV2YWx1ZRgBIAEoASIbCgpGbG9hdFZh",
28 "bHVlEg0KBXZhbHVlGAEgASgCIhsKCkludDY0VmFsdWUSDQoFdmFsdWUYASAB",
29 "KAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1",
30 "ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEo",
31 "DSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUS",
Jon Skeetc588ac42016-04-20 17:19:42 +010032 "DQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEJ/",
33 "ChNjb20uZ29vZ2xlLnByb3RvYnVmQg1XcmFwcGVyc1Byb3RvUAFaKmdpdGh1",
34 "Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy93cmFwcGVyc6ABAfgBAaIC",
35 "A0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z"));
Jon Skeeta2667aa2015-11-19 17:14:23 +000036 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
Jon Skeet96cffaa2015-07-20 19:25:07 +010037 new pbr::FileDescriptor[] { },
Jon Skeetb6159962016-02-04 07:08:55 +000038 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
39 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.DoubleValue), global::Google.Protobuf.WellKnownTypes.DoubleValue.Parser, new[]{ "Value" }, null, null, null),
40 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.FloatValue), global::Google.Protobuf.WellKnownTypes.FloatValue.Parser, new[]{ "Value" }, null, null, null),
41 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Int64Value), global::Google.Protobuf.WellKnownTypes.Int64Value.Parser, new[]{ "Value" }, null, null, null),
42 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.UInt64Value), global::Google.Protobuf.WellKnownTypes.UInt64Value.Parser, new[]{ "Value" }, null, null, null),
43 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Int32Value), global::Google.Protobuf.WellKnownTypes.Int32Value.Parser, new[]{ "Value" }, null, null, null),
44 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.UInt32Value), global::Google.Protobuf.WellKnownTypes.UInt32Value.Parser, new[]{ "Value" }, null, null, null),
45 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.BoolValue), global::Google.Protobuf.WellKnownTypes.BoolValue.Parser, new[]{ "Value" }, null, null, null),
46 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.StringValue), global::Google.Protobuf.WellKnownTypes.StringValue.Parser, new[]{ "Value" }, null, null, null),
47 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.BytesValue), global::Google.Protobuf.WellKnownTypes.BytesValue.Parser, new[]{ "Value" }, null, null, null)
Jon Skeet47bf49b2015-07-22 11:39:38 +010048 }));
Jon Skeet62a4aa52015-07-14 14:26:49 +010049 }
50 #endregion
51
52 }
53 #region Messages
Jon Skeet18e0a2e2015-10-01 10:38:01 +010054 /// <summary>
55 /// Wrapper message for `double`.
Jon Skeetcff900e2015-11-06 18:38:31 +000056 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +010057 /// The JSON representation for `DoubleValue` is JSON number.
58 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +010059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
60 public sealed partial class DoubleValue : pb::IMessage<DoubleValue> {
61 private static readonly pb::MessageParser<DoubleValue> _parser = new pb::MessageParser<DoubleValue>(() => new DoubleValue());
62 public static pb::MessageParser<DoubleValue> Parser { get { return _parser; } }
63
Jon Skeet62a4aa52015-07-14 14:26:49 +010064 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +000065 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[0]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +010066 }
67
Jon Skeet96cffaa2015-07-20 19:25:07 +010068 pbr::MessageDescriptor pb::IMessage.Descriptor {
69 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +010070 }
71
Jon Skeet62a4aa52015-07-14 14:26:49 +010072 public DoubleValue() {
73 OnConstruction();
74 }
75
76 partial void OnConstruction();
77
78 public DoubleValue(DoubleValue other) : this() {
79 value_ = other.value_;
80 }
81
82 public DoubleValue Clone() {
83 return new DoubleValue(this);
84 }
85
Jon Skeet18e0a2e2015-10-01 10:38:01 +010086 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +010087 public const int ValueFieldNumber = 1;
88 private double value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +010089 /// <summary>
90 /// The double value.
91 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +010092 public double Value {
93 get { return value_; }
94 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +010095 value_ = value;
96 }
97 }
98
99 public override bool Equals(object other) {
100 return Equals(other as DoubleValue);
101 }
102
103 public bool Equals(DoubleValue other) {
104 if (ReferenceEquals(other, null)) {
105 return false;
106 }
107 if (ReferenceEquals(other, this)) {
108 return true;
109 }
110 if (Value != other.Value) return false;
111 return true;
112 }
113
114 public override int GetHashCode() {
115 int hash = 1;
116 if (Value != 0D) hash ^= Value.GetHashCode();
117 return hash;
118 }
119
120 public override string ToString() {
Jon Skeetadee6fe2015-12-15 09:24:04 +0000121 return pb::JsonFormatter.ToDiagnosticString(this);
Jon Skeet62a4aa52015-07-14 14:26:49 +0100122 }
123
124 public void WriteTo(pb::CodedOutputStream output) {
125 if (Value != 0D) {
126 output.WriteRawTag(9);
127 output.WriteDouble(Value);
128 }
129 }
130
131 public int CalculateSize() {
132 int size = 0;
133 if (Value != 0D) {
134 size += 1 + 8;
135 }
136 return size;
137 }
138
139 public void MergeFrom(DoubleValue other) {
140 if (other == null) {
141 return;
142 }
143 if (other.Value != 0D) {
144 Value = other.Value;
145 }
146 }
147
148 public void MergeFrom(pb::CodedInputStream input) {
149 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100150 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100151 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100152 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100153 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100154 break;
155 case 9: {
156 Value = input.ReadDouble();
157 break;
158 }
159 }
160 }
161 }
162
163 }
164
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100165 /// <summary>
166 /// Wrapper message for `float`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000167 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100168 /// The JSON representation for `FloatValue` is JSON number.
169 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
171 public sealed partial class FloatValue : pb::IMessage<FloatValue> {
172 private static readonly pb::MessageParser<FloatValue> _parser = new pb::MessageParser<FloatValue>(() => new FloatValue());
173 public static pb::MessageParser<FloatValue> Parser { get { return _parser; } }
174
Jon Skeet62a4aa52015-07-14 14:26:49 +0100175 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000176 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[1]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100177 }
178
Jon Skeet96cffaa2015-07-20 19:25:07 +0100179 pbr::MessageDescriptor pb::IMessage.Descriptor {
180 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100181 }
182
Jon Skeet62a4aa52015-07-14 14:26:49 +0100183 public FloatValue() {
184 OnConstruction();
185 }
186
187 partial void OnConstruction();
188
189 public FloatValue(FloatValue other) : this() {
190 value_ = other.value_;
191 }
192
193 public FloatValue Clone() {
194 return new FloatValue(this);
195 }
196
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100197 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100198 public const int ValueFieldNumber = 1;
199 private float value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100200 /// <summary>
201 /// The float value.
202 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100203 public float Value {
204 get { return value_; }
205 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100206 value_ = value;
207 }
208 }
209
210 public override bool Equals(object other) {
211 return Equals(other as FloatValue);
212 }
213
214 public bool Equals(FloatValue other) {
215 if (ReferenceEquals(other, null)) {
216 return false;
217 }
218 if (ReferenceEquals(other, this)) {
219 return true;
220 }
221 if (Value != other.Value) return false;
222 return true;
223 }
224
225 public override int GetHashCode() {
226 int hash = 1;
227 if (Value != 0F) hash ^= Value.GetHashCode();
228 return hash;
229 }
230
231 public override string ToString() {
Jon Skeetadee6fe2015-12-15 09:24:04 +0000232 return pb::JsonFormatter.ToDiagnosticString(this);
Jon Skeet62a4aa52015-07-14 14:26:49 +0100233 }
234
235 public void WriteTo(pb::CodedOutputStream output) {
236 if (Value != 0F) {
237 output.WriteRawTag(13);
238 output.WriteFloat(Value);
239 }
240 }
241
242 public int CalculateSize() {
243 int size = 0;
244 if (Value != 0F) {
245 size += 1 + 4;
246 }
247 return size;
248 }
249
250 public void MergeFrom(FloatValue other) {
251 if (other == null) {
252 return;
253 }
254 if (other.Value != 0F) {
255 Value = other.Value;
256 }
257 }
258
259 public void MergeFrom(pb::CodedInputStream input) {
260 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100261 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100262 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100263 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100264 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100265 break;
266 case 13: {
267 Value = input.ReadFloat();
268 break;
269 }
270 }
271 }
272 }
273
274 }
275
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100276 /// <summary>
277 /// Wrapper message for `int64`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000278 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100279 /// The JSON representation for `Int64Value` is JSON string.
280 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
282 public sealed partial class Int64Value : pb::IMessage<Int64Value> {
283 private static readonly pb::MessageParser<Int64Value> _parser = new pb::MessageParser<Int64Value>(() => new Int64Value());
284 public static pb::MessageParser<Int64Value> Parser { get { return _parser; } }
285
Jon Skeet62a4aa52015-07-14 14:26:49 +0100286 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000287 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[2]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100288 }
289
Jon Skeet96cffaa2015-07-20 19:25:07 +0100290 pbr::MessageDescriptor pb::IMessage.Descriptor {
291 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100292 }
293
Jon Skeet62a4aa52015-07-14 14:26:49 +0100294 public Int64Value() {
295 OnConstruction();
296 }
297
298 partial void OnConstruction();
299
300 public Int64Value(Int64Value other) : this() {
301 value_ = other.value_;
302 }
303
304 public Int64Value Clone() {
305 return new Int64Value(this);
306 }
307
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100308 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100309 public const int ValueFieldNumber = 1;
310 private long value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100311 /// <summary>
312 /// The int64 value.
313 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100314 public long Value {
315 get { return value_; }
316 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100317 value_ = value;
318 }
319 }
320
321 public override bool Equals(object other) {
322 return Equals(other as Int64Value);
323 }
324
325 public bool Equals(Int64Value other) {
326 if (ReferenceEquals(other, null)) {
327 return false;
328 }
329 if (ReferenceEquals(other, this)) {
330 return true;
331 }
332 if (Value != other.Value) return false;
333 return true;
334 }
335
336 public override int GetHashCode() {
337 int hash = 1;
338 if (Value != 0L) hash ^= Value.GetHashCode();
339 return hash;
340 }
341
342 public override string ToString() {
Jon Skeetadee6fe2015-12-15 09:24:04 +0000343 return pb::JsonFormatter.ToDiagnosticString(this);
Jon Skeet62a4aa52015-07-14 14:26:49 +0100344 }
345
346 public void WriteTo(pb::CodedOutputStream output) {
347 if (Value != 0L) {
348 output.WriteRawTag(8);
349 output.WriteInt64(Value);
350 }
351 }
352
353 public int CalculateSize() {
354 int size = 0;
355 if (Value != 0L) {
356 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Value);
357 }
358 return size;
359 }
360
361 public void MergeFrom(Int64Value other) {
362 if (other == null) {
363 return;
364 }
365 if (other.Value != 0L) {
366 Value = other.Value;
367 }
368 }
369
370 public void MergeFrom(pb::CodedInputStream input) {
371 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100372 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100373 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100374 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100375 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100376 break;
377 case 8: {
378 Value = input.ReadInt64();
379 break;
380 }
381 }
382 }
383 }
384
385 }
386
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100387 /// <summary>
388 /// Wrapper message for `uint64`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000389 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100390 /// The JSON representation for `UInt64Value` is JSON string.
391 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
393 public sealed partial class UInt64Value : pb::IMessage<UInt64Value> {
394 private static readonly pb::MessageParser<UInt64Value> _parser = new pb::MessageParser<UInt64Value>(() => new UInt64Value());
395 public static pb::MessageParser<UInt64Value> Parser { get { return _parser; } }
396
Jon Skeet62a4aa52015-07-14 14:26:49 +0100397 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000398 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[3]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100399 }
400
Jon Skeet96cffaa2015-07-20 19:25:07 +0100401 pbr::MessageDescriptor pb::IMessage.Descriptor {
402 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100403 }
404
Jon Skeet62a4aa52015-07-14 14:26:49 +0100405 public UInt64Value() {
406 OnConstruction();
407 }
408
409 partial void OnConstruction();
410
411 public UInt64Value(UInt64Value other) : this() {
412 value_ = other.value_;
413 }
414
415 public UInt64Value Clone() {
416 return new UInt64Value(this);
417 }
418
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100419 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100420 public const int ValueFieldNumber = 1;
421 private ulong value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100422 /// <summary>
423 /// The uint64 value.
424 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100425 public ulong Value {
426 get { return value_; }
427 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100428 value_ = value;
429 }
430 }
431
432 public override bool Equals(object other) {
433 return Equals(other as UInt64Value);
434 }
435
436 public bool Equals(UInt64Value other) {
437 if (ReferenceEquals(other, null)) {
438 return false;
439 }
440 if (ReferenceEquals(other, this)) {
441 return true;
442 }
443 if (Value != other.Value) return false;
444 return true;
445 }
446
447 public override int GetHashCode() {
448 int hash = 1;
449 if (Value != 0UL) hash ^= Value.GetHashCode();
450 return hash;
451 }
452
453 public override string ToString() {
Jon Skeetadee6fe2015-12-15 09:24:04 +0000454 return pb::JsonFormatter.ToDiagnosticString(this);
Jon Skeet62a4aa52015-07-14 14:26:49 +0100455 }
456
457 public void WriteTo(pb::CodedOutputStream output) {
458 if (Value != 0UL) {
459 output.WriteRawTag(8);
460 output.WriteUInt64(Value);
461 }
462 }
463
464 public int CalculateSize() {
465 int size = 0;
466 if (Value != 0UL) {
467 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Value);
468 }
469 return size;
470 }
471
472 public void MergeFrom(UInt64Value other) {
473 if (other == null) {
474 return;
475 }
476 if (other.Value != 0UL) {
477 Value = other.Value;
478 }
479 }
480
481 public void MergeFrom(pb::CodedInputStream input) {
482 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100483 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100484 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100485 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100486 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100487 break;
488 case 8: {
489 Value = input.ReadUInt64();
490 break;
491 }
492 }
493 }
494 }
495
496 }
497
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100498 /// <summary>
499 /// Wrapper message for `int32`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000500 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100501 /// The JSON representation for `Int32Value` is JSON number.
502 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
504 public sealed partial class Int32Value : pb::IMessage<Int32Value> {
505 private static readonly pb::MessageParser<Int32Value> _parser = new pb::MessageParser<Int32Value>(() => new Int32Value());
506 public static pb::MessageParser<Int32Value> Parser { get { return _parser; } }
507
Jon Skeet62a4aa52015-07-14 14:26:49 +0100508 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000509 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[4]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100510 }
511
Jon Skeet96cffaa2015-07-20 19:25:07 +0100512 pbr::MessageDescriptor pb::IMessage.Descriptor {
513 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100514 }
515
Jon Skeet62a4aa52015-07-14 14:26:49 +0100516 public Int32Value() {
517 OnConstruction();
518 }
519
520 partial void OnConstruction();
521
522 public Int32Value(Int32Value other) : this() {
523 value_ = other.value_;
524 }
525
526 public Int32Value Clone() {
527 return new Int32Value(this);
528 }
529
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100530 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100531 public const int ValueFieldNumber = 1;
532 private int value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100533 /// <summary>
534 /// The int32 value.
535 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100536 public int Value {
537 get { return value_; }
538 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100539 value_ = value;
540 }
541 }
542
543 public override bool Equals(object other) {
544 return Equals(other as Int32Value);
545 }
546
547 public bool Equals(Int32Value other) {
548 if (ReferenceEquals(other, null)) {
549 return false;
550 }
551 if (ReferenceEquals(other, this)) {
552 return true;
553 }
554 if (Value != other.Value) return false;
555 return true;
556 }
557
558 public override int GetHashCode() {
559 int hash = 1;
560 if (Value != 0) hash ^= Value.GetHashCode();
561 return hash;
562 }
563
564 public override string ToString() {
Jon Skeetadee6fe2015-12-15 09:24:04 +0000565 return pb::JsonFormatter.ToDiagnosticString(this);
Jon Skeet62a4aa52015-07-14 14:26:49 +0100566 }
567
568 public void WriteTo(pb::CodedOutputStream output) {
569 if (Value != 0) {
570 output.WriteRawTag(8);
571 output.WriteInt32(Value);
572 }
573 }
574
575 public int CalculateSize() {
576 int size = 0;
577 if (Value != 0) {
578 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value);
579 }
580 return size;
581 }
582
583 public void MergeFrom(Int32Value other) {
584 if (other == null) {
585 return;
586 }
587 if (other.Value != 0) {
588 Value = other.Value;
589 }
590 }
591
592 public void MergeFrom(pb::CodedInputStream input) {
593 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100594 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100595 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100596 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100597 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100598 break;
599 case 8: {
600 Value = input.ReadInt32();
601 break;
602 }
603 }
604 }
605 }
606
607 }
608
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100609 /// <summary>
610 /// Wrapper message for `uint32`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000611 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100612 /// The JSON representation for `UInt32Value` is JSON number.
613 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
615 public sealed partial class UInt32Value : pb::IMessage<UInt32Value> {
616 private static readonly pb::MessageParser<UInt32Value> _parser = new pb::MessageParser<UInt32Value>(() => new UInt32Value());
617 public static pb::MessageParser<UInt32Value> Parser { get { return _parser; } }
618
Jon Skeet62a4aa52015-07-14 14:26:49 +0100619 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000620 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[5]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100621 }
622
Jon Skeet96cffaa2015-07-20 19:25:07 +0100623 pbr::MessageDescriptor pb::IMessage.Descriptor {
624 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100625 }
626
Jon Skeet62a4aa52015-07-14 14:26:49 +0100627 public UInt32Value() {
628 OnConstruction();
629 }
630
631 partial void OnConstruction();
632
633 public UInt32Value(UInt32Value other) : this() {
634 value_ = other.value_;
635 }
636
637 public UInt32Value Clone() {
638 return new UInt32Value(this);
639 }
640
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100641 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100642 public const int ValueFieldNumber = 1;
643 private uint value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100644 /// <summary>
645 /// The uint32 value.
646 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100647 public uint Value {
648 get { return value_; }
649 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100650 value_ = value;
651 }
652 }
653
654 public override bool Equals(object other) {
655 return Equals(other as UInt32Value);
656 }
657
658 public bool Equals(UInt32Value other) {
659 if (ReferenceEquals(other, null)) {
660 return false;
661 }
662 if (ReferenceEquals(other, this)) {
663 return true;
664 }
665 if (Value != other.Value) return false;
666 return true;
667 }
668
669 public override int GetHashCode() {
670 int hash = 1;
671 if (Value != 0) hash ^= Value.GetHashCode();
672 return hash;
673 }
674
675 public override string ToString() {
Jon Skeetadee6fe2015-12-15 09:24:04 +0000676 return pb::JsonFormatter.ToDiagnosticString(this);
Jon Skeet62a4aa52015-07-14 14:26:49 +0100677 }
678
679 public void WriteTo(pb::CodedOutputStream output) {
680 if (Value != 0) {
681 output.WriteRawTag(8);
682 output.WriteUInt32(Value);
683 }
684 }
685
686 public int CalculateSize() {
687 int size = 0;
688 if (Value != 0) {
689 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Value);
690 }
691 return size;
692 }
693
694 public void MergeFrom(UInt32Value other) {
695 if (other == null) {
696 return;
697 }
698 if (other.Value != 0) {
699 Value = other.Value;
700 }
701 }
702
703 public void MergeFrom(pb::CodedInputStream input) {
704 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100705 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100706 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100707 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100708 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100709 break;
710 case 8: {
711 Value = input.ReadUInt32();
712 break;
713 }
714 }
715 }
716 }
717
718 }
719
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100720 /// <summary>
721 /// Wrapper message for `bool`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000722 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100723 /// The JSON representation for `BoolValue` is JSON `true` and `false`.
724 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
726 public sealed partial class BoolValue : pb::IMessage<BoolValue> {
727 private static readonly pb::MessageParser<BoolValue> _parser = new pb::MessageParser<BoolValue>(() => new BoolValue());
728 public static pb::MessageParser<BoolValue> Parser { get { return _parser; } }
729
Jon Skeet62a4aa52015-07-14 14:26:49 +0100730 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000731 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[6]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100732 }
733
Jon Skeet96cffaa2015-07-20 19:25:07 +0100734 pbr::MessageDescriptor pb::IMessage.Descriptor {
735 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100736 }
737
Jon Skeet62a4aa52015-07-14 14:26:49 +0100738 public BoolValue() {
739 OnConstruction();
740 }
741
742 partial void OnConstruction();
743
744 public BoolValue(BoolValue other) : this() {
745 value_ = other.value_;
746 }
747
748 public BoolValue Clone() {
749 return new BoolValue(this);
750 }
751
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100752 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100753 public const int ValueFieldNumber = 1;
754 private bool value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100755 /// <summary>
756 /// The bool value.
757 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100758 public bool Value {
759 get { return value_; }
760 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100761 value_ = value;
762 }
763 }
764
765 public override bool Equals(object other) {
766 return Equals(other as BoolValue);
767 }
768
769 public bool Equals(BoolValue other) {
770 if (ReferenceEquals(other, null)) {
771 return false;
772 }
773 if (ReferenceEquals(other, this)) {
774 return true;
775 }
776 if (Value != other.Value) return false;
777 return true;
778 }
779
780 public override int GetHashCode() {
781 int hash = 1;
782 if (Value != false) hash ^= Value.GetHashCode();
783 return hash;
784 }
785
786 public override string ToString() {
Jon Skeetadee6fe2015-12-15 09:24:04 +0000787 return pb::JsonFormatter.ToDiagnosticString(this);
Jon Skeet62a4aa52015-07-14 14:26:49 +0100788 }
789
790 public void WriteTo(pb::CodedOutputStream output) {
791 if (Value != false) {
792 output.WriteRawTag(8);
793 output.WriteBool(Value);
794 }
795 }
796
797 public int CalculateSize() {
798 int size = 0;
799 if (Value != false) {
800 size += 1 + 1;
801 }
802 return size;
803 }
804
805 public void MergeFrom(BoolValue other) {
806 if (other == null) {
807 return;
808 }
809 if (other.Value != false) {
810 Value = other.Value;
811 }
812 }
813
814 public void MergeFrom(pb::CodedInputStream input) {
815 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100816 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100817 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100818 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100819 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100820 break;
821 case 8: {
822 Value = input.ReadBool();
823 break;
824 }
825 }
826 }
827 }
828
829 }
830
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100831 /// <summary>
832 /// Wrapper message for `string`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000833 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100834 /// The JSON representation for `StringValue` is JSON string.
835 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
837 public sealed partial class StringValue : pb::IMessage<StringValue> {
838 private static readonly pb::MessageParser<StringValue> _parser = new pb::MessageParser<StringValue>(() => new StringValue());
839 public static pb::MessageParser<StringValue> Parser { get { return _parser; } }
840
Jon Skeet62a4aa52015-07-14 14:26:49 +0100841 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000842 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[7]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100843 }
844
Jon Skeet96cffaa2015-07-20 19:25:07 +0100845 pbr::MessageDescriptor pb::IMessage.Descriptor {
846 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100847 }
848
Jon Skeet62a4aa52015-07-14 14:26:49 +0100849 public StringValue() {
850 OnConstruction();
851 }
852
853 partial void OnConstruction();
854
855 public StringValue(StringValue other) : this() {
856 value_ = other.value_;
857 }
858
859 public StringValue Clone() {
860 return new StringValue(this);
861 }
862
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100863 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100864 public const int ValueFieldNumber = 1;
865 private string value_ = "";
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100866 /// <summary>
867 /// The string value.
868 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100869 public string Value {
870 get { return value_; }
871 set {
Jon Skeet045b5282016-02-04 15:02:59 +0000872 value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
Jon Skeet62a4aa52015-07-14 14:26:49 +0100873 }
874 }
875
876 public override bool Equals(object other) {
877 return Equals(other as StringValue);
878 }
879
880 public bool Equals(StringValue other) {
881 if (ReferenceEquals(other, null)) {
882 return false;
883 }
884 if (ReferenceEquals(other, this)) {
885 return true;
886 }
887 if (Value != other.Value) return false;
888 return true;
889 }
890
891 public override int GetHashCode() {
892 int hash = 1;
893 if (Value.Length != 0) hash ^= Value.GetHashCode();
894 return hash;
895 }
896
897 public override string ToString() {
Jon Skeetadee6fe2015-12-15 09:24:04 +0000898 return pb::JsonFormatter.ToDiagnosticString(this);
Jon Skeet62a4aa52015-07-14 14:26:49 +0100899 }
900
901 public void WriteTo(pb::CodedOutputStream output) {
902 if (Value.Length != 0) {
903 output.WriteRawTag(10);
904 output.WriteString(Value);
905 }
906 }
907
908 public int CalculateSize() {
909 int size = 0;
910 if (Value.Length != 0) {
911 size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
912 }
913 return size;
914 }
915
916 public void MergeFrom(StringValue other) {
917 if (other == null) {
918 return;
919 }
920 if (other.Value.Length != 0) {
921 Value = other.Value;
922 }
923 }
924
925 public void MergeFrom(pb::CodedInputStream input) {
926 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100927 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100928 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100929 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100930 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100931 break;
932 case 10: {
933 Value = input.ReadString();
934 break;
935 }
936 }
937 }
938 }
939
940 }
941
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100942 /// <summary>
943 /// Wrapper message for `bytes`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000944 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100945 /// The JSON representation for `BytesValue` is JSON string.
946 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
948 public sealed partial class BytesValue : pb::IMessage<BytesValue> {
949 private static readonly pb::MessageParser<BytesValue> _parser = new pb::MessageParser<BytesValue>(() => new BytesValue());
950 public static pb::MessageParser<BytesValue> Parser { get { return _parser; } }
951
Jon Skeet62a4aa52015-07-14 14:26:49 +0100952 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000953 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[8]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100954 }
955
Jon Skeet96cffaa2015-07-20 19:25:07 +0100956 pbr::MessageDescriptor pb::IMessage.Descriptor {
957 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100958 }
959
Jon Skeet62a4aa52015-07-14 14:26:49 +0100960 public BytesValue() {
961 OnConstruction();
962 }
963
964 partial void OnConstruction();
965
966 public BytesValue(BytesValue other) : this() {
967 value_ = other.value_;
968 }
969
970 public BytesValue Clone() {
971 return new BytesValue(this);
972 }
973
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100974 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100975 public const int ValueFieldNumber = 1;
976 private pb::ByteString value_ = pb::ByteString.Empty;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100977 /// <summary>
978 /// The bytes value.
979 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100980 public pb::ByteString Value {
981 get { return value_; }
982 set {
Jon Skeet045b5282016-02-04 15:02:59 +0000983 value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
Jon Skeet62a4aa52015-07-14 14:26:49 +0100984 }
985 }
986
987 public override bool Equals(object other) {
988 return Equals(other as BytesValue);
989 }
990
991 public bool Equals(BytesValue other) {
992 if (ReferenceEquals(other, null)) {
993 return false;
994 }
995 if (ReferenceEquals(other, this)) {
996 return true;
997 }
998 if (Value != other.Value) return false;
999 return true;
1000 }
1001
1002 public override int GetHashCode() {
1003 int hash = 1;
1004 if (Value.Length != 0) hash ^= Value.GetHashCode();
1005 return hash;
1006 }
1007
1008 public override string ToString() {
Jon Skeetadee6fe2015-12-15 09:24:04 +00001009 return pb::JsonFormatter.ToDiagnosticString(this);
Jon Skeet62a4aa52015-07-14 14:26:49 +01001010 }
1011
1012 public void WriteTo(pb::CodedOutputStream output) {
1013 if (Value.Length != 0) {
1014 output.WriteRawTag(10);
1015 output.WriteBytes(Value);
1016 }
1017 }
1018
1019 public int CalculateSize() {
1020 int size = 0;
1021 if (Value.Length != 0) {
1022 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Value);
1023 }
1024 return size;
1025 }
1026
1027 public void MergeFrom(BytesValue other) {
1028 if (other == null) {
1029 return;
1030 }
1031 if (other.Value.Length != 0) {
1032 Value = other.Value;
1033 }
1034 }
1035
1036 public void MergeFrom(pb::CodedInputStream input) {
1037 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01001038 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +01001039 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +01001040 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01001041 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +01001042 break;
1043 case 10: {
1044 Value = input.ReadBytes();
1045 break;
1046 }
1047 }
1048 }
1049 }
1050
1051 }
1052
1053 #endregion
1054
1055}
1056
1057#endregion Designer generated code