public void MergeFrom(RateLimit other) { if (other == null) { return; } if (other.RequestsPerUnit != 0) { RequestsPerUnit = other.RequestsPerUnit; } if (other.Unit != global::Envoy.Service.Ratelimit.V2.RateLimitResponse.Types.RateLimit.Types.Unit.Unknown) { Unit = other.Unit; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(RateLimit other) { if (other == null) { return; } if (other.RequestsPerUnit != 0) { RequestsPerUnit = other.RequestsPerUnit; } if (other.Unit != 0) { Unit = other.Unit; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { RequestsPerUnit = input.ReadUInt32(); break; } case 16: { Unit = (global::Envoy.Service.Ratelimit.V2.RateLimitResponse.Types.RateLimit.Types.Unit)input.ReadEnum(); break; } } } }