示例#1
0
 public void MergeFrom(ClusterConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.dnsCacheConfig_ != null)
     {
         if (dnsCacheConfig_ == null)
         {
             DnsCacheConfig = new global::Envoy.Config.Common.DynamicForwardProxy.V2Alpha.DnsCacheConfig();
         }
         DnsCacheConfig.MergeFrom(other.DnsCacheConfig);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#2
0
        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 (dnsCacheConfig_ == null)
                    {
                        DnsCacheConfig = new global::Envoy.Config.Common.DynamicForwardProxy.V2Alpha.DnsCacheConfig();
                    }
                    input.ReadMessage(DnsCacheConfig);
                    break;
                }
                }
            }
        }