public void MergeFrom(FaultRateLimit other) { if (other == null) { return; } if (other.percentage_ != null) { if (percentage_ == null) { Percentage = new global::Envoy.Type.FractionalPercent(); } Percentage.MergeFrom(other.Percentage); } switch (other.LimitTypeCase) { case LimitTypeOneofCase.FixedLimit: if (FixedLimit == null) { FixedLimit = new global::Envoy.Config.Filter.Fault.V3Alpha.FaultRateLimit.Types.FixedLimit(); } FixedLimit.MergeFrom(other.FixedLimit); break; case LimitTypeOneofCase.HeaderLimit: if (HeaderLimit == null) { HeaderLimit = new global::Envoy.Config.Filter.Fault.V3Alpha.FaultRateLimit.Types.HeaderLimit(); } HeaderLimit.MergeFrom(other.HeaderLimit); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(FaultAbort other) { if (other == null) { return; } if (other.percentage_ != null) { if (percentage_ == null) { Percentage = new global::Envoy.Type.FractionalPercent(); } Percentage.MergeFrom(other.Percentage); } switch (other.ErrorTypeCase) { case ErrorTypeOneofCase.HttpStatus: HttpStatus = other.HttpStatus; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(FaultDelay other) { if (other == null) { return; } if (other.Type != global::Envoy.Config.Filter.Fault.V3Alpha.FaultDelay.Types.FaultDelayType.Fixed) { Type = other.Type; } if (other.percentage_ != null) { if (percentage_ == null) { Percentage = new global::Envoy.Type.FractionalPercent(); } Percentage.MergeFrom(other.Percentage); } switch (other.FaultDelaySecifierCase) { case FaultDelaySecifierOneofCase.FixedDelay: if (FixedDelay == null) { FixedDelay = new global::Google.Protobuf.WellKnownTypes.Duration(); } FixedDelay.MergeFrom(other.FixedDelay); break; case FaultDelaySecifierOneofCase.HeaderDelay: if (HeaderDelay == null) { HeaderDelay = new global::Envoy.Config.Filter.Fault.V3Alpha.FaultDelay.Types.HeaderDelay(); } HeaderDelay.MergeFrom(other.HeaderDelay); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }