public void MergeFrom(FaultDelay other) { if (other == null) { return; } if (other.Type != 0) { Type = other.Type; } if (other.Percent != 0) { Percent = other.Percent; } switch (other.FaultDelaySecifierCase) { case FaultDelaySecifierOneofCase.FixedDelay: if (FixedDelay == null) { FixedDelay = new global::Google.Protobuf.WellKnownTypes.Duration(); } FixedDelay.MergeFrom(other.FixedDelay); 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); }