Skip to content
Snippets Groups Projects
Select Git revision
  • 97eaec1cdc28174f1f5bd2bd74aba19f0869d75e
  • master default protected
  • arm-aarch-platform
  • arm-platform
  • vjpai-patch-3
  • vjpai-patch-1
  • v1.27.x
  • jtattermusch-patch-2
  • jtattermusch-patch-1
  • update-java-worker-example-in-performance-docs
  • revert-21805-revert-21797-reintroduce_21527
  • revert-21804-tls-credentials-1
  • zhen_cleanup_namecheck
  • revert-21806-revert-21767-revert-21725-revert-21680-cq_ordering
  • vjpai-patch-2
  • revert-21766-tls-credentials-1
  • revert-21640-change_local_tcp_security_level
  • revert-21680-cq_ordering
  • revert-21527-unify_boringssl_deps2
  • revert-20803-grpclb_stabilization
  • fix-kokoro-rvm-key
  • v1.27.0
  • v1.27.0-pre2
  • v1.27.0-pre1
  • v1.26.0
  • v1.26.0-pre1
  • v1.25.0
  • v1.25.0-pre1
  • v1.24.3
  • v1.24.2
  • v1.24.1
  • v1.23.1
  • v1.24.0
  • v1.24.0-pre2
  • v1.24.0-pre1
  • v1.22.1
  • v1.23.0
  • v1.23.0-pre1
  • v1.22.0
  • v1.22.0-pre1
  • v1.21.4
41 results

RouteGuide.cs

