public void MergeFrom(ThriftProxy other) { if (other == null) { return; } if (other.Transport != global::Envoy.Config.Filter.Network.ThriftProxy.V3Alpha.TransportType.AutoTransport) { Transport = other.Transport; } if (other.Protocol != global::Envoy.Config.Filter.Network.ThriftProxy.V3Alpha.ProtocolType.AutoProtocol) { Protocol = other.Protocol; } if (other.StatPrefix.Length != 0) { StatPrefix = other.StatPrefix; } if (other.routeConfig_ != null) { if (routeConfig_ == null) { RouteConfig = new global::Envoy.Config.Filter.Network.ThriftProxy.V3Alpha.RouteConfiguration(); } RouteConfig.MergeFrom(other.RouteConfig); } thriftFilters_.Add(other.thriftFilters_); _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: { StatPrefix = input.ReadString(); break; } case 16: { Transport = (global::Envoy.Config.Filter.Network.ThriftProxy.V3Alpha.TransportType)input.ReadEnum(); break; } case 24: { Protocol = (global::Envoy.Config.Filter.Network.ThriftProxy.V3Alpha.ProtocolType)input.ReadEnum(); break; } case 34: { if (routeConfig_ == null) { RouteConfig = new global::Envoy.Config.Filter.Network.ThriftProxy.V3Alpha.RouteConfiguration(); } input.ReadMessage(RouteConfig); break; } case 42: { thriftFilters_.AddEntriesFrom(input, _repeated_thriftFilters_codec); break; } } } }