public void MergeFrom(HttpUri other) { if (other == null) { return; } if (other.Uri.Length != 0) { Uri = other.Uri; } if (other.timeout_ != null) { if (timeout_ == null) { Timeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } Timeout.MergeFrom(other.Timeout); } switch (other.HttpUpstreamTypeCase) { case HttpUpstreamTypeOneofCase.Cluster: Cluster = other.Cluster; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(HealthCheck other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.interval_ != null) { if (interval_ == null) { Interval = new global::Google.Protobuf.WellKnownTypes.Duration(); } Interval.MergeFrom(other.Interval); } if (other.timeout_ != null) { if (timeout_ == null) { Timeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } Timeout.MergeFrom(other.Timeout); } if (other.UnhealthyThreshold != 0L) { UnhealthyThreshold = other.UnhealthyThreshold; } if (other.HealthyThreshold != 0L) { HealthyThreshold = other.HealthyThreshold; } switch (other.OptionsCase) { case OptionsOneofCase.TcpOptions: if (TcpOptions == null) { TcpOptions = new global::Yandex.Cloud.Loadbalancer.V1.HealthCheck.Types.TcpOptions(); } TcpOptions.MergeFrom(other.TcpOptions); break; case OptionsOneofCase.HttpOptions: if (HttpOptions == null) { HttpOptions = new global::Yandex.Cloud.Loadbalancer.V1.HealthCheck.Types.HttpOptions(); } HttpOptions.MergeFrom(other.HttpOptions); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(RateLimit other) { if (other == null) { return; } if (other.Domain.Length != 0) { Domain = other.Domain; } if (other.Stage != 0) { Stage = other.Stage; } if (other.RequestType.Length != 0) { RequestType = other.RequestType; } if (other.timeout_ != null) { if (timeout_ == null) { Timeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } Timeout.MergeFrom(other.Timeout); } if (other.FailureModeDeny != false) { FailureModeDeny = other.FailureModeDeny; } if (other.RateLimitedAsResourceExhausted != false) { RateLimitedAsResourceExhausted = other.RateLimitedAsResourceExhausted; } if (other.rateLimitService_ != null) { if (rateLimitService_ == null) { RateLimitService = new global::Envoy.Config.Ratelimit.V2.RateLimitServiceConfig(); } RateLimitService.MergeFrom(other.RateLimitService); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(RateLimit other) { if (other == null) { return; } if (other.StatPrefix.Length != 0) { StatPrefix = other.StatPrefix; } if (other.Domain.Length != 0) { Domain = other.Domain; } descriptors_.Add(other.descriptors_); if (other.timeout_ != null) { if (timeout_ == null) { Timeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } Timeout.MergeFrom(other.Timeout); } if (other.FailureModeDeny != false) { FailureModeDeny = other.FailureModeDeny; } if (other.rateLimitService_ != null) { if (rateLimitService_ == null) { RateLimitService = new global::Envoy.Config.Ratelimit.V3Alpha.RateLimitServiceConfig(); } RateLimitService.MergeFrom(other.RateLimitService); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }