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: { Code = (global::Envoy.Service.Ratelimit.V3Alpha.RateLimitResponse.Types.Code)input.ReadEnum(); break; } case 18: { if (currentLimit_ == null) { CurrentLimit = new global::Envoy.Service.Ratelimit.V3Alpha.RateLimitResponse.Types.RateLimit(); } input.ReadMessage(CurrentLimit); break; } case 24: { LimitRemaining = input.ReadUInt32(); break; } } } }
public void MergeFrom(DescriptorStatus other) { if (other == null) { return; } if (other.Code != global::Envoy.Service.Ratelimit.V3Alpha.RateLimitResponse.Types.Code.Unknown) { Code = other.Code; } if (other.currentLimit_ != null) { if (currentLimit_ == null) { CurrentLimit = new global::Envoy.Service.Ratelimit.V3Alpha.RateLimitResponse.Types.RateLimit(); } CurrentLimit.MergeFrom(other.CurrentLimit); } if (other.LimitRemaining != 0) { LimitRemaining = other.LimitRemaining; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }