Esempio n. 1
0
 public void MergeFrom(TailLogLine other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Step.Length != 0)
     {
         Step = other.Step;
     }
     if (other.logLine_ != null)
     {
         if (logLine_ == null)
         {
             LogLine = new global::Estafette.Ci.Contracts.V1.BuildLogLine();
         }
         LogLine.MergeFrom(other.LogLine);
     }
     if (other.image_ != null)
     {
         if (image_ == null)
         {
             Image = new global::Estafette.Ci.Contracts.V1.BuildLogStepDockerImage();
         }
         Image.MergeFrom(other.Image);
     }
     if (other.duration_ != null)
     {
         if (duration_ == null)
         {
             Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         Duration.MergeFrom(other.Duration);
     }
     if (other.ExitCode != 0L)
     {
         ExitCode = other.ExitCode;
     }
     if (other.Status.Length != 0)
     {
         Status = other.Status;
     }
     if (other.AutoInjected != false)
     {
         AutoInjected = other.AutoInjected;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 2
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: {
                    Step = input.ReadString();
                    break;
                }

                case 18: {
                    if (logLine_ == null)
                    {
                        LogLine = new global::Estafette.Ci.Contracts.V1.BuildLogLine();
                    }
                    input.ReadMessage(LogLine);
                    break;
                }

                case 26: {
                    if (image_ == null)
                    {
                        Image = new global::Estafette.Ci.Contracts.V1.BuildLogStepDockerImage();
                    }
                    input.ReadMessage(Image);
                    break;
                }

                case 34: {
                    if (duration_ == null)
                    {
                        Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(Duration);
                    break;
                }

                case 40: {
                    ExitCode = input.ReadInt64();
                    break;
                }

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

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