• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: route_guide.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Routeguide {
13 
14   /// <summary>Holder for reflection information generated from route_guide.proto</summary>
15   public static partial class RouteGuideReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for route_guide.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
RouteGuideReflection()24     static RouteGuideReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "ChFyb3V0ZV9ndWlkZS5wcm90bxIKcm91dGVndWlkZSIsCgVQb2ludBIQCghs",
28             "YXRpdHVkZRgBIAEoBRIRCglsb25naXR1ZGUYAiABKAUiSQoJUmVjdGFuZ2xl",
29             "Eh0KAmxvGAEgASgLMhEucm91dGVndWlkZS5Qb2ludBIdCgJoaRgCIAEoCzIR",
30             "LnJvdXRlZ3VpZGUuUG9pbnQiPAoHRmVhdHVyZRIMCgRuYW1lGAEgASgJEiMK",
31             "CGxvY2F0aW9uGAIgASgLMhEucm91dGVndWlkZS5Qb2ludCJBCglSb3V0ZU5v",
32             "dGUSIwoIbG9jYXRpb24YASABKAsyES5yb3V0ZWd1aWRlLlBvaW50Eg8KB21l",
33             "c3NhZ2UYAiABKAkiYgoMUm91dGVTdW1tYXJ5EhMKC3BvaW50X2NvdW50GAEg",
34             "ASgFEhUKDWZlYXR1cmVfY291bnQYAiABKAUSEAoIZGlzdGFuY2UYAyABKAUS",
35             "FAoMZWxhcHNlZF90aW1lGAQgASgFMoUCCgpSb3V0ZUd1aWRlEjYKCkdldEZl",
36             "YXR1cmUSES5yb3V0ZWd1aWRlLlBvaW50GhMucm91dGVndWlkZS5GZWF0dXJl",
37             "IgASPgoMTGlzdEZlYXR1cmVzEhUucm91dGVndWlkZS5SZWN0YW5nbGUaEy5y",
38             "b3V0ZWd1aWRlLkZlYXR1cmUiADABEj4KC1JlY29yZFJvdXRlEhEucm91dGVn",
39             "dWlkZS5Qb2ludBoYLnJvdXRlZ3VpZGUuUm91dGVTdW1tYXJ5IgAoARI/CglS",
40             "b3V0ZUNoYXQSFS5yb3V0ZWd1aWRlLlJvdXRlTm90ZRoVLnJvdXRlZ3VpZGUu",
41             "Um91dGVOb3RlIgAoATABQjYKG2lvLmdycGMuZXhhbXBsZXMucm91dGVndWlk",
42             "ZUIPUm91dGVHdWlkZVByb3RvUAGiAgNSVEdiBnByb3RvMw=="));
43       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
44           new pbr::FileDescriptor[] { },
45           new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
46             new pbr::GeneratedClrTypeInfo(typeof(global::Routeguide.Point), global::Routeguide.Point.Parser, new[]{ "Latitude", "Longitude" }, null, null, null),
47             new pbr::GeneratedClrTypeInfo(typeof(global::Routeguide.Rectangle), global::Routeguide.Rectangle.Parser, new[]{ "Lo", "Hi" }, null, null, null),
48             new pbr::GeneratedClrTypeInfo(typeof(global::Routeguide.Feature), global::Routeguide.Feature.Parser, new[]{ "Name", "Location" }, null, null, null),
49             new pbr::GeneratedClrTypeInfo(typeof(global::Routeguide.RouteNote), global::Routeguide.RouteNote.Parser, new[]{ "Location", "Message" }, null, null, null),
50             new pbr::GeneratedClrTypeInfo(typeof(global::Routeguide.RouteSummary), global::Routeguide.RouteSummary.Parser, new[]{ "PointCount", "FeatureCount", "Distance", "ElapsedTime" }, null, null, null)
51           }));
52     }
53     #endregion
54 
55   }
56   #region Messages
57   /// <summary>
58   /// Points are represented as latitude-longitude pairs in the E7 representation
59   /// (degrees multiplied by 10**7 and rounded to the nearest integer).
60   /// Latitudes should be in the range +/- 90 degrees and longitude should be in
61   /// the range +/- 180 degrees (inclusive).
62   /// </summary>
63   public sealed partial class Point : pb::IMessage<Point> {
64     private static readonly pb::MessageParser<Point> _parser = new pb::MessageParser<Point>(() => new Point());
65     private pb::UnknownFieldSet _unknownFields;
66     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
67     public static pb::MessageParser<Point> Parser { get { return _parser; } }
68 
69     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
70     public static pbr::MessageDescriptor Descriptor {
71       get { return global::Routeguide.RouteGuideReflection.Descriptor.MessageTypes[0]; }
72     }
73 
74     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
75     pbr::MessageDescriptor pb::IMessage.Descriptor {
76       get { return Descriptor; }
77     }
78 
79     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Point()80     public Point() {
81       OnConstruction();
82     }
83 
OnConstruction()84     partial void OnConstruction();
85 
86     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Point(Point other)87     public Point(Point other) : this() {
88       latitude_ = other.latitude_;
89       longitude_ = other.longitude_;
90       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
91     }
92 
93     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()94     public Point Clone() {
95       return new Point(this);
96     }
97 
98     /// <summary>Field number for the "latitude" field.</summary>
99     public const int LatitudeFieldNumber = 1;
100     private int latitude_;
101     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
102     public int Latitude {
103       get { return latitude_; }
104       set {
105         latitude_ = value;
106       }
107     }
108 
109     /// <summary>Field number for the "longitude" field.</summary>
110     public const int LongitudeFieldNumber = 2;
111     private int longitude_;
112     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
113     public int Longitude {
114       get { return longitude_; }
115       set {
116         longitude_ = value;
117       }
118     }
119 
120     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)121     public override bool Equals(object other) {
122       return Equals(other as Point);
123     }
124 
125     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(Point other)126     public bool Equals(Point other) {
127       if (ReferenceEquals(other, null)) {
128         return false;
129       }
130       if (ReferenceEquals(other, this)) {
131         return true;
132       }
133       if (Latitude != other.Latitude) return false;
134       if (Longitude != other.Longitude) return false;
135       return Equals(_unknownFields, other._unknownFields);
136     }
137 
138     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()139     public override int GetHashCode() {
140       int hash = 1;
141       if (Latitude != 0) hash ^= Latitude.GetHashCode();
142       if (Longitude != 0) hash ^= Longitude.GetHashCode();
143       if (_unknownFields != null) {
144         hash ^= _unknownFields.GetHashCode();
145       }
146       return hash;
147     }
148 
149     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()150     public override string ToString() {
151       return pb::JsonFormatter.ToDiagnosticString(this);
152     }
153 
154     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)155     public void WriteTo(pb::CodedOutputStream output) {
156       if (Latitude != 0) {
157         output.WriteRawTag(8);
158         output.WriteInt32(Latitude);
159       }
160       if (Longitude != 0) {
161         output.WriteRawTag(16);
162         output.WriteInt32(Longitude);
163       }
164       if (_unknownFields != null) {
165         _unknownFields.WriteTo(output);
166       }
167     }
168 
169     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()170     public int CalculateSize() {
171       int size = 0;
172       if (Latitude != 0) {
173         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Latitude);
174       }
175       if (Longitude != 0) {
176         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Longitude);
177       }
178       if (_unknownFields != null) {
179         size += _unknownFields.CalculateSize();
180       }
181       return size;
182     }
183 
184     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(Point other)185     public void MergeFrom(Point other) {
186       if (other == null) {
187         return;
188       }
189       if (other.Latitude != 0) {
190         Latitude = other.Latitude;
191       }
192       if (other.Longitude != 0) {
193         Longitude = other.Longitude;
194       }
195       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
196     }
197 
198     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)199     public void MergeFrom(pb::CodedInputStream input) {
200       uint tag;
201       while ((tag = input.ReadTag()) != 0) {
202         switch(tag) {
203           default:
204             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
205             break;
206           case 8: {
207             Latitude = input.ReadInt32();
208             break;
209           }
210           case 16: {
211             Longitude = input.ReadInt32();
212             break;
213           }
214         }
215       }
216     }
217 
218   }
219 
220   /// <summary>
221   /// A latitude-longitude rectangle, represented as two diagonally opposite
222   /// points "lo" and "hi".
223   /// </summary>
224   public sealed partial class Rectangle : pb::IMessage<Rectangle> {
225     private static readonly pb::MessageParser<Rectangle> _parser = new pb::MessageParser<Rectangle>(() => new Rectangle());
226     private pb::UnknownFieldSet _unknownFields;
227     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
228     public static pb::MessageParser<Rectangle> Parser { get { return _parser; } }
229 
230     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
231     public static pbr::MessageDescriptor Descriptor {
232       get { return global::Routeguide.RouteGuideReflection.Descriptor.MessageTypes[1]; }
233     }
234 
235     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
236     pbr::MessageDescriptor pb::IMessage.Descriptor {
237       get { return Descriptor; }
238     }
239 
240     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Rectangle()241     public Rectangle() {
242       OnConstruction();
243     }
244 
OnConstruction()245     partial void OnConstruction();
246 
247     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Rectangle(Rectangle other)248     public Rectangle(Rectangle other) : this() {
249       lo_ = other.lo_ != null ? other.lo_.Clone() : null;
250       hi_ = other.hi_ != null ? other.hi_.Clone() : null;
251       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
252     }
253 
254     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()255     public Rectangle Clone() {
256       return new Rectangle(this);
257     }
258 
259     /// <summary>Field number for the "lo" field.</summary>
260     public const int LoFieldNumber = 1;
261     private global::Routeguide.Point lo_;
262     /// <summary>
263     /// One corner of the rectangle.
264     /// </summary>
265     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
266     public global::Routeguide.Point Lo {
267       get { return lo_; }
268       set {
269         lo_ = value;
270       }
271     }
272 
273     /// <summary>Field number for the "hi" field.</summary>
274     public const int HiFieldNumber = 2;
275     private global::Routeguide.Point hi_;
276     /// <summary>
277     /// The other corner of the rectangle.
278     /// </summary>
279     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
280     public global::Routeguide.Point Hi {
281       get { return hi_; }
282       set {
283         hi_ = value;
284       }
285     }
286 
287     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)288     public override bool Equals(object other) {
289       return Equals(other as Rectangle);
290     }
291 
292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(Rectangle other)293     public bool Equals(Rectangle other) {
294       if (ReferenceEquals(other, null)) {
295         return false;
296       }
297       if (ReferenceEquals(other, this)) {
298         return true;
299       }
300       if (!object.Equals(Lo, other.Lo)) return false;
301       if (!object.Equals(Hi, other.Hi)) return false;
302       return Equals(_unknownFields, other._unknownFields);
303     }
304 
305     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()306     public override int GetHashCode() {
307       int hash = 1;
308       if (lo_ != null) hash ^= Lo.GetHashCode();
309       if (hi_ != null) hash ^= Hi.GetHashCode();
310       if (_unknownFields != null) {
311         hash ^= _unknownFields.GetHashCode();
312       }
313       return hash;
314     }
315 
316     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()317     public override string ToString() {
318       return pb::JsonFormatter.ToDiagnosticString(this);
319     }
320 
321     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)322     public void WriteTo(pb::CodedOutputStream output) {
323       if (lo_ != null) {
324         output.WriteRawTag(10);
325         output.WriteMessage(Lo);
326       }
327       if (hi_ != null) {
328         output.WriteRawTag(18);
329         output.WriteMessage(Hi);
330       }
331       if (_unknownFields != null) {
332         _unknownFields.WriteTo(output);
333       }
334     }
335 
336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()337     public int CalculateSize() {
338       int size = 0;
339       if (lo_ != null) {
340         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lo);
341       }
342       if (hi_ != null) {
343         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Hi);
344       }
345       if (_unknownFields != null) {
346         size += _unknownFields.CalculateSize();
347       }
348       return size;
349     }
350 
351     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(Rectangle other)352     public void MergeFrom(Rectangle other) {
353       if (other == null) {
354         return;
355       }
356       if (other.lo_ != null) {
357         if (lo_ == null) {
358           lo_ = new global::Routeguide.Point();
359         }
360         Lo.MergeFrom(other.Lo);
361       }
362       if (other.hi_ != null) {
363         if (hi_ == null) {
364           hi_ = new global::Routeguide.Point();
365         }
366         Hi.MergeFrom(other.Hi);
367       }
368       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
369     }
370 
371     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)372     public void MergeFrom(pb::CodedInputStream input) {
373       uint tag;
374       while ((tag = input.ReadTag()) != 0) {
375         switch(tag) {
376           default:
377             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
378             break;
379           case 10: {
380             if (lo_ == null) {
381               lo_ = new global::Routeguide.Point();
382             }
383             input.ReadMessage(lo_);
384             break;
385           }
386           case 18: {
387             if (hi_ == null) {
388               hi_ = new global::Routeguide.Point();
389             }
390             input.ReadMessage(hi_);
391             break;
392           }
393         }
394       }
395     }
396 
397   }
398 
399   /// <summary>
400   /// A feature names something at a given point.
401   ///
402   /// If a feature could not be named, the name is empty.
403   /// </summary>
404   public sealed partial class Feature : pb::IMessage<Feature> {
405     private static readonly pb::MessageParser<Feature> _parser = new pb::MessageParser<Feature>(() => new Feature());
406     private pb::UnknownFieldSet _unknownFields;
407     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
408     public static pb::MessageParser<Feature> Parser { get { return _parser; } }
409 
410     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
411     public static pbr::MessageDescriptor Descriptor {
412       get { return global::Routeguide.RouteGuideReflection.Descriptor.MessageTypes[2]; }
413     }
414 
415     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
416     pbr::MessageDescriptor pb::IMessage.Descriptor {
417       get { return Descriptor; }
418     }
419 
420     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Feature()421     public Feature() {
422       OnConstruction();
423     }
424 
OnConstruction()425     partial void OnConstruction();
426 
427     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Feature(Feature other)428     public Feature(Feature other) : this() {
429       name_ = other.name_;
430       location_ = other.location_ != null ? other.location_.Clone() : null;
431       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
432     }
433 
434     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()435     public Feature Clone() {
436       return new Feature(this);
437     }
438 
439     /// <summary>Field number for the "name" field.</summary>
440     public const int NameFieldNumber = 1;
441     private string name_ = "";
442     /// <summary>
443     /// The name of the feature.
444     /// </summary>
445     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
446     public string Name {
447       get { return name_; }
448       set {
449         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
450       }
451     }
452 
453     /// <summary>Field number for the "location" field.</summary>
454     public const int LocationFieldNumber = 2;
455     private global::Routeguide.Point location_;
456     /// <summary>
457     /// The point where the feature is detected.
458     /// </summary>
459     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
460     public global::Routeguide.Point Location {
461       get { return location_; }
462       set {
463         location_ = value;
464       }
465     }
466 
467     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)468     public override bool Equals(object other) {
469       return Equals(other as Feature);
470     }
471 
472     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(Feature other)473     public bool Equals(Feature other) {
474       if (ReferenceEquals(other, null)) {
475         return false;
476       }
477       if (ReferenceEquals(other, this)) {
478         return true;
479       }
480       if (Name != other.Name) return false;
481       if (!object.Equals(Location, other.Location)) return false;
482       return Equals(_unknownFields, other._unknownFields);
483     }
484 
485     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()486     public override int GetHashCode() {
487       int hash = 1;
488       if (Name.Length != 0) hash ^= Name.GetHashCode();
489       if (location_ != null) hash ^= Location.GetHashCode();
490       if (_unknownFields != null) {
491         hash ^= _unknownFields.GetHashCode();
492       }
493       return hash;
494     }
495 
496     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()497     public override string ToString() {
498       return pb::JsonFormatter.ToDiagnosticString(this);
499     }
500 
501     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)502     public void WriteTo(pb::CodedOutputStream output) {
503       if (Name.Length != 0) {
504         output.WriteRawTag(10);
505         output.WriteString(Name);
506       }
507       if (location_ != null) {
508         output.WriteRawTag(18);
509         output.WriteMessage(Location);
510       }
511       if (_unknownFields != null) {
512         _unknownFields.WriteTo(output);
513       }
514     }
515 
516     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()517     public int CalculateSize() {
518       int size = 0;
519       if (Name.Length != 0) {
520         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
521       }
522       if (location_ != null) {
523         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location);
524       }
525       if (_unknownFields != null) {
526         size += _unknownFields.CalculateSize();
527       }
528       return size;
529     }
530 
531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(Feature other)532     public void MergeFrom(Feature other) {
533       if (other == null) {
534         return;
535       }
536       if (other.Name.Length != 0) {
537         Name = other.Name;
538       }
539       if (other.location_ != null) {
540         if (location_ == null) {
541           location_ = new global::Routeguide.Point();
542         }
543         Location.MergeFrom(other.Location);
544       }
545       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
546     }
547 
548     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)549     public void MergeFrom(pb::CodedInputStream input) {
550       uint tag;
551       while ((tag = input.ReadTag()) != 0) {
552         switch(tag) {
553           default:
554             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
555             break;
556           case 10: {
557             Name = input.ReadString();
558             break;
559           }
560           case 18: {
561             if (location_ == null) {
562               location_ = new global::Routeguide.Point();
563             }
564             input.ReadMessage(location_);
565             break;
566           }
567         }
568       }
569     }
570 
571   }
572 
573   /// <summary>
574   /// A RouteNote is a message sent while at a given point.
575   /// </summary>
576   public sealed partial class RouteNote : pb::IMessage<RouteNote> {
577     private static readonly pb::MessageParser<RouteNote> _parser = new pb::MessageParser<RouteNote>(() => new RouteNote());
578     private pb::UnknownFieldSet _unknownFields;
579     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
580     public static pb::MessageParser<RouteNote> Parser { get { return _parser; } }
581 
582     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
583     public static pbr::MessageDescriptor Descriptor {
584       get { return global::Routeguide.RouteGuideReflection.Descriptor.MessageTypes[3]; }
585     }
586 
587     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
588     pbr::MessageDescriptor pb::IMessage.Descriptor {
589       get { return Descriptor; }
590     }
591 
592     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RouteNote()593     public RouteNote() {
594       OnConstruction();
595     }
596 
OnConstruction()597     partial void OnConstruction();
598 
599     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RouteNote(RouteNote other)600     public RouteNote(RouteNote other) : this() {
601       location_ = other.location_ != null ? other.location_.Clone() : null;
602       message_ = other.message_;
603       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
604     }
605 
606     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()607     public RouteNote Clone() {
608       return new RouteNote(this);
609     }
610 
611     /// <summary>Field number for the "location" field.</summary>
612     public const int LocationFieldNumber = 1;
613     private global::Routeguide.Point location_;
614     /// <summary>
615     /// The location from which the message is sent.
616     /// </summary>
617     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
618     public global::Routeguide.Point Location {
619       get { return location_; }
620       set {
621         location_ = value;
622       }
623     }
624 
625     /// <summary>Field number for the "message" field.</summary>
626     public const int MessageFieldNumber = 2;
627     private string message_ = "";
628     /// <summary>
629     /// The message to be sent.
630     /// </summary>
631     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
632     public string Message {
633       get { return message_; }
634       set {
635         message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
636       }
637     }
638 
639     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)640     public override bool Equals(object other) {
641       return Equals(other as RouteNote);
642     }
643 
644     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(RouteNote other)645     public bool Equals(RouteNote other) {
646       if (ReferenceEquals(other, null)) {
647         return false;
648       }
649       if (ReferenceEquals(other, this)) {
650         return true;
651       }
652       if (!object.Equals(Location, other.Location)) return false;
653       if (Message != other.Message) return false;
654       return Equals(_unknownFields, other._unknownFields);
655     }
656 
657     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()658     public override int GetHashCode() {
659       int hash = 1;
660       if (location_ != null) hash ^= Location.GetHashCode();
661       if (Message.Length != 0) hash ^= Message.GetHashCode();
662       if (_unknownFields != null) {
663         hash ^= _unknownFields.GetHashCode();
664       }
665       return hash;
666     }
667 
668     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()669     public override string ToString() {
670       return pb::JsonFormatter.ToDiagnosticString(this);
671     }
672 
673     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)674     public void WriteTo(pb::CodedOutputStream output) {
675       if (location_ != null) {
676         output.WriteRawTag(10);
677         output.WriteMessage(Location);
678       }
679       if (Message.Length != 0) {
680         output.WriteRawTag(18);
681         output.WriteString(Message);
682       }
683       if (_unknownFields != null) {
684         _unknownFields.WriteTo(output);
685       }
686     }
687 
688     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()689     public int CalculateSize() {
690       int size = 0;
691       if (location_ != null) {
692         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location);
693       }
694       if (Message.Length != 0) {
695         size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
696       }
697       if (_unknownFields != null) {
698         size += _unknownFields.CalculateSize();
699       }
700       return size;
701     }
702 
703     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(RouteNote other)704     public void MergeFrom(RouteNote other) {
705       if (other == null) {
706         return;
707       }
708       if (other.location_ != null) {
709         if (location_ == null) {
710           location_ = new global::Routeguide.Point();
711         }
712         Location.MergeFrom(other.Location);
713       }
714       if (other.Message.Length != 0) {
715         Message = other.Message;
716       }
717       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
718     }
719 
720     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)721     public void MergeFrom(pb::CodedInputStream input) {
722       uint tag;
723       while ((tag = input.ReadTag()) != 0) {
724         switch(tag) {
725           default:
726             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
727             break;
728           case 10: {
729             if (location_ == null) {
730               location_ = new global::Routeguide.Point();
731             }
732             input.ReadMessage(location_);
733             break;
734           }
735           case 18: {
736             Message = input.ReadString();
737             break;
738           }
739         }
740       }
741     }
742 
743   }
744 
745   /// <summary>
746   /// A RouteSummary is received in response to a RecordRoute rpc.
747   ///
748   /// It contains the number of individual points received, the number of
749   /// detected features, and the total distance covered as the cumulative sum of
750   /// the distance between each point.
751   /// </summary>
752   public sealed partial class RouteSummary : pb::IMessage<RouteSummary> {
753     private static readonly pb::MessageParser<RouteSummary> _parser = new pb::MessageParser<RouteSummary>(() => new RouteSummary());
754     private pb::UnknownFieldSet _unknownFields;
755     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
756     public static pb::MessageParser<RouteSummary> Parser { get { return _parser; } }
757 
758     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
759     public static pbr::MessageDescriptor Descriptor {
760       get { return global::Routeguide.RouteGuideReflection.Descriptor.MessageTypes[4]; }
761     }
762 
763     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
764     pbr::MessageDescriptor pb::IMessage.Descriptor {
765       get { return Descriptor; }
766     }
767 
768     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RouteSummary()769     public RouteSummary() {
770       OnConstruction();
771     }
772 
OnConstruction()773     partial void OnConstruction();
774 
775     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RouteSummary(RouteSummary other)776     public RouteSummary(RouteSummary other) : this() {
777       pointCount_ = other.pointCount_;
778       featureCount_ = other.featureCount_;
779       distance_ = other.distance_;
780       elapsedTime_ = other.elapsedTime_;
781       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
782     }
783 
784     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()785     public RouteSummary Clone() {
786       return new RouteSummary(this);
787     }
788 
789     /// <summary>Field number for the "point_count" field.</summary>
790     public const int PointCountFieldNumber = 1;
791     private int pointCount_;
792     /// <summary>
793     /// The number of points received.
794     /// </summary>
795     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
796     public int PointCount {
797       get { return pointCount_; }
798       set {
799         pointCount_ = value;
800       }
801     }
802 
803     /// <summary>Field number for the "feature_count" field.</summary>
804     public const int FeatureCountFieldNumber = 2;
805     private int featureCount_;
806     /// <summary>
807     /// The number of known features passed while traversing the route.
808     /// </summary>
809     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
810     public int FeatureCount {
811       get { return featureCount_; }
812       set {
813         featureCount_ = value;
814       }
815     }
816 
817     /// <summary>Field number for the "distance" field.</summary>
818     public const int DistanceFieldNumber = 3;
819     private int distance_;
820     /// <summary>
821     /// The distance covered in metres.
822     /// </summary>
823     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
824     public int Distance {
825       get { return distance_; }
826       set {
827         distance_ = value;
828       }
829     }
830 
831     /// <summary>Field number for the "elapsed_time" field.</summary>
832     public const int ElapsedTimeFieldNumber = 4;
833     private int elapsedTime_;
834     /// <summary>
835     /// The duration of the traversal in seconds.
836     /// </summary>
837     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
838     public int ElapsedTime {
839       get { return elapsedTime_; }
840       set {
841         elapsedTime_ = value;
842       }
843     }
844 
845     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)846     public override bool Equals(object other) {
847       return Equals(other as RouteSummary);
848     }
849 
850     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(RouteSummary other)851     public bool Equals(RouteSummary other) {
852       if (ReferenceEquals(other, null)) {
853         return false;
854       }
855       if (ReferenceEquals(other, this)) {
856         return true;
857       }
858       if (PointCount != other.PointCount) return false;
859       if (FeatureCount != other.FeatureCount) return false;
860       if (Distance != other.Distance) return false;
861       if (ElapsedTime != other.ElapsedTime) return false;
862       return Equals(_unknownFields, other._unknownFields);
863     }
864 
865     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()866     public override int GetHashCode() {
867       int hash = 1;
868       if (PointCount != 0) hash ^= PointCount.GetHashCode();
869       if (FeatureCount != 0) hash ^= FeatureCount.GetHashCode();
870       if (Distance != 0) hash ^= Distance.GetHashCode();
871       if (ElapsedTime != 0) hash ^= ElapsedTime.GetHashCode();
872       if (_unknownFields != null) {
873         hash ^= _unknownFields.GetHashCode();
874       }
875       return hash;
876     }
877 
878     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()879     public override string ToString() {
880       return pb::JsonFormatter.ToDiagnosticString(this);
881     }
882 
883     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)884     public void WriteTo(pb::CodedOutputStream output) {
885       if (PointCount != 0) {
886         output.WriteRawTag(8);
887         output.WriteInt32(PointCount);
888       }
889       if (FeatureCount != 0) {
890         output.WriteRawTag(16);
891         output.WriteInt32(FeatureCount);
892       }
893       if (Distance != 0) {
894         output.WriteRawTag(24);
895         output.WriteInt32(Distance);
896       }
897       if (ElapsedTime != 0) {
898         output.WriteRawTag(32);
899         output.WriteInt32(ElapsedTime);
900       }
901       if (_unknownFields != null) {
902         _unknownFields.WriteTo(output);
903       }
904     }
905 
906     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()907     public int CalculateSize() {
908       int size = 0;
909       if (PointCount != 0) {
910         size += 1 + pb::CodedOutputStream.ComputeInt32Size(PointCount);
911       }
912       if (FeatureCount != 0) {
913         size += 1 + pb::CodedOutputStream.ComputeInt32Size(FeatureCount);
914       }
915       if (Distance != 0) {
916         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Distance);
917       }
918       if (ElapsedTime != 0) {
919         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ElapsedTime);
920       }
921       if (_unknownFields != null) {
922         size += _unknownFields.CalculateSize();
923       }
924       return size;
925     }
926 
927     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(RouteSummary other)928     public void MergeFrom(RouteSummary other) {
929       if (other == null) {
930         return;
931       }
932       if (other.PointCount != 0) {
933         PointCount = other.PointCount;
934       }
935       if (other.FeatureCount != 0) {
936         FeatureCount = other.FeatureCount;
937       }
938       if (other.Distance != 0) {
939         Distance = other.Distance;
940       }
941       if (other.ElapsedTime != 0) {
942         ElapsedTime = other.ElapsedTime;
943       }
944       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
945     }
946 
947     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)948     public void MergeFrom(pb::CodedInputStream input) {
949       uint tag;
950       while ((tag = input.ReadTag()) != 0) {
951         switch(tag) {
952           default:
953             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
954             break;
955           case 8: {
956             PointCount = input.ReadInt32();
957             break;
958           }
959           case 16: {
960             FeatureCount = input.ReadInt32();
961             break;
962           }
963           case 24: {
964             Distance = input.ReadInt32();
965             break;
966           }
967           case 32: {
968             ElapsedTime = input.ReadInt32();
969             break;
970           }
971         }
972       }
973     }
974 
975   }
976 
977   #endregion
978 
979 }
980 
981 #endregion Designer generated code
982