|
|
@ -1,5 +1,7 @@ |
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT! |
|
|
|
// <auto-generated> |
|
|
|
// source: route_guide.proto |
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT! |
|
|
|
|
|
|
|
// source: route_guide.proto |
|
|
|
|
|
|
|
// </auto-generated> |
|
|
|
#pragma warning disable 1591, 0612, 3021 |
|
|
|
#pragma warning disable 1591, 0612, 3021 |
|
|
|
#region Designer generated code |
|
|
|
#region Designer generated code |
|
|
|
|
|
|
|
|
|
|
@ -60,6 +62,7 @@ namespace Routeguide { |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public sealed partial class Point : pb::IMessage<Point> { |
|
|
|
public sealed partial class Point : pb::IMessage<Point> { |
|
|
|
private static readonly pb::MessageParser<Point> _parser = new pb::MessageParser<Point>(() => new Point()); |
|
|
|
private static readonly pb::MessageParser<Point> _parser = new pb::MessageParser<Point>(() => new Point()); |
|
|
|
|
|
|
|
private pb::UnknownFieldSet _unknownFields; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public static pb::MessageParser<Point> Parser { get { return _parser; } } |
|
|
|
public static pb::MessageParser<Point> Parser { get { return _parser; } } |
|
|
|
|
|
|
|
|
|
|
@ -84,6 +87,7 @@ namespace Routeguide { |
|
|
|
public Point(Point other) : this() { |
|
|
|
public Point(Point other) : this() { |
|
|
|
latitude_ = other.latitude_; |
|
|
|
latitude_ = other.latitude_; |
|
|
|
longitude_ = other.longitude_; |
|
|
|
longitude_ = other.longitude_; |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -128,7 +132,7 @@ namespace Routeguide { |
|
|
|
} |
|
|
|
} |
|
|
|
if (Latitude != other.Latitude) return false; |
|
|
|
if (Latitude != other.Latitude) return false; |
|
|
|
if (Longitude != other.Longitude) return false; |
|
|
|
if (Longitude != other.Longitude) return false; |
|
|
|
return true; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -136,6 +140,9 @@ namespace Routeguide { |
|
|
|
int hash = 1; |
|
|
|
int hash = 1; |
|
|
|
if (Latitude != 0) hash ^= Latitude.GetHashCode(); |
|
|
|
if (Latitude != 0) hash ^= Latitude.GetHashCode(); |
|
|
|
if (Longitude != 0) hash ^= Longitude.GetHashCode(); |
|
|
|
if (Longitude != 0) hash ^= Longitude.GetHashCode(); |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
|
|
|
|
} |
|
|
|
return hash; |
|
|
|
return hash; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -154,6 +161,9 @@ namespace Routeguide { |
|
|
|
output.WriteRawTag(16); |
|
|
|
output.WriteRawTag(16); |
|
|
|
output.WriteInt32(Longitude); |
|
|
|
output.WriteInt32(Longitude); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -165,6 +175,9 @@ namespace Routeguide { |
|
|
|
if (Longitude != 0) { |
|
|
|
if (Longitude != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Longitude); |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Longitude); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
|
|
|
|
} |
|
|
|
return size; |
|
|
|
return size; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -179,6 +192,7 @@ namespace Routeguide { |
|
|
|
if (other.Longitude != 0) { |
|
|
|
if (other.Longitude != 0) { |
|
|
|
Longitude = other.Longitude; |
|
|
|
Longitude = other.Longitude; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -187,7 +201,7 @@ namespace Routeguide { |
|
|
|
while ((tag = input.ReadTag()) != 0) { |
|
|
|
while ((tag = input.ReadTag()) != 0) { |
|
|
|
switch(tag) { |
|
|
|
switch(tag) { |
|
|
|
default: |
|
|
|
default: |
|
|
|
input.SkipLastField(); |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 8: { |
|
|
|
case 8: { |
|
|
|
Latitude = input.ReadInt32(); |
|
|
|
Latitude = input.ReadInt32(); |
|
|
@ -209,6 +223,7 @@ namespace Routeguide { |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public sealed partial class Rectangle : pb::IMessage<Rectangle> { |
|
|
|
public sealed partial class Rectangle : pb::IMessage<Rectangle> { |
|
|
|
private static readonly pb::MessageParser<Rectangle> _parser = new pb::MessageParser<Rectangle>(() => new Rectangle()); |
|
|
|
private static readonly pb::MessageParser<Rectangle> _parser = new pb::MessageParser<Rectangle>(() => new Rectangle()); |
|
|
|
|
|
|
|
private pb::UnknownFieldSet _unknownFields; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public static pb::MessageParser<Rectangle> Parser { get { return _parser; } } |
|
|
|
public static pb::MessageParser<Rectangle> Parser { get { return _parser; } } |
|
|
|
|
|
|
|
|
|
|
@ -231,8 +246,9 @@ namespace Routeguide { |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public Rectangle(Rectangle other) : this() { |
|
|
|
public Rectangle(Rectangle other) : this() { |
|
|
|
Lo = other.lo_ != null ? other.Lo.Clone() : null; |
|
|
|
lo_ = other.lo_ != null ? other.lo_.Clone() : null; |
|
|
|
Hi = other.hi_ != null ? other.Hi.Clone() : null; |
|
|
|
hi_ = other.hi_ != null ? other.hi_.Clone() : null; |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -283,7 +299,7 @@ namespace Routeguide { |
|
|
|
} |
|
|
|
} |
|
|
|
if (!object.Equals(Lo, other.Lo)) return false; |
|
|
|
if (!object.Equals(Lo, other.Lo)) return false; |
|
|
|
if (!object.Equals(Hi, other.Hi)) return false; |
|
|
|
if (!object.Equals(Hi, other.Hi)) return false; |
|
|
|
return true; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -291,6 +307,9 @@ namespace Routeguide { |
|
|
|
int hash = 1; |
|
|
|
int hash = 1; |
|
|
|
if (lo_ != null) hash ^= Lo.GetHashCode(); |
|
|
|
if (lo_ != null) hash ^= Lo.GetHashCode(); |
|
|
|
if (hi_ != null) hash ^= Hi.GetHashCode(); |
|
|
|
if (hi_ != null) hash ^= Hi.GetHashCode(); |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
|
|
|
|
} |
|
|
|
return hash; |
|
|
|
return hash; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -309,6 +328,9 @@ namespace Routeguide { |
|
|
|
output.WriteRawTag(18); |
|
|
|
output.WriteRawTag(18); |
|
|
|
output.WriteMessage(Hi); |
|
|
|
output.WriteMessage(Hi); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -320,6 +342,9 @@ namespace Routeguide { |
|
|
|
if (hi_ != null) { |
|
|
|
if (hi_ != null) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Hi); |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Hi); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
|
|
|
|
} |
|
|
|
return size; |
|
|
|
return size; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -340,6 +365,7 @@ namespace Routeguide { |
|
|
|
} |
|
|
|
} |
|
|
|
Hi.MergeFrom(other.Hi); |
|
|
|
Hi.MergeFrom(other.Hi); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -348,7 +374,7 @@ namespace Routeguide { |
|
|
|
while ((tag = input.ReadTag()) != 0) { |
|
|
|
while ((tag = input.ReadTag()) != 0) { |
|
|
|
switch(tag) { |
|
|
|
switch(tag) { |
|
|
|
default: |
|
|
|
default: |
|
|
|
input.SkipLastField(); |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 10: { |
|
|
|
case 10: { |
|
|
|
if (lo_ == null) { |
|
|
|
if (lo_ == null) { |
|
|
@ -377,6 +403,7 @@ namespace Routeguide { |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public sealed partial class Feature : pb::IMessage<Feature> { |
|
|
|
public sealed partial class Feature : pb::IMessage<Feature> { |
|
|
|
private static readonly pb::MessageParser<Feature> _parser = new pb::MessageParser<Feature>(() => new Feature()); |
|
|
|
private static readonly pb::MessageParser<Feature> _parser = new pb::MessageParser<Feature>(() => new Feature()); |
|
|
|
|
|
|
|
private pb::UnknownFieldSet _unknownFields; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public static pb::MessageParser<Feature> Parser { get { return _parser; } } |
|
|
|
public static pb::MessageParser<Feature> Parser { get { return _parser; } } |
|
|
|
|
|
|
|
|
|
|
@ -400,7 +427,8 @@ namespace Routeguide { |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public Feature(Feature other) : this() { |
|
|
|
public Feature(Feature other) : this() { |
|
|
|
name_ = other.name_; |
|
|
|
name_ = other.name_; |
|
|
|
Location = other.location_ != null ? other.Location.Clone() : null; |
|
|
|
location_ = other.location_ != null ? other.location_.Clone() : null; |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -451,7 +479,7 @@ namespace Routeguide { |
|
|
|
} |
|
|
|
} |
|
|
|
if (Name != other.Name) return false; |
|
|
|
if (Name != other.Name) return false; |
|
|
|
if (!object.Equals(Location, other.Location)) return false; |
|
|
|
if (!object.Equals(Location, other.Location)) return false; |
|
|
|
return true; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -459,6 +487,9 @@ namespace Routeguide { |
|
|
|
int hash = 1; |
|
|
|
int hash = 1; |
|
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode(); |
|
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode(); |
|
|
|
if (location_ != null) hash ^= Location.GetHashCode(); |
|
|
|
if (location_ != null) hash ^= Location.GetHashCode(); |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
|
|
|
|
} |
|
|
|
return hash; |
|
|
|
return hash; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -477,6 +508,9 @@ namespace Routeguide { |
|
|
|
output.WriteRawTag(18); |
|
|
|
output.WriteRawTag(18); |
|
|
|
output.WriteMessage(Location); |
|
|
|
output.WriteMessage(Location); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -488,6 +522,9 @@ namespace Routeguide { |
|
|
|
if (location_ != null) { |
|
|
|
if (location_ != null) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
|
|
|
|
} |
|
|
|
return size; |
|
|
|
return size; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -505,6 +542,7 @@ namespace Routeguide { |
|
|
|
} |
|
|
|
} |
|
|
|
Location.MergeFrom(other.Location); |
|
|
|
Location.MergeFrom(other.Location); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -513,7 +551,7 @@ namespace Routeguide { |
|
|
|
while ((tag = input.ReadTag()) != 0) { |
|
|
|
while ((tag = input.ReadTag()) != 0) { |
|
|
|
switch(tag) { |
|
|
|
switch(tag) { |
|
|
|
default: |
|
|
|
default: |
|
|
|
input.SkipLastField(); |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 10: { |
|
|
|
case 10: { |
|
|
|
Name = input.ReadString(); |
|
|
|
Name = input.ReadString(); |
|
|
@ -537,6 +575,7 @@ namespace Routeguide { |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public sealed partial class RouteNote : pb::IMessage<RouteNote> { |
|
|
|
public sealed partial class RouteNote : pb::IMessage<RouteNote> { |
|
|
|
private static readonly pb::MessageParser<RouteNote> _parser = new pb::MessageParser<RouteNote>(() => new RouteNote()); |
|
|
|
private static readonly pb::MessageParser<RouteNote> _parser = new pb::MessageParser<RouteNote>(() => new RouteNote()); |
|
|
|
|
|
|
|
private pb::UnknownFieldSet _unknownFields; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public static pb::MessageParser<RouteNote> Parser { get { return _parser; } } |
|
|
|
public static pb::MessageParser<RouteNote> Parser { get { return _parser; } } |
|
|
|
|
|
|
|
|
|
|
@ -559,8 +598,9 @@ namespace Routeguide { |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public RouteNote(RouteNote other) : this() { |
|
|
|
public RouteNote(RouteNote other) : this() { |
|
|
|
Location = other.location_ != null ? other.Location.Clone() : null; |
|
|
|
location_ = other.location_ != null ? other.location_.Clone() : null; |
|
|
|
message_ = other.message_; |
|
|
|
message_ = other.message_; |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -611,7 +651,7 @@ namespace Routeguide { |
|
|
|
} |
|
|
|
} |
|
|
|
if (!object.Equals(Location, other.Location)) return false; |
|
|
|
if (!object.Equals(Location, other.Location)) return false; |
|
|
|
if (Message != other.Message) return false; |
|
|
|
if (Message != other.Message) return false; |
|
|
|
return true; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -619,6 +659,9 @@ namespace Routeguide { |
|
|
|
int hash = 1; |
|
|
|
int hash = 1; |
|
|
|
if (location_ != null) hash ^= Location.GetHashCode(); |
|
|
|
if (location_ != null) hash ^= Location.GetHashCode(); |
|
|
|
if (Message.Length != 0) hash ^= Message.GetHashCode(); |
|
|
|
if (Message.Length != 0) hash ^= Message.GetHashCode(); |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
|
|
|
|
} |
|
|
|
return hash; |
|
|
|
return hash; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -637,6 +680,9 @@ namespace Routeguide { |
|
|
|
output.WriteRawTag(18); |
|
|
|
output.WriteRawTag(18); |
|
|
|
output.WriteString(Message); |
|
|
|
output.WriteString(Message); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -648,6 +694,9 @@ namespace Routeguide { |
|
|
|
if (Message.Length != 0) { |
|
|
|
if (Message.Length != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
|
|
|
|
} |
|
|
|
return size; |
|
|
|
return size; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -665,6 +714,7 @@ namespace Routeguide { |
|
|
|
if (other.Message.Length != 0) { |
|
|
|
if (other.Message.Length != 0) { |
|
|
|
Message = other.Message; |
|
|
|
Message = other.Message; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -673,7 +723,7 @@ namespace Routeguide { |
|
|
|
while ((tag = input.ReadTag()) != 0) { |
|
|
|
while ((tag = input.ReadTag()) != 0) { |
|
|
|
switch(tag) { |
|
|
|
switch(tag) { |
|
|
|
default: |
|
|
|
default: |
|
|
|
input.SkipLastField(); |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 10: { |
|
|
|
case 10: { |
|
|
|
if (location_ == null) { |
|
|
|
if (location_ == null) { |
|
|
@ -701,6 +751,7 @@ namespace Routeguide { |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public sealed partial class RouteSummary : pb::IMessage<RouteSummary> { |
|
|
|
public sealed partial class RouteSummary : pb::IMessage<RouteSummary> { |
|
|
|
private static readonly pb::MessageParser<RouteSummary> _parser = new pb::MessageParser<RouteSummary>(() => new RouteSummary()); |
|
|
|
private static readonly pb::MessageParser<RouteSummary> _parser = new pb::MessageParser<RouteSummary>(() => new RouteSummary()); |
|
|
|
|
|
|
|
private pb::UnknownFieldSet _unknownFields; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public static pb::MessageParser<RouteSummary> Parser { get { return _parser; } } |
|
|
|
public static pb::MessageParser<RouteSummary> Parser { get { return _parser; } } |
|
|
|
|
|
|
|
|
|
|
@ -727,6 +778,7 @@ namespace Routeguide { |
|
|
|
featureCount_ = other.featureCount_; |
|
|
|
featureCount_ = other.featureCount_; |
|
|
|
distance_ = other.distance_; |
|
|
|
distance_ = other.distance_; |
|
|
|
elapsedTime_ = other.elapsedTime_; |
|
|
|
elapsedTime_ = other.elapsedTime_; |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -807,7 +859,7 @@ namespace Routeguide { |
|
|
|
if (FeatureCount != other.FeatureCount) return false; |
|
|
|
if (FeatureCount != other.FeatureCount) return false; |
|
|
|
if (Distance != other.Distance) return false; |
|
|
|
if (Distance != other.Distance) return false; |
|
|
|
if (ElapsedTime != other.ElapsedTime) return false; |
|
|
|
if (ElapsedTime != other.ElapsedTime) return false; |
|
|
|
return true; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -817,6 +869,9 @@ namespace Routeguide { |
|
|
|
if (FeatureCount != 0) hash ^= FeatureCount.GetHashCode(); |
|
|
|
if (FeatureCount != 0) hash ^= FeatureCount.GetHashCode(); |
|
|
|
if (Distance != 0) hash ^= Distance.GetHashCode(); |
|
|
|
if (Distance != 0) hash ^= Distance.GetHashCode(); |
|
|
|
if (ElapsedTime != 0) hash ^= ElapsedTime.GetHashCode(); |
|
|
|
if (ElapsedTime != 0) hash ^= ElapsedTime.GetHashCode(); |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
|
|
|
|
} |
|
|
|
return hash; |
|
|
|
return hash; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -843,6 +898,9 @@ namespace Routeguide { |
|
|
|
output.WriteRawTag(32); |
|
|
|
output.WriteRawTag(32); |
|
|
|
output.WriteInt32(ElapsedTime); |
|
|
|
output.WriteInt32(ElapsedTime); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -860,6 +918,9 @@ namespace Routeguide { |
|
|
|
if (ElapsedTime != 0) { |
|
|
|
if (ElapsedTime != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ElapsedTime); |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ElapsedTime); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
|
|
|
|
} |
|
|
|
return size; |
|
|
|
return size; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -880,6 +941,7 @@ namespace Routeguide { |
|
|
|
if (other.ElapsedTime != 0) { |
|
|
|
if (other.ElapsedTime != 0) { |
|
|
|
ElapsedTime = other.ElapsedTime; |
|
|
|
ElapsedTime = other.ElapsedTime; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -888,7 +950,7 @@ namespace Routeguide { |
|
|
|
while ((tag = input.ReadTag()) != 0) { |
|
|
|
while ((tag = input.ReadTag()) != 0) { |
|
|
|
switch(tag) { |
|
|
|
switch(tag) { |
|
|
|
default: |
|
|
|
default: |
|
|
|
input.SkipLastField(); |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 8: { |
|
|
|
case 8: { |
|
|
|
PointCount = input.ReadInt32(); |
|
|
|
PointCount = input.ReadInt32(); |
|
|
|