コード例 #1
0
 public void MergeFrom(CommonContext other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Alerts != false)
     {
         Alerts = other.Alerts;
     }
     if (other.ExtendedProperties != false)
     {
         ExtendedProperties = other.ExtendedProperties;
     }
     if (other.scope_ != null)
     {
         if (scope_ == null)
         {
             scope_ = new global::SquaredUp.Dashboard.Schema.CommonScope();
         }
         Scope.MergeFrom(other.Scope);
     }
     if (other.source_ != null)
     {
         if (source_ == null)
         {
             source_ = new global::SquaredUp.Dashboard.Schema.CommonScope();
         }
         Source.MergeFrom(other.Source);
     }
 }
コード例 #2
0
 public void MergeFrom(VisioTileConfig_Source other)
 {
     if (other == null)
     {
         return;
     }
     if (other.scope_ != null)
     {
         if (scope_ == null)
         {
             scope_ = new global::SquaredUp.Dashboard.Schema.CommonScope();
         }
         Scope.MergeFrom(other.Scope);
     }
 }
コード例 #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    Alerts = input.ReadBool();
                    break;
                }

                case 16: {
                    ExtendedProperties = input.ReadBool();
                    break;
                }

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

                case 34: {
                    if (source_ == null)
                    {
                        source_ = new global::SquaredUp.Dashboard.Schema.CommonScope();
                    }
                    input.ReadMessage(source_);
                    break;
                }
                }
            }
        }
コード例 #4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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