Exemple #1
0
 public void MergeFrom(ClientStats other)
 {
     if (other == null)
     {
         return;
     }
     if (other.latencies_ != null)
     {
         if (latencies_ == null)
         {
             latencies_ = new global::Grpc.Testing.HistogramData();
         }
         Latencies.MergeFrom(other.Latencies);
     }
     if (other.TimeElapsed != 0D)
     {
         TimeElapsed = other.TimeElapsed;
     }
     if (other.TimeUser != 0D)
     {
         TimeUser = other.TimeUser;
     }
     if (other.TimeSystem != 0D)
     {
         TimeSystem = other.TimeSystem;
     }
     requestResults_.Add(other.requestResults_);
 }
Exemple #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (latencies_ == null)
                    {
                        latencies_ = new global::Grpc.Testing.HistogramData();
                    }
                    input.ReadMessage(latencies_);
                    break;
                }

                case 17: {
                    TimeElapsed = input.ReadDouble();
                    break;
                }

                case 25: {
                    TimeUser = input.ReadDouble();
                    break;
                }

                case 33: {
                    TimeSystem = input.ReadDouble();
                    break;
                }

                case 42: {
                    requestResults_.AddEntriesFrom(input, _repeated_requestResults_codec);
                    break;
                }

                case 48: {
                    CqPollCount = input.ReadUInt64();
                    break;
                }

                case 58: {
                    if (coreStats_ == null)
                    {
                        coreStats_ = new global::Grpc.Core.Stats();
                    }
                    input.ReadMessage(coreStats_);
                    break;
                }
                }
            }
        }
Exemple #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (latencies_ == null)
                    {
                        latencies_ = new global::Grpc.Testing.HistogramData();
                    }
                    input.ReadMessage(latencies_);
                    break;
                }

                case 17: {
                    TimeElapsed = input.ReadDouble();
                    break;
                }

                case 25: {
                    TimeUser = input.ReadDouble();
                    break;
                }

                case 33: {
                    TimeSystem = input.ReadDouble();
                    break;
                }
                }
            }
        }