Ejemplo n.º 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    Name = input.ReadString();
                    break;
                }

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

                case 24: {
                    Timestamp = input.ReadInt64();
                    break;
                }

                case 32: {
                    attr_ = (global::Stream.MetricAttr)input.ReadEnum();
                    break;
                }
                }
            }
        }
Ejemplo n.º 2
0
 public void MergeFrom(MetricPoint other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Value != 0D)
     {
         Value = other.Value;
     }
     if (other.Timestamp != 0L)
     {
         Timestamp = other.Timestamp;
     }
     if (other.Attr != 0)
     {
         Attr = other.Attr;
     }
 }