public void MergeFrom(LocalityLbEndpoints other)
 {
     if (other == null)
     {
         return;
     }
     if (other.locality_ != null)
     {
         if (locality_ == null)
         {
             Locality = new global::Envoy.Api.V2.Core.Locality();
         }
         Locality.MergeFrom(other.Locality);
     }
     lbEndpoints_.Add(other.lbEndpoints_);
     if (other.loadBalancingWeight_ != null)
     {
         if (loadBalancingWeight_ == null || other.LoadBalancingWeight != 0)
         {
             LoadBalancingWeight = other.LoadBalancingWeight;
         }
     }
     if (other.Priority != 0)
     {
         Priority = other.Priority;
     }
     if (other.proximity_ != null)
     {
         if (proximity_ == null || other.Proximity != 0)
         {
             Proximity = other.Proximity;
         }
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(UpstreamLocalityStats other)
 {
     if (other == null)
     {
         return;
     }
     if (other.locality_ != null)
     {
         if (locality_ == null)
         {
             locality_ = new global::Envoy.Api.V2.Core.Locality();
         }
         Locality.MergeFrom(other.Locality);
     }
     if (other.TotalSuccessfulRequests != 0UL)
     {
         TotalSuccessfulRequests = other.TotalSuccessfulRequests;
     }
     if (other.TotalRequestsInProgress != 0UL)
     {
         TotalRequestsInProgress = other.TotalRequestsInProgress;
     }
     if (other.TotalErrorRequests != 0UL)
     {
         TotalErrorRequests = other.TotalErrorRequests;
     }
     loadMetricStats_.Add(other.loadMetricStats_);
     if (other.Priority != 0)
     {
         Priority = other.Priority;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (locality_ == null)
                    {
                        Locality = new global::Envoy.Api.V2.Core.Locality();
                    }
                    input.ReadMessage(Locality);
                    break;
                }

                case 18: {
                    lbEndpoints_.AddEntriesFrom(input, _repeated_lbEndpoints_codec);
                    break;
                }

                case 26: {
                    uint?value = _single_loadBalancingWeight_codec.Read(input);
                    if (loadBalancingWeight_ == null || value != 0)
                    {
                        LoadBalancingWeight = value;
                    }
                    break;
                }

                case 40: {
                    Priority = input.ReadUInt32();
                    break;
                }

                case 50: {
                    uint?value = _single_proximity_codec.Read(input);
                    if (proximity_ == null || value != 0)
                    {
                        Proximity = value;
                    }
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (locality_ == null)
                    {
                        locality_ = new global::Envoy.Api.V2.Core.Locality();
                    }
                    input.ReadMessage(locality_);
                    break;
                }

                case 16: {
                    TotalSuccessfulRequests = input.ReadUInt64();
                    break;
                }

                case 24: {
                    TotalRequestsInProgress = input.ReadUInt64();
                    break;
                }

                case 32: {
                    TotalErrorRequests = input.ReadUInt64();
                    break;
                }

                case 42: {
                    loadMetricStats_.AddEntriesFrom(input, _repeated_loadMetricStats_codec);
                    break;
                }

                case 48: {
                    Priority = input.ReadUInt32();
                    break;
                }
                }
            }
        }