public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Domain = input.ReadString(); break; } case 16: { Stage = input.ReadUInt32(); break; } case 26: { RequestType = input.ReadString(); break; } case 34: { if (timeout_ == null) { Timeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } input.ReadMessage(Timeout); break; } case 40: { FailureModeDeny = input.ReadBool(); break; } case 48: { RateLimitedAsResourceExhausted = input.ReadBool(); break; } case 58: { if (rateLimitService_ == null) { RateLimitService = new global::Envoy.Config.Ratelimit.V3Alpha.RateLimitServiceConfig(); } input.ReadMessage(RateLimitService); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { StatPrefix = input.ReadString(); break; } case 18: { Domain = input.ReadString(); break; } case 26: { descriptors_.AddEntriesFrom(input, _repeated_descriptors_codec); break; } case 34: { if (timeout_ == null) { Timeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } input.ReadMessage(Timeout); break; } case 40: { FailureModeDeny = input.ReadBool(); break; } case 50: { if (rateLimitService_ == null) { RateLimitService = new global::Envoy.Config.Ratelimit.V3Alpha.RateLimitServiceConfig(); } input.ReadMessage(RateLimitService); break; } } } }
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.V3Alpha.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); }