예제 #1
0
 public void MergeFrom(RateLimit other)
 {
     if (other == null)
     {
         return;
     }
     if (other.RequestsPerUnit != 0)
     {
         RequestsPerUnit = other.RequestsPerUnit;
     }
     if (other.Unit != global::Envoy.Service.Ratelimit.V3Alpha.RateLimitResponse.Types.RateLimit.Types.Unit.Unknown)
     {
         Unit = other.Unit;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #2
0
                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.V3Alpha.RateLimitResponse.Types.RateLimit.Types.Unit)input.ReadEnum();
                            break;
                        }
                        }
                    }
                }