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

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (pipeline_ == null)
                    {
                        Pipeline = new global::Estafette.Ci.Manifest.V1.EstafettePipelineEvent();
                    }
                    input.ReadMessage(Pipeline);
                    break;
                }

                case 18: {
                    if (release_ == null)
                    {
                        Release = new global::Estafette.Ci.Manifest.V1.EstafetteReleaseEvent();
                    }
                    input.ReadMessage(Release);
                    break;
                }

                case 26: {
                    if (git_ == null)
                    {
                        Git = new global::Estafette.Ci.Manifest.V1.EstafetteGitEvent();
                    }
                    input.ReadMessage(Git);
                    break;
                }

                case 34: {
                    if (docker_ == null)
                    {
                        Docker = new global::Estafette.Ci.Manifest.V1.EstafetteDockerEvent();
                    }
                    input.ReadMessage(Docker);
                    break;
                }

                case 42: {
                    if (cron_ == null)
                    {
                        Cron = new global::Estafette.Ci.Manifest.V1.EstafetteCronEvent();
                    }
                    input.ReadMessage(Cron);
                    break;
                }

                case 50: {
                    if (pubSub_ == null)
                    {
                        PubSub = new global::Estafette.Ci.Manifest.V1.EstafettePubSubEvent();
                    }
                    input.ReadMessage(PubSub);
                    break;
                }

                case 58: {
                    if (manual_ == null)
                    {
                        Manual = new global::Estafette.Ci.Manifest.V1.EstafetteManualEvent();
                    }
                    input.ReadMessage(Manual);
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(EstafetteEvent other)
 {
     if (other == null)
     {
         return;
     }
     if (other.pipeline_ != null)
     {
         if (pipeline_ == null)
         {
             Pipeline = new global::Estafette.Ci.Manifest.V1.EstafettePipelineEvent();
         }
         Pipeline.MergeFrom(other.Pipeline);
     }
     if (other.release_ != null)
     {
         if (release_ == null)
         {
             Release = new global::Estafette.Ci.Manifest.V1.EstafetteReleaseEvent();
         }
         Release.MergeFrom(other.Release);
     }
     if (other.git_ != null)
     {
         if (git_ == null)
         {
             Git = new global::Estafette.Ci.Manifest.V1.EstafetteGitEvent();
         }
         Git.MergeFrom(other.Git);
     }
     if (other.docker_ != null)
     {
         if (docker_ == null)
         {
             Docker = new global::Estafette.Ci.Manifest.V1.EstafetteDockerEvent();
         }
         Docker.MergeFrom(other.Docker);
     }
     if (other.cron_ != null)
     {
         if (cron_ == null)
         {
             Cron = new global::Estafette.Ci.Manifest.V1.EstafetteCronEvent();
         }
         Cron.MergeFrom(other.Cron);
     }
     if (other.pubSub_ != null)
     {
         if (pubSub_ == null)
         {
             PubSub = new global::Estafette.Ci.Manifest.V1.EstafettePubSubEvent();
         }
         PubSub.MergeFrom(other.PubSub);
     }
     if (other.manual_ != null)
     {
         if (manual_ == null)
         {
             Manual = new global::Estafette.Ci.Manifest.V1.EstafetteManualEvent();
         }
         Manual.MergeFrom(other.Manual);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }