Esempio n. 1
0
 public void MergeFrom(Report other)
 {
     if (other == null)
     {
         return;
     }
     if (other.metrics_ != null)
     {
         if (metrics_ == null)
         {
             metrics_ = new global::Stream.PodMetrics();
         }
         Metrics.MergeFrom(other.Metrics);
     }
 }
Esempio n. 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (metrics_ == null)
                    {
                        metrics_ = new global::Stream.PodMetrics();
                    }
                    input.ReadMessage(metrics_);
                    break;
                }
                }
            }
        }