Exemple #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: {
                    Name = input.ReadString();
                    break;
                }

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

                case 26: {
                    ExternalId = input.ReadString();
                    break;
                }

                case 32: {
                    size_ = (global::Google.Cloud.Talent.V4Beta1.CompanySize)input.ReadEnum();
                    break;
                }

                case 42: {
                    HeadquartersAddress = input.ReadString();
                    break;
                }

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

                case 58: {
                    EeoText = input.ReadString();
                    break;
                }

                case 66: {
                    WebsiteUri = input.ReadString();
                    break;
                }

                case 74: {
                    CareerSiteUri = input.ReadString();
                    break;
                }

                case 82: {
                    ImageUri = input.ReadString();
                    break;
                }

                case 90: {
                    keywordSearchableJobCustomAttributes_.AddEntriesFrom(input, _repeated_keywordSearchableJobCustomAttributes_codec);
                    break;
                }

                case 98: {
                    if (derivedInfo_ == null)
                    {
                        derivedInfo_ = new global::Google.Cloud.Talent.V4Beta1.Company.Types.DerivedInfo();
                    }
                    input.ReadMessage(derivedInfo_);
                    break;
                }

                case 104: {
                    Suspended = input.ReadBool();
                    break;
                }

                case 112: {
                    learningType_ = (global::Google.Cloud.Talent.V4Beta1.Company.Types.DataLearningType)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemple #2
0
 public void MergeFrom(Company other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     if (other.ExternalId.Length != 0)
     {
         ExternalId = other.ExternalId;
     }
     if (other.Size != 0)
     {
         Size = other.Size;
     }
     if (other.HeadquartersAddress.Length != 0)
     {
         HeadquartersAddress = other.HeadquartersAddress;
     }
     if (other.HiringAgency != false)
     {
         HiringAgency = other.HiringAgency;
     }
     if (other.EeoText.Length != 0)
     {
         EeoText = other.EeoText;
     }
     if (other.WebsiteUri.Length != 0)
     {
         WebsiteUri = other.WebsiteUri;
     }
     if (other.CareerSiteUri.Length != 0)
     {
         CareerSiteUri = other.CareerSiteUri;
     }
     if (other.ImageUri.Length != 0)
     {
         ImageUri = other.ImageUri;
     }
     keywordSearchableJobCustomAttributes_.Add(other.keywordSearchableJobCustomAttributes_);
     if (other.derivedInfo_ != null)
     {
         if (derivedInfo_ == null)
         {
             derivedInfo_ = new global::Google.Cloud.Talent.V4Beta1.Company.Types.DerivedInfo();
         }
         DerivedInfo.MergeFrom(other.DerivedInfo);
     }
     if (other.Suspended != false)
     {
         Suspended = other.Suspended;
     }
     if (other.LearningType != 0)
     {
         LearningType = other.LearningType;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }