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; } }
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; } }