Beispiel #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (timeframe_ == null)
                    {
                        timeframe_ = new global::SquaredUp.Dashboard.Schema.CommonTimeframe();
                    }
                    input.ReadMessage(timeframe_);
                    break;
                }

                case 18: {
                    SloId = input.ReadString();
                    break;
                }
                }
            }
        }
Beispiel #2
0
 public void MergeFrom(CommonPerformanceSource other)
 {
     if (other == null)
     {
         return;
     }
     if (other.AggregateValueType.Length != 0)
     {
         AggregateValueType = other.AggregateValueType;
     }
     if (other.Resolution.Length != 0)
     {
         Resolution = other.Resolution;
     }
     if (other.timeframe_ != null)
     {
         if (timeframe_ == null)
         {
             timeframe_ = new global::SquaredUp.Dashboard.Schema.CommonTimeframe();
         }
         Timeframe.MergeFrom(other.Timeframe);
     }
     if (other.Objectname.Length != 0)
     {
         Objectname = other.Objectname;
     }
     if (other.Countername.Length != 0)
     {
         Countername = other.Countername;
     }
     if (other.Instancename.Length != 0)
     {
         Instancename = other.Instancename;
     }
     if (other.Desc != false)
     {
         Desc = other.Desc;
     }
     if (other.Topn != 0)
     {
         Topn = other.Topn;
     }
     if (other.Zoom.Length != 0)
     {
         Zoom = other.Zoom;
     }
 }
Beispiel #3
0
 public void MergeFrom(SlaTileConfig_Source other)
 {
     if (other == null)
     {
         return;
     }
     if (other.timeframe_ != null)
     {
         if (timeframe_ == null)
         {
             timeframe_ = new global::SquaredUp.Dashboard.Schema.CommonTimeframe();
         }
         Timeframe.MergeFrom(other.Timeframe);
     }
     if (other.SloId.Length != 0)
     {
         SloId = other.SloId;
     }
 }
Beispiel #4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    Resolution = input.ReadString();
                    break;
                }

                case 26: {
                    if (timeframe_ == null)
                    {
                        timeframe_ = new global::SquaredUp.Dashboard.Schema.CommonTimeframe();
                    }
                    input.ReadMessage(timeframe_);
                    break;
                }

                case 34: {
                    Objectname = input.ReadString();
                    break;
                }

                case 42: {
                    Countername = input.ReadString();
                    break;
                }

                case 50: {
                    Instancename = input.ReadString();
                    break;
                }

                case 56: {
                    Desc = input.ReadBool();
                    break;
                }

                case 64: {
                    Topn = input.ReadUInt32();
                    break;
                }

                case 74: {
                    Zoom = input.ReadString();
                    break;
                }
                }
            }
        }