public void MergeFrom(ConfigSource other) { if (other == null) { return; } switch (other.ConfigSourceSpecifierCase) { case ConfigSourceSpecifierOneofCase.Path: Path = other.Path; break; case ConfigSourceSpecifierOneofCase.ApiConfigSource: if (ApiConfigSource == null) { ApiConfigSource = new global::Envoy.Api.V2.Core.ApiConfigSource(); } ApiConfigSource.MergeFrom(other.ApiConfigSource); break; case ConfigSourceSpecifierOneofCase.Ads: if (Ads == null) { Ads = new global::Envoy.Api.V2.Core.AggregatedConfigSource(); } Ads.MergeFrom(other.Ads); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(ConfigSource other) { if (other == null) { return; } if (other.initialFetchTimeout_ != null) { if (initialFetchTimeout_ == null) { InitialFetchTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } InitialFetchTimeout.MergeFrom(other.InitialFetchTimeout); } switch (other.ConfigSourceSpecifierCase) { case ConfigSourceSpecifierOneofCase.Path: Path = other.Path; break; case ConfigSourceSpecifierOneofCase.ApiConfigSource: if (ApiConfigSource == null) { ApiConfigSource = new global::Envoy.Api.V2.Core.ApiConfigSource(); } ApiConfigSource.MergeFrom(other.ApiConfigSource); break; case ConfigSourceSpecifierOneofCase.Ads: if (Ads == null) { Ads = new global::Envoy.Api.V2.Core.AggregatedConfigSource(); } Ads.MergeFrom(other.Ads); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }