public void MergeFrom(LocalityLbEndpoints other) { if (other == null) { return; } if (other.locality_ != null) { if (locality_ == null) { Locality = new global::Envoy.Api.V3Alpha.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(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.V3Alpha.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; } } } }