blob: 9fa6c2ecb9e536e0b8555408c6db62c2827074ae [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",
32 "DQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEJQ",
33 "ChNjb20uZ29vZ2xlLnByb3RvYnVmQg1XcmFwcGVyc1Byb3RvUAGgAQGiAgNH",
34 "UEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw=="));
Jon Skeet62a4aa52015-07-14 14:26:49 +010035 descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
Jon Skeet96cffaa2015-07-20 19:25:07 +010036 new pbr::FileDescriptor[] { },
Jon Skeet47bf49b2015-07-22 11:39:38 +010037 new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
Jon Skeeteadd4ca2015-11-13 20:04:14 +000038 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.DoubleValue), global::Google.Protobuf.WellKnownTypes.DoubleValue.Parser, new[]{ "Value" }, null, null, null),
39 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.FloatValue), global::Google.Protobuf.WellKnownTypes.FloatValue.Parser, new[]{ "Value" }, null, null, null),
40 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Int64Value), global::Google.Protobuf.WellKnownTypes.Int64Value.Parser, new[]{ "Value" }, null, null, null),
41 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.UInt64Value), global::Google.Protobuf.WellKnownTypes.UInt64Value.Parser, new[]{ "Value" }, null, null, null),
42 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Int32Value), global::Google.Protobuf.WellKnownTypes.Int32Value.Parser, new[]{ "Value" }, null, null, null),
43 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.UInt32Value), global::Google.Protobuf.WellKnownTypes.UInt32Value.Parser, new[]{ "Value" }, null, null, null),
44 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.BoolValue), global::Google.Protobuf.WellKnownTypes.BoolValue.Parser, new[]{ "Value" }, null, null, null),
45 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.StringValue), global::Google.Protobuf.WellKnownTypes.StringValue.Parser, new[]{ "Value" }, null, null, null),
46 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.BytesValue), global::Google.Protobuf.WellKnownTypes.BytesValue.Parser, new[]{ "Value" }, null, null, null)
Jon Skeet47bf49b2015-07-22 11:39:38 +010047 }));
Jon Skeet62a4aa52015-07-14 14:26:49 +010048 }
49 #endregion
50
51 }
52 #region Messages
Jon Skeet18e0a2e2015-10-01 10:38:01 +010053 /// <summary>
54 /// Wrapper message for `double`.
Jon Skeetcff900e2015-11-06 18:38:31 +000055 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +010056 /// The JSON representation for `DoubleValue` is JSON number.
57 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +010058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
59 public sealed partial class DoubleValue : pb::IMessage<DoubleValue> {
60 private static readonly pb::MessageParser<DoubleValue> _parser = new pb::MessageParser<DoubleValue>(() => new DoubleValue());
61 public static pb::MessageParser<DoubleValue> Parser { get { return _parser; } }
62
Jon Skeet62a4aa52015-07-14 14:26:49 +010063 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +000064 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[0]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +010065 }
66
Jon Skeet96cffaa2015-07-20 19:25:07 +010067 pbr::MessageDescriptor pb::IMessage.Descriptor {
68 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +010069 }
70
Jon Skeet62a4aa52015-07-14 14:26:49 +010071 public DoubleValue() {
72 OnConstruction();
73 }
74
75 partial void OnConstruction();
76
77 public DoubleValue(DoubleValue other) : this() {
78 value_ = other.value_;
79 }
80
81 public DoubleValue Clone() {
82 return new DoubleValue(this);
83 }
84
Jon Skeet18e0a2e2015-10-01 10:38:01 +010085 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +010086 public const int ValueFieldNumber = 1;
87 private double value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +010088 /// <summary>
89 /// The double value.
90 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +010091 public double Value {
92 get { return value_; }
93 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +010094 value_ = value;
95 }
96 }
97
98 public override bool Equals(object other) {
99 return Equals(other as DoubleValue);
100 }
101
102 public bool Equals(DoubleValue other) {
103 if (ReferenceEquals(other, null)) {
104 return false;
105 }
106 if (ReferenceEquals(other, this)) {
107 return true;
108 }
109 if (Value != other.Value) return false;
110 return true;
111 }
112
113 public override int GetHashCode() {
114 int hash = 1;
115 if (Value != 0D) hash ^= Value.GetHashCode();
116 return hash;
117 }
118
119 public override string ToString() {
120 return pb::JsonFormatter.Default.Format(this);
121 }
122
123 public void WriteTo(pb::CodedOutputStream output) {
124 if (Value != 0D) {
125 output.WriteRawTag(9);
126 output.WriteDouble(Value);
127 }
128 }
129
130 public int CalculateSize() {
131 int size = 0;
132 if (Value != 0D) {
133 size += 1 + 8;
134 }
135 return size;
136 }
137
138 public void MergeFrom(DoubleValue other) {
139 if (other == null) {
140 return;
141 }
142 if (other.Value != 0D) {
143 Value = other.Value;
144 }
145 }
146
147 public void MergeFrom(pb::CodedInputStream input) {
148 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100149 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100150 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100151 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100152 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100153 break;
154 case 9: {
155 Value = input.ReadDouble();
156 break;
157 }
158 }
159 }
160 }
161
162 }
163
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100164 /// <summary>
165 /// Wrapper message for `float`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000166 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100167 /// The JSON representation for `FloatValue` is JSON number.
168 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100169 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
170 public sealed partial class FloatValue : pb::IMessage<FloatValue> {
171 private static readonly pb::MessageParser<FloatValue> _parser = new pb::MessageParser<FloatValue>(() => new FloatValue());
172 public static pb::MessageParser<FloatValue> Parser { get { return _parser; } }
173
Jon Skeet62a4aa52015-07-14 14:26:49 +0100174 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000175 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[1]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100176 }
177
Jon Skeet96cffaa2015-07-20 19:25:07 +0100178 pbr::MessageDescriptor pb::IMessage.Descriptor {
179 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100180 }
181
Jon Skeet62a4aa52015-07-14 14:26:49 +0100182 public FloatValue() {
183 OnConstruction();
184 }
185
186 partial void OnConstruction();
187
188 public FloatValue(FloatValue other) : this() {
189 value_ = other.value_;
190 }
191
192 public FloatValue Clone() {
193 return new FloatValue(this);
194 }
195
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100196 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100197 public const int ValueFieldNumber = 1;
198 private float value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100199 /// <summary>
200 /// The float value.
201 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100202 public float Value {
203 get { return value_; }
204 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100205 value_ = value;
206 }
207 }
208
209 public override bool Equals(object other) {
210 return Equals(other as FloatValue);
211 }
212
213 public bool Equals(FloatValue other) {
214 if (ReferenceEquals(other, null)) {
215 return false;
216 }
217 if (ReferenceEquals(other, this)) {
218 return true;
219 }
220 if (Value != other.Value) return false;
221 return true;
222 }
223
224 public override int GetHashCode() {
225 int hash = 1;
226 if (Value != 0F) hash ^= Value.GetHashCode();
227 return hash;
228 }
229
230 public override string ToString() {
231 return pb::JsonFormatter.Default.Format(this);
232 }
233
234 public void WriteTo(pb::CodedOutputStream output) {
235 if (Value != 0F) {
236 output.WriteRawTag(13);
237 output.WriteFloat(Value);
238 }
239 }
240
241 public int CalculateSize() {
242 int size = 0;
243 if (Value != 0F) {
244 size += 1 + 4;
245 }
246 return size;
247 }
248
249 public void MergeFrom(FloatValue other) {
250 if (other == null) {
251 return;
252 }
253 if (other.Value != 0F) {
254 Value = other.Value;
255 }
256 }
257
258 public void MergeFrom(pb::CodedInputStream input) {
259 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100260 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100261 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100262 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100263 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100264 break;
265 case 13: {
266 Value = input.ReadFloat();
267 break;
268 }
269 }
270 }
271 }
272
273 }
274
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100275 /// <summary>
276 /// Wrapper message for `int64`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000277 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100278 /// The JSON representation for `Int64Value` is JSON string.
279 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
281 public sealed partial class Int64Value : pb::IMessage<Int64Value> {
282 private static readonly pb::MessageParser<Int64Value> _parser = new pb::MessageParser<Int64Value>(() => new Int64Value());
283 public static pb::MessageParser<Int64Value> Parser { get { return _parser; } }
284
Jon Skeet62a4aa52015-07-14 14:26:49 +0100285 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000286 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[2]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100287 }
288
Jon Skeet96cffaa2015-07-20 19:25:07 +0100289 pbr::MessageDescriptor pb::IMessage.Descriptor {
290 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100291 }
292
Jon Skeet62a4aa52015-07-14 14:26:49 +0100293 public Int64Value() {
294 OnConstruction();
295 }
296
297 partial void OnConstruction();
298
299 public Int64Value(Int64Value other) : this() {
300 value_ = other.value_;
301 }
302
303 public Int64Value Clone() {
304 return new Int64Value(this);
305 }
306
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100307 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100308 public const int ValueFieldNumber = 1;
309 private long value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100310 /// <summary>
311 /// The int64 value.
312 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100313 public long Value {
314 get { return value_; }
315 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100316 value_ = value;
317 }
318 }
319
320 public override bool Equals(object other) {
321 return Equals(other as Int64Value);
322 }
323
324 public bool Equals(Int64Value other) {
325 if (ReferenceEquals(other, null)) {
326 return false;
327 }
328 if (ReferenceEquals(other, this)) {
329 return true;
330 }
331 if (Value != other.Value) return false;
332 return true;
333 }
334
335 public override int GetHashCode() {
336 int hash = 1;
337 if (Value != 0L) hash ^= Value.GetHashCode();
338 return hash;
339 }
340
341 public override string ToString() {
342 return pb::JsonFormatter.Default.Format(this);
343 }
344
345 public void WriteTo(pb::CodedOutputStream output) {
346 if (Value != 0L) {
347 output.WriteRawTag(8);
348 output.WriteInt64(Value);
349 }
350 }
351
352 public int CalculateSize() {
353 int size = 0;
354 if (Value != 0L) {
355 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Value);
356 }
357 return size;
358 }
359
360 public void MergeFrom(Int64Value other) {
361 if (other == null) {
362 return;
363 }
364 if (other.Value != 0L) {
365 Value = other.Value;
366 }
367 }
368
369 public void MergeFrom(pb::CodedInputStream input) {
370 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100371 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100372 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100373 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100374 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100375 break;
376 case 8: {
377 Value = input.ReadInt64();
378 break;
379 }
380 }
381 }
382 }
383
384 }
385
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100386 /// <summary>
387 /// Wrapper message for `uint64`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000388 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100389 /// The JSON representation for `UInt64Value` is JSON string.
390 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
392 public sealed partial class UInt64Value : pb::IMessage<UInt64Value> {
393 private static readonly pb::MessageParser<UInt64Value> _parser = new pb::MessageParser<UInt64Value>(() => new UInt64Value());
394 public static pb::MessageParser<UInt64Value> Parser { get { return _parser; } }
395
Jon Skeet62a4aa52015-07-14 14:26:49 +0100396 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000397 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[3]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100398 }
399
Jon Skeet96cffaa2015-07-20 19:25:07 +0100400 pbr::MessageDescriptor pb::IMessage.Descriptor {
401 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100402 }
403
Jon Skeet62a4aa52015-07-14 14:26:49 +0100404 public UInt64Value() {
405 OnConstruction();
406 }
407
408 partial void OnConstruction();
409
410 public UInt64Value(UInt64Value other) : this() {
411 value_ = other.value_;
412 }
413
414 public UInt64Value Clone() {
415 return new UInt64Value(this);
416 }
417
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100418 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100419 public const int ValueFieldNumber = 1;
420 private ulong value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100421 /// <summary>
422 /// The uint64 value.
423 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100424 public ulong Value {
425 get { return value_; }
426 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100427 value_ = value;
428 }
429 }
430
431 public override bool Equals(object other) {
432 return Equals(other as UInt64Value);
433 }
434
435 public bool Equals(UInt64Value other) {
436 if (ReferenceEquals(other, null)) {
437 return false;
438 }
439 if (ReferenceEquals(other, this)) {
440 return true;
441 }
442 if (Value != other.Value) return false;
443 return true;
444 }
445
446 public override int GetHashCode() {
447 int hash = 1;
448 if (Value != 0UL) hash ^= Value.GetHashCode();
449 return hash;
450 }
451
452 public override string ToString() {
453 return pb::JsonFormatter.Default.Format(this);
454 }
455
456 public void WriteTo(pb::CodedOutputStream output) {
457 if (Value != 0UL) {
458 output.WriteRawTag(8);
459 output.WriteUInt64(Value);
460 }
461 }
462
463 public int CalculateSize() {
464 int size = 0;
465 if (Value != 0UL) {
466 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Value);
467 }
468 return size;
469 }
470
471 public void MergeFrom(UInt64Value other) {
472 if (other == null) {
473 return;
474 }
475 if (other.Value != 0UL) {
476 Value = other.Value;
477 }
478 }
479
480 public void MergeFrom(pb::CodedInputStream input) {
481 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100482 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100483 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100484 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100485 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100486 break;
487 case 8: {
488 Value = input.ReadUInt64();
489 break;
490 }
491 }
492 }
493 }
494
495 }
496
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100497 /// <summary>
498 /// Wrapper message for `int32`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000499 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100500 /// The JSON representation for `Int32Value` is JSON number.
501 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
503 public sealed partial class Int32Value : pb::IMessage<Int32Value> {
504 private static readonly pb::MessageParser<Int32Value> _parser = new pb::MessageParser<Int32Value>(() => new Int32Value());
505 public static pb::MessageParser<Int32Value> Parser { get { return _parser; } }
506
Jon Skeet62a4aa52015-07-14 14:26:49 +0100507 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000508 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[4]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100509 }
510
Jon Skeet96cffaa2015-07-20 19:25:07 +0100511 pbr::MessageDescriptor pb::IMessage.Descriptor {
512 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100513 }
514
Jon Skeet62a4aa52015-07-14 14:26:49 +0100515 public Int32Value() {
516 OnConstruction();
517 }
518
519 partial void OnConstruction();
520
521 public Int32Value(Int32Value other) : this() {
522 value_ = other.value_;
523 }
524
525 public Int32Value Clone() {
526 return new Int32Value(this);
527 }
528
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100529 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100530 public const int ValueFieldNumber = 1;
531 private int value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100532 /// <summary>
533 /// The int32 value.
534 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100535 public int Value {
536 get { return value_; }
537 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100538 value_ = value;
539 }
540 }
541
542 public override bool Equals(object other) {
543 return Equals(other as Int32Value);
544 }
545
546 public bool Equals(Int32Value other) {
547 if (ReferenceEquals(other, null)) {
548 return false;
549 }
550 if (ReferenceEquals(other, this)) {
551 return true;
552 }
553 if (Value != other.Value) return false;
554 return true;
555 }
556
557 public override int GetHashCode() {
558 int hash = 1;
559 if (Value != 0) hash ^= Value.GetHashCode();
560 return hash;
561 }
562
563 public override string ToString() {
564 return pb::JsonFormatter.Default.Format(this);
565 }
566
567 public void WriteTo(pb::CodedOutputStream output) {
568 if (Value != 0) {
569 output.WriteRawTag(8);
570 output.WriteInt32(Value);
571 }
572 }
573
574 public int CalculateSize() {
575 int size = 0;
576 if (Value != 0) {
577 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value);
578 }
579 return size;
580 }
581
582 public void MergeFrom(Int32Value other) {
583 if (other == null) {
584 return;
585 }
586 if (other.Value != 0) {
587 Value = other.Value;
588 }
589 }
590
591 public void MergeFrom(pb::CodedInputStream input) {
592 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100593 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100594 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100595 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100596 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100597 break;
598 case 8: {
599 Value = input.ReadInt32();
600 break;
601 }
602 }
603 }
604 }
605
606 }
607
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100608 /// <summary>
609 /// Wrapper message for `uint32`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000610 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100611 /// The JSON representation for `UInt32Value` is JSON number.
612 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
614 public sealed partial class UInt32Value : pb::IMessage<UInt32Value> {
615 private static readonly pb::MessageParser<UInt32Value> _parser = new pb::MessageParser<UInt32Value>(() => new UInt32Value());
616 public static pb::MessageParser<UInt32Value> Parser { get { return _parser; } }
617
Jon Skeet62a4aa52015-07-14 14:26:49 +0100618 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000619 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[5]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100620 }
621
Jon Skeet96cffaa2015-07-20 19:25:07 +0100622 pbr::MessageDescriptor pb::IMessage.Descriptor {
623 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100624 }
625
Jon Skeet62a4aa52015-07-14 14:26:49 +0100626 public UInt32Value() {
627 OnConstruction();
628 }
629
630 partial void OnConstruction();
631
632 public UInt32Value(UInt32Value other) : this() {
633 value_ = other.value_;
634 }
635
636 public UInt32Value Clone() {
637 return new UInt32Value(this);
638 }
639
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100640 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100641 public const int ValueFieldNumber = 1;
642 private uint value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100643 /// <summary>
644 /// The uint32 value.
645 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100646 public uint Value {
647 get { return value_; }
648 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100649 value_ = value;
650 }
651 }
652
653 public override bool Equals(object other) {
654 return Equals(other as UInt32Value);
655 }
656
657 public bool Equals(UInt32Value other) {
658 if (ReferenceEquals(other, null)) {
659 return false;
660 }
661 if (ReferenceEquals(other, this)) {
662 return true;
663 }
664 if (Value != other.Value) return false;
665 return true;
666 }
667
668 public override int GetHashCode() {
669 int hash = 1;
670 if (Value != 0) hash ^= Value.GetHashCode();
671 return hash;
672 }
673
674 public override string ToString() {
675 return pb::JsonFormatter.Default.Format(this);
676 }
677
678 public void WriteTo(pb::CodedOutputStream output) {
679 if (Value != 0) {
680 output.WriteRawTag(8);
681 output.WriteUInt32(Value);
682 }
683 }
684
685 public int CalculateSize() {
686 int size = 0;
687 if (Value != 0) {
688 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Value);
689 }
690 return size;
691 }
692
693 public void MergeFrom(UInt32Value other) {
694 if (other == null) {
695 return;
696 }
697 if (other.Value != 0) {
698 Value = other.Value;
699 }
700 }
701
702 public void MergeFrom(pb::CodedInputStream input) {
703 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100704 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100705 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100706 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100707 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100708 break;
709 case 8: {
710 Value = input.ReadUInt32();
711 break;
712 }
713 }
714 }
715 }
716
717 }
718
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100719 /// <summary>
720 /// Wrapper message for `bool`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000721 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100722 /// The JSON representation for `BoolValue` is JSON `true` and `false`.
723 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
725 public sealed partial class BoolValue : pb::IMessage<BoolValue> {
726 private static readonly pb::MessageParser<BoolValue> _parser = new pb::MessageParser<BoolValue>(() => new BoolValue());
727 public static pb::MessageParser<BoolValue> Parser { get { return _parser; } }
728
Jon Skeet62a4aa52015-07-14 14:26:49 +0100729 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000730 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[6]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100731 }
732
Jon Skeet96cffaa2015-07-20 19:25:07 +0100733 pbr::MessageDescriptor pb::IMessage.Descriptor {
734 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100735 }
736
Jon Skeet62a4aa52015-07-14 14:26:49 +0100737 public BoolValue() {
738 OnConstruction();
739 }
740
741 partial void OnConstruction();
742
743 public BoolValue(BoolValue other) : this() {
744 value_ = other.value_;
745 }
746
747 public BoolValue Clone() {
748 return new BoolValue(this);
749 }
750
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100751 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100752 public const int ValueFieldNumber = 1;
753 private bool value_;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100754 /// <summary>
755 /// The bool value.
756 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100757 public bool Value {
758 get { return value_; }
759 set {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100760 value_ = value;
761 }
762 }
763
764 public override bool Equals(object other) {
765 return Equals(other as BoolValue);
766 }
767
768 public bool Equals(BoolValue other) {
769 if (ReferenceEquals(other, null)) {
770 return false;
771 }
772 if (ReferenceEquals(other, this)) {
773 return true;
774 }
775 if (Value != other.Value) return false;
776 return true;
777 }
778
779 public override int GetHashCode() {
780 int hash = 1;
781 if (Value != false) hash ^= Value.GetHashCode();
782 return hash;
783 }
784
785 public override string ToString() {
786 return pb::JsonFormatter.Default.Format(this);
787 }
788
789 public void WriteTo(pb::CodedOutputStream output) {
790 if (Value != false) {
791 output.WriteRawTag(8);
792 output.WriteBool(Value);
793 }
794 }
795
796 public int CalculateSize() {
797 int size = 0;
798 if (Value != false) {
799 size += 1 + 1;
800 }
801 return size;
802 }
803
804 public void MergeFrom(BoolValue other) {
805 if (other == null) {
806 return;
807 }
808 if (other.Value != false) {
809 Value = other.Value;
810 }
811 }
812
813 public void MergeFrom(pb::CodedInputStream input) {
814 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100815 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100816 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100817 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100818 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100819 break;
820 case 8: {
821 Value = input.ReadBool();
822 break;
823 }
824 }
825 }
826 }
827
828 }
829
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100830 /// <summary>
831 /// Wrapper message for `string`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000832 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100833 /// The JSON representation for `StringValue` is JSON string.
834 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
836 public sealed partial class StringValue : pb::IMessage<StringValue> {
837 private static readonly pb::MessageParser<StringValue> _parser = new pb::MessageParser<StringValue>(() => new StringValue());
838 public static pb::MessageParser<StringValue> Parser { get { return _parser; } }
839
Jon Skeet62a4aa52015-07-14 14:26:49 +0100840 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000841 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[7]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100842 }
843
Jon Skeet96cffaa2015-07-20 19:25:07 +0100844 pbr::MessageDescriptor pb::IMessage.Descriptor {
845 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100846 }
847
Jon Skeet62a4aa52015-07-14 14:26:49 +0100848 public StringValue() {
849 OnConstruction();
850 }
851
852 partial void OnConstruction();
853
854 public StringValue(StringValue other) : this() {
855 value_ = other.value_;
856 }
857
858 public StringValue Clone() {
859 return new StringValue(this);
860 }
861
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100862 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100863 public const int ValueFieldNumber = 1;
864 private string value_ = "";
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100865 /// <summary>
866 /// The string value.
867 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100868 public string Value {
869 get { return value_; }
870 set {
Jon Skeetd18cc082015-07-30 13:50:02 +0100871 value_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeet62a4aa52015-07-14 14:26:49 +0100872 }
873 }
874
875 public override bool Equals(object other) {
876 return Equals(other as StringValue);
877 }
878
879 public bool Equals(StringValue other) {
880 if (ReferenceEquals(other, null)) {
881 return false;
882 }
883 if (ReferenceEquals(other, this)) {
884 return true;
885 }
886 if (Value != other.Value) return false;
887 return true;
888 }
889
890 public override int GetHashCode() {
891 int hash = 1;
892 if (Value.Length != 0) hash ^= Value.GetHashCode();
893 return hash;
894 }
895
896 public override string ToString() {
897 return pb::JsonFormatter.Default.Format(this);
898 }
899
900 public void WriteTo(pb::CodedOutputStream output) {
901 if (Value.Length != 0) {
902 output.WriteRawTag(10);
903 output.WriteString(Value);
904 }
905 }
906
907 public int CalculateSize() {
908 int size = 0;
909 if (Value.Length != 0) {
910 size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
911 }
912 return size;
913 }
914
915 public void MergeFrom(StringValue other) {
916 if (other == null) {
917 return;
918 }
919 if (other.Value.Length != 0) {
920 Value = other.Value;
921 }
922 }
923
924 public void MergeFrom(pb::CodedInputStream input) {
925 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100926 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100927 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100928 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100929 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100930 break;
931 case 10: {
932 Value = input.ReadString();
933 break;
934 }
935 }
936 }
937 }
938
939 }
940
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100941 /// <summary>
942 /// Wrapper message for `bytes`.
Jon Skeetcff900e2015-11-06 18:38:31 +0000943 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100944 /// The JSON representation for `BytesValue` is JSON string.
945 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
947 public sealed partial class BytesValue : pb::IMessage<BytesValue> {
948 private static readonly pb::MessageParser<BytesValue> _parser = new pb::MessageParser<BytesValue>(() => new BytesValue());
949 public static pb::MessageParser<BytesValue> Parser { get { return _parser; } }
950
Jon Skeet62a4aa52015-07-14 14:26:49 +0100951 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +0000952 get { return global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor.MessageTypes[8]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100953 }
954
Jon Skeet96cffaa2015-07-20 19:25:07 +0100955 pbr::MessageDescriptor pb::IMessage.Descriptor {
956 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +0100957 }
958
Jon Skeet62a4aa52015-07-14 14:26:49 +0100959 public BytesValue() {
960 OnConstruction();
961 }
962
963 partial void OnConstruction();
964
965 public BytesValue(BytesValue other) : this() {
966 value_ = other.value_;
967 }
968
969 public BytesValue Clone() {
970 return new BytesValue(this);
971 }
972
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100973 /// <summary>Field number for the "value" field.</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100974 public const int ValueFieldNumber = 1;
975 private pb::ByteString value_ = pb::ByteString.Empty;
Jon Skeet18e0a2e2015-10-01 10:38:01 +0100976 /// <summary>
977 /// The bytes value.
978 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +0100979 public pb::ByteString Value {
980 get { return value_; }
981 set {
Jon Skeetd18cc082015-07-30 13:50:02 +0100982 value_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeet62a4aa52015-07-14 14:26:49 +0100983 }
984 }
985
986 public override bool Equals(object other) {
987 return Equals(other as BytesValue);
988 }
989
990 public bool Equals(BytesValue other) {
991 if (ReferenceEquals(other, null)) {
992 return false;
993 }
994 if (ReferenceEquals(other, this)) {
995 return true;
996 }
997 if (Value != other.Value) return false;
998 return true;
999 }
1000
1001 public override int GetHashCode() {
1002 int hash = 1;
1003 if (Value.Length != 0) hash ^= Value.GetHashCode();
1004 return hash;
1005 }
1006
1007 public override string ToString() {
1008 return pb::JsonFormatter.Default.Format(this);
1009 }
1010
1011 public void WriteTo(pb::CodedOutputStream output) {
1012 if (Value.Length != 0) {
1013 output.WriteRawTag(10);
1014 output.WriteBytes(Value);
1015 }
1016 }
1017
1018 public int CalculateSize() {
1019 int size = 0;
1020 if (Value.Length != 0) {
1021 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Value);
1022 }
1023 return size;
1024 }
1025
1026 public void MergeFrom(BytesValue other) {
1027 if (other == null) {
1028 return;
1029 }
1030 if (other.Value.Length != 0) {
1031 Value = other.Value;
1032 }
1033 }
1034
1035 public void MergeFrom(pb::CodedInputStream input) {
1036 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01001037 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +01001038 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +01001039 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01001040 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +01001041 break;
1042 case 10: {
1043 Value = input.ReadBytes();
1044 break;
1045 }
1046 }
1047 }
1048 }
1049
1050 }
1051
1052 #endregion
1053
1054}
1055
1056#endregion Designer generated code