Blame
  • RouteGuide.cs 21.01 KiB
    // Generated by the protocol buffer compiler.  DO NOT EDIT!
    // source: route_guide.proto
    #pragma warning disable 1591, 0612, 3021
    #region Designer generated code
    
    using pb = global::Google.Protobuf;
    using pbc = global::Google.Protobuf.Collections;
    using pbr = global::Google.Protobuf.Reflection;
    using scg = global::System.Collections.Generic;
    namespace Examples {
    
      namespace Proto {
    
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public static partial class RouteGuide {
    
          #region Descriptor
          public static pbr::FileDescriptor Descriptor {
            get { return descriptor; }
          }
          private static pbr::FileDescriptor descriptor;
    
          static RouteGuide() {
            byte[] descriptorData = global::System.Convert.FromBase64String(
                string.Concat(
                  "ChFyb3V0ZV9ndWlkZS5wcm90bxIIZXhhbXBsZXMiLAoFUG9pbnQSEAoIbGF0", 
                  "aXR1ZGUYASABKAUSEQoJbG9uZ2l0dWRlGAIgASgFIkUKCVJlY3RhbmdsZRIb", 
                  "CgJsbxgBIAEoCzIPLmV4YW1wbGVzLlBvaW50EhsKAmhpGAIgASgLMg8uZXhh", 
                  "bXBsZXMuUG9pbnQiOgoHRmVhdHVyZRIMCgRuYW1lGAEgASgJEiEKCGxvY2F0", 
                  "aW9uGAIgASgLMg8uZXhhbXBsZXMuUG9pbnQiPwoJUm91dGVOb3RlEiEKCGxv", 
                  "Y2F0aW9uGAEgASgLMg8uZXhhbXBsZXMuUG9pbnQSDwoHbWVzc2FnZRgCIAEo", 
                  "CSJiCgxSb3V0ZVN1bW1hcnkSEwoLcG9pbnRfY291bnQYASABKAUSFQoNZmVh", 
                  "dHVyZV9jb3VudBgCIAEoBRIQCghkaXN0YW5jZRgDIAEoBRIUCgxlbGFwc2Vk", 
                  "X3RpbWUYBCABKAUy9QEKClJvdXRlR3VpZGUSMgoKR2V0RmVhdHVyZRIPLmV4", 
                  "YW1wbGVzLlBvaW50GhEuZXhhbXBsZXMuRmVhdHVyZSIAEjoKDExpc3RGZWF0", 
                  "dXJlcxITLmV4YW1wbGVzLlJlY3RhbmdsZRoRLmV4YW1wbGVzLkZlYXR1cmUi", 
                  "ADABEjoKC1JlY29yZFJvdXRlEg8uZXhhbXBsZXMuUG9pbnQaFi5leGFtcGxl", 
                  "cy5Sb3V0ZVN1bW1hcnkiACgBEjsKCVJvdXRlQ2hhdBITLmV4YW1wbGVzLlJv", 
                  "dXRlTm90ZRoTLmV4YW1wbGVzLlJvdXRlTm90ZSIAKAEwAUIPCgdleC5ncnBj", 
                  "ogIDUlRHYgZwcm90bzM="));
            descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
                new pbr::FileDescriptor[] { },
                new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
                  new pbr::GeneratedCodeInfo(typeof(global::Examples.Point), new[]{ "Latitude", "Longitude" }, null, null, null),
                  new pbr::GeneratedCodeInfo(typeof(global::Examples.Rectangle), new[]{ "Lo", "Hi" }, null, null, null),
                  new pbr::GeneratedCodeInfo(typeof(global::Examples.Feature), new[]{ "Name", "Location" }, null, null, null),
                  new pbr::GeneratedCodeInfo(typeof(global::Examples.RouteNote), new[]{ "Location", "Message" }, null, null, null),
                  new pbr::GeneratedCodeInfo(typeof(global::Examples.RouteSummary), new[]{ "PointCount", "FeatureCount", "Distance", "ElapsedTime" }, null, null, null)
                }));
          }
          #endregion
    
        }
      }
      #region Messages
      [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
      public sealed partial class Point : pb::IMessage<Point> {
        private static readonly pb::MessageParser<Point> _parser = new pb::MessageParser<Point>(() => new Point());
        public static pb::MessageParser<Point> Parser { get { return _parser; } }
    
        public static pbr::MessageDescriptor Descriptor {
          get { return global::Examples.Proto.RouteGuide.Descriptor.MessageTypes[0]; }
        }
    
        pbr::MessageDescriptor pb::IMessage.Descriptor {
          get { return Descriptor; }
        }
    
        public Point() {
          OnConstruction();
        }
    
        partial void OnConstruction();
    
        public Point(Point other) : this() {
          latitude_ = other.latitude_;
          longitude_ = other.longitude_;
        }
    
        public Point Clone() {
          return new Point(this);
        }
    
        public const int LatitudeFieldNumber = 1;
        private int latitude_;
        public int Latitude {
          get { return latitude_; }
          set {
            latitude_ = value;
          }
        }
    
        public const int LongitudeFieldNumber = 2;
        private int longitude_;
        public int Longitude {
          get { return longitude_; }
          set {
            longitude_ = value;
          }
        }
    
        public override bool Equals(object other) {
          return Equals(other as Point);
        }
    
        public bool Equals(Point other) {
          if (ReferenceEquals(other, null)) {
            return false;
          }
          if (ReferenceEquals(other, this)) {
            return true;
          }
          if (Latitude != other.Latitude) return false;
          if (Longitude != other.Longitude) return false;
          return true;
        }
    
        public override int GetHashCode() {
          int hash = 1;
          if (Latitude != 0) hash ^= Latitude.GetHashCode();
          if (Longitude != 0) hash ^= Longitude.GetHashCode();
          return hash;
        }
    
        public override string ToString() {
          return pb::JsonFormatter.Default.Format(this);
        }
    
        public void WriteTo(pb::CodedOutputStream output) {
          if (Latitude != 0) {
            output.WriteRawTag(8);
            output.WriteInt32(Latitude);
          }
          if (Longitude != 0) {
            output.WriteRawTag(16);
            output.WriteInt32(Longitude);
          }
        }
    
        public int CalculateSize() {
          int size = 0;
          if (Latitude != 0) {
            size += 1 + pb::CodedOutputStream.ComputeInt32Size(Latitude);
          }
          if (Longitude != 0) {
            size += 1 + pb::CodedOutputStream.ComputeInt32Size(Longitude);
          }
          return size;
        }
    
        public void MergeFrom(Point other) {
          if (other == null) {
            return;
          }
          if (other.Latitude != 0) {
            Latitude = other.Latitude;
          }
          if (other.Longitude != 0) {
            Longitude = other.Longitude;
          }
        }
    
        public void MergeFrom(pb::CodedInputStream input) {
          uint tag;
          while ((tag = input.ReadTag()) != 0) {
            switch(tag) {
              default:
                input.SkipLastField();
                break;
              case 8: {
                Latitude = input.ReadInt32();
                break;
              }
              case 16: {
                Longitude = input.ReadInt32();
                break;
              }
            }
          }
        }
    
      }
    
      [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
      public sealed partial class Rectangle : pb::IMessage<Rectangle> {
        private static readonly pb::MessageParser<Rectangle> _parser = new pb::MessageParser<Rectangle>(() => new Rectangle());
        public static pb::MessageParser<Rectangle> Parser { get { return _parser; } }
    
        public static pbr::MessageDescriptor Descriptor {
          get { return global::Examples.Proto.RouteGuide.Descriptor.MessageTypes[1]; }
        }
    
        pbr::MessageDescriptor pb::IMessage.Descriptor {
          get { return Descriptor; }
        }
    
        public Rectangle() {
          OnConstruction();
        }
    
        partial void OnConstruction();
    
        public Rectangle(Rectangle other) : this() {
          Lo = other.lo_ != null ? other.Lo.Clone() : null;
          Hi = other.hi_ != null ? other.Hi.Clone() : null;
        }
    
        public Rectangle Clone() {
          return new Rectangle(this);
        }
    
        public const int LoFieldNumber = 1;
        private global::Examples.Point lo_;
        public global::Examples.Point Lo {
          get { return lo_; }
          set {
            lo_ = value;
          }
        }
    
        public const int HiFieldNumber = 2;
        private global::Examples.Point hi_;
        public global::Examples.Point Hi {
          get { return hi_; }
          set {
            hi_ = value;
          }
        }
    
        public override bool Equals(object other) {
          return Equals(other as Rectangle);
        }
    
        public bool Equals(Rectangle other) {
          if (ReferenceEquals(other, null)) {
            return false;
          }
          if (ReferenceEquals(other, this)) {
            return true;
          }
          if (!object.Equals(Lo, other.Lo)) return false;
          if (!object.Equals(Hi, other.Hi)) return false;
          return true;
        }
    
        public override int GetHashCode() {
          int hash = 1;
          if (lo_ != null) hash ^= Lo.GetHashCode();
          if (hi_ != null) hash ^= Hi.GetHashCode();
          return hash;
        }
    
        public override string ToString() {
          return pb::JsonFormatter.Default.Format(this);
        }
    
        public void WriteTo(pb::CodedOutputStream output) {
          if (lo_ != null) {
            output.WriteRawTag(10);
            output.WriteMessage(Lo);
          }
          if (hi_ != null) {
            output.WriteRawTag(18);
            output.WriteMessage(Hi);
          }
        }
    
        public int CalculateSize() {
          int size = 0;
          if (lo_ != null) {
            size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lo);
          }
          if (hi_ != null) {
            size += 1 + pb::CodedOutputStream.ComputeMessageSize(Hi);
          }
          return size;
        }
    
        public void MergeFrom(Rectangle other) {
          if (other == null) {
            return;
          }
          if (other.lo_ != null) {
            if (lo_ == null) {
              lo_ = new global::Examples.Point();
            }
            Lo.MergeFrom(other.Lo);
          }
          if (other.hi_ != null) {
            if (hi_ == null) {
              hi_ = new global::Examples.Point();
            }
            Hi.MergeFrom(other.Hi);
          }
        }
    
        public void MergeFrom(pb::CodedInputStream input) {
          uint tag;
          while ((tag = input.ReadTag()) != 0) {
            switch(tag) {
              default:
                input.SkipLastField();
                break;
              case 10: {
                if (lo_ == null) {
                  lo_ = new global::Examples.Point();
                }
                input.ReadMessage(lo_);
                break;
              }
              case 18: {
                if (hi_ == null) {
                  hi_ = new global::Examples.Point();
                }
                input.ReadMessage(hi_);
                break;
              }
            }
          }
        }
    
      }
    
      [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
      public sealed partial class Feature : pb::IMessage<Feature> {
        private static readonly pb::MessageParser<Feature> _parser = new pb::MessageParser<Feature>(() => new Feature());
        public static pb::MessageParser<Feature> Parser { get { return _parser; } }
    
        public static pbr::MessageDescriptor Descriptor {
          get { return global::Examples.Proto.RouteGuide.Descriptor.MessageTypes[2]; }
        }
    
        pbr::MessageDescriptor pb::IMessage.Descriptor {
          get { return Descriptor; }
        }
    
        public Feature() {
          OnConstruction();
        }
    
        partial void OnConstruction();
    
        public Feature(Feature other) : this() {
          name_ = other.name_;
          Location = other.location_ != null ? other.Location.Clone() : null;
        }
    
        public Feature Clone() {
          return new Feature(this);
        }
    
        public const int NameFieldNumber = 1;
        private string name_ = "";
        public string Name {
          get { return name_; }
          set {
            name_ = pb::Preconditions.CheckNotNull(value, "value");
          }
        }
    
        public const int LocationFieldNumber = 2;
        private global::Examples.Point location_;
        public global::Examples.Point Location {
          get { return location_; }
          set {
            location_ = value;
          }
        }
    
        public override bool Equals(object other) {
          return Equals(other as Feature);
        }
    
        public bool Equals(Feature other) {
          if (ReferenceEquals(other, null)) {
            return false;
          }
          if (ReferenceEquals(other, this)) {
            return true;
          }
          if (Name != other.Name) return false;
          if (!object.Equals(Location, other.Location)) return false;
          return true;
        }
    
        public override int GetHashCode() {
          int hash = 1;
          if (Name.Length != 0) hash ^= Name.GetHashCode();
          if (location_ != null) hash ^= Location.GetHashCode();
          return hash;
        }
    
        public override string ToString() {
          return pb::JsonFormatter.Default.Format(this);
        }
    
        public void WriteTo(pb::CodedOutputStream output) {
          if (Name.Length != 0) {
            output.WriteRawTag(10);
            output.WriteString(Name);
          }
          if (location_ != null) {
            output.WriteRawTag(18);
            output.WriteMessage(Location);
          }
        }
    
        public int CalculateSize() {
          int size = 0;
          if (Name.Length != 0) {
            size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
          }
          if (location_ != null) {
            size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location);
          }
          return size;
        }
    
        public void MergeFrom(Feature other) {
          if (other == null) {
            return;
          }
          if (other.Name.Length != 0) {
            Name = other.Name;
          }
          if (other.location_ != null) {
            if (location_ == null) {
              location_ = new global::Examples.Point();
            }
            Location.MergeFrom(other.Location);
          }
        }
    
        public void MergeFrom(pb::CodedInputStream input) {
          uint tag;
          while ((tag = input.ReadTag()) != 0) {
            switch(tag) {
              default:
                input.SkipLastField();
                break;
              case 10: {
                Name = input.ReadString();
                break;
              }
              case 18: {
                if (location_ == null) {
                  location_ = new global::Examples.Point();
                }
                input.ReadMessage(location_);
                break;
              }
            }
          }
        }
    
      }
    
      [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
      public sealed partial class RouteNote : pb::IMessage<RouteNote> {
        private static readonly pb::MessageParser<RouteNote> _parser = new pb::MessageParser<RouteNote>(() => new RouteNote());
        public static pb::MessageParser<RouteNote> Parser { get { return _parser; } }
    
        public static pbr::MessageDescriptor Descriptor {
          get { return global::Examples.Proto.RouteGuide.Descriptor.MessageTypes[3]; }
        }
    
        pbr::MessageDescriptor pb::IMessage.Descriptor {
          get { return Descriptor; }
        }
    
        public RouteNote() {
          OnConstruction();
        }
    
        partial void OnConstruction();
    
        public RouteNote(RouteNote other) : this() {
          Location = other.location_ != null ? other.Location.Clone() : null;
          message_ = other.message_;
        }
    
        public RouteNote Clone() {
          return new RouteNote(this);
        }
    
        public const int LocationFieldNumber = 1;
        private global::Examples.Point location_;
        public global::Examples.Point Location {
          get { return location_; }
          set {
            location_ = value;
          }
        }
    
        public const int MessageFieldNumber = 2;
        private string message_ = "";
        public string Message {
          get { return message_; }
          set {
            message_ = pb::Preconditions.CheckNotNull(value, "value");
          }
        }
    
        public override bool Equals(object other) {
          return Equals(other as RouteNote);
        }
    
        public bool Equals(RouteNote other) {
          if (ReferenceEquals(other, null)) {
            return false;
          }
          if (ReferenceEquals(other, this)) {
            return true;
          }
          if (!object.Equals(Location, other.Location)) return false;
          if (Message != other.Message) return false;
          return true;
        }
    
        public override int GetHashCode() {
          int hash = 1;
          if (location_ != null) hash ^= Location.GetHashCode();
          if (Message.Length != 0) hash ^= Message.GetHashCode();
          return hash;
        }
    
        public override string ToString() {
          return pb::JsonFormatter.Default.Format(this);
        }
    
        public void WriteTo(pb::CodedOutputStream output) {
          if (location_ != null) {
            output.WriteRawTag(10);
            output.WriteMessage(Location);
          }
          if (Message.Length != 0) {
            output.WriteRawTag(18);
            output.WriteString(Message);
          }
        }
    
        public int CalculateSize() {
          int size = 0;
          if (location_ != null) {
            size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location);
          }
          if (Message.Length != 0) {
            size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
          }
          return size;
        }
    
        public void MergeFrom(RouteNote other) {
          if (other == null) {
            return;
          }
          if (other.location_ != null) {
            if (location_ == null) {
              location_ = new global::Examples.Point();
            }
            Location.MergeFrom(other.Location);
          }
          if (other.Message.Length != 0) {
            Message = other.Message;
          }
        }
    
        public void MergeFrom(pb::CodedInputStream input) {
          uint tag;
          while ((tag = input.ReadTag()) != 0) {
            switch(tag) {
              default:
                input.SkipLastField();
                break;
              case 10: {
                if (location_ == null) {
                  location_ = new global::Examples.Point();
                }
                input.ReadMessage(location_);
                break;
              }
              case 18: {
                Message = input.ReadString();
                break;
              }
            }
          }
        }
    
      }
    
      [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
      public sealed partial class RouteSummary : pb::IMessage<RouteSummary> {
        private static readonly pb::MessageParser<RouteSummary> _parser = new pb::MessageParser<RouteSummary>(() => new RouteSummary());
        public static pb::MessageParser<RouteSummary> Parser { get { return _parser; } }
    
        public static pbr::MessageDescriptor Descriptor {
          get { return global::Examples.Proto.RouteGuide.Descriptor.MessageTypes[4]; }
        }
    
        pbr::MessageDescriptor pb::IMessage.Descriptor {
          get { return Descriptor; }
        }
    
        public RouteSummary() {
          OnConstruction();
        }
    
        partial void OnConstruction();
    
        public RouteSummary(RouteSummary other) : this() {
          pointCount_ = other.pointCount_;
          featureCount_ = other.featureCount_;
          distance_ = other.distance_;
          elapsedTime_ = other.elapsedTime_;
        }
    
        public RouteSummary Clone() {
          return new RouteSummary(this);
        }
    
        public const int PointCountFieldNumber = 1;
        private int pointCount_;
        public int PointCount {
          get { return pointCount_; }
          set {
            pointCount_ = value;
          }
        }
    
        public const int FeatureCountFieldNumber = 2;
        private int featureCount_;
        public int FeatureCount {
          get { return featureCount_; }
          set {
            featureCount_ = value;
          }
        }
    
        public const int DistanceFieldNumber = 3;
        private int distance_;
        public int Distance {
          get { return distance_; }
          set {
            distance_ = value;
          }
        }
    
        public const int ElapsedTimeFieldNumber = 4;
        private int elapsedTime_;
        public int ElapsedTime {
          get { return elapsedTime_; }
          set {
            elapsedTime_ = value;
          }
        }
    
        public override bool Equals(object other) {
          return Equals(other as RouteSummary);
        }
    
        public bool Equals(RouteSummary other) {
          if (ReferenceEquals(other, null)) {
            return false;
          }
          if (ReferenceEquals(other, this)) {
            return true;
          }
          if (PointCount != other.PointCount) return false;
          if (FeatureCount != other.FeatureCount) return false;
          if (Distance != other.Distance) return false;
          if (ElapsedTime != other.ElapsedTime) return false;
          return true;
        }
    
        public override int GetHashCode() {
          int hash = 1;
          if (PointCount != 0) hash ^= PointCount.GetHashCode();
          if (FeatureCount != 0) hash ^= FeatureCount.GetHashCode();
          if (Distance != 0) hash ^= Distance.GetHashCode();
          if (ElapsedTime != 0) hash ^= ElapsedTime.GetHashCode();
          return hash;
        }
    
        public override string ToString() {
          return pb::JsonFormatter.Default.Format(this);
        }
    
        public void WriteTo(pb::CodedOutputStream output) {
          if (PointCount != 0) {
            output.WriteRawTag(8);
            output.WriteInt32(PointCount);
          }
          if (FeatureCount != 0) {
            output.WriteRawTag(16);
            output.WriteInt32(FeatureCount);
          }
          if (Distance != 0) {
            output.WriteRawTag(24);
            output.WriteInt32(Distance);
          }
          if (ElapsedTime != 0) {
            output.WriteRawTag(32);
            output.WriteInt32(ElapsedTime);
          }
        }
    
        public int CalculateSize() {
          int size = 0;
          if (PointCount != 0) {
            size += 1 + pb::CodedOutputStream.ComputeInt32Size(PointCount);
          }
          if (FeatureCount != 0) {
            size += 1 + pb::CodedOutputStream.ComputeInt32Size(FeatureCount);
          }
          if (Distance != 0) {
            size += 1 + pb::CodedOutputStream.ComputeInt32Size(Distance);
          }
          if (ElapsedTime != 0) {
            size += 1 + pb::CodedOutputStream.ComputeInt32Size(ElapsedTime);
          }
          return size;
        }
    
        public void MergeFrom(RouteSummary other) {
          if (other == null) {
            return;
          }
          if (other.PointCount != 0) {
            PointCount = other.PointCount;
          }
          if (other.FeatureCount != 0) {
            FeatureCount = other.FeatureCount;
          }
          if (other.Distance != 0) {
            Distance = other.Distance;
          }
          if (other.ElapsedTime != 0) {
            ElapsedTime = other.ElapsedTime;
          }
        }
    
        public void MergeFrom(pb::CodedInputStream input) {
          uint tag;
          while ((tag = input.ReadTag()) != 0) {
            switch(tag) {
              default:
                input.SkipLastField();
                break;
              case 8: {
                PointCount = input.ReadInt32();
                break;
              }
              case 16: {
                FeatureCount = input.ReadInt32();
                break;
              }
              case 24: {
                Distance = input.ReadInt32();
                break;
              }
              case 32: {
                ElapsedTime = input.ReadInt32();
                break;
              }
            }
          }
        }
    
      }
    
      #endregion
    
    }
    
    #endregion Designer generated code