Beispiel #1
0
 public void MergeFrom(SlaTileConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.context_ != null)
     {
         if (context_ == null)
         {
             context_ = new global::SquaredUp.Dashboard.Schema.CommonContext();
         }
         Context.MergeFrom(other.Context);
     }
     if (other.source_ != null)
     {
         if (source_ == null)
         {
             source_ = new global::SquaredUp.Dashboard.Schema.SlaTileConfig_Source();
         }
         Source.MergeFrom(other.Source);
     }
     if (other.display_ != null)
     {
         if (display_ == null)
         {
             display_ = new global::SquaredUp.Dashboard.Schema.SlaTileConfig_Display();
         }
         Display.MergeFrom(other.Display);
     }
 }
Beispiel #2
0
 public void MergeFrom(ImageTileConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.context_ != null)
     {
         if (context_ == null)
         {
             context_ = new global::SquaredUp.Dashboard.Schema.CommonContext();
         }
         Context.MergeFrom(other.Context);
     }
     if (other.display_ != null)
     {
         if (display_ == null)
         {
             display_ = new global::SquaredUp.Dashboard.Schema.ImageTileConfig_Display();
         }
         Display.MergeFrom(other.Display);
     }
     if (other.source_ != null)
     {
         if (source_ == null)
         {
             source_ = new global::Google.Protobuf.WellKnownTypes.Value();
         }
         Source.MergeFrom(other.Source);
     }
 }
Beispiel #3
0
 public void MergeFrom(VadaTileConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.filters_ != null)
     {
         if (filters_ == null)
         {
             filters_ = new global::SquaredUp.Dashboard.Schema.VadaTileConfig_Filters();
         }
         Filters.MergeFrom(other.Filters);
     }
     if (other.Mode.Length != 0)
     {
         Mode = other.Mode;
     }
     providers_.Add(other.providers_);
     if (other.Rundiscoveryoninit != false)
     {
         Rundiscoveryoninit = other.Rundiscoveryoninit;
     }
     if (other.transforms_ != null)
     {
         if (transforms_ == null)
         {
             transforms_ = new global::SquaredUp.Dashboard.Schema.VadaTileConfig_Transforms();
         }
         Transforms.MergeFrom(other.Transforms);
     }
     if (other.Vadaperspective != false)
     {
         Vadaperspective = other.Vadaperspective;
     }
     if (other.Readonly != false)
     {
         Readonly = other.Readonly;
     }
     if (other.context_ != null)
     {
         if (context_ == null)
         {
             context_ = new global::SquaredUp.Dashboard.Schema.CommonContext();
         }
         Context.MergeFrom(other.Context);
     }
 }
Beispiel #4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    if (source_ == null)
                    {
                        source_ = new global::SquaredUp.Dashboard.Schema.SlaTileConfig_Source();
                    }
                    input.ReadMessage(source_);
                    break;
                }

                case 26: {
                    if (display_ == null)
                    {
                        display_ = new global::SquaredUp.Dashboard.Schema.SlaTileConfig_Display();
                    }
                    input.ReadMessage(display_);
                    break;
                }
                }
            }
        }
Beispiel #5
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

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

                case 26: {
                    providers_.AddEntriesFrom(input, _repeated_providers_codec);
                    break;
                }

                case 32: {
                    Rundiscoveryoninit = input.ReadBool();
                    break;
                }

                case 42: {
                    if (transforms_ == null)
                    {
                        transforms_ = new global::SquaredUp.Dashboard.Schema.VadaTileConfig_Transforms();
                    }
                    input.ReadMessage(transforms_);
                    break;
                }

                case 48: {
                    Vadaperspective = input.ReadBool();
                    break;
                }

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

                case 66: {
                    if (context_ == null)
                    {
                        context_ = new global::SquaredUp.Dashboard.Schema.CommonContext();
                    }
                    input.ReadMessage(context_);
                    break;
                }
                }
            }
        }