public void MergeFrom(Squash other) { if (other == null) { return; } if (other.Cluster.Length != 0) { Cluster = other.Cluster; } if (other.attachmentTemplate_ != null) { if (attachmentTemplate_ == null) { AttachmentTemplate = new global::Google.Protobuf.WellKnownTypes.Struct(); } AttachmentTemplate.MergeFrom(other.AttachmentTemplate); } if (other.requestTimeout_ != null) { if (requestTimeout_ == null) { RequestTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } RequestTimeout.MergeFrom(other.RequestTimeout); } if (other.attachmentTimeout_ != null) { if (attachmentTimeout_ == null) { AttachmentTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } AttachmentTimeout.MergeFrom(other.AttachmentTimeout); } if (other.attachmentPollPeriod_ != null) { if (attachmentPollPeriod_ == null) { AttachmentPollPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); } AttachmentPollPeriod.MergeFrom(other.AttachmentPollPeriod); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(ApiConfigSource other) { if (other == null) { return; } if (other.ApiType != global::Envoy.Api.V2.Core.ApiConfigSource.Types.ApiType.UnsupportedRestLegacy) { ApiType = other.ApiType; } clusterNames_.Add(other.clusterNames_); grpcServices_.Add(other.grpcServices_); if (other.refreshDelay_ != null) { if (refreshDelay_ == null) { RefreshDelay = new global::Google.Protobuf.WellKnownTypes.Duration(); } RefreshDelay.MergeFrom(other.RefreshDelay); } if (other.requestTimeout_ != null) { if (requestTimeout_ == null) { RequestTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } RequestTimeout.MergeFrom(other.RequestTimeout); } if (other.rateLimitSettings_ != null) { if (rateLimitSettings_ == null) { RateLimitSettings = new global::Envoy.Api.V2.Core.RateLimitSettings(); } RateLimitSettings.MergeFrom(other.RateLimitSettings); } if (other.SetNodeOnFirstMessageOnly != false) { SetNodeOnFirstMessageOnly = other.SetNodeOnFirstMessageOnly; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }