コード例 #1
0
 public void MergeFrom(ApplicantJobApplicationReply other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Applicant.Length != 0)
     {
         Applicant = other.Applicant;
     }
     if (other.Job.Length != 0)
     {
         Job = other.Job;
     }
     if (other.applicationDate_ != null)
     {
         if (applicationDate_ == null)
         {
             ApplicationDate = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         ApplicationDate.MergeFrom(other.ApplicationDate);
     }
     if (other.TimeStamp.Length != 0)
     {
         TimeStamp = other.TimeStamp;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #2
0
 public void MergeFrom(Application other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.ExternalId.Length != 0)
     {
         ExternalId = other.ExternalId;
     }
     if (other.Profile.Length != 0)
     {
         Profile = other.Profile;
     }
     if (other.Job.Length != 0)
     {
         Job = other.Job;
     }
     if (other.Company.Length != 0)
     {
         Company = other.Company;
     }
     if (other.applicationDate_ != null)
     {
         if (applicationDate_ == null)
         {
             ApplicationDate = new global::Google.Type.Date();
         }
         ApplicationDate.MergeFrom(other.ApplicationDate);
     }
     if (other.Stage != global::Google.Cloud.Talent.V4Beta1.Application.Types.ApplicationStage.Unspecified)
     {
         Stage = other.Stage;
     }
     if (other.State != global::Google.Cloud.Talent.V4Beta1.Application.Types.ApplicationState.Unspecified)
     {
         State = other.State;
     }
     interviews_.Add(other.interviews_);
     if (other.referral_ != null)
     {
         if (referral_ == null || other.Referral != false)
         {
             Referral = other.Referral;
         }
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     if (other.OutcomeNotes.Length != 0)
     {
         OutcomeNotes = other.OutcomeNotes;
     }
     if (other.Outcome != global::Google.Cloud.Talent.V4Beta1.Outcome.Unspecified)
     {
         Outcome = other.Outcome;
     }
     if (other.isMatch_ != null)
     {
         if (isMatch_ == null || other.IsMatch != false)
         {
             IsMatch = other.IsMatch;
         }
     }
     if (other.JobTitleSnippet.Length != 0)
     {
         JobTitleSnippet = other.JobTitleSnippet;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }