public void MergeFrom(ScanRun other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.ExecutionState != global::Google.Cloud.WebSecurityScanner.V1.ScanRun.Types.ExecutionState.Unspecified) { ExecutionState = other.ExecutionState; } if (other.ResultState != global::Google.Cloud.WebSecurityScanner.V1.ScanRun.Types.ResultState.Unspecified) { ResultState = other.ResultState; } if (other.startTime_ != null) { if (startTime_ == null) { StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } StartTime.MergeFrom(other.StartTime); } if (other.endTime_ != null) { if (endTime_ == null) { EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } EndTime.MergeFrom(other.EndTime); } if (other.UrlsCrawledCount != 0L) { UrlsCrawledCount = other.UrlsCrawledCount; } if (other.UrlsTestedCount != 0L) { UrlsTestedCount = other.UrlsTestedCount; } if (other.HasVulnerabilities != false) { HasVulnerabilities = other.HasVulnerabilities; } if (other.ProgressPercent != 0) { ProgressPercent = other.ProgressPercent; } if (other.errorTrace_ != null) { if (errorTrace_ == null) { ErrorTrace = new global::Google.Cloud.WebSecurityScanner.V1.ScanRunErrorTrace(); } ErrorTrace.MergeFrom(other.ErrorTrace); } warningTraces_.Add(other.warningTraces_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }