From 4866ee2caa9371da8eece6834555b0b47cadf132 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 13 Jun 2022 18:36:06 +0000 Subject: [PATCH] fix!: [Talent] remove Application and Profile services and and related protos, enums, and messages (#5322) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix!: remove Application and Profile services and and related protos, enums, and messages PiperOrigin-RevId: 453241222 Source-Link: https://github.com/googleapis/googleapis/commit/78374702d981a2c2c2ef787033c0584f4533a99e Source-Link: https://github.com/googleapis/googleapis-gen/commit/ae2c052743706161ac95adc5048ad5a3de8a6585 Copy-Tag: eyJwIjoiVGFsZW50Ly5Pd2xCb3QueWFtbCIsImgiOiJhZTJjMDUyNzQzNzA2MTYxYWM5NWFkYzUwNDhhZDVhM2RlOGE2NTg1In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * manually remove files Co-authored-by: Owl Bot Co-authored-by: dwsupplee --- Talent/metadata/V4Beta1/Application.php | Bin 2562 -> 0 bytes .../metadata/V4Beta1/ApplicationService.php | 64 - Talent/metadata/V4Beta1/Batch.php | 1 - Talent/metadata/V4Beta1/Common.php | Bin 7576 -> 6290 bytes Talent/metadata/V4Beta1/Company.php | 5 +- Talent/metadata/V4Beta1/CompletionService.php | Bin 2422 -> 2422 bytes Talent/metadata/V4Beta1/Event.php | Bin 1991 -> 1607 bytes Talent/metadata/V4Beta1/Filters.php | Bin 6164 -> 3135 bytes Talent/metadata/V4Beta1/Histogram.php | 1 - Talent/metadata/V4Beta1/Job.php | 6 +- Talent/metadata/V4Beta1/JobService.php | Bin 7969 -> 8124 bytes Talent/metadata/V4Beta1/Profile.php | Bin 6764 -> 0 bytes Talent/metadata/V4Beta1/ProfileService.php | 98 - Talent/metadata/V4Beta1/ResumeService.php | 47 - Talent/metadata/V4Beta1/Tenant.php | Bin 1405 -> 1225 bytes Talent/src/V4beta1/Activity.php | 443 ----- Talent/src/V4beta1/AdditionalContactInfo.php | 148 -- Talent/src/V4beta1/Address.php | 225 --- Talent/src/V4beta1/Application.php | 789 -------- .../V4beta1/Application/ApplicationStage.php | 102 -- .../V4beta1/Application/ApplicationState.php | 86 - Talent/src/V4beta1/ApplicationDateFilter.php | 132 -- Talent/src/V4beta1/ApplicationJobFilter.php | 147 -- .../V4beta1/ApplicationLastStageFilter.php | 126 -- .../V4beta1/ApplicationOutcomeNotesFilter.php | 113 -- .../ApplicationOutcomeReasonFilter.php | 122 -- .../src/V4beta1/ApplicationServiceClient.php | 36 - .../V4beta1/ApplicationServiceGrpcClient.php | 111 -- .../src/V4beta1/ApplicationStatusFilter.php | 130 -- Talent/src/V4beta1/AvailabilityFilter.php | 157 -- Talent/src/V4beta1/AvailabilitySignal.php | 206 --- Talent/src/V4beta1/AvailabilitySignalType.php | 119 -- .../V4beta1/CandidateAvailabilityFilter.php | 72 - Talent/src/V4beta1/Certification.php | 235 --- Talent/src/V4beta1/ClientEvent.php | 36 - .../V4beta1/CommuteFilter/CommuteMethod.php | 54 - .../src/V4beta1/Company/DataLearningType.php | 36 - Talent/src/V4beta1/ContactInfoUsage.php | 68 - .../src/V4beta1/CreateApplicationRequest.php | 123 -- Talent/src/V4beta1/CreateProfileRequest.php | 119 -- Talent/src/V4beta1/CustomAttribute.php | 66 +- Talent/src/V4beta1/Degree.php | 151 -- .../src/V4beta1/DeleteApplicationRequest.php | 79 - Talent/src/V4beta1/DeleteProfileRequest.php | 79 - Talent/src/V4beta1/EducationFilter.php | 189 -- Talent/src/V4beta1/EducationRecord.php | 525 ------ Talent/src/V4beta1/Email.php | 105 -- Talent/src/V4beta1/EmployerFilter.php | 143 -- .../EmployerFilter/EmployerFilterMode.php | 71 - Talent/src/V4beta1/EmploymentRecord.php | 668 ------- .../Gapic/ApplicationServiceGapicClient.php | 781 -------- .../V4beta1/Gapic/JobServiceGapicClient.php | 78 +- .../Gapic/ProfileServiceGapicClient.php | 877 --------- .../Gapic/ResumeServiceGapicClient.php | 361 ---- Talent/src/V4beta1/GetApplicationRequest.php | 79 - Talent/src/V4beta1/GetProfileRequest.php | 79 - Talent/src/V4beta1/Interview.php | 115 -- Talent/src/V4beta1/JobApplication.php | 617 ------- .../JobApplication/ApplicationStatus.php | 64 - Talent/src/V4beta1/JobQuery.php | 72 +- Talent/src/V4beta1/JobTitleFilter.php | 105 -- .../src/V4beta1/ListApplicationsRequest.php | 151 -- .../src/V4beta1/ListApplicationsResponse.php | 149 -- Talent/src/V4beta1/ListJobsRequest.php | 24 +- Talent/src/V4beta1/ListProfilesRequest.php | 285 --- Talent/src/V4beta1/ListProfilesResponse.php | 105 -- Talent/src/V4beta1/LocationFilter.php | 108 +- .../LocationFilter/TelecommutePreference.php | 12 +- Talent/src/V4beta1/Outcome.php | 80 - Talent/src/V4beta1/ParseResumeRequest.php | 233 --- Talent/src/V4beta1/ParseResumeResponse.php | 101 -- Talent/src/V4beta1/Patent.php | 383 ---- Talent/src/V4beta1/PersonName.php | 156 -- .../PersonName/PersonStructuredName.php | 274 --- Talent/src/V4beta1/PersonNameFilter.php | 83 - Talent/src/V4beta1/PersonalUri.php | 71 - Talent/src/V4beta1/Phone.php | 193 -- Talent/src/V4beta1/Phone/PhoneType.php | 117 -- Talent/src/V4beta1/Profile.php | 1591 ----------------- Talent/src/V4beta1/ProfileEvent.php | 164 -- .../V4beta1/ProfileEvent/ProfileEventType.php | 82 - Talent/src/V4beta1/ProfileQuery.php | 1175 ------------ Talent/src/V4beta1/ProfileServiceClient.php | 36 - .../src/V4beta1/ProfileServiceGrpcClient.php | 133 -- Talent/src/V4beta1/Publication.php | 381 ---- Talent/src/V4beta1/Rating.php | 173 -- Talent/src/V4beta1/RecruitingNote.php | 199 --- Talent/src/V4beta1/Resume.php | 133 -- Talent/src/V4beta1/Resume/ResumeType.php | 64 - Talent/src/V4beta1/ResumeServiceClient.php | 38 - .../src/V4beta1/ResumeServiceGrpcClient.php | 77 - Talent/src/V4beta1/SearchJobsRequest.php | 135 +- .../SearchJobsRequest/CustomRankingInfo.php | 8 +- .../SearchJobsRequest/KeywordMatchMode.php | 86 + Talent/src/V4beta1/SearchJobsResponse.php | 24 +- Talent/src/V4beta1/SearchProfilesRequest.php | 957 ---------- Talent/src/V4beta1/SearchProfilesResponse.php | 315 ---- Talent/src/V4beta1/Skill.php | 237 --- .../V4beta1/Skill/SkillProficiencyLevel.php | 56 - Talent/src/V4beta1/SkillFilter.php | 105 -- Talent/src/V4beta1/SkillProficiencyLevel.php | 93 - Talent/src/V4beta1/SummarizedProfile.php | 151 -- Talent/src/V4beta1/TimeFilter.php | 175 -- Talent/src/V4beta1/TimeFilter/TimeField.php | 62 - .../src/V4beta1/UpdateApplicationRequest.php | 137 -- Talent/src/V4beta1/UpdateProfileRequest.php | 125 -- Talent/src/V4beta1/WorkExperienceFilter.php | 123 -- Talent/src/V4beta1/gapic_metadata.json | 73 - .../application_service_client_config.json | 70 - .../application_service_descriptor_config.php | 18 - ...application_service_rest_client_config.php | 79 - .../profile_service_client_config.json | 75 - .../profile_service_descriptor_config.php | 28 - .../profile_service_rest_client_config.php | 91 - .../resume_service_client_config.json | 31 - .../resume_service_descriptor_config.php | 8 - .../resume_service_rest_client_config.php | 39 - .../V4beta1/ApplicationServiceClientTest.php | 470 ----- .../Unit/V4beta1/ProfileServiceClientTest.php | 519 ------ .../Unit/V4beta1/ResumeServiceClientTest.php | 140 -- docs/contents/cloud-talent.json | 12 - 121 files changed, 466 insertions(+), 20208 deletions(-) delete mode 100644 Talent/metadata/V4Beta1/Application.php delete mode 100644 Talent/metadata/V4Beta1/ApplicationService.php delete mode 100644 Talent/metadata/V4Beta1/Profile.php delete mode 100644 Talent/metadata/V4Beta1/ProfileService.php delete mode 100644 Talent/metadata/V4Beta1/ResumeService.php delete mode 100644 Talent/src/V4beta1/Activity.php delete mode 100644 Talent/src/V4beta1/AdditionalContactInfo.php delete mode 100644 Talent/src/V4beta1/Address.php delete mode 100644 Talent/src/V4beta1/Application.php delete mode 100644 Talent/src/V4beta1/Application/ApplicationStage.php delete mode 100644 Talent/src/V4beta1/Application/ApplicationState.php delete mode 100644 Talent/src/V4beta1/ApplicationDateFilter.php delete mode 100644 Talent/src/V4beta1/ApplicationJobFilter.php delete mode 100644 Talent/src/V4beta1/ApplicationLastStageFilter.php delete mode 100644 Talent/src/V4beta1/ApplicationOutcomeNotesFilter.php delete mode 100644 Talent/src/V4beta1/ApplicationOutcomeReasonFilter.php delete mode 100644 Talent/src/V4beta1/ApplicationServiceClient.php delete mode 100644 Talent/src/V4beta1/ApplicationServiceGrpcClient.php delete mode 100644 Talent/src/V4beta1/ApplicationStatusFilter.php delete mode 100644 Talent/src/V4beta1/AvailabilityFilter.php delete mode 100644 Talent/src/V4beta1/AvailabilitySignal.php delete mode 100644 Talent/src/V4beta1/AvailabilitySignalType.php delete mode 100644 Talent/src/V4beta1/CandidateAvailabilityFilter.php delete mode 100644 Talent/src/V4beta1/Certification.php delete mode 100644 Talent/src/V4beta1/CommuteFilter/CommuteMethod.php delete mode 100644 Talent/src/V4beta1/Company/DataLearningType.php delete mode 100644 Talent/src/V4beta1/ContactInfoUsage.php delete mode 100644 Talent/src/V4beta1/CreateApplicationRequest.php delete mode 100644 Talent/src/V4beta1/CreateProfileRequest.php delete mode 100644 Talent/src/V4beta1/Degree.php delete mode 100644 Talent/src/V4beta1/DeleteApplicationRequest.php delete mode 100644 Talent/src/V4beta1/DeleteProfileRequest.php delete mode 100644 Talent/src/V4beta1/EducationFilter.php delete mode 100644 Talent/src/V4beta1/EducationRecord.php delete mode 100644 Talent/src/V4beta1/Email.php delete mode 100644 Talent/src/V4beta1/EmployerFilter.php delete mode 100644 Talent/src/V4beta1/EmployerFilter/EmployerFilterMode.php delete mode 100644 Talent/src/V4beta1/EmploymentRecord.php delete mode 100644 Talent/src/V4beta1/Gapic/ApplicationServiceGapicClient.php delete mode 100644 Talent/src/V4beta1/Gapic/ProfileServiceGapicClient.php delete mode 100644 Talent/src/V4beta1/Gapic/ResumeServiceGapicClient.php delete mode 100644 Talent/src/V4beta1/GetApplicationRequest.php delete mode 100644 Talent/src/V4beta1/GetProfileRequest.php delete mode 100644 Talent/src/V4beta1/Interview.php delete mode 100644 Talent/src/V4beta1/JobApplication.php delete mode 100644 Talent/src/V4beta1/JobApplication/ApplicationStatus.php delete mode 100644 Talent/src/V4beta1/JobTitleFilter.php delete mode 100644 Talent/src/V4beta1/ListApplicationsRequest.php delete mode 100644 Talent/src/V4beta1/ListApplicationsResponse.php delete mode 100644 Talent/src/V4beta1/ListProfilesRequest.php delete mode 100644 Talent/src/V4beta1/ListProfilesResponse.php delete mode 100644 Talent/src/V4beta1/Outcome.php delete mode 100644 Talent/src/V4beta1/ParseResumeRequest.php delete mode 100644 Talent/src/V4beta1/ParseResumeResponse.php delete mode 100644 Talent/src/V4beta1/Patent.php delete mode 100644 Talent/src/V4beta1/PersonName.php delete mode 100644 Talent/src/V4beta1/PersonName/PersonStructuredName.php delete mode 100644 Talent/src/V4beta1/PersonNameFilter.php delete mode 100644 Talent/src/V4beta1/PersonalUri.php delete mode 100644 Talent/src/V4beta1/Phone.php delete mode 100644 Talent/src/V4beta1/Phone/PhoneType.php delete mode 100644 Talent/src/V4beta1/Profile.php delete mode 100644 Talent/src/V4beta1/ProfileEvent.php delete mode 100644 Talent/src/V4beta1/ProfileEvent/ProfileEventType.php delete mode 100644 Talent/src/V4beta1/ProfileQuery.php delete mode 100644 Talent/src/V4beta1/ProfileServiceClient.php delete mode 100644 Talent/src/V4beta1/ProfileServiceGrpcClient.php delete mode 100644 Talent/src/V4beta1/Publication.php delete mode 100644 Talent/src/V4beta1/Rating.php delete mode 100644 Talent/src/V4beta1/RecruitingNote.php delete mode 100644 Talent/src/V4beta1/Resume.php delete mode 100644 Talent/src/V4beta1/Resume/ResumeType.php delete mode 100644 Talent/src/V4beta1/ResumeServiceClient.php delete mode 100644 Talent/src/V4beta1/ResumeServiceGrpcClient.php create mode 100644 Talent/src/V4beta1/SearchJobsRequest/KeywordMatchMode.php delete mode 100644 Talent/src/V4beta1/SearchProfilesRequest.php delete mode 100644 Talent/src/V4beta1/SearchProfilesResponse.php delete mode 100644 Talent/src/V4beta1/Skill.php delete mode 100644 Talent/src/V4beta1/Skill/SkillProficiencyLevel.php delete mode 100644 Talent/src/V4beta1/SkillFilter.php delete mode 100644 Talent/src/V4beta1/SkillProficiencyLevel.php delete mode 100644 Talent/src/V4beta1/SummarizedProfile.php delete mode 100644 Talent/src/V4beta1/TimeFilter.php delete mode 100644 Talent/src/V4beta1/TimeFilter/TimeField.php delete mode 100644 Talent/src/V4beta1/UpdateApplicationRequest.php delete mode 100644 Talent/src/V4beta1/UpdateProfileRequest.php delete mode 100644 Talent/src/V4beta1/WorkExperienceFilter.php delete mode 100644 Talent/src/V4beta1/resources/application_service_client_config.json delete mode 100644 Talent/src/V4beta1/resources/application_service_descriptor_config.php delete mode 100644 Talent/src/V4beta1/resources/application_service_rest_client_config.php delete mode 100644 Talent/src/V4beta1/resources/profile_service_client_config.json delete mode 100644 Talent/src/V4beta1/resources/profile_service_descriptor_config.php delete mode 100644 Talent/src/V4beta1/resources/profile_service_rest_client_config.php delete mode 100644 Talent/src/V4beta1/resources/resume_service_client_config.json delete mode 100644 Talent/src/V4beta1/resources/resume_service_descriptor_config.php delete mode 100644 Talent/src/V4beta1/resources/resume_service_rest_client_config.php delete mode 100644 Talent/tests/Unit/V4beta1/ApplicationServiceClientTest.php delete mode 100644 Talent/tests/Unit/V4beta1/ProfileServiceClientTest.php delete mode 100644 Talent/tests/Unit/V4beta1/ResumeServiceClientTest.php diff --git a/Talent/metadata/V4Beta1/Application.php b/Talent/metadata/V4Beta1/Application.php deleted file mode 100644 index 5ee25b4d511e4f4d051de797b56ad3a7c47417d6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2562 zcmbtWUsK~$6t@(%%k6?CE*Mx@?jqxM$K7NW@xdZGX&Oo#NMjp8oz7&^^tNOtO)|+X zh&z4t*$?28Z+-^9jL&|Aee&ESZ8J;3Me}rXa?bDk&fnZGzYfj=^f9gzkAxN_UEI0C z^qk-z^r>(AF76C_JrZKu9|Vp|LILAi18WTfD>c=40;Z8a3~f@uec$i9M6_Lh*cGYe z5|4@(dmTcpm!cH}u47x&@jW3%M#!@UBnm8>;JRKt0j;h@t#&;IY0C_xZNwn$)4eJK z*+`4=@dfB<pci)<9PUw~F2r*tBy%RDbGEUSVp)MB z_E<&DPFm7r>^9aj3SnBe^i%mZ9x(n;oK$n{C7xs$2a%2|kSaV*p(YBKX`0jTYw33i zxfEgUNh06=Z4nhS)6G3V^K4D&Z$64MLzYtsCH_|40G|K`y zmFaPxqEcqDnJf^#0Jg>5mDGvAA{1D+a3^R1nzT>&B4{k{elgaVRYxI{gzUM+0Fsc8 zVmNTP^uOSMSOuZDTQ3}P8Sy2Y2mYVj$}Zl1OdV2uKP2#b2rZZA;>b6~mgCwBRak?k zmOCWe9xB=)fn=DhVfYVjFqq795~+xa!+_;Bv3mG#R@^FD@`n_PNlaLVB;r@WWRd$E z6;d(327=|?oiWv!C1@lN&=>dNe=@MBea?S$gYQX*jB%cOj8>p+fG%~38F>zD7|L%l z67l!#UvsFGsW4O(%J2kjO1gfm%95crG_z$$hGKrFwRA;R4^^dBdXIY_6;;jDn~i!? zX|+l@ZVhp=q}9|K(>+s-qgqorE6qU$R+JO{xbcJ1oQm_@5?YiSAXf~4o97U^Cm%Oj za9-H{;~J&@EK2paDHTv&1D81l){>iwqJjH$w0fjARjqEGNSag!5>4e)1+|!hsu@Z% zex2tywA?s61O?@LL(yuC%2X!FvZ6Dp_qZY|Kth`ArBJ#2TcT)d)?j9m%6$tB_=?yx z5?`mMkw}SWc}$WVMq;`(5*@ZbM%k+hh%@s&s{WEgThLawwM~`Ja2Wp>b#`sgb3aPS z<^g-x^7?`w_QgK&fCKf#=~9|`gW69P{qJ*m*=Tj{#WtTko%~FmCzprJT?2Lv+=XV` OGh)r;J}^Qfg#H22NHF67 diff --git a/Talent/metadata/V4Beta1/ApplicationService.php b/Talent/metadata/V4Beta1/ApplicationService.php deleted file mode 100644 index 4a6002ea986..00000000000 --- a/Talent/metadata/V4Beta1/ApplicationService.php +++ /dev/null @@ -1,64 +0,0 @@ -internalAddGeneratedFile( - ' -É -5google/cloud/talent/v4beta1/application_service.protogoogle.cloud.talent.v4beta1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto-google/cloud/talent/v4beta1/application.proto(google/cloud/talent/v4beta1/common.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto"“ -CreateApplicationRequest3 -parent ( B#àAúA -jobs.googleapis.com/ProfileB - application ( 2(.google.cloud.talent.v4beta1.ApplicationBàA"N -GetApplicationRequest5 -name ( B\'àAúA! -jobs.googleapis.com/Application" -UpdateApplicationRequestB - application ( 2(.google.cloud.talent.v4beta1.ApplicationBàA/ - update_mask ( 2.google.protobuf.FieldMask"Q -DeleteApplicationRequest5 -name ( B\'àAúA! -jobs.googleapis.com/Application"u -ListApplicationsRequest3 -parent ( B#àAúA -jobs.googleapis.com/Profile - -page_token (  - page_size ("´ -ListApplicationsResponse> - applications ( 2(.google.cloud.talent.v4beta1.Application -next_page_token ( ? -metadata ( 2-.google.cloud.talent.v4beta1.ResponseMetadata2ü -ApplicationServiceÔ -CreateApplication5.google.cloud.talent.v4beta1.CreateApplicationRequest(.google.cloud.talent.v4beta1.Application"^‚Óä“C">/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications:*ÚAparent,application½ -GetApplication2.google.cloud.talent.v4beta1.GetApplicationRequest(.google.cloud.talent.v4beta1.Application"M‚Óä“@>/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}ÚAnameÙ -UpdateApplication5.google.cloud.talent.v4beta1.UpdateApplicationRequest(.google.cloud.talent.v4beta1.Application"c‚Óä“O2J/v4beta1/{application.name=projects/*/tenants/*/profiles/*/applications/*}:*ÚA application± -DeleteApplication5.google.cloud.talent.v4beta1.DeleteApplicationRequest.google.protobuf.Empty"M‚Óä“@*>/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}ÚAnameÐ -ListApplications4.google.cloud.talent.v4beta1.ListApplicationsRequest5.google.cloud.talent.v4beta1.ListApplicationsResponse"O‚Óä“@>/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applicationsÚAparentlÊAjobs.googleapis.comÒAShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB… -com.google.cloud.talent.v4beta1BApplicationServiceProtoPZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent¢CTSbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/Talent/metadata/V4Beta1/Batch.php b/Talent/metadata/V4Beta1/Batch.php index b7eebd4fc45..33ddf133348 100644 --- a/Talent/metadata/V4Beta1/Batch.php +++ b/Talent/metadata/V4Beta1/Batch.php @@ -14,7 +14,6 @@ public static function initOnce() { if (static::$is_initialized == true) { return; } - \GPBMetadata\Google\Api\Annotations::initOnce(); $pool->internalAddGeneratedFile( ' È diff --git a/Talent/metadata/V4Beta1/Common.php b/Talent/metadata/V4Beta1/Common.php index 5a71e4d7a515ab19de8b7893eb06a59f906c99d3..fb878d3de152684bb303735c7e20430762e6f3b9 100644 GIT binary patch delta 80 zcmV-W0I&a;JCZT5c>^N$O8dwlhX)M7!n!^5^H67 mcW-iJUvp()a${&=Vr*p?1hXIs2L-cE5T^-~Q5x5i&>YB#njD4z delta 1175 zcmaiz&u`;I6vwfhAI(eJI@4{N?XCcISJ3St6@?R=rp}}cb?t2IWGTCncSxpTglike zEscbfe}D`404ENdI3o4Jg*)Pc;KYFge*p(1?##H^6MC`Gr(pQbrFNStM|D$^U ziY^)D`8OIYTRhFgsTdXJ=ms>#Vw!|(7DVifx3pKaof>-dIyBhmlXH>sKoPWbS+4Il z+t)U2h1OP6qSv6#FO#Qz#*6xzP-Exw?4vjp*{oG6T-KmI=F?Fs5|u-%tcu$|YEbq* z7Gd}Tw0p1;vS}8aPx<(N*f5kse!;_*qFUMCZ|A>l-kP)v^ zsBH(mzT2f1C609x*knlTXUvwNCf!x5^sb(zJ$~NIu19@3 zB+{x5Rfi1xz6?ND!VWpa#g(A|7Yg&has2=fF}3l5P0Z5nR~l^K3noJLp$O#@_rxS( zp)davv;%h+oz$lON#M~#8E@d9^qwVIgVp!kg8=t>HnpUy>qwv`Ecb~wP}seWnpa0R j?#cCHr$g2GN!dW_(6nqBw;yQXv0n^XGp7Ycxb% diff --git a/Talent/metadata/V4Beta1/Company.php b/Talent/metadata/V4Beta1/Company.php index 80a6cdb5879..1635a6a5420 100644 --- a/Talent/metadata/V4Beta1/Company.php +++ b/Talent/metadata/V4Beta1/Company.php @@ -17,11 +17,10 @@ public static function initOnce() { \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Cloud\Talent\V4Beta1\Common::initOnce(); - \GPBMetadata\Google\Api\Annotations::initOnce(); $pool->internalAddGeneratedFile( ' -· -)google/cloud/talent/v4beta1/company.protogoogle.cloud.talent.v4beta1google/api/resource.proto(google/cloud/talent/v4beta1/common.protogoogle/api/annotations.proto"ü +™ +)google/cloud/talent/v4beta1/company.protogoogle.cloud.talent.v4beta1google/api/resource.proto(google/cloud/talent/v4beta1/common.proto"ü Company name (  display_name ( BàA diff --git a/Talent/metadata/V4Beta1/CompletionService.php b/Talent/metadata/V4Beta1/CompletionService.php index df66ceb620e4221159fc135fd956e78b2a66bf50..2b14af48b7519db77ca5cb42d99e8cded18cd20e 100644 GIT binary patch delta 57 zcmew+^i61k7}Ml4Ofr-6nM5WFF)f<>f~i$PJUu@@JttK^u^>}FIVUqUuSBn)D8D3s Nat?Fa=GV;KtN>~P6?Xst delta 32 ocmew+^i61k7}I1grg@Y9F`7(%!PGjrjX8C44zuLu*Ua6l0N-B>>i_@% diff --git a/Talent/metadata/V4Beta1/Event.php b/Talent/metadata/V4Beta1/Event.php index 6ba4c44e91ba17e71fd8b7ec513920f11c5a7bff..a771c5df076bfacb71554e69b04595b965ebf481 100644 GIT binary patch delta 34 qcmX@kf1GE7GSlQ3CVi&0?2~($GMJT4FisX@UcH%>MT}_@`*8rhsR~#C delta 319 zcmX@kbDV#JGSlSej3Sc{FtTtv=H=y=B$j06=M_)B$S5{hnMt4Z3ny2M`b2N_$#qP2 zic&J^`T6NNsrrcpnfi$c)p`X*`6c;EJxr7LGp&|%;^GDJ(=u~X<5SC0^GYPx6c{zQ zjWqQpH!w+a=mkLJHYYL5F)1lMV&vk1inxLl3;A-flvEa^N-zR7@flfxHPyp3ft8?e zLV#+Wm>)PY35jxXK&>s7U{YY#;DiYCaIs|NClv!70Tfb-;}Sr&4WwI0iAydZ$luM= z$2HzH%+)U>J|r^0H9piYIKb7})6LV>MPRZ%iwrLh7l)I-zqhYrkhcKyL^varJR^_V@J-4RMWkjd1n}b#ZkOV3cCwn0%gBN?u5oOA=Xym%mdmLK*Ys Nm%Ou?Cwq&Z1OQdGB)|Xw literal 6164 zcmbVQ-EtGj6-F`!`N)>-F&JSW3|bOQ!b*$SN;YO$qMxzRmi|^ALD*8&)Oe;PPZ-T; z=LgUxROKp_m&i>jl}E@!BoC3iMDB8t(?27PWmz_GgEigf>+W;DbI#ZO_4Cp32tJb! zh(kO*Af|jYmV;v=k32VU4cC^B!hWB4vf&O#mQB38ELU4{v!%*PwWi)fQ{N3egY3xz z*B#iTVAyVG76RQSPEdIJCo9hr}Q029Xci1(t4GKjKNA$$j1S z3EG~X+YcQhuv|x`1}(=RyANfKN$1`lxp?wtag$;!%8Eo zw{H>KER$pXt>t=qd(%@*LFSpx^L4M{4u`IDagd33sv%Mco%#u;Z2t}2fAa~ps)cL{ z^x^0eY+rf$XoSqXxT!iGkzN&3v zW|0*m;_L-xL6>9U6N9&fnLe@#`ZPv-H2244NPX)beHRjMEUm%v5A=_0LQd?iNVi~% z{nTvT8HDSPo0OMuz5*MzYcL9EqWET)a3o#)MV@bBZglc> zVZ`gK^c%?h&OOo)hzwkh!e2&^OmTN12p*!sEyhwAGBl`RK*T<>%ed!s@#hN>XbD0S zv5Px!ou6;4nU+7Y^|8h}NcIXlYaO=eFme3&d9zp9I)(Grnb?WN?!pZt^aFRO=|SLG zN3or!qEO&2^dp;S{)pJNW*igaO?CwbQ`GNdII`XG5Zj+dN#JLJxoolDm5C9pFVZ$- zP6XP|rrA*sKw>@5Kh`L>G!NN8va9T*ix;4kgcZpSHIc5v8hLNnp-D^)BkX6_D1Pq0 zDOkmFj*KC5X*iEolyDzOt9{s{vMorsH3ZEzuaBC}L#Bw{u3Ht{Afl%VHrhkKiN z0_FfVi5bph%QC}xw2(eZWF>%}!K-i;?xb9+59ijcKP9J0Wl{j_QU1rajTH)e(OJ zPxB;Q+`A}zi-R;NhFGQpH{#1sqVj|DBuN(+2O+k1WUIhjP*m1gQ8D0-p*yCBRU(8^41n*ToXjSq23(s1?Pn$Cv&EJ2G^F$`Y*FdtI;J+Ix0g~_}4jCYkP3&0MC2}5IpFi_wkW-bqQfW0BT~*QA9c5qX zD9wtZb(@E6rBd6kDb#s2`Td>Z4mYP+q)M#~^>PAx9f$dVW*)7#;-z!zETsl;u zu_X!~8&g|qsU8hp&i!i%*3elojdU>8Swj*WyQYZfg>)8P!O?*FA_8* zHDT3rbyLFy`hCj~Y5B_tcy3yr@J+sh<|?;-aY_0DGA0?}2}6%C6~&S=UEGckS>d1^ zu+^{X;}@55bx6k`q}!0~v`SS??UeTSYn7SQ+0K;qSpyDL^nXh>4IBBbN`L4su_Ko;8k9c%530=f<< zE?bEgH?70vA-!hMwa!cClZg3~KO2Y=FM~9bQ@Ot+K${MzaEH9rW=F>}_6^fjbSGVlmejFwk=;7sux)m3E%w3x}XTL$o7>ko}G9SHPPS4O?Y~rZIUzKdQ8{EG}%u9c(tIyMJ&B}B9Z813`mMN zrp6}m#ZFJcG`ka9WR5c1fwdE&FHY4{neh^?#n7fwYzHKoS|0f!w0wLlL^)xZB4~J# zo~9iQ*-AVRya)Ubdq7Mc=OYJDku4l>S{hRWcKebZaZj+>+!KptD*$vRYAbx%5F}bG zKj})mMdkUQXqcP+!khjgW*lu&xmDVRz4q1&!bJ|wZ=+*%+r z<&fDc!7EZ8?#CkrB^zpdSetU{|I+cIV{?Ld6kF8$2)f5wiDl%#9Pe3rPuwu z>kSG6;;>#>;6wOSsE0>an9Y+1lZU%U{8>5n3XS~3SMoV8&}=4u KC;k8*0R9grUbtic diff --git a/Talent/metadata/V4Beta1/Histogram.php b/Talent/metadata/V4Beta1/Histogram.php index 55113cb5c56..ab7bf8d758f 100644 --- a/Talent/metadata/V4Beta1/Histogram.php +++ b/Talent/metadata/V4Beta1/Histogram.php @@ -14,7 +14,6 @@ public static function initOnce() { if (static::$is_initialized == true) { return; } - \GPBMetadata\Google\Api\Annotations::initOnce(); $pool->internalAddGeneratedFile( ' ´ diff --git a/Talent/metadata/V4Beta1/Job.php b/Talent/metadata/V4Beta1/Job.php index 105ae5aaf11..dea21f18160 100644 --- a/Talent/metadata/V4Beta1/Job.php +++ b/Talent/metadata/V4Beta1/Job.php @@ -18,12 +18,10 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Cloud\Talent\V4Beta1\Common::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); - \GPBMetadata\Google\Type\PostalAddress::initOnce(); - \GPBMetadata\Google\Api\Annotations::initOnce(); $pool->internalAddGeneratedFile( ' -Õ -%google/cloud/talent/v4beta1/job.protogoogle.cloud.talent.v4beta1google/api/resource.proto(google/cloud/talent/v4beta1/common.protogoogle/protobuf/timestamp.proto google/type/postal_address.protogoogle/api/annotations.proto"à +• +%google/cloud/talent/v4beta1/job.protogoogle.cloud.talent.v4beta1google/api/resource.proto(google/cloud/talent/v4beta1/common.protogoogle/protobuf/timestamp.proto"à Job name ( 4 company ( B#àAúA diff --git a/Talent/metadata/V4Beta1/JobService.php b/Talent/metadata/V4Beta1/JobService.php index 9a3e66224d6a8924245a5bbf9b32bc1694153cab..2d2e244f7b4157892ffb187d58dcb9ea64f44fab 100644 GIT binary patch delta 259 zcmZ2zx5s`1JIiESmLDu%O}KO?>$AyBOc&go#_Gtp`4HPuW~SZTn=`r08JS|#Cokky zW^rPYVBCC!do`n+P&AiNc4}pLeo;z%ZemGtMtp95N~(mA0;2|>k^SU_y!ry(5NThK ztS?YrQvwb=k~xrn~OC?y`%ld+viEB~y?b#|xPR&Ufy4KQ14A?H~AX zQ+q;P8W<6^w9b(h9Z<~=yvQ>>N9)AhE)6u(>-)AtgQBL@cC_uCmR7GdS|1@a^y0vz zWv%CVJ%^S|$BV5}WH{7~N{0_RG%`LZA-67~i<~QfYxHU88z$ABG^@{$!ZISG{e&}U zZ!iY!7H80Y{-DYjJOnTuBMh~sU<7YK!+(CjM%J-Kgg9v?B!YU(6(CVOC@#j8wkZuSM zN#u2jWcnFHH;A`|ALn64)*>>t=87;G>kV}xGuSJ#6ZA+ct4;LUSETm5I?>U%^ z16!TqU-B^93%uB8&$b*i76>T&I~AO zr!)JgGiLyjbYXzlXXX%q*>eG3!is6Qmd!Dv(2aAUp8>)6i2GC@#nsNm-G{8esh@J% zn*#%k3&-LvKY~1lIhNF(tMeYC=Cnz)UHf(_w#gCO=tJ^3C^8IasLpZltyHW`Yw{2l zY2UD&K@=f;p2G{N@H)egFJaz4@La09aleDYs0$Z>HW`9^jZiMW;piArp}NSSYpJIS zg$-vvu*n`=L5;C%df3-=({m%kjIfV(JvGl+t*5d={UvroKpTi84Is4dJKj+rrvN>m zrWaVDy2Sb2OXXKjV7nYep1=~dVv`ragcISM?xu4Zpd_Pp%)#$%#|hO-9G&i%Jw}R- z0knpFh$^B(mpSg^)Ke>h{D^#ok;umrQNGm`4nD^(LjZXIGd?D$8-?m+4o#2$CZ{D; zSTJc2*@Gnz^-WY|Dt1ySH5eF+Nc?mfv)ye-&TR|( zV;26Jfvjv9S79l{5!}R)8+|KVj_BnZkQ3i^t{W3(VZE5Dn_w#25mT%18vyZ;D|rpB z?AG`8pVjr&cg?!KzrEM2Z!|U=^;-S|qQLai-51Zc@)@!MOFONn^<900IzLhP+XTQ! zyHa7H>jiyGITU?3ggpI#d<%;sTJcxHmXA`!AM!4Wk9&z}Sbs#umtnyVD6WLeTAVK* zX;%M`f#q=!LI8T0HlicT_Kc99IT|^U;M^4Aa%#WE zN;AbO5qrX9<4>m9lj=O={NX%M_;&_o1|9nmOvjGz;f)4SQvXK zhDs>pMKgT?WX#)Bfytt(cw#+3@dv94GrqzyGnw~9(Nqfmn}qyZGuX!fxWWdJ&c=V9 z!nyUOK^@^iT*DXSCd^XT5=5fdj3MIT#YRJ{*u(OH^={t6IV;35R6G{D(Wgm#^VKM~ zez9qM2^8#oxZFf?e^SU5SY(eZd2xg1@I6T(pTImWTVafK0?+pX^{j0u=^m_8F$i_K zx)^h@=P2j(93r;5L2kpj^fzEBQ6iaga?EpLBDn=uPHB`-%?+svup(s?_D*Q#6Pm&g zldxDnH7@_0KEDqteeL70fi0sK7*;H%c^*xoB#sFbtofmNfIIHb5D(XZShN>Vdcyy_ z=U~PC=EMXb2;~x;K6KYOPvn5Ijs_NsAmx<5&yNocE{!Oh_=yFI^!PPckZKHu-eEXY zXCW(I79z+B$;cxn7uTC*sT|JE*@gv_*ITX@hbIFBPb3_&94pklt{z6Qb%fOzdu`!g z6EK^sKg%#@*`ecvIAOiy%W8N)1AgD6;24r0*@KQnBG zhk7_+n&J{}R2DghFpDT;HIZe+-@K0~c%yV8)Rc>cTJ`rC_z)MiL7N?S>s4Kr+Z-+! z`~nugMqV@X+lss^?0Jsi_KIH6EA^<0dtT&~#4ENBj{U9Xp}6P$internalAddGeneratedFile( - ' -Ð -1google/cloud/talent/v4beta1/profile_service.protogoogle.cloud.talent.v4beta1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto(google/cloud/talent/v4beta1/common.proto)google/cloud/talent/v4beta1/filters.proto+google/cloud/talent/v4beta1/histogram.proto)google/cloud/talent/v4beta1/profile.proto#google/longrunning/operations.protogoogle/protobuf/any.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/rpc/status.proto"° -ListProfilesRequest3 -parent ( B#àAúAjobs.googleapis.com/Profile -filter (  - -page_token (  - page_size (- - read_mask ( 2.google.protobuf.FieldMask"g -ListProfilesResponse6 -profiles ( 2$.google.cloud.talent.v4beta1.Profile -next_page_token ( "† -CreateProfileRequest2 -parent ( B"àAúA -jobs.googleapis.com/Tenant: -profile ( 2$.google.cloud.talent.v4beta1.ProfileBàA"F -GetProfileRequest1 -name ( B#àAúA -jobs.googleapis.com/Profile"ƒ -UpdateProfileRequest: -profile ( 2$.google.cloud.talent.v4beta1.ProfileBàA/ - update_mask ( 2.google.protobuf.FieldMask"I -DeleteProfileRequest1 -name ( B#àAúA -jobs.googleapis.com/Profile"Ü -SearchProfilesRequest2 -parent ( B"àAúA -jobs.googleapis.com/TenantK -request_metadata ( 2,.google.cloud.talent.v4beta1.RequestMetadataBàA@ - profile_query ( 2).google.cloud.talent.v4beta1.ProfileQuery - page_size ( - -page_token (  -offset ( -disable_spell_check ( -order_by (  -case_sensitive_sort (F -histogram_queries - ( 2+.google.cloud.talent.v4beta1.HistogramQuery - result_set_id (  -strict_keywords_search ("“ -SearchProfilesResponse -estimated_total_size (I -spell_correction ( 2/.google.cloud.talent.v4beta1.SpellingCorrection? -metadata ( 2-.google.cloud.talent.v4beta1.ResponseMetadata -next_page_token ( R -histogram_query_results ( 21.google.cloud.talent.v4beta1.HistogramQueryResultK -summarized_profiles ( 2..google.cloud.talent.v4beta1.SummarizedProfile - result_set_id ( "‚ -SummarizedProfile6 -profiles ( 2$.google.cloud.talent.v4beta1.Profile5 -summary ( 2$.google.cloud.talent.v4beta1.Profile2Ÿ -ProfileServiceµ - ListProfiles0.google.cloud.talent.v4beta1.ListProfilesRequest1.google.cloud.talent.v4beta1.ListProfilesResponse"@‚Óä“1//v4beta1/{parent=projects/*/tenants/*}/profilesÚAparentµ - CreateProfile1.google.cloud.talent.v4beta1.CreateProfileRequest$.google.cloud.talent.v4beta1.Profile"K‚Óä“4"//v4beta1/{parent=projects/*/tenants/*}/profiles:*ÚAparent,profile¢ - -GetProfile..google.cloud.talent.v4beta1.GetProfileRequest$.google.cloud.talent.v4beta1.Profile">‚Óä“1//v4beta1/{name=projects/*/tenants/*/profiles/*}ÚAname¶ - UpdateProfile1.google.cloud.talent.v4beta1.UpdateProfileRequest$.google.cloud.talent.v4beta1.Profile"L‚Óä“<27/v4beta1/{profile.name=projects/*/tenants/*/profiles/*}:*ÚAprofileš - DeleteProfile1.google.cloud.talent.v4beta1.DeleteProfileRequest.google.protobuf.Empty">‚Óä“1*//v4beta1/{name=projects/*/tenants/*/profiles/*}ÚAname³ -SearchProfiles2.google.cloud.talent.v4beta1.SearchProfilesRequest3.google.cloud.talent.v4beta1.SearchProfilesResponse"8‚Óä“2"-/v4beta1/{parent=projects/*/tenants/*}:search:*lÊAjobs.googleapis.comÒAShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB -com.google.cloud.talent.v4beta1BProfileServiceProtoPZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent¢CTSbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/Talent/metadata/V4Beta1/ResumeService.php b/Talent/metadata/V4Beta1/ResumeService.php deleted file mode 100644 index 67f207731bf..00000000000 --- a/Talent/metadata/V4Beta1/ResumeService.php +++ /dev/null @@ -1,47 +0,0 @@ -internalAddGeneratedFile(hex2bin( - "0a83050a30676f6f676c652f636c6f75642f74616c656e742f7634626574" . - "61312f726573756d655f736572766963652e70726f746f121b676f6f676c" . - "652e636c6f75642e74616c656e742e763462657461311a29676f6f676c65" . - "2f636c6f75642f74616c656e742f763462657461312f70726f66696c652e" . - "70726f746f22600a125061727365526573756d6552657175657374120e0a" . - "06706172656e74180120012809120e0a06726573756d6518022001280c12" . - "130a0b726567696f6e5f636f646518032001280912150a0d6c616e677561" . - "67655f636f6465180420012809225e0a135061727365526573756d655265" . - "73706f6e736512350a0770726f66696c6518012001280b32242e676f6f67" . - "6c652e636c6f75642e74616c656e742e763462657461312e50726f66696c" . - "6512100a087261775f7465787418022001280932b9010a0d526573756d65" . - "5365727669636512a7010a0b5061727365526573756d65122f2e676f6f67" . - "6c652e636c6f75642e74616c656e742e763462657461312e506172736552" . - "6573756d65526571756573741a302e676f6f676c652e636c6f75642e7461" . - "6c656e742e763462657461312e5061727365526573756d65526573706f6e" . - "7365223582d3e493022f222a2f763462657461312f7b706172656e743d70" . - "726f6a656374732f2a7d2f726573756d65733a70617273653a012a428001" . - "0a1f636f6d2e676f6f676c652e636c6f75642e74616c656e742e76346265" . - "7461314212526573756d655365727669636550726f746f50015a41676f6f" . - "676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c65" . - "617069732f636c6f75642f74616c656e742f763462657461313b74616c65" . - "6e74a20203435453620670726f746f33" - )); - - static::$is_initialized = true; - } -} - diff --git a/Talent/metadata/V4Beta1/Tenant.php b/Talent/metadata/V4Beta1/Tenant.php index 926e84b5fcf27bdd0056f6fa2b5bdb3f67fe6981..8f0fda685dab28e2dc17506f2dfbbf4ccbf5d6e3 100644 GIT binary patch delta 28 kcmey%b&_*~Jk#VUO!_QaShzGMdTUI6&t$PVjai%t0FC1a<^TWy delta 119 zcmX@f`Il>hJk#Wtj3Pn-MfoN9Nu_BqA(^?U#U+Wk1(Po`>Tx^f<>i+omSpDV6;I}5 wa%KEH*`F!dQc6BOKR-PuRlfkLOTPrBOAjn0B?DEESdgioh%jUG8YWpL0C&qQXaE2J diff --git a/Talent/src/V4beta1/Activity.php b/Talent/src/V4beta1/Activity.php deleted file mode 100644 index e86c01af28f..00000000000 --- a/Talent/src/V4beta1/Activity.php +++ /dev/null @@ -1,443 +0,0 @@ -google.cloud.talent.v4beta1.Activity - */ -class Activity extends \Google\Protobuf\Internal\Message -{ - /** - * Activity display name. - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - */ - private $display_name = ''; - /** - * Activity description. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 2; - */ - private $description = ''; - /** - * Activity URI. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string uri = 3; - */ - private $uri = ''; - /** - * The first creation date of the activity. - * - * Generated from protobuf field .google.type.Date create_date = 4; - */ - private $create_date = null; - /** - * The last update date of the activity. - * - * Generated from protobuf field .google.type.Date update_date = 5; - */ - private $update_date = null; - /** - * A list of team members involved in this activity. - * Number of characters allowed is 100. - * The limitation for max number of team members is 50. - * - * Generated from protobuf field repeated string team_members = 6; - */ - private $team_members; - /** - * A list of skills used in this activity. - * The limitation for max number of skills used is 50. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - private $skills_used; - /** - * Output only. Activity name snippet shows how the [display_name][google.cloud.talent.v4beta1.Activity.display_name] is related to a search - * query. It's empty if the [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't related to the search - * query. - * - * Generated from protobuf field string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $activity_name_snippet = ''; - /** - * Output only. Activity description snippet shows how the - * [description][google.cloud.talent.v4beta1.Activity.description] is related to a search query. It's empty if the - * [description][google.cloud.talent.v4beta1.Activity.description] isn't related to the search query. - * - * Generated from protobuf field string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $activity_description_snippet = ''; - /** - * Output only. Skill used snippet shows how the corresponding - * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related to a search query. It's empty if the - * corresponding [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not related to the search query. - * - * Generated from protobuf field repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $skills_used_snippet; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Activity display name. - * Number of characters allowed is 100. - * @type string $description - * Activity description. - * Number of characters allowed is 100,000. - * @type string $uri - * Activity URI. - * Number of characters allowed is 4,000. - * @type \Google\Type\Date $create_date - * The first creation date of the activity. - * @type \Google\Type\Date $update_date - * The last update date of the activity. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $team_members - * A list of team members involved in this activity. - * Number of characters allowed is 100. - * The limitation for max number of team members is 50. - * @type \Google\Cloud\Talent\V4beta1\Skill[]|\Google\Protobuf\Internal\RepeatedField $skills_used - * A list of skills used in this activity. - * The limitation for max number of skills used is 50. - * @type string $activity_name_snippet - * Output only. Activity name snippet shows how the [display_name][google.cloud.talent.v4beta1.Activity.display_name] is related to a search - * query. It's empty if the [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't related to the search - * query. - * @type string $activity_description_snippet - * Output only. Activity description snippet shows how the - * [description][google.cloud.talent.v4beta1.Activity.description] is related to a search query. It's empty if the - * [description][google.cloud.talent.v4beta1.Activity.description] isn't related to the search query. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $skills_used_snippet - * Output only. Skill used snippet shows how the corresponding - * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related to a search query. It's empty if the - * corresponding [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not related to the search query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * Activity display name. - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Activity display name. - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Activity description. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Activity description. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Activity URI. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string uri = 3; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Activity URI. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string uri = 3; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * The first creation date of the activity. - * - * Generated from protobuf field .google.type.Date create_date = 4; - * @return \Google\Type\Date|null - */ - public function getCreateDate() - { - return $this->create_date; - } - - public function hasCreateDate() - { - return isset($this->create_date); - } - - public function clearCreateDate() - { - unset($this->create_date); - } - - /** - * The first creation date of the activity. - * - * Generated from protobuf field .google.type.Date create_date = 4; - * @param \Google\Type\Date $var - * @return $this - */ - public function setCreateDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->create_date = $var; - - return $this; - } - - /** - * The last update date of the activity. - * - * Generated from protobuf field .google.type.Date update_date = 5; - * @return \Google\Type\Date|null - */ - public function getUpdateDate() - { - return $this->update_date; - } - - public function hasUpdateDate() - { - return isset($this->update_date); - } - - public function clearUpdateDate() - { - unset($this->update_date); - } - - /** - * The last update date of the activity. - * - * Generated from protobuf field .google.type.Date update_date = 5; - * @param \Google\Type\Date $var - * @return $this - */ - public function setUpdateDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->update_date = $var; - - return $this; - } - - /** - * A list of team members involved in this activity. - * Number of characters allowed is 100. - * The limitation for max number of team members is 50. - * - * Generated from protobuf field repeated string team_members = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTeamMembers() - { - return $this->team_members; - } - - /** - * A list of team members involved in this activity. - * Number of characters allowed is 100. - * The limitation for max number of team members is 50. - * - * Generated from protobuf field repeated string team_members = 6; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTeamMembers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->team_members = $arr; - - return $this; - } - - /** - * A list of skills used in this activity. - * The limitation for max number of skills used is 50. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSkillsUsed() - { - return $this->skills_used; - } - - /** - * A list of skills used in this activity. - * The limitation for max number of skills used is 50. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - * @param \Google\Cloud\Talent\V4beta1\Skill[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSkillsUsed($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Skill::class); - $this->skills_used = $arr; - - return $this; - } - - /** - * Output only. Activity name snippet shows how the [display_name][google.cloud.talent.v4beta1.Activity.display_name] is related to a search - * query. It's empty if the [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't related to the search - * query. - * - * Generated from protobuf field string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getActivityNameSnippet() - { - return $this->activity_name_snippet; - } - - /** - * Output only. Activity name snippet shows how the [display_name][google.cloud.talent.v4beta1.Activity.display_name] is related to a search - * query. It's empty if the [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't related to the search - * query. - * - * Generated from protobuf field string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setActivityNameSnippet($var) - { - GPBUtil::checkString($var, True); - $this->activity_name_snippet = $var; - - return $this; - } - - /** - * Output only. Activity description snippet shows how the - * [description][google.cloud.talent.v4beta1.Activity.description] is related to a search query. It's empty if the - * [description][google.cloud.talent.v4beta1.Activity.description] isn't related to the search query. - * - * Generated from protobuf field string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getActivityDescriptionSnippet() - { - return $this->activity_description_snippet; - } - - /** - * Output only. Activity description snippet shows how the - * [description][google.cloud.talent.v4beta1.Activity.description] is related to a search query. It's empty if the - * [description][google.cloud.talent.v4beta1.Activity.description] isn't related to the search query. - * - * Generated from protobuf field string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setActivityDescriptionSnippet($var) - { - GPBUtil::checkString($var, True); - $this->activity_description_snippet = $var; - - return $this; - } - - /** - * Output only. Skill used snippet shows how the corresponding - * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related to a search query. It's empty if the - * corresponding [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not related to the search query. - * - * Generated from protobuf field repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSkillsUsedSnippet() - { - return $this->skills_used_snippet; - } - - /** - * Output only. Skill used snippet shows how the corresponding - * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related to a search query. It's empty if the - * corresponding [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not related to the search query. - * - * Generated from protobuf field repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSkillsUsedSnippet($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->skills_used_snippet = $arr; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/AdditionalContactInfo.php b/Talent/src/V4beta1/AdditionalContactInfo.php deleted file mode 100644 index 349c394d9ae..00000000000 --- a/Talent/src/V4beta1/AdditionalContactInfo.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.talent.v4beta1.AdditionalContactInfo - */ -class AdditionalContactInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - */ - private $usage = 0; - /** - * The name of the contact method. - * For example, "hangout", "skype". - * Number of characters allowed is 100. - * - * Generated from protobuf field string name = 2; - */ - private $name = ''; - /** - * The contact id. - * Number of characters allowed is 100. - * - * Generated from protobuf field string contact_id = 3; - */ - private $contact_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $usage - * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL. - * @type string $name - * The name of the contact method. - * For example, "hangout", "skype". - * Number of characters allowed is 100. - * @type string $contact_id - * The contact id. - * Number of characters allowed is 100. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * @return int - */ - public function getUsage() - { - return $this->usage; - } - - /** - * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * @param int $var - * @return $this - */ - public function setUsage($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\ContactInfoUsage::class); - $this->usage = $var; - - return $this; - } - - /** - * The name of the contact method. - * For example, "hangout", "skype". - * Number of characters allowed is 100. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the contact method. - * For example, "hangout", "skype". - * Number of characters allowed is 100. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The contact id. - * Number of characters allowed is 100. - * - * Generated from protobuf field string contact_id = 3; - * @return string - */ - public function getContactId() - { - return $this->contact_id; - } - - /** - * The contact id. - * Number of characters allowed is 100. - * - * Generated from protobuf field string contact_id = 3; - * @param string $var - * @return $this - */ - public function setContactId($var) - { - GPBUtil::checkString($var, True); - $this->contact_id = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Address.php b/Talent/src/V4beta1/Address.php deleted file mode 100644 index 35d047a4e02..00000000000 --- a/Talent/src/V4beta1/Address.php +++ /dev/null @@ -1,225 +0,0 @@ -google.cloud.talent.v4beta1.Address - */ -class Address extends \Google\Protobuf\Internal\Message -{ - /** - * The usage of the address. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - */ - private $usage = 0; - /** - * Indicates if it's the person's current address. - * - * Generated from protobuf field .google.protobuf.BoolValue current = 4; - */ - private $current = null; - protected $address; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $usage - * The usage of the address. For example, SCHOOL, WORK, PERSONAL. - * @type string $unstructured_address - * Unstructured address. - * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043", - * "Sunnyvale, California". - * Number of characters allowed is 100. - * @type \Google\Type\PostalAddress $structured_address - * Structured address that contains street address, city, state, country, - * and so on. - * @type \Google\Protobuf\BoolValue $current - * Indicates if it's the person's current address. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * The usage of the address. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * @return int - */ - public function getUsage() - { - return $this->usage; - } - - /** - * The usage of the address. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * @param int $var - * @return $this - */ - public function setUsage($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\ContactInfoUsage::class); - $this->usage = $var; - - return $this; - } - - /** - * Unstructured address. - * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043", - * "Sunnyvale, California". - * Number of characters allowed is 100. - * - * Generated from protobuf field string unstructured_address = 2; - * @return string - */ - public function getUnstructuredAddress() - { - return $this->readOneof(2); - } - - public function hasUnstructuredAddress() - { - return $this->hasOneof(2); - } - - /** - * Unstructured address. - * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043", - * "Sunnyvale, California". - * Number of characters allowed is 100. - * - * Generated from protobuf field string unstructured_address = 2; - * @param string $var - * @return $this - */ - public function setUnstructuredAddress($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Structured address that contains street address, city, state, country, - * and so on. - * - * Generated from protobuf field .google.type.PostalAddress structured_address = 3; - * @return \Google\Type\PostalAddress|null - */ - public function getStructuredAddress() - { - return $this->readOneof(3); - } - - public function hasStructuredAddress() - { - return $this->hasOneof(3); - } - - /** - * Structured address that contains street address, city, state, country, - * and so on. - * - * Generated from protobuf field .google.type.PostalAddress structured_address = 3; - * @param \Google\Type\PostalAddress $var - * @return $this - */ - public function setStructuredAddress($var) - { - GPBUtil::checkMessage($var, \Google\Type\PostalAddress::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Indicates if it's the person's current address. - * - * Generated from protobuf field .google.protobuf.BoolValue current = 4; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCurrent() - { - return $this->current; - } - - public function hasCurrent() - { - return isset($this->current); - } - - public function clearCurrent() - { - unset($this->current); - } - - /** - * Returns the unboxed value from getCurrent() - - * Indicates if it's the person's current address. - * - * Generated from protobuf field .google.protobuf.BoolValue current = 4; - * @return bool|null - */ - public function getCurrentValue() - { - return $this->readWrapperValue("current"); - } - - /** - * Indicates if it's the person's current address. - * - * Generated from protobuf field .google.protobuf.BoolValue current = 4; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCurrent($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->current = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Indicates if it's the person's current address. - * - * Generated from protobuf field .google.protobuf.BoolValue current = 4; - * @param bool|null $var - * @return $this - */ - public function setCurrentValue($var) - { - $this->writeWrapperValue("current", $var); - return $this;} - - /** - * @return string - */ - public function getAddress() - { - return $this->whichOneof("address"); - } - -} - diff --git a/Talent/src/V4beta1/Application.php b/Talent/src/V4beta1/Application.php deleted file mode 100644 index 2040a62ae61..00000000000 --- a/Talent/src/V4beta1/Application.php +++ /dev/null @@ -1,789 +0,0 @@ -google.cloud.talent.v4beta1.Application - */ -class Application extends \Google\Protobuf\Internal\Message -{ - /** - * Required during application update. - * Resource name assigned to an application by the API. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * - * Generated from protobuf field string name = 1; - */ - private $name = ''; - /** - * Required. Client side application identifier, used to uniquely identify the - * application. - * The maximum number of allowed characters is 255. - * - * Generated from protobuf field string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - */ - private $external_id = ''; - /** - * Output only. Resource name of the candidate of this application. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". - * For example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $profile = ''; - /** - * Required. Resource name of the job which the candidate applied for. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, - * "projects/foo/tenants/bar/jobs/baz". - * - * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $job = ''; - /** - * Resource name of the company which the candidate applied for. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". - * For example, "projects/foo/tenants/bar/companies/baz". - * - * Generated from protobuf field string company = 5 [(.google.api.resource_reference) = { - */ - private $company = ''; - /** - * The application date. - * - * Generated from protobuf field .google.type.Date application_date = 7; - */ - private $application_date = null; - /** - * Required. What is the most recent stage of the application (that is, new, - * screen, send cv, hired, finished work)? This field is intentionally not - * comprehensive of every possible status, but instead, represents statuses - * that would be used to indicate to the ML models good / bad matches. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - */ - private $stage = 0; - /** - * The application state. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - */ - private $state = 0; - /** - * All interviews (screen, onsite, and so on) conducted as part of this - * application (includes details such as user conducting the interview, - * timestamp, feedback, and so on). - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - private $interviews; - /** - * If the candidate is referred by a employee. - * - * Generated from protobuf field .google.protobuf.BoolValue referral = 18; - */ - private $referral = null; - /** - * Required. Reflects the time that the application was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - */ - private $create_time = null; - /** - * The last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 20; - */ - private $update_time = null; - /** - * Free text reason behind the recruitement outcome (for example, reason for - * withdraw / reject, reason for an unsuccessful finish, and so on). - * Number of characters allowed is 100. - * - * Generated from protobuf field string outcome_notes = 21; - */ - private $outcome_notes = ''; - /** - * Outcome positiveness shows how positive the outcome is. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Outcome outcome = 22; - */ - private $outcome = 0; - /** - * Output only. Indicates whether this job application is a match to - * application related filters. This value is only applicable in profile - * search response. - * - * Generated from protobuf field .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $is_match = null; - /** - * Output only. Job title snippet shows how the job title is related to a - * search query. It's empty if the job title isn't related to the search - * query. - * - * Generated from protobuf field string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $job_title_snippet = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required during application update. - * Resource name assigned to an application by the API. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * @type string $external_id - * Required. Client side application identifier, used to uniquely identify the - * application. - * The maximum number of allowed characters is 255. - * @type string $profile - * Output only. Resource name of the candidate of this application. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". - * For example, "projects/foo/tenants/bar/profiles/baz". - * @type string $job - * Required. Resource name of the job which the candidate applied for. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, - * "projects/foo/tenants/bar/jobs/baz". - * @type string $company - * Resource name of the company which the candidate applied for. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". - * For example, "projects/foo/tenants/bar/companies/baz". - * @type \Google\Type\Date $application_date - * The application date. - * @type int $stage - * Required. What is the most recent stage of the application (that is, new, - * screen, send cv, hired, finished work)? This field is intentionally not - * comprehensive of every possible status, but instead, represents statuses - * that would be used to indicate to the ML models good / bad matches. - * @type int $state - * The application state. - * @type \Google\Cloud\Talent\V4beta1\Interview[]|\Google\Protobuf\Internal\RepeatedField $interviews - * All interviews (screen, onsite, and so on) conducted as part of this - * application (includes details such as user conducting the interview, - * timestamp, feedback, and so on). - * @type \Google\Protobuf\BoolValue $referral - * If the candidate is referred by a employee. - * @type \Google\Protobuf\Timestamp $create_time - * Required. Reflects the time that the application was created. - * @type \Google\Protobuf\Timestamp $update_time - * The last update timestamp. - * @type string $outcome_notes - * Free text reason behind the recruitement outcome (for example, reason for - * withdraw / reject, reason for an unsuccessful finish, and so on). - * Number of characters allowed is 100. - * @type int $outcome - * Outcome positiveness shows how positive the outcome is. - * @type \Google\Protobuf\BoolValue $is_match - * Output only. Indicates whether this job application is a match to - * application related filters. This value is only applicable in profile - * search response. - * @type string $job_title_snippet - * Output only. Job title snippet shows how the job title is related to a - * search query. It's empty if the job title isn't related to the search - * query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Application::initOnce(); - parent::__construct($data); - } - - /** - * Required during application update. - * Resource name assigned to an application by the API. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required during application update. - * Resource name assigned to an application by the API. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Client side application identifier, used to uniquely identify the - * application. - * The maximum number of allowed characters is 255. - * - * Generated from protobuf field string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getExternalId() - { - return $this->external_id; - } - - /** - * Required. Client side application identifier, used to uniquely identify the - * application. - * The maximum number of allowed characters is 255. - * - * Generated from protobuf field string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setExternalId($var) - { - GPBUtil::checkString($var, True); - $this->external_id = $var; - - return $this; - } - - /** - * Output only. Resource name of the candidate of this application. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". - * For example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getProfile() - { - return $this->profile; - } - - /** - * Output only. Resource name of the candidate of this application. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". - * For example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setProfile($var) - { - GPBUtil::checkString($var, True); - $this->profile = $var; - - return $this; - } - - /** - * Required. Resource name of the job which the candidate applied for. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, - * "projects/foo/tenants/bar/jobs/baz". - * - * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getJob() - { - return $this->job; - } - - /** - * Required. Resource name of the job which the candidate applied for. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, - * "projects/foo/tenants/bar/jobs/baz". - * - * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setJob($var) - { - GPBUtil::checkString($var, True); - $this->job = $var; - - return $this; - } - - /** - * Resource name of the company which the candidate applied for. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". - * For example, "projects/foo/tenants/bar/companies/baz". - * - * Generated from protobuf field string company = 5 [(.google.api.resource_reference) = { - * @return string - */ - public function getCompany() - { - return $this->company; - } - - /** - * Resource name of the company which the candidate applied for. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". - * For example, "projects/foo/tenants/bar/companies/baz". - * - * Generated from protobuf field string company = 5 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCompany($var) - { - GPBUtil::checkString($var, True); - $this->company = $var; - - return $this; - } - - /** - * The application date. - * - * Generated from protobuf field .google.type.Date application_date = 7; - * @return \Google\Type\Date|null - */ - public function getApplicationDate() - { - return $this->application_date; - } - - public function hasApplicationDate() - { - return isset($this->application_date); - } - - public function clearApplicationDate() - { - unset($this->application_date); - } - - /** - * The application date. - * - * Generated from protobuf field .google.type.Date application_date = 7; - * @param \Google\Type\Date $var - * @return $this - */ - public function setApplicationDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->application_date = $var; - - return $this; - } - - /** - * Required. What is the most recent stage of the application (that is, new, - * screen, send cv, hired, finished work)? This field is intentionally not - * comprehensive of every possible status, but instead, represents statuses - * that would be used to indicate to the ML models good / bad matches. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getStage() - { - return $this->stage; - } - - /** - * Required. What is the most recent stage of the application (that is, new, - * screen, send cv, hired, finished work)? This field is intentionally not - * comprehensive of every possible status, but instead, represents statuses - * that would be used to indicate to the ML models good / bad matches. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setStage($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\Application\ApplicationStage::class); - $this->stage = $var; - - return $this; - } - - /** - * The application state. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The application state. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\Application\ApplicationState::class); - $this->state = $var; - - return $this; - } - - /** - * All interviews (screen, onsite, and so on) conducted as part of this - * application (includes details such as user conducting the interview, - * timestamp, feedback, and so on). - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInterviews() - { - return $this->interviews; - } - - /** - * All interviews (screen, onsite, and so on) conducted as part of this - * application (includes details such as user conducting the interview, - * timestamp, feedback, and so on). - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - * @param \Google\Cloud\Talent\V4beta1\Interview[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInterviews($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Interview::class); - $this->interviews = $arr; - - return $this; - } - - /** - * If the candidate is referred by a employee. - * - * Generated from protobuf field .google.protobuf.BoolValue referral = 18; - * @return \Google\Protobuf\BoolValue|null - */ - public function getReferral() - { - return $this->referral; - } - - public function hasReferral() - { - return isset($this->referral); - } - - public function clearReferral() - { - unset($this->referral); - } - - /** - * Returns the unboxed value from getReferral() - - * If the candidate is referred by a employee. - * - * Generated from protobuf field .google.protobuf.BoolValue referral = 18; - * @return bool|null - */ - public function getReferralValue() - { - return $this->readWrapperValue("referral"); - } - - /** - * If the candidate is referred by a employee. - * - * Generated from protobuf field .google.protobuf.BoolValue referral = 18; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setReferral($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->referral = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * If the candidate is referred by a employee. - * - * Generated from protobuf field .google.protobuf.BoolValue referral = 18; - * @param bool|null $var - * @return $this - */ - public function setReferralValue($var) - { - $this->writeWrapperValue("referral", $var); - return $this;} - - /** - * Required. Reflects the time that the application was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Required. Reflects the time that the application was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 20; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * The last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 20; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Free text reason behind the recruitement outcome (for example, reason for - * withdraw / reject, reason for an unsuccessful finish, and so on). - * Number of characters allowed is 100. - * - * Generated from protobuf field string outcome_notes = 21; - * @return string - */ - public function getOutcomeNotes() - { - return $this->outcome_notes; - } - - /** - * Free text reason behind the recruitement outcome (for example, reason for - * withdraw / reject, reason for an unsuccessful finish, and so on). - * Number of characters allowed is 100. - * - * Generated from protobuf field string outcome_notes = 21; - * @param string $var - * @return $this - */ - public function setOutcomeNotes($var) - { - GPBUtil::checkString($var, True); - $this->outcome_notes = $var; - - return $this; - } - - /** - * Outcome positiveness shows how positive the outcome is. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Outcome outcome = 22; - * @return int - */ - public function getOutcome() - { - return $this->outcome; - } - - /** - * Outcome positiveness shows how positive the outcome is. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Outcome outcome = 22; - * @param int $var - * @return $this - */ - public function setOutcome($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\Outcome::class); - $this->outcome = $var; - - return $this; - } - - /** - * Output only. Indicates whether this job application is a match to - * application related filters. This value is only applicable in profile - * search response. - * - * Generated from protobuf field .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getIsMatch() - { - return $this->is_match; - } - - public function hasIsMatch() - { - return isset($this->is_match); - } - - public function clearIsMatch() - { - unset($this->is_match); - } - - /** - * Returns the unboxed value from getIsMatch() - - * Output only. Indicates whether this job application is a match to - * application related filters. This value is only applicable in profile - * search response. - * - * Generated from protobuf field .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool|null - */ - public function getIsMatchValue() - { - return $this->readWrapperValue("is_match"); - } - - /** - * Output only. Indicates whether this job application is a match to - * application related filters. This value is only applicable in profile - * search response. - * - * Generated from protobuf field .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsMatch($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_match = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Output only. Indicates whether this job application is a match to - * application related filters. This value is only applicable in profile - * search response. - * - * Generated from protobuf field .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool|null $var - * @return $this - */ - public function setIsMatchValue($var) - { - $this->writeWrapperValue("is_match", $var); - return $this;} - - /** - * Output only. Job title snippet shows how the job title is related to a - * search query. It's empty if the job title isn't related to the search - * query. - * - * Generated from protobuf field string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobTitleSnippet() - { - return $this->job_title_snippet; - } - - /** - * Output only. Job title snippet shows how the job title is related to a - * search query. It's empty if the job title isn't related to the search - * query. - * - * Generated from protobuf field string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobTitleSnippet($var) - { - GPBUtil::checkString($var, True); - $this->job_title_snippet = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Application/ApplicationStage.php b/Talent/src/V4beta1/Application/ApplicationStage.php deleted file mode 100644 index 45062e616fc..00000000000 --- a/Talent/src/V4beta1/Application/ApplicationStage.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.talent.v4beta1.Application.ApplicationStage - */ -class ApplicationStage -{ - /** - * Default value. - * - * Generated from protobuf enum APPLICATION_STAGE_UNSPECIFIED = 0; - */ - const APPLICATION_STAGE_UNSPECIFIED = 0; - /** - * Candidate has applied or a recruiter put candidate into consideration but - * candidate is not yet screened / no decision has been made to move or not - * move the candidate to the next stage. - * - * Generated from protobuf enum NEW = 1; - */ - const PBNEW = 1; - /** - * A recruiter decided to screen the candidate for this role. - * - * Generated from protobuf enum SCREEN = 2; - */ - const SCREEN = 2; - /** - * Candidate is being / was sent to the customer / hiring manager for - * detailed review. - * - * Generated from protobuf enum HIRING_MANAGER_REVIEW = 3; - */ - const HIRING_MANAGER_REVIEW = 3; - /** - * Candidate was approved by the client / hiring manager and is being / was - * interviewed for the role. - * - * Generated from protobuf enum INTERVIEW = 4; - */ - const INTERVIEW = 4; - /** - * Candidate will be / has been given an offer of employment. - * - * Generated from protobuf enum OFFER_EXTENDED = 5; - */ - const OFFER_EXTENDED = 5; - /** - * Candidate has accepted their offer of employment. - * - * Generated from protobuf enum OFFER_ACCEPTED = 6; - */ - const OFFER_ACCEPTED = 6; - /** - * Candidate has begun (or completed) their employment or assignment with - * the employer. - * - * Generated from protobuf enum STARTED = 7; - */ - const STARTED = 7; - - private static $valueToName = [ - self::APPLICATION_STAGE_UNSPECIFIED => 'APPLICATION_STAGE_UNSPECIFIED', - self::PBNEW => 'PBNEW', - self::SCREEN => 'SCREEN', - self::HIRING_MANAGER_REVIEW => 'HIRING_MANAGER_REVIEW', - self::INTERVIEW => 'INTERVIEW', - self::OFFER_EXTENDED => 'OFFER_EXTENDED', - self::OFFER_ACCEPTED => 'OFFER_ACCEPTED', - self::STARTED => 'STARTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - - diff --git a/Talent/src/V4beta1/Application/ApplicationState.php b/Talent/src/V4beta1/Application/ApplicationState.php deleted file mode 100644 index 874210ba185..00000000000 --- a/Talent/src/V4beta1/Application/ApplicationState.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.talent.v4beta1.Application.ApplicationState - */ -class ApplicationState -{ - /** - * Default value. - * - * Generated from protobuf enum APPLICATION_STATE_UNSPECIFIED = 0; - */ - const APPLICATION_STATE_UNSPECIFIED = 0; - /** - * The current stage is in progress or pending, for example, interviews in - * progress. - * - * Generated from protobuf enum IN_PROGRESS = 1; - */ - const IN_PROGRESS = 1; - /** - * The current stage was terminated by a candidate decision. - * - * Generated from protobuf enum CANDIDATE_WITHDREW = 2; - */ - const CANDIDATE_WITHDREW = 2; - /** - * The current stage was terminated by an employer or agency decision. - * - * Generated from protobuf enum EMPLOYER_WITHDREW = 3; - */ - const EMPLOYER_WITHDREW = 3; - /** - * The current stage is successfully completed, but the next stage (if - * applicable) has not begun. - * - * Generated from protobuf enum COMPLETED = 4; - */ - const COMPLETED = 4; - /** - * The current stage was closed without an exception, or terminated for - * reasons unrealated to the candidate. - * - * Generated from protobuf enum CLOSED = 5; - */ - const CLOSED = 5; - - private static $valueToName = [ - self::APPLICATION_STATE_UNSPECIFIED => 'APPLICATION_STATE_UNSPECIFIED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::CANDIDATE_WITHDREW => 'CANDIDATE_WITHDREW', - self::EMPLOYER_WITHDREW => 'EMPLOYER_WITHDREW', - self::COMPLETED => 'COMPLETED', - self::CLOSED => 'CLOSED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - - diff --git a/Talent/src/V4beta1/ApplicationDateFilter.php b/Talent/src/V4beta1/ApplicationDateFilter.php deleted file mode 100644 index 3266a7168fc..00000000000 --- a/Talent/src/V4beta1/ApplicationDateFilter.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.talent.v4beta1.ApplicationDateFilter - */ -class ApplicationDateFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Start date. If it's missing, The API matches profiles with application date - * not after the end date. - * - * Generated from protobuf field .google.type.Date start_date = 1; - */ - private $start_date = null; - /** - * End date. If it's missing, The API matches profiles with application date - * not before the start date. - * - * Generated from protobuf field .google.type.Date end_date = 2; - */ - private $end_date = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Date $start_date - * Start date. If it's missing, The API matches profiles with application date - * not after the end date. - * @type \Google\Type\Date $end_date - * End date. If it's missing, The API matches profiles with application date - * not before the start date. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Start date. If it's missing, The API matches profiles with application date - * not after the end date. - * - * Generated from protobuf field .google.type.Date start_date = 1; - * @return \Google\Type\Date|null - */ - public function getStartDate() - { - return $this->start_date; - } - - public function hasStartDate() - { - return isset($this->start_date); - } - - public function clearStartDate() - { - unset($this->start_date); - } - - /** - * Start date. If it's missing, The API matches profiles with application date - * not after the end date. - * - * Generated from protobuf field .google.type.Date start_date = 1; - * @param \Google\Type\Date $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->start_date = $var; - - return $this; - } - - /** - * End date. If it's missing, The API matches profiles with application date - * not before the start date. - * - * Generated from protobuf field .google.type.Date end_date = 2; - * @return \Google\Type\Date|null - */ - public function getEndDate() - { - return $this->end_date; - } - - public function hasEndDate() - { - return isset($this->end_date); - } - - public function clearEndDate() - { - unset($this->end_date); - } - - /** - * End date. If it's missing, The API matches profiles with application date - * not before the start date. - * - * Generated from protobuf field .google.type.Date end_date = 2; - * @param \Google\Type\Date $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->end_date = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ApplicationJobFilter.php b/Talent/src/V4beta1/ApplicationJobFilter.php deleted file mode 100644 index 2afd9073979..00000000000 --- a/Talent/src/V4beta1/ApplicationJobFilter.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.talent.v4beta1.ApplicationJobFilter - */ -class ApplicationJobFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The job requisition id in the application. The API does an exact match on - * the [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] of [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. - * - * Generated from protobuf field string job_requisition_id = 2; - */ - private $job_requisition_id = ''; - /** - * The job title in the application. The API does an exact match on the - * [Job.title][google.cloud.talent.v4beta1.Job.title] of [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. - * - * Generated from protobuf field string job_title = 3; - */ - private $job_title = ''; - /** - * If true, the API excludes all profiles with any [Application.job][google.cloud.talent.v4beta1.Application.job] - * matching the filters. - * - * Generated from protobuf field bool negated = 4; - */ - private $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $job_requisition_id - * The job requisition id in the application. The API does an exact match on - * the [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] of [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. - * @type string $job_title - * The job title in the application. The API does an exact match on the - * [Job.title][google.cloud.talent.v4beta1.Job.title] of [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. - * @type bool $negated - * If true, the API excludes all profiles with any [Application.job][google.cloud.talent.v4beta1.Application.job] - * matching the filters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * The job requisition id in the application. The API does an exact match on - * the [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] of [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. - * - * Generated from protobuf field string job_requisition_id = 2; - * @return string - */ - public function getJobRequisitionId() - { - return $this->job_requisition_id; - } - - /** - * The job requisition id in the application. The API does an exact match on - * the [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] of [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. - * - * Generated from protobuf field string job_requisition_id = 2; - * @param string $var - * @return $this - */ - public function setJobRequisitionId($var) - { - GPBUtil::checkString($var, True); - $this->job_requisition_id = $var; - - return $this; - } - - /** - * The job title in the application. The API does an exact match on the - * [Job.title][google.cloud.talent.v4beta1.Job.title] of [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. - * - * Generated from protobuf field string job_title = 3; - * @return string - */ - public function getJobTitle() - { - return $this->job_title; - } - - /** - * The job title in the application. The API does an exact match on the - * [Job.title][google.cloud.talent.v4beta1.Job.title] of [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. - * - * Generated from protobuf field string job_title = 3; - * @param string $var - * @return $this - */ - public function setJobTitle($var) - { - GPBUtil::checkString($var, True); - $this->job_title = $var; - - return $this; - } - - /** - * If true, the API excludes all profiles with any [Application.job][google.cloud.talent.v4beta1.Application.job] - * matching the filters. - * - * Generated from protobuf field bool negated = 4; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * If true, the API excludes all profiles with any [Application.job][google.cloud.talent.v4beta1.Application.job] - * matching the filters. - * - * Generated from protobuf field bool negated = 4; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ApplicationLastStageFilter.php b/Talent/src/V4beta1/ApplicationLastStageFilter.php deleted file mode 100644 index b0d99a4feb4..00000000000 --- a/Talent/src/V4beta1/ApplicationLastStageFilter.php +++ /dev/null @@ -1,126 +0,0 @@ -google.cloud.talent.v4beta1.ApplicationLastStageFilter - */ -class ApplicationLastStageFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. - * User entered or selected last stage the candidate reached in the - * application. The API does an exact match on the - * [Application.last_stage][] in profiles. - * - * Generated from protobuf field string last_stage = 1; - */ - private $last_stage = ''; - /** - * Optional. - * If true, The API excludes all candidates with any - * [Application.last_stage][] matching the last stage specified in the - * filter. - * - * Generated from protobuf field bool negated = 2; - */ - private $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $last_stage - * Required. - * User entered or selected last stage the candidate reached in the - * application. The API does an exact match on the - * [Application.last_stage][] in profiles. - * @type bool $negated - * Optional. - * If true, The API excludes all candidates with any - * [Application.last_stage][] matching the last stage specified in the - * filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Required. - * User entered or selected last stage the candidate reached in the - * application. The API does an exact match on the - * [Application.last_stage][] in profiles. - * - * Generated from protobuf field string last_stage = 1; - * @return string - */ - public function getLastStage() - { - return $this->last_stage; - } - - /** - * Required. - * User entered or selected last stage the candidate reached in the - * application. The API does an exact match on the - * [Application.last_stage][] in profiles. - * - * Generated from protobuf field string last_stage = 1; - * @param string $var - * @return $this - */ - public function setLastStage($var) - { - GPBUtil::checkString($var, True); - $this->last_stage = $var; - - return $this; - } - - /** - * Optional. - * If true, The API excludes all candidates with any - * [Application.last_stage][] matching the last stage specified in the - * filter. - * - * Generated from protobuf field bool negated = 2; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * Optional. - * If true, The API excludes all candidates with any - * [Application.last_stage][] matching the last stage specified in the - * filter. - * - * Generated from protobuf field bool negated = 2; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ApplicationOutcomeNotesFilter.php b/Talent/src/V4beta1/ApplicationOutcomeNotesFilter.php deleted file mode 100644 index 8544e16c86f..00000000000 --- a/Talent/src/V4beta1/ApplicationOutcomeNotesFilter.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter - */ -class ApplicationOutcomeNotesFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. User entered or selected outcome reason. The API does an exact match on the - * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] in profiles. - * - * Generated from protobuf field string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $outcome_notes = ''; - /** - * If true, The API excludes all candidates with any - * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] matching the outcome reason specified in - * the filter. - * - * Generated from protobuf field bool negated = 2; - */ - private $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $outcome_notes - * Required. User entered or selected outcome reason. The API does an exact match on the - * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] in profiles. - * @type bool $negated - * If true, The API excludes all candidates with any - * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] matching the outcome reason specified in - * the filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Required. User entered or selected outcome reason. The API does an exact match on the - * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] in profiles. - * - * Generated from protobuf field string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getOutcomeNotes() - { - return $this->outcome_notes; - } - - /** - * Required. User entered or selected outcome reason. The API does an exact match on the - * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] in profiles. - * - * Generated from protobuf field string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setOutcomeNotes($var) - { - GPBUtil::checkString($var, True); - $this->outcome_notes = $var; - - return $this; - } - - /** - * If true, The API excludes all candidates with any - * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] matching the outcome reason specified in - * the filter. - * - * Generated from protobuf field bool negated = 2; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * If true, The API excludes all candidates with any - * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] matching the outcome reason specified in - * the filter. - * - * Generated from protobuf field bool negated = 2; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ApplicationOutcomeReasonFilter.php b/Talent/src/V4beta1/ApplicationOutcomeReasonFilter.php deleted file mode 100644 index 58e71234532..00000000000 --- a/Talent/src/V4beta1/ApplicationOutcomeReasonFilter.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter - */ -class ApplicationOutcomeReasonFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. - * User entered or selected outcome reason. The API does an exact match on the - * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] in profiles. - * - * Generated from protobuf field string outcome_reason = 1; - */ - private $outcome_reason = ''; - /** - * Optional. - * If true, The API excludes all candidates with any - * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] matching the outcome reason specified in - * the filter. - * - * Generated from protobuf field bool negated = 2; - */ - private $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $outcome_reason - * Required. - * User entered or selected outcome reason. The API does an exact match on the - * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] in profiles. - * @type bool $negated - * Optional. - * If true, The API excludes all candidates with any - * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] matching the outcome reason specified in - * the filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Required. - * User entered or selected outcome reason. The API does an exact match on the - * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] in profiles. - * - * Generated from protobuf field string outcome_reason = 1; - * @return string - */ - public function getOutcomeReason() - { - return $this->outcome_reason; - } - - /** - * Required. - * User entered or selected outcome reason. The API does an exact match on the - * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] in profiles. - * - * Generated from protobuf field string outcome_reason = 1; - * @param string $var - * @return $this - */ - public function setOutcomeReason($var) - { - GPBUtil::checkString($var, True); - $this->outcome_reason = $var; - - return $this; - } - - /** - * Optional. - * If true, The API excludes all candidates with any - * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] matching the outcome reason specified in - * the filter. - * - * Generated from protobuf field bool negated = 2; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * Optional. - * If true, The API excludes all candidates with any - * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] matching the outcome reason specified in - * the filter. - * - * Generated from protobuf field bool negated = 2; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ApplicationServiceClient.php b/Talent/src/V4beta1/ApplicationServiceClient.php deleted file mode 100644 index 857d4899a87..00000000000 --- a/Talent/src/V4beta1/ApplicationServiceClient.php +++ /dev/null @@ -1,36 +0,0 @@ -_simpleRequest('/google.cloud.talent.v4beta1.ApplicationService/CreateApplication', - $argument, - ['\Google\Cloud\Talent\V4beta1\Application', 'decode'], - $metadata, $options); - } - - /** - * Retrieves specified application. - * @param \Google\Cloud\Talent\V4beta1\GetApplicationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetApplication(\Google\Cloud\Talent\V4beta1\GetApplicationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.talent.v4beta1.ApplicationService/GetApplication', - $argument, - ['\Google\Cloud\Talent\V4beta1\Application', 'decode'], - $metadata, $options); - } - - /** - * Updates specified application. - * @param \Google\Cloud\Talent\V4beta1\UpdateApplicationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateApplication(\Google\Cloud\Talent\V4beta1\UpdateApplicationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.talent.v4beta1.ApplicationService/UpdateApplication', - $argument, - ['\Google\Cloud\Talent\V4beta1\Application', 'decode'], - $metadata, $options); - } - - /** - * Deletes specified application. - * @param \Google\Cloud\Talent\V4beta1\DeleteApplicationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteApplication(\Google\Cloud\Talent\V4beta1\DeleteApplicationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.talent.v4beta1.ApplicationService/DeleteApplication', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Lists all applications associated with the profile. - * @param \Google\Cloud\Talent\V4beta1\ListApplicationsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListApplications(\Google\Cloud\Talent\V4beta1\ListApplicationsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.talent.v4beta1.ApplicationService/ListApplications', - $argument, - ['\Google\Cloud\Talent\V4beta1\ListApplicationsResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/Talent/src/V4beta1/ApplicationStatusFilter.php b/Talent/src/V4beta1/ApplicationStatusFilter.php deleted file mode 100644 index 854cfd7d45e..00000000000 --- a/Talent/src/V4beta1/ApplicationStatusFilter.php +++ /dev/null @@ -1,130 +0,0 @@ -google.cloud.talent.v4beta1.ApplicationStatusFilter - */ -class ApplicationStatusFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. - * User entered or selected application state. The API does an exact match - * between the application state specified in this filter and the - * [Application.state][google.cloud.talent.v4beta1.Application.state] in - * profiles. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; - */ - private $application_state = 0; - /** - * Optional. - * If true, The API excludes all candidates with any - * [Application.state][google.cloud.talent.v4beta1.Application.state] matching - * the state specified in the filter. - * - * Generated from protobuf field bool negated = 2; - */ - private $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $application_state - * Required. - * User entered or selected application state. The API does an exact match - * between the application state specified in this filter and the - * [Application.state][google.cloud.talent.v4beta1.Application.state] in - * profiles. - * @type bool $negated - * Optional. - * If true, The API excludes all candidates with any - * [Application.state][google.cloud.talent.v4beta1.Application.state] matching - * the state specified in the filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Required. - * User entered or selected application state. The API does an exact match - * between the application state specified in this filter and the - * [Application.state][google.cloud.talent.v4beta1.Application.state] in - * profiles. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; - * @return int - */ - public function getApplicationState() - { - return $this->application_state; - } - - /** - * Required. - * User entered or selected application state. The API does an exact match - * between the application state specified in this filter and the - * [Application.state][google.cloud.talent.v4beta1.Application.state] in - * profiles. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; - * @param int $var - * @return $this - */ - public function setApplicationState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\Application_ApplicationState::class); - $this->application_state = $var; - - return $this; - } - - /** - * Optional. - * If true, The API excludes all candidates with any - * [Application.state][google.cloud.talent.v4beta1.Application.state] matching - * the state specified in the filter. - * - * Generated from protobuf field bool negated = 2; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * Optional. - * If true, The API excludes all candidates with any - * [Application.state][google.cloud.talent.v4beta1.Application.state] matching - * the state specified in the filter. - * - * Generated from protobuf field bool negated = 2; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/AvailabilityFilter.php b/Talent/src/V4beta1/AvailabilityFilter.php deleted file mode 100644 index 493a64975f5..00000000000 --- a/Talent/src/V4beta1/AvailabilityFilter.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.talent.v4beta1.AvailabilityFilter - */ -class AvailabilityFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Type of signal to apply filter on. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $signal_type = 0; - /** - * Required. Range of times to filter candidate signals by. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $range = null; - /** - * If multiple [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] are provided, the default - * behavior is to OR all filters, but if this field is set to true, this - * particular [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] will be AND'ed against other - * [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter]. - * - * Generated from protobuf field bool required = 3; - */ - private $required = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $signal_type - * Required. Type of signal to apply filter on. - * @type \Google\Cloud\Talent\V4beta1\TimestampRange $range - * Required. Range of times to filter candidate signals by. - * @type bool $required - * If multiple [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] are provided, the default - * behavior is to OR all filters, but if this field is set to true, this - * particular [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] will be AND'ed against other - * [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Required. Type of signal to apply filter on. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getSignalType() - { - return $this->signal_type; - } - - /** - * Required. Type of signal to apply filter on. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setSignalType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\AvailabilitySignalType::class); - $this->signal_type = $var; - - return $this; - } - - /** - * Required. Range of times to filter candidate signals by. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Talent\V4beta1\TimestampRange|null - */ - public function getRange() - { - return $this->range; - } - - public function hasRange() - { - return isset($this->range); - } - - public function clearRange() - { - unset($this->range); - } - - /** - * Required. Range of times to filter candidate signals by. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Talent\V4beta1\TimestampRange $var - * @return $this - */ - public function setRange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\TimestampRange::class); - $this->range = $var; - - return $this; - } - - /** - * If multiple [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] are provided, the default - * behavior is to OR all filters, but if this field is set to true, this - * particular [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] will be AND'ed against other - * [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter]. - * - * Generated from protobuf field bool required = 3; - * @return bool - */ - public function getRequired() - { - return $this->required; - } - - /** - * If multiple [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] are provided, the default - * behavior is to OR all filters, but if this field is set to true, this - * particular [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] will be AND'ed against other - * [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter]. - * - * Generated from protobuf field bool required = 3; - * @param bool $var - * @return $this - */ - public function setRequired($var) - { - GPBUtil::checkBool($var); - $this->required = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/AvailabilitySignal.php b/Talent/src/V4beta1/AvailabilitySignal.php deleted file mode 100644 index a9ccf7f1051..00000000000 --- a/Talent/src/V4beta1/AvailabilitySignal.php +++ /dev/null @@ -1,206 +0,0 @@ -google.cloud.talent.v4beta1.AvailabilitySignal - */ -class AvailabilitySignal extends \Google\Protobuf\Internal\Message -{ - /** - * Type of signal. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - */ - private $type = 0; - /** - * Timestamp of when the given availability activity last happened. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2; - */ - private $last_update_time = null; - /** - * Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within - * [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range]. - * Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] - * in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where - * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type]. - * - * Generated from protobuf field .google.protobuf.BoolValue filter_satisfied = 3; - */ - private $filter_satisfied = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Type of signal. - * @type \Google\Protobuf\Timestamp $last_update_time - * Timestamp of when the given availability activity last happened. - * @type \Google\Protobuf\BoolValue $filter_satisfied - * Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within - * [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range]. - * Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] - * in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where - * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * Type of signal. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of signal. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\AvailabilitySignalType::class); - $this->type = $var; - - return $this; - } - - /** - * Timestamp of when the given availability activity last happened. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUpdateTime() - { - return $this->last_update_time; - } - - public function hasLastUpdateTime() - { - return isset($this->last_update_time); - } - - public function clearLastUpdateTime() - { - unset($this->last_update_time); - } - - /** - * Timestamp of when the given availability activity last happened. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_update_time = $var; - - return $this; - } - - /** - * Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within - * [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range]. - * Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] - * in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where - * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type]. - * - * Generated from protobuf field .google.protobuf.BoolValue filter_satisfied = 3; - * @return \Google\Protobuf\BoolValue|null - */ - public function getFilterSatisfied() - { - return $this->filter_satisfied; - } - - public function hasFilterSatisfied() - { - return isset($this->filter_satisfied); - } - - public function clearFilterSatisfied() - { - unset($this->filter_satisfied); - } - - /** - * Returns the unboxed value from getFilterSatisfied() - - * Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within - * [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range]. - * Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] - * in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where - * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type]. - * - * Generated from protobuf field .google.protobuf.BoolValue filter_satisfied = 3; - * @return bool|null - */ - public function getFilterSatisfiedValue() - { - return $this->readWrapperValue("filter_satisfied"); - } - - /** - * Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within - * [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range]. - * Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] - * in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where - * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type]. - * - * Generated from protobuf field .google.protobuf.BoolValue filter_satisfied = 3; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setFilterSatisfied($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->filter_satisfied = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Indicates if the [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is within - * [AvailabilityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilter.range]. - * Returned only in a search response when there is an [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] - * in [ProfileQuery.availability_filters][google.cloud.talent.v4beta1.ProfileQuery.availability_filters] where - * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type]. - * - * Generated from protobuf field .google.protobuf.BoolValue filter_satisfied = 3; - * @param bool|null $var - * @return $this - */ - public function setFilterSatisfiedValue($var) - { - $this->writeWrapperValue("filter_satisfied", $var); - return $this;} - -} - diff --git a/Talent/src/V4beta1/AvailabilitySignalType.php b/Talent/src/V4beta1/AvailabilitySignalType.php deleted file mode 100644 index a70e24e9e77..00000000000 --- a/Talent/src/V4beta1/AvailabilitySignalType.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.talent.v4beta1.AvailabilitySignalType - */ -class AvailabilitySignalType -{ - /** - * Default value. - * - * Generated from protobuf enum AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED = 0; - */ - const AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED = 0; - /** - * Job application signal. - * In the context of [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals], this signal is related - * to the candidate's most recent application. - * [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is - * calculated from max([Application.create_time][google.cloud.talent.v4beta1.Application.create_time]) from all [Application][google.cloud.talent.v4beta1.Application] - * records where [Application.source][google.cloud.talent.v4beta1.Application.source] is any of the following: - * [APPLY_DIRECT_WEB][google.cloud.talent.v4beta1.Application.ApplicationSource.APPLY_DIRECT_WEB] - * [APPLY_DIRECT_MOBILE_WEB][google.cloud.talent.v4beta1.Application.ApplicationSource.APPLY_DIRECT_MOBILE_WEB] - * [APPLY_DIRECT_MOBILE_APP][google.cloud.talent.v4beta1.Application.ApplicationSource.APPLY_DIRECT_MOBILE_APP] - * [APPLY_DIRECT_IN_PERSON][google.cloud.talent.v4beta1.Application.ApplicationSource.APPLY_DIRECT_IN_PERSON] - * [APPLY_INDIRECT][google.cloud.talent.v4beta1.Application.ApplicationSource.APPLY_INDIRECT] - * In the context of [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter], the filter is applied on - * [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals] where - * [type][google.cloud.talent.v4beta1.AvailabilitySignal.type] is JOB_APPLICATION. - * - * Generated from protobuf enum JOB_APPLICATION = 1; - */ - const JOB_APPLICATION = 1; - /** - * Resume update signal. - * In the context of [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals], this signal is related - * to the candidate's most recent update to their resume. - * For a [SummarizedProfile.summary][google.cloud.talent.v4beta1.SummarizedProfile.summary], - * [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is - * calculated from max([Profile.resume_update_time][google.cloud.talent.v4beta1.Profile.resume_update_time]) from all - * [SummarizedProfile.profiles][google.cloud.talent.v4beta1.SummarizedProfile.profiles]. - * In the context of [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter], the filter is applied on - * [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals] where - * [type][google.cloud.talent.v4beta1.AvailabilitySignal.type] is RESUME_UPDATE. - * - * Generated from protobuf enum RESUME_UPDATE = 2; - */ - const RESUME_UPDATE = 2; - /** - * Candidate update signal. - * In the context of [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals], this signal is related - * to the candidate's most recent update to their profile. - * For a [SummarizedProfile.summary][google.cloud.talent.v4beta1.SummarizedProfile.summary], - * [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is - * calculated from max([Profile.candidate_update_time][google.cloud.talent.v4beta1.Profile.candidate_update_time]) from all - * [SummarizedProfile.profiles][google.cloud.talent.v4beta1.SummarizedProfile.profiles]. - * In the context of [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter], the filter is applied on - * [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals] where - * [type][google.cloud.talent.v4beta1.AvailabilitySignal.type] is CANDIDATE_UPDATE. - * - * Generated from protobuf enum CANDIDATE_UPDATE = 3; - */ - const CANDIDATE_UPDATE = 3; - /** - * Client submission signal. - * In the context of [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals], this signal is related - * to the candidate's most recent submission. - * [last_update_time][google.cloud.talent.v4beta1.AvailabilitySignal.last_update_time] is - * calculated from max([Application.create_time][google.cloud.talent.v4beta1.Application.create_time]) from all [Application][google.cloud.talent.v4beta1.Application] - * records where [Application.stage][google.cloud.talent.v4beta1.Application.stage] is any of the following: - * [HIRING_MANAGER_REVIEW][google.cloud.talent.v4beta1.Application.ApplicationStage.HIRING_MANAGER_REVIEW] - * [INTERVIEW][google.cloud.talent.v4beta1.Application.ApplicationStage.INTERVIEW] - * [OFFER_EXTENDED][google.cloud.talent.v4beta1.Application.ApplicationStage.OFFER_EXTENDED] - * [OFFER_ACCEPTED][google.cloud.talent.v4beta1.Application.ApplicationStage.OFFER_ACCEPTED] - * [STARTED][google.cloud.talent.v4beta1.Application.ApplicationStage.STARTED] - * In the context of [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter], the filter is applied on - * [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals] where - * [type][google.cloud.talent.v4beta1.AvailabilitySignal.type] is CLIENT_SUBMISSION. - * - * Generated from protobuf enum CLIENT_SUBMISSION = 4; - */ - const CLIENT_SUBMISSION = 4; - - private static $valueToName = [ - self::AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED => 'AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED', - self::JOB_APPLICATION => 'JOB_APPLICATION', - self::RESUME_UPDATE => 'RESUME_UPDATE', - self::CANDIDATE_UPDATE => 'CANDIDATE_UPDATE', - self::CLIENT_SUBMISSION => 'CLIENT_SUBMISSION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/Talent/src/V4beta1/CandidateAvailabilityFilter.php b/Talent/src/V4beta1/CandidateAvailabilityFilter.php deleted file mode 100644 index c0d34d46ca3..00000000000 --- a/Talent/src/V4beta1/CandidateAvailabilityFilter.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.talent.v4beta1.CandidateAvailabilityFilter - */ -class CandidateAvailabilityFilter extends \Google\Protobuf\Internal\Message -{ - /** - * It is false by default. If true, API excludes all the potential available - * profiles. - * - * Generated from protobuf field bool negated = 1; - */ - private $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $negated - * It is false by default. If true, API excludes all the potential available - * profiles. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * It is false by default. If true, API excludes all the potential available - * profiles. - * - * Generated from protobuf field bool negated = 1; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * It is false by default. If true, API excludes all the potential available - * profiles. - * - * Generated from protobuf field bool negated = 1; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Certification.php b/Talent/src/V4beta1/Certification.php deleted file mode 100644 index 1e5c6a54fb0..00000000000 --- a/Talent/src/V4beta1/Certification.php +++ /dev/null @@ -1,235 +0,0 @@ -google.cloud.talent.v4beta1.Certification - */ -class Certification extends \Google\Protobuf\Internal\Message -{ - /** - * Name of license or certification. - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - */ - private $display_name = ''; - /** - * Acquisition date or effective date of license or certification. - * - * Generated from protobuf field .google.type.Date acquire_date = 2; - */ - private $acquire_date = null; - /** - * Expiration date of license of certification. - * - * Generated from protobuf field .google.type.Date expire_date = 3; - */ - private $expire_date = null; - /** - * Authority of license, such as government. - * Number of characters allowed is 100. - * - * Generated from protobuf field string authority = 4; - */ - private $authority = ''; - /** - * Description of license or certification. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 5; - */ - private $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of license or certification. - * Number of characters allowed is 100. - * @type \Google\Type\Date $acquire_date - * Acquisition date or effective date of license or certification. - * @type \Google\Type\Date $expire_date - * Expiration date of license of certification. - * @type string $authority - * Authority of license, such as government. - * Number of characters allowed is 100. - * @type string $description - * Description of license or certification. - * Number of characters allowed is 100,000. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Name of license or certification. - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of license or certification. - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Acquisition date or effective date of license or certification. - * - * Generated from protobuf field .google.type.Date acquire_date = 2; - * @return \Google\Type\Date|null - */ - public function getAcquireDate() - { - return $this->acquire_date; - } - - public function hasAcquireDate() - { - return isset($this->acquire_date); - } - - public function clearAcquireDate() - { - unset($this->acquire_date); - } - - /** - * Acquisition date or effective date of license or certification. - * - * Generated from protobuf field .google.type.Date acquire_date = 2; - * @param \Google\Type\Date $var - * @return $this - */ - public function setAcquireDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->acquire_date = $var; - - return $this; - } - - /** - * Expiration date of license of certification. - * - * Generated from protobuf field .google.type.Date expire_date = 3; - * @return \Google\Type\Date|null - */ - public function getExpireDate() - { - return $this->expire_date; - } - - public function hasExpireDate() - { - return isset($this->expire_date); - } - - public function clearExpireDate() - { - unset($this->expire_date); - } - - /** - * Expiration date of license of certification. - * - * Generated from protobuf field .google.type.Date expire_date = 3; - * @param \Google\Type\Date $var - * @return $this - */ - public function setExpireDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->expire_date = $var; - - return $this; - } - - /** - * Authority of license, such as government. - * Number of characters allowed is 100. - * - * Generated from protobuf field string authority = 4; - * @return string - */ - public function getAuthority() - { - return $this->authority; - } - - /** - * Authority of license, such as government. - * Number of characters allowed is 100. - * - * Generated from protobuf field string authority = 4; - * @param string $var - * @return $this - */ - public function setAuthority($var) - { - GPBUtil::checkString($var, True); - $this->authority = $var; - - return $this; - } - - /** - * Description of license or certification. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 5; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of license or certification. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 5; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ClientEvent.php b/Talent/src/V4beta1/ClientEvent.php index 506e90c8bfd..cda21c96fb9 100644 --- a/Talent/src/V4beta1/ClientEvent.php +++ b/Talent/src/V4beta1/ClientEvent.php @@ -65,9 +65,6 @@ class ClientEvent extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Talent\V4beta1\JobEvent $job_event * An event issued when a job seeker interacts with the application that * implements Cloud Talent Solution. - * @type \Google\Cloud\Talent\V4beta1\ProfileEvent $profile_event - * An event issued when a profile searcher interacts with the application - * that implements Cloud Talent Solution. * @type string $event_notes * Notes about the event provided by recruiters or other users, for example, * feedback on why a profile was bookmarked. @@ -203,39 +200,6 @@ public function setJobEvent($var) return $this; } - /** - * An event issued when a profile searcher interacts with the application - * that implements Cloud Talent Solution. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - * @return \Google\Cloud\Talent\V4beta1\ProfileEvent|null - */ - public function getProfileEvent() - { - return $this->readOneof(6); - } - - public function hasProfileEvent() - { - return $this->hasOneof(6); - } - - /** - * An event issued when a profile searcher interacts with the application - * that implements Cloud Talent Solution. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - * @param \Google\Cloud\Talent\V4beta1\ProfileEvent $var - * @return $this - */ - public function setProfileEvent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\ProfileEvent::class); - $this->writeOneof(6, $var); - - return $this; - } - /** * Notes about the event provided by recruiters or other users, for example, * feedback on why a profile was bookmarked. diff --git a/Talent/src/V4beta1/CommuteFilter/CommuteMethod.php b/Talent/src/V4beta1/CommuteFilter/CommuteMethod.php deleted file mode 100644 index ec180a3ef10..00000000000 --- a/Talent/src/V4beta1/CommuteFilter/CommuteMethod.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.talent.v4beta1.CommuteFilter.CommuteMethod - */ -class CommuteMethod -{ - /** - * Commute method isn't specified. - * - * Generated from protobuf enum COMMUTE_METHOD_UNSPECIFIED = 0; - */ - const COMMUTE_METHOD_UNSPECIFIED = 0; - /** - * Commute time is calculated based on driving time. - * - * Generated from protobuf enum DRIVING = 1; - */ - const DRIVING = 1; - /** - * Commute time is calculated based on public transit including bus, metro, - * subway, etc. - * - * Generated from protobuf enum TRANSIT = 2; - */ - const TRANSIT = 2; - /** - * Commute time is calculated based on walking time. - * - * Generated from protobuf enum WALKING = 3; - */ - const WALKING = 3; - /** - * Commute time is calculated based on biking time. - * - * Generated from protobuf enum BICYCLING = 4; - */ - const BICYCLING = 4; - /** - * Commute time is calculated based on public transit that is wheelchair - * accessible. - * - * Generated from protobuf enum TRANSIT_ACCESSIBLE = 5; - */ - const TRANSIT_ACCESSIBLE = 5; -} - - diff --git a/Talent/src/V4beta1/Company/DataLearningType.php b/Talent/src/V4beta1/Company/DataLearningType.php deleted file mode 100644 index 32bc8e2c5c3..00000000000 --- a/Talent/src/V4beta1/Company/DataLearningType.php +++ /dev/null @@ -1,36 +0,0 @@ -google.cloud.talent.v4beta1.Company.DataLearningType - */ -class DataLearningType -{ - /** - * Default value. - * - * Generated from protobuf enum DATA_LEARNING_TYPE_UNSPECIFIED = 0; - */ - const DATA_LEARNING_TYPE_UNSPECIFIED = 0; - /** - * Data owned by this company is used to improve search/recommendation - * quality across companies. - * - * Generated from protobuf enum AGGREGATED = 1; - */ - const AGGREGATED = 1; - /** - * Data owned by this company is used to improve search/recommendation - * quality for this company only. - * - * Generated from protobuf enum ISOLATED = 2; - */ - const ISOLATED = 2; -} - - diff --git a/Talent/src/V4beta1/ContactInfoUsage.php b/Talent/src/V4beta1/ContactInfoUsage.php deleted file mode 100644 index 099c30c7d62..00000000000 --- a/Talent/src/V4beta1/ContactInfoUsage.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.talent.v4beta1.ContactInfoUsage - */ -class ContactInfoUsage -{ - /** - * Default value. - * - * Generated from protobuf enum CONTACT_INFO_USAGE_UNSPECIFIED = 0; - */ - const CONTACT_INFO_USAGE_UNSPECIFIED = 0; - /** - * Personal use. - * - * Generated from protobuf enum PERSONAL = 1; - */ - const PERSONAL = 1; - /** - * Work use. - * - * Generated from protobuf enum WORK = 2; - */ - const WORK = 2; - /** - * School use. - * - * Generated from protobuf enum SCHOOL = 3; - */ - const SCHOOL = 3; - - private static $valueToName = [ - self::CONTACT_INFO_USAGE_UNSPECIFIED => 'CONTACT_INFO_USAGE_UNSPECIFIED', - self::PERSONAL => 'PERSONAL', - self::WORK => 'WORK', - self::SCHOOL => 'SCHOOL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/Talent/src/V4beta1/CreateApplicationRequest.php b/Talent/src/V4beta1/CreateApplicationRequest.php deleted file mode 100644 index 4dfa15c412e..00000000000 --- a/Talent/src/V4beta1/CreateApplicationRequest.php +++ /dev/null @@ -1,123 +0,0 @@ -google.cloud.talent.v4beta1.CreateApplicationRequest - */ -class CreateApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the profile under which the application is created. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". - * For example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $parent = ''; - /** - * Required. The application to be created. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $application = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the profile under which the application is created. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". - * For example, "projects/foo/tenants/bar/profiles/baz". - * @type \Google\Cloud\Talent\V4beta1\Application $application - * Required. The application to be created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ApplicationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the profile under which the application is created. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". - * For example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the profile under which the application is created. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". - * For example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The application to be created. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Talent\V4beta1\Application|null - */ - public function getApplication() - { - return $this->application; - } - - public function hasApplication() - { - return isset($this->application); - } - - public function clearApplication() - { - unset($this->application); - } - - /** - * Required. The application to be created. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Talent\V4beta1\Application $var - * @return $this - */ - public function setApplication($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Application::class); - $this->application = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/CreateProfileRequest.php b/Talent/src/V4beta1/CreateProfileRequest.php deleted file mode 100644 index 006a84439db..00000000000 --- a/Talent/src/V4beta1/CreateProfileRequest.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.talent.v4beta1.CreateProfileRequest - */ -class CreateProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the tenant this profile belongs to. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $parent = ''; - /** - * Required. The profile to be created. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $profile = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the tenant this profile belongs to. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * @type \Google\Cloud\Talent\V4beta1\Profile $profile - * Required. The profile to be created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ProfileService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the tenant this profile belongs to. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the tenant this profile belongs to. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The profile to be created. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Talent\V4beta1\Profile|null - */ - public function getProfile() - { - return $this->profile; - } - - public function hasProfile() - { - return isset($this->profile); - } - - public function clearProfile() - { - unset($this->profile); - } - - /** - * Required. The profile to be created. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Talent\V4beta1\Profile $var - * @return $this - */ - public function setProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Profile::class); - $this->profile = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/CustomAttribute.php b/Talent/src/V4beta1/CustomAttribute.php index 1838675ed9a..b5e5ea82c90 100644 --- a/Talent/src/V4beta1/CustomAttribute.php +++ b/Talent/src/V4beta1/CustomAttribute.php @@ -38,13 +38,23 @@ class CustomAttribute extends \Google\Protobuf\Internal\Message */ private $long_values; /** - * If the `filterable` flag is true, custom field values are searchable. - * If false, values are not searchable. + * If the `filterable` flag is true, the custom field values may be used for + * custom attribute filters [JobQuery.custom_attribute_filter][google.cloud.talent.v4beta1.JobQuery.custom_attribute_filter]. + * If false, these values may not be used for custom attribute filters. * Default is false. * * Generated from protobuf field bool filterable = 3; */ private $filterable = false; + /** + * If the `keyword_searchable` flag is true, the keywords in custom fields are + * searchable by keyword match. + * If false, the values are not searchable by keyword match. + * Default is false. + * + * Generated from protobuf field bool keyword_searchable = 4; + */ + private $keyword_searchable = false; /** * Constructor. @@ -67,8 +77,14 @@ class CustomAttribute extends \Google\Protobuf\Internal\Message * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. * Currently at most 1 [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is supported. * @type bool $filterable - * If the `filterable` flag is true, custom field values are searchable. - * If false, values are not searchable. + * If the `filterable` flag is true, the custom field values may be used for + * custom attribute filters [JobQuery.custom_attribute_filter][google.cloud.talent.v4beta1.JobQuery.custom_attribute_filter]. + * If false, these values may not be used for custom attribute filters. + * Default is false. + * @type bool $keyword_searchable + * If the `keyword_searchable` flag is true, the keywords in custom fields are + * searchable by keyword match. + * If false, the values are not searchable by keyword match. * Default is false. * } */ @@ -150,8 +166,9 @@ public function setLongValues($var) } /** - * If the `filterable` flag is true, custom field values are searchable. - * If false, values are not searchable. + * If the `filterable` flag is true, the custom field values may be used for + * custom attribute filters [JobQuery.custom_attribute_filter][google.cloud.talent.v4beta1.JobQuery.custom_attribute_filter]. + * If false, these values may not be used for custom attribute filters. * Default is false. * * Generated from protobuf field bool filterable = 3; @@ -163,8 +180,9 @@ public function getFilterable() } /** - * If the `filterable` flag is true, custom field values are searchable. - * If false, values are not searchable. + * If the `filterable` flag is true, the custom field values may be used for + * custom attribute filters [JobQuery.custom_attribute_filter][google.cloud.talent.v4beta1.JobQuery.custom_attribute_filter]. + * If false, these values may not be used for custom attribute filters. * Default is false. * * Generated from protobuf field bool filterable = 3; @@ -179,5 +197,37 @@ public function setFilterable($var) return $this; } + /** + * If the `keyword_searchable` flag is true, the keywords in custom fields are + * searchable by keyword match. + * If false, the values are not searchable by keyword match. + * Default is false. + * + * Generated from protobuf field bool keyword_searchable = 4; + * @return bool + */ + public function getKeywordSearchable() + { + return $this->keyword_searchable; + } + + /** + * If the `keyword_searchable` flag is true, the keywords in custom fields are + * searchable by keyword match. + * If false, the values are not searchable by keyword match. + * Default is false. + * + * Generated from protobuf field bool keyword_searchable = 4; + * @param bool $var + * @return $this + */ + public function setKeywordSearchable($var) + { + GPBUtil::checkBool($var); + $this->keyword_searchable = $var; + + return $this; + } + } diff --git a/Talent/src/V4beta1/Degree.php b/Talent/src/V4beta1/Degree.php deleted file mode 100644 index 33cf9bf70bc..00000000000 --- a/Talent/src/V4beta1/Degree.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.talent.v4beta1.Degree - */ -class Degree extends \Google\Protobuf\Internal\Message -{ - /** - * ISCED degree type. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - */ - private $degree_type = 0; - /** - * Full Degree name. - * For example, "B.S.", "Master of Arts", and so on. - * Number of characters allowed is 100. - * - * Generated from protobuf field string degree_name = 2; - */ - private $degree_name = ''; - /** - * Fields of study for the degree. - * For example, "Computer science", "engineering". - * Number of characters allowed is 100. - * - * Generated from protobuf field repeated string fields_of_study = 3; - */ - private $fields_of_study; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $degree_type - * ISCED degree type. - * @type string $degree_name - * Full Degree name. - * For example, "B.S.", "Master of Arts", and so on. - * Number of characters allowed is 100. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $fields_of_study - * Fields of study for the degree. - * For example, "Computer science", "engineering". - * Number of characters allowed is 100. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * ISCED degree type. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - * @return int - */ - public function getDegreeType() - { - return $this->degree_type; - } - - /** - * ISCED degree type. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - * @param int $var - * @return $this - */ - public function setDegreeType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\DegreeType::class); - $this->degree_type = $var; - - return $this; - } - - /** - * Full Degree name. - * For example, "B.S.", "Master of Arts", and so on. - * Number of characters allowed is 100. - * - * Generated from protobuf field string degree_name = 2; - * @return string - */ - public function getDegreeName() - { - return $this->degree_name; - } - - /** - * Full Degree name. - * For example, "B.S.", "Master of Arts", and so on. - * Number of characters allowed is 100. - * - * Generated from protobuf field string degree_name = 2; - * @param string $var - * @return $this - */ - public function setDegreeName($var) - { - GPBUtil::checkString($var, True); - $this->degree_name = $var; - - return $this; - } - - /** - * Fields of study for the degree. - * For example, "Computer science", "engineering". - * Number of characters allowed is 100. - * - * Generated from protobuf field repeated string fields_of_study = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFieldsOfStudy() - { - return $this->fields_of_study; - } - - /** - * Fields of study for the degree. - * For example, "Computer science", "engineering". - * Number of characters allowed is 100. - * - * Generated from protobuf field repeated string fields_of_study = 3; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFieldsOfStudy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->fields_of_study = $arr; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/DeleteApplicationRequest.php b/Talent/src/V4beta1/DeleteApplicationRequest.php deleted file mode 100644 index 9d6b5cb71cc..00000000000 --- a/Talent/src/V4beta1/DeleteApplicationRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.talent.v4beta1.DeleteApplicationRequest - */ -class DeleteApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the application to be deleted. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the application to be deleted. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ApplicationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the application to be deleted. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the application to be deleted. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/DeleteProfileRequest.php b/Talent/src/V4beta1/DeleteProfileRequest.php deleted file mode 100644 index edb0fe4be67..00000000000 --- a/Talent/src/V4beta1/DeleteProfileRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.talent.v4beta1.DeleteProfileRequest - */ -class DeleteProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the profile to be deleted. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the profile to be deleted. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ProfileService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the profile to be deleted. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the profile to be deleted. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/EducationFilter.php b/Talent/src/V4beta1/EducationFilter.php deleted file mode 100644 index b4d447674ac..00000000000 --- a/Talent/src/V4beta1/EducationFilter.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.talent.v4beta1.EducationFilter - */ -class EducationFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The school name. For example "MIT", "University of California, Berkeley". - * - * Generated from protobuf field string school = 1; - */ - private $school = ''; - /** - * The field of study. This is to search against value provided in - * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study]. - * For example "Computer Science", "Mathematics". - * - * Generated from protobuf field string field_of_study = 2; - */ - private $field_of_study = ''; - /** - * Education degree in ISCED code. Each value in degree covers a specific - * level of education, without any expansion to upper nor lower levels of - * education degree. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - */ - private $degree_type = 0; - /** - * Whether to apply negation to the filter so profiles matching the filter - * is excluded. - * - * Generated from protobuf field bool negated = 6; - */ - private $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $school - * The school name. For example "MIT", "University of California, Berkeley". - * @type string $field_of_study - * The field of study. This is to search against value provided in - * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study]. - * For example "Computer Science", "Mathematics". - * @type int $degree_type - * Education degree in ISCED code. Each value in degree covers a specific - * level of education, without any expansion to upper nor lower levels of - * education degree. - * @type bool $negated - * Whether to apply negation to the filter so profiles matching the filter - * is excluded. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * The school name. For example "MIT", "University of California, Berkeley". - * - * Generated from protobuf field string school = 1; - * @return string - */ - public function getSchool() - { - return $this->school; - } - - /** - * The school name. For example "MIT", "University of California, Berkeley". - * - * Generated from protobuf field string school = 1; - * @param string $var - * @return $this - */ - public function setSchool($var) - { - GPBUtil::checkString($var, True); - $this->school = $var; - - return $this; - } - - /** - * The field of study. This is to search against value provided in - * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study]. - * For example "Computer Science", "Mathematics". - * - * Generated from protobuf field string field_of_study = 2; - * @return string - */ - public function getFieldOfStudy() - { - return $this->field_of_study; - } - - /** - * The field of study. This is to search against value provided in - * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study]. - * For example "Computer Science", "Mathematics". - * - * Generated from protobuf field string field_of_study = 2; - * @param string $var - * @return $this - */ - public function setFieldOfStudy($var) - { - GPBUtil::checkString($var, True); - $this->field_of_study = $var; - - return $this; - } - - /** - * Education degree in ISCED code. Each value in degree covers a specific - * level of education, without any expansion to upper nor lower levels of - * education degree. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - * @return int - */ - public function getDegreeType() - { - return $this->degree_type; - } - - /** - * Education degree in ISCED code. Each value in degree covers a specific - * level of education, without any expansion to upper nor lower levels of - * education degree. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - * @param int $var - * @return $this - */ - public function setDegreeType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\DegreeType::class); - $this->degree_type = $var; - - return $this; - } - - /** - * Whether to apply negation to the filter so profiles matching the filter - * is excluded. - * - * Generated from protobuf field bool negated = 6; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * Whether to apply negation to the filter so profiles matching the filter - * is excluded. - * - * Generated from protobuf field bool negated = 6; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/EducationRecord.php b/Talent/src/V4beta1/EducationRecord.php deleted file mode 100644 index 43893e919a6..00000000000 --- a/Talent/src/V4beta1/EducationRecord.php +++ /dev/null @@ -1,525 +0,0 @@ -google.cloud.talent.v4beta1.EducationRecord - */ -class EducationRecord extends \Google\Protobuf\Internal\Message -{ - /** - * The start date of the education. - * - * Generated from protobuf field .google.type.Date start_date = 1; - */ - private $start_date = null; - /** - * The end date of the education. - * - * Generated from protobuf field .google.type.Date end_date = 2; - */ - private $end_date = null; - /** - * The expected graduation date if currently pursuing a degree. - * - * Generated from protobuf field .google.type.Date expected_graduation_date = 3; - */ - private $expected_graduation_date = null; - /** - * The name of the school or institution. - * For example, "Stanford University", "UC Berkeley", and so on. - * Number of characters allowed is 250. - * - * Generated from protobuf field string school_name = 4; - */ - private $school_name = ''; - /** - * The physical address of the education institution. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Address address = 5; - */ - private $address = null; - /** - * The description of the education. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 8; - */ - private $description = ''; - /** - * If this education is current. - * - * Generated from protobuf field .google.protobuf.BoolValue is_current = 9; - */ - private $is_current = null; - /** - * Output only. The school name snippet shows how the [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is related to a - * search query in search result. It's empty if the [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] isn't - * related to the search query. - * - * Generated from protobuf field string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $school_name_snippet = ''; - /** - * Output only. The job description snippet shows how the [Degree][google.cloud.talent.v4beta1.Degree] is related to a search - * query in search result. It's empty if the [Degree][google.cloud.talent.v4beta1.Degree] isn't related to the - * search query. - * - * Generated from protobuf field string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $degree_snippet = ''; - protected $degree; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Date $start_date - * The start date of the education. - * @type \Google\Type\Date $end_date - * The end date of the education. - * @type \Google\Type\Date $expected_graduation_date - * The expected graduation date if currently pursuing a degree. - * @type string $school_name - * The name of the school or institution. - * For example, "Stanford University", "UC Berkeley", and so on. - * Number of characters allowed is 250. - * @type \Google\Cloud\Talent\V4beta1\Address $address - * The physical address of the education institution. - * @type string $degree_description - * The full description of the degree. - * For example, "Master of Science in Computer Science", "B.S in Math". - * Number of characters allowed is 100. - * @type \Google\Cloud\Talent\V4beta1\Degree $structured_degree - * The structured notation of the degree. - * @type string $description - * The description of the education. - * Number of characters allowed is 100,000. - * @type \Google\Protobuf\BoolValue $is_current - * If this education is current. - * @type string $school_name_snippet - * Output only. The school name snippet shows how the [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is related to a - * search query in search result. It's empty if the [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] isn't - * related to the search query. - * @type string $degree_snippet - * Output only. The job description snippet shows how the [Degree][google.cloud.talent.v4beta1.Degree] is related to a search - * query in search result. It's empty if the [Degree][google.cloud.talent.v4beta1.Degree] isn't related to the - * search query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * The start date of the education. - * - * Generated from protobuf field .google.type.Date start_date = 1; - * @return \Google\Type\Date|null - */ - public function getStartDate() - { - return $this->start_date; - } - - public function hasStartDate() - { - return isset($this->start_date); - } - - public function clearStartDate() - { - unset($this->start_date); - } - - /** - * The start date of the education. - * - * Generated from protobuf field .google.type.Date start_date = 1; - * @param \Google\Type\Date $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->start_date = $var; - - return $this; - } - - /** - * The end date of the education. - * - * Generated from protobuf field .google.type.Date end_date = 2; - * @return \Google\Type\Date|null - */ - public function getEndDate() - { - return $this->end_date; - } - - public function hasEndDate() - { - return isset($this->end_date); - } - - public function clearEndDate() - { - unset($this->end_date); - } - - /** - * The end date of the education. - * - * Generated from protobuf field .google.type.Date end_date = 2; - * @param \Google\Type\Date $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->end_date = $var; - - return $this; - } - - /** - * The expected graduation date if currently pursuing a degree. - * - * Generated from protobuf field .google.type.Date expected_graduation_date = 3; - * @return \Google\Type\Date|null - */ - public function getExpectedGraduationDate() - { - return $this->expected_graduation_date; - } - - public function hasExpectedGraduationDate() - { - return isset($this->expected_graduation_date); - } - - public function clearExpectedGraduationDate() - { - unset($this->expected_graduation_date); - } - - /** - * The expected graduation date if currently pursuing a degree. - * - * Generated from protobuf field .google.type.Date expected_graduation_date = 3; - * @param \Google\Type\Date $var - * @return $this - */ - public function setExpectedGraduationDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->expected_graduation_date = $var; - - return $this; - } - - /** - * The name of the school or institution. - * For example, "Stanford University", "UC Berkeley", and so on. - * Number of characters allowed is 250. - * - * Generated from protobuf field string school_name = 4; - * @return string - */ - public function getSchoolName() - { - return $this->school_name; - } - - /** - * The name of the school or institution. - * For example, "Stanford University", "UC Berkeley", and so on. - * Number of characters allowed is 250. - * - * Generated from protobuf field string school_name = 4; - * @param string $var - * @return $this - */ - public function setSchoolName($var) - { - GPBUtil::checkString($var, True); - $this->school_name = $var; - - return $this; - } - - /** - * The physical address of the education institution. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Address address = 5; - * @return \Google\Cloud\Talent\V4beta1\Address|null - */ - public function getAddress() - { - return $this->address; - } - - public function hasAddress() - { - return isset($this->address); - } - - public function clearAddress() - { - unset($this->address); - } - - /** - * The physical address of the education institution. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Address address = 5; - * @param \Google\Cloud\Talent\V4beta1\Address $var - * @return $this - */ - public function setAddress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Address::class); - $this->address = $var; - - return $this; - } - - /** - * The full description of the degree. - * For example, "Master of Science in Computer Science", "B.S in Math". - * Number of characters allowed is 100. - * - * Generated from protobuf field string degree_description = 6; - * @return string - */ - public function getDegreeDescription() - { - return $this->readOneof(6); - } - - public function hasDegreeDescription() - { - return $this->hasOneof(6); - } - - /** - * The full description of the degree. - * For example, "Master of Science in Computer Science", "B.S in Math". - * Number of characters allowed is 100. - * - * Generated from protobuf field string degree_description = 6; - * @param string $var - * @return $this - */ - public function setDegreeDescription($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The structured notation of the degree. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Degree structured_degree = 7; - * @return \Google\Cloud\Talent\V4beta1\Degree|null - */ - public function getStructuredDegree() - { - return $this->readOneof(7); - } - - public function hasStructuredDegree() - { - return $this->hasOneof(7); - } - - /** - * The structured notation of the degree. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Degree structured_degree = 7; - * @param \Google\Cloud\Talent\V4beta1\Degree $var - * @return $this - */ - public function setStructuredDegree($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Degree::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * The description of the education. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 8; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the education. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 8; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * If this education is current. - * - * Generated from protobuf field .google.protobuf.BoolValue is_current = 9; - * @return \Google\Protobuf\BoolValue|null - */ - public function getIsCurrent() - { - return $this->is_current; - } - - public function hasIsCurrent() - { - return isset($this->is_current); - } - - public function clearIsCurrent() - { - unset($this->is_current); - } - - /** - * Returns the unboxed value from getIsCurrent() - - * If this education is current. - * - * Generated from protobuf field .google.protobuf.BoolValue is_current = 9; - * @return bool|null - */ - public function getIsCurrentValue() - { - return $this->readWrapperValue("is_current"); - } - - /** - * If this education is current. - * - * Generated from protobuf field .google.protobuf.BoolValue is_current = 9; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsCurrent($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_current = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * If this education is current. - * - * Generated from protobuf field .google.protobuf.BoolValue is_current = 9; - * @param bool|null $var - * @return $this - */ - public function setIsCurrentValue($var) - { - $this->writeWrapperValue("is_current", $var); - return $this;} - - /** - * Output only. The school name snippet shows how the [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is related to a - * search query in search result. It's empty if the [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] isn't - * related to the search query. - * - * Generated from protobuf field string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSchoolNameSnippet() - { - return $this->school_name_snippet; - } - - /** - * Output only. The school name snippet shows how the [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is related to a - * search query in search result. It's empty if the [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] isn't - * related to the search query. - * - * Generated from protobuf field string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSchoolNameSnippet($var) - { - GPBUtil::checkString($var, True); - $this->school_name_snippet = $var; - - return $this; - } - - /** - * Output only. The job description snippet shows how the [Degree][google.cloud.talent.v4beta1.Degree] is related to a search - * query in search result. It's empty if the [Degree][google.cloud.talent.v4beta1.Degree] isn't related to the - * search query. - * - * Generated from protobuf field string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDegreeSnippet() - { - return $this->degree_snippet; - } - - /** - * Output only. The job description snippet shows how the [Degree][google.cloud.talent.v4beta1.Degree] is related to a search - * query in search result. It's empty if the [Degree][google.cloud.talent.v4beta1.Degree] isn't related to the - * search query. - * - * Generated from protobuf field string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDegreeSnippet($var) - { - GPBUtil::checkString($var, True); - $this->degree_snippet = $var; - - return $this; - } - - /** - * @return string - */ - public function getDegree() - { - return $this->whichOneof("degree"); - } - -} - diff --git a/Talent/src/V4beta1/Email.php b/Talent/src/V4beta1/Email.php deleted file mode 100644 index ca5450a5f54..00000000000 --- a/Talent/src/V4beta1/Email.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.talent.v4beta1.Email - */ -class Email extends \Google\Protobuf\Internal\Message -{ - /** - * The usage of the email address. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - */ - private $usage = 0; - /** - * Email address. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string email_address = 2; - */ - private $email_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $usage - * The usage of the email address. For example, SCHOOL, WORK, PERSONAL. - * @type string $email_address - * Email address. - * Number of characters allowed is 4,000. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * The usage of the email address. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * @return int - */ - public function getUsage() - { - return $this->usage; - } - - /** - * The usage of the email address. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * @param int $var - * @return $this - */ - public function setUsage($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\ContactInfoUsage::class); - $this->usage = $var; - - return $this; - } - - /** - * Email address. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string email_address = 2; - * @return string - */ - public function getEmailAddress() - { - return $this->email_address; - } - - /** - * Email address. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string email_address = 2; - * @param string $var - * @return $this - */ - public function setEmailAddress($var) - { - GPBUtil::checkString($var, True); - $this->email_address = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/EmployerFilter.php b/Talent/src/V4beta1/EmployerFilter.php deleted file mode 100644 index 47e9aee4861..00000000000 --- a/Talent/src/V4beta1/EmployerFilter.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.talent.v4beta1.EmployerFilter - */ -class EmployerFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the employer, for example "Google", "Alphabet". - * - * Generated from protobuf field string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $employer = ''; - /** - * Define set of [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search against. - * Defaults to [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS]. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - */ - private $mode = 0; - /** - * Whether to apply negation to the filter so profiles matching the filter - * is excluded. - * - * Generated from protobuf field bool negated = 3; - */ - private $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $employer - * Required. The name of the employer, for example "Google", "Alphabet". - * @type int $mode - * Define set of [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search against. - * Defaults to [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS]. - * @type bool $negated - * Whether to apply negation to the filter so profiles matching the filter - * is excluded. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the employer, for example "Google", "Alphabet". - * - * Generated from protobuf field string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEmployer() - { - return $this->employer; - } - - /** - * Required. The name of the employer, for example "Google", "Alphabet". - * - * Generated from protobuf field string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEmployer($var) - { - GPBUtil::checkString($var, True); - $this->employer = $var; - - return $this; - } - - /** - * Define set of [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search against. - * Defaults to [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS]. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * Define set of [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search against. - * Defaults to [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS]. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\EmployerFilter\EmployerFilterMode::class); - $this->mode = $var; - - return $this; - } - - /** - * Whether to apply negation to the filter so profiles matching the filter - * is excluded. - * - * Generated from protobuf field bool negated = 3; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * Whether to apply negation to the filter so profiles matching the filter - * is excluded. - * - * Generated from protobuf field bool negated = 3; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/EmployerFilter/EmployerFilterMode.php b/Talent/src/V4beta1/EmployerFilter/EmployerFilterMode.php deleted file mode 100644 index d9afebbac7b..00000000000 --- a/Talent/src/V4beta1/EmployerFilter/EmployerFilterMode.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode - */ -class EmployerFilterMode -{ - /** - * Default value. - * - * Generated from protobuf enum EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; - */ - const EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; - /** - * Apply to all employers in [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. - * - * Generated from protobuf enum ALL_EMPLOYMENT_RECORDS = 1; - */ - const ALL_EMPLOYMENT_RECORDS = 1; - /** - * Apply only to current employer in [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. - * - * Generated from protobuf enum CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; - */ - const CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; - /** - * Apply only to past (not current) employers in - * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. - * - * Generated from protobuf enum PAST_EMPLOYMENT_RECORDS_ONLY = 3; - */ - const PAST_EMPLOYMENT_RECORDS_ONLY = 3; - - private static $valueToName = [ - self::EMPLOYER_FILTER_MODE_UNSPECIFIED => 'EMPLOYER_FILTER_MODE_UNSPECIFIED', - self::ALL_EMPLOYMENT_RECORDS => 'ALL_EMPLOYMENT_RECORDS', - self::CURRENT_EMPLOYMENT_RECORDS_ONLY => 'CURRENT_EMPLOYMENT_RECORDS_ONLY', - self::PAST_EMPLOYMENT_RECORDS_ONLY => 'PAST_EMPLOYMENT_RECORDS_ONLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - - diff --git a/Talent/src/V4beta1/EmploymentRecord.php b/Talent/src/V4beta1/EmploymentRecord.php deleted file mode 100644 index 5983aed63e5..00000000000 --- a/Talent/src/V4beta1/EmploymentRecord.php +++ /dev/null @@ -1,668 +0,0 @@ -google.cloud.talent.v4beta1.EmploymentRecord - */ -class EmploymentRecord extends \Google\Protobuf\Internal\Message -{ - /** - * Start date of the employment. - * - * Generated from protobuf field .google.type.Date start_date = 1; - */ - private $start_date = null; - /** - * End date of the employment. - * - * Generated from protobuf field .google.type.Date end_date = 2; - */ - private $end_date = null; - /** - * The name of the employer company/organization. - * For example, "Google", "Alphabet", and so on. - * Number of characters allowed is 250. - * - * Generated from protobuf field string employer_name = 3; - */ - private $employer_name = ''; - /** - * The division name of the employment. - * For example, division, department, client, and so on. - * Number of characters allowed is 100. - * - * Generated from protobuf field string division_name = 4; - */ - private $division_name = ''; - /** - * The physical address of the employer. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Address address = 5; - */ - private $address = null; - /** - * The job title of the employment. - * For example, "Software Engineer", "Data Scientist", and so on. - * Number of characters allowed is 250. - * - * Generated from protobuf field string job_title = 6; - */ - private $job_title = ''; - /** - * The description of job content. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string job_description = 7; - */ - private $job_description = ''; - /** - * If the jobs is a supervisor position. - * - * Generated from protobuf field .google.protobuf.BoolValue is_supervisor = 8; - */ - private $is_supervisor = null; - /** - * If this employment is self-employed. - * - * Generated from protobuf field .google.protobuf.BoolValue is_self_employed = 9; - */ - private $is_self_employed = null; - /** - * If this employment is current. - * - * Generated from protobuf field .google.protobuf.BoolValue is_current = 10; - */ - private $is_current = null; - /** - * Output only. The job title snippet shows how the [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is related - * to a search query. It's empty if the [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't related to the - * search query. - * - * Generated from protobuf field string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $job_title_snippet = ''; - /** - * Output only. The job description snippet shows how the [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] - * is related to a search query. It's empty if the [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] isn't - * related to the search query. - * - * Generated from protobuf field string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $job_description_snippet = ''; - /** - * Output only. The employer name snippet shows how the [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] is - * related to a search query. It's empty if the [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] isn't - * related to the search query. - * - * Generated from protobuf field string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $employer_name_snippet = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Date $start_date - * Start date of the employment. - * @type \Google\Type\Date $end_date - * End date of the employment. - * @type string $employer_name - * The name of the employer company/organization. - * For example, "Google", "Alphabet", and so on. - * Number of characters allowed is 250. - * @type string $division_name - * The division name of the employment. - * For example, division, department, client, and so on. - * Number of characters allowed is 100. - * @type \Google\Cloud\Talent\V4beta1\Address $address - * The physical address of the employer. - * @type string $job_title - * The job title of the employment. - * For example, "Software Engineer", "Data Scientist", and so on. - * Number of characters allowed is 250. - * @type string $job_description - * The description of job content. - * Number of characters allowed is 100,000. - * @type \Google\Protobuf\BoolValue $is_supervisor - * If the jobs is a supervisor position. - * @type \Google\Protobuf\BoolValue $is_self_employed - * If this employment is self-employed. - * @type \Google\Protobuf\BoolValue $is_current - * If this employment is current. - * @type string $job_title_snippet - * Output only. The job title snippet shows how the [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is related - * to a search query. It's empty if the [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't related to the - * search query. - * @type string $job_description_snippet - * Output only. The job description snippet shows how the [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] - * is related to a search query. It's empty if the [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] isn't - * related to the search query. - * @type string $employer_name_snippet - * Output only. The employer name snippet shows how the [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] is - * related to a search query. It's empty if the [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] isn't - * related to the search query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * Start date of the employment. - * - * Generated from protobuf field .google.type.Date start_date = 1; - * @return \Google\Type\Date|null - */ - public function getStartDate() - { - return $this->start_date; - } - - public function hasStartDate() - { - return isset($this->start_date); - } - - public function clearStartDate() - { - unset($this->start_date); - } - - /** - * Start date of the employment. - * - * Generated from protobuf field .google.type.Date start_date = 1; - * @param \Google\Type\Date $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->start_date = $var; - - return $this; - } - - /** - * End date of the employment. - * - * Generated from protobuf field .google.type.Date end_date = 2; - * @return \Google\Type\Date|null - */ - public function getEndDate() - { - return $this->end_date; - } - - public function hasEndDate() - { - return isset($this->end_date); - } - - public function clearEndDate() - { - unset($this->end_date); - } - - /** - * End date of the employment. - * - * Generated from protobuf field .google.type.Date end_date = 2; - * @param \Google\Type\Date $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->end_date = $var; - - return $this; - } - - /** - * The name of the employer company/organization. - * For example, "Google", "Alphabet", and so on. - * Number of characters allowed is 250. - * - * Generated from protobuf field string employer_name = 3; - * @return string - */ - public function getEmployerName() - { - return $this->employer_name; - } - - /** - * The name of the employer company/organization. - * For example, "Google", "Alphabet", and so on. - * Number of characters allowed is 250. - * - * Generated from protobuf field string employer_name = 3; - * @param string $var - * @return $this - */ - public function setEmployerName($var) - { - GPBUtil::checkString($var, True); - $this->employer_name = $var; - - return $this; - } - - /** - * The division name of the employment. - * For example, division, department, client, and so on. - * Number of characters allowed is 100. - * - * Generated from protobuf field string division_name = 4; - * @return string - */ - public function getDivisionName() - { - return $this->division_name; - } - - /** - * The division name of the employment. - * For example, division, department, client, and so on. - * Number of characters allowed is 100. - * - * Generated from protobuf field string division_name = 4; - * @param string $var - * @return $this - */ - public function setDivisionName($var) - { - GPBUtil::checkString($var, True); - $this->division_name = $var; - - return $this; - } - - /** - * The physical address of the employer. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Address address = 5; - * @return \Google\Cloud\Talent\V4beta1\Address|null - */ - public function getAddress() - { - return $this->address; - } - - public function hasAddress() - { - return isset($this->address); - } - - public function clearAddress() - { - unset($this->address); - } - - /** - * The physical address of the employer. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Address address = 5; - * @param \Google\Cloud\Talent\V4beta1\Address $var - * @return $this - */ - public function setAddress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Address::class); - $this->address = $var; - - return $this; - } - - /** - * The job title of the employment. - * For example, "Software Engineer", "Data Scientist", and so on. - * Number of characters allowed is 250. - * - * Generated from protobuf field string job_title = 6; - * @return string - */ - public function getJobTitle() - { - return $this->job_title; - } - - /** - * The job title of the employment. - * For example, "Software Engineer", "Data Scientist", and so on. - * Number of characters allowed is 250. - * - * Generated from protobuf field string job_title = 6; - * @param string $var - * @return $this - */ - public function setJobTitle($var) - { - GPBUtil::checkString($var, True); - $this->job_title = $var; - - return $this; - } - - /** - * The description of job content. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string job_description = 7; - * @return string - */ - public function getJobDescription() - { - return $this->job_description; - } - - /** - * The description of job content. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string job_description = 7; - * @param string $var - * @return $this - */ - public function setJobDescription($var) - { - GPBUtil::checkString($var, True); - $this->job_description = $var; - - return $this; - } - - /** - * If the jobs is a supervisor position. - * - * Generated from protobuf field .google.protobuf.BoolValue is_supervisor = 8; - * @return \Google\Protobuf\BoolValue|null - */ - public function getIsSupervisor() - { - return $this->is_supervisor; - } - - public function hasIsSupervisor() - { - return isset($this->is_supervisor); - } - - public function clearIsSupervisor() - { - unset($this->is_supervisor); - } - - /** - * Returns the unboxed value from getIsSupervisor() - - * If the jobs is a supervisor position. - * - * Generated from protobuf field .google.protobuf.BoolValue is_supervisor = 8; - * @return bool|null - */ - public function getIsSupervisorValue() - { - return $this->readWrapperValue("is_supervisor"); - } - - /** - * If the jobs is a supervisor position. - * - * Generated from protobuf field .google.protobuf.BoolValue is_supervisor = 8; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsSupervisor($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_supervisor = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * If the jobs is a supervisor position. - * - * Generated from protobuf field .google.protobuf.BoolValue is_supervisor = 8; - * @param bool|null $var - * @return $this - */ - public function setIsSupervisorValue($var) - { - $this->writeWrapperValue("is_supervisor", $var); - return $this;} - - /** - * If this employment is self-employed. - * - * Generated from protobuf field .google.protobuf.BoolValue is_self_employed = 9; - * @return \Google\Protobuf\BoolValue|null - */ - public function getIsSelfEmployed() - { - return $this->is_self_employed; - } - - public function hasIsSelfEmployed() - { - return isset($this->is_self_employed); - } - - public function clearIsSelfEmployed() - { - unset($this->is_self_employed); - } - - /** - * Returns the unboxed value from getIsSelfEmployed() - - * If this employment is self-employed. - * - * Generated from protobuf field .google.protobuf.BoolValue is_self_employed = 9; - * @return bool|null - */ - public function getIsSelfEmployedValue() - { - return $this->readWrapperValue("is_self_employed"); - } - - /** - * If this employment is self-employed. - * - * Generated from protobuf field .google.protobuf.BoolValue is_self_employed = 9; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsSelfEmployed($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_self_employed = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * If this employment is self-employed. - * - * Generated from protobuf field .google.protobuf.BoolValue is_self_employed = 9; - * @param bool|null $var - * @return $this - */ - public function setIsSelfEmployedValue($var) - { - $this->writeWrapperValue("is_self_employed", $var); - return $this;} - - /** - * If this employment is current. - * - * Generated from protobuf field .google.protobuf.BoolValue is_current = 10; - * @return \Google\Protobuf\BoolValue|null - */ - public function getIsCurrent() - { - return $this->is_current; - } - - public function hasIsCurrent() - { - return isset($this->is_current); - } - - public function clearIsCurrent() - { - unset($this->is_current); - } - - /** - * Returns the unboxed value from getIsCurrent() - - * If this employment is current. - * - * Generated from protobuf field .google.protobuf.BoolValue is_current = 10; - * @return bool|null - */ - public function getIsCurrentValue() - { - return $this->readWrapperValue("is_current"); - } - - /** - * If this employment is current. - * - * Generated from protobuf field .google.protobuf.BoolValue is_current = 10; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsCurrent($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_current = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * If this employment is current. - * - * Generated from protobuf field .google.protobuf.BoolValue is_current = 10; - * @param bool|null $var - * @return $this - */ - public function setIsCurrentValue($var) - { - $this->writeWrapperValue("is_current", $var); - return $this;} - - /** - * Output only. The job title snippet shows how the [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is related - * to a search query. It's empty if the [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't related to the - * search query. - * - * Generated from protobuf field string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobTitleSnippet() - { - return $this->job_title_snippet; - } - - /** - * Output only. The job title snippet shows how the [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is related - * to a search query. It's empty if the [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't related to the - * search query. - * - * Generated from protobuf field string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobTitleSnippet($var) - { - GPBUtil::checkString($var, True); - $this->job_title_snippet = $var; - - return $this; - } - - /** - * Output only. The job description snippet shows how the [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] - * is related to a search query. It's empty if the [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] isn't - * related to the search query. - * - * Generated from protobuf field string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobDescriptionSnippet() - { - return $this->job_description_snippet; - } - - /** - * Output only. The job description snippet shows how the [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] - * is related to a search query. It's empty if the [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] isn't - * related to the search query. - * - * Generated from protobuf field string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobDescriptionSnippet($var) - { - GPBUtil::checkString($var, True); - $this->job_description_snippet = $var; - - return $this; - } - - /** - * Output only. The employer name snippet shows how the [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] is - * related to a search query. It's empty if the [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] isn't - * related to the search query. - * - * Generated from protobuf field string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEmployerNameSnippet() - { - return $this->employer_name_snippet; - } - - /** - * Output only. The employer name snippet shows how the [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] is - * related to a search query. It's empty if the [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] isn't - * related to the search query. - * - * Generated from protobuf field string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEmployerNameSnippet($var) - { - GPBUtil::checkString($var, True); - $this->employer_name_snippet = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Gapic/ApplicationServiceGapicClient.php b/Talent/src/V4beta1/Gapic/ApplicationServiceGapicClient.php deleted file mode 100644 index 72010bfd4c1..00000000000 --- a/Talent/src/V4beta1/Gapic/ApplicationServiceGapicClient.php +++ /dev/null @@ -1,781 +0,0 @@ -profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - * $application = new Application(); - * $response = $applicationServiceClient->createApplication($formattedParent, $application); - * } finally { - * $applicationServiceClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - * - * @experimental - */ -class ApplicationServiceGapicClient -{ - use GapicClientTrait; - - /** - * The name of the service. - */ - const SERVICE_NAME = 'google.cloud.talent.v4beta1.ApplicationService'; - - /** - * The default address of the service. - */ - const SERVICE_ADDRESS = 'jobs.googleapis.com'; - - /** - * The default port of the service. - */ - const DEFAULT_SERVICE_PORT = 443; - - /** - * The name of the code generator, to be included in the agent header. - */ - const CODEGEN_NAME = 'gapic'; - - /** - * The default scopes required by the service. - */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/jobs', - ]; - - private static $applicationNameTemplate; - - private static $companyNameTemplate; - - private static $jobNameTemplate; - - private static $profileNameTemplate; - - private static $projectCompanyNameTemplate; - - private static $projectJobNameTemplate; - - private static $projectTenantCompanyNameTemplate; - - private static $projectTenantJobNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/application_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/application_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/application_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/application_service_rest_client_config.php', - ], - ], - ]; - } - - private static function getApplicationNameTemplate() - { - if (self::$applicationNameTemplate == null) { - self::$applicationNameTemplate = new PathTemplate('projects/{project}/tenants/{tenant}/profiles/{profile}/applications/{application}'); - } - - return self::$applicationNameTemplate; - } - - private static function getCompanyNameTemplate() - { - if (self::$companyNameTemplate == null) { - self::$companyNameTemplate = new PathTemplate('projects/{project}/tenants/{tenant}/companies/{company}'); - } - - return self::$companyNameTemplate; - } - - private static function getJobNameTemplate() - { - if (self::$jobNameTemplate == null) { - self::$jobNameTemplate = new PathTemplate('projects/{project}/tenants/{tenant}/jobs/{job}'); - } - - return self::$jobNameTemplate; - } - - private static function getProfileNameTemplate() - { - if (self::$profileNameTemplate == null) { - self::$profileNameTemplate = new PathTemplate('projects/{project}/tenants/{tenant}/profiles/{profile}'); - } - - return self::$profileNameTemplate; - } - - private static function getProjectCompanyNameTemplate() - { - if (self::$projectCompanyNameTemplate == null) { - self::$projectCompanyNameTemplate = new PathTemplate('projects/{project}/companies/{company}'); - } - - return self::$projectCompanyNameTemplate; - } - - private static function getProjectJobNameTemplate() - { - if (self::$projectJobNameTemplate == null) { - self::$projectJobNameTemplate = new PathTemplate('projects/{project}/jobs/{job}'); - } - - return self::$projectJobNameTemplate; - } - - private static function getProjectTenantCompanyNameTemplate() - { - if (self::$projectTenantCompanyNameTemplate == null) { - self::$projectTenantCompanyNameTemplate = new PathTemplate('projects/{project}/tenants/{tenant}/companies/{company}'); - } - - return self::$projectTenantCompanyNameTemplate; - } - - private static function getProjectTenantJobNameTemplate() - { - if (self::$projectTenantJobNameTemplate == null) { - self::$projectTenantJobNameTemplate = new PathTemplate('projects/{project}/tenants/{tenant}/jobs/{job}'); - } - - return self::$projectTenantJobNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'application' => self::getApplicationNameTemplate(), - 'company' => self::getCompanyNameTemplate(), - 'job' => self::getJobNameTemplate(), - 'profile' => self::getProfileNameTemplate(), - 'projectCompany' => self::getProjectCompanyNameTemplate(), - 'projectJob' => self::getProjectJobNameTemplate(), - 'projectTenantCompany' => self::getProjectTenantCompanyNameTemplate(), - 'projectTenantJob' => self::getProjectTenantJobNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a application - * resource. - * - * @param string $project - * @param string $tenant - * @param string $profile - * @param string $application - * - * @return string The formatted application resource. - * - * @experimental - */ - public static function applicationName($project, $tenant, $profile, $application) - { - return self::getApplicationNameTemplate()->render([ - 'project' => $project, - 'tenant' => $tenant, - 'profile' => $profile, - 'application' => $application, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a company - * resource. - * - * @param string $project - * @param string $tenant - * @param string $company - * - * @return string The formatted company resource. - * - * @experimental - */ - public static function companyName($project, $tenant, $company) - { - return self::getCompanyNameTemplate()->render([ - 'project' => $project, - 'tenant' => $tenant, - 'company' => $company, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a job - * resource. - * - * @param string $project - * @param string $tenant - * @param string $job - * - * @return string The formatted job resource. - * - * @experimental - */ - public static function jobName($project, $tenant, $job) - { - return self::getJobNameTemplate()->render([ - 'project' => $project, - 'tenant' => $tenant, - 'job' => $job, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a profile - * resource. - * - * @param string $project - * @param string $tenant - * @param string $profile - * - * @return string The formatted profile resource. - * - * @experimental - */ - public static function profileName($project, $tenant, $profile) - { - return self::getProfileNameTemplate()->render([ - 'project' => $project, - 'tenant' => $tenant, - 'profile' => $profile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_company resource. - * - * @param string $project - * @param string $company - * - * @return string The formatted project_company resource. - * - * @experimental - */ - public static function projectCompanyName($project, $company) - { - return self::getProjectCompanyNameTemplate()->render([ - 'project' => $project, - 'company' => $company, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project_job - * resource. - * - * @param string $project - * @param string $job - * - * @return string The formatted project_job resource. - * - * @experimental - */ - public static function projectJobName($project, $job) - { - return self::getProjectJobNameTemplate()->render([ - 'project' => $project, - 'job' => $job, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_tenant_company resource. - * - * @param string $project - * @param string $tenant - * @param string $company - * - * @return string The formatted project_tenant_company resource. - * - * @experimental - */ - public static function projectTenantCompanyName($project, $tenant, $company) - { - return self::getProjectTenantCompanyNameTemplate()->render([ - 'project' => $project, - 'tenant' => $tenant, - 'company' => $company, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_tenant_job resource. - * - * @param string $project - * @param string $tenant - * @param string $job - * - * @return string The formatted project_tenant_job resource. - * - * @experimental - */ - public static function projectTenantJobName($project, $tenant, $job) - { - return self::getProjectTenantJobNameTemplate()->render([ - 'project' => $project, - 'tenant' => $tenant, - 'job' => $job, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - application: projects/{project}/tenants/{tenant}/profiles/{profile}/applications/{application} - * - company: projects/{project}/tenants/{tenant}/companies/{company} - * - job: projects/{project}/tenants/{tenant}/jobs/{job} - * - profile: projects/{project}/tenants/{tenant}/profiles/{profile} - * - projectCompany: projects/{project}/companies/{company} - * - projectJob: projects/{project}/jobs/{job} - * - projectTenantCompany: projects/{project}/tenants/{tenant}/companies/{company} - * - projectTenantJob: projects/{project}/tenants/{tenant}/jobs/{job} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $serviceAddress - * **Deprecated**. This option will be removed in a future major release. Please - * utilize the `$apiEndpoint` option instead. - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'jobs.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $serviceAddress setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** - * Creates a new application entity. - * - * Sample code: - * ``` - * $applicationServiceClient = new ApplicationServiceClient(); - * try { - * $formattedParent = $applicationServiceClient->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - * $application = new Application(); - * $response = $applicationServiceClient->createApplication($formattedParent, $application); - * } finally { - * $applicationServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Resource name of the profile under which the application is created. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". - * For example, "projects/foo/tenants/bar/profiles/baz". - * @param Application $application Required. The application to be created. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Talent\V4beta1\Application - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createApplication($parent, $application, array $optionalArgs = []) - { - $request = new CreateApplicationRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setApplication($application); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateApplication', Application::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes specified application. - * - * Sample code: - * ``` - * $applicationServiceClient = new ApplicationServiceClient(); - * try { - * $formattedName = $applicationServiceClient->applicationName('[PROJECT]', '[TENANT]', '[PROFILE]', '[APPLICATION]'); - * $applicationServiceClient->deleteApplication($formattedName); - * } finally { - * $applicationServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the application to be deleted. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteApplication($name, array $optionalArgs = []) - { - $request = new DeleteApplicationRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteApplication', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Retrieves specified application. - * - * Sample code: - * ``` - * $applicationServiceClient = new ApplicationServiceClient(); - * try { - * $formattedName = $applicationServiceClient->applicationName('[PROJECT]', '[TENANT]', '[PROFILE]', '[APPLICATION]'); - * $response = $applicationServiceClient->getApplication($formattedName); - * } finally { - * $applicationServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the application to be retrieved. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Talent\V4beta1\Application - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getApplication($name, array $optionalArgs = []) - { - $request = new GetApplicationRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetApplication', Application::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all applications associated with the profile. - * - * Sample code: - * ``` - * $applicationServiceClient = new ApplicationServiceClient(); - * try { - * $formattedParent = $applicationServiceClient->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - * // Iterate over pages of elements - * $pagedResponse = $applicationServiceClient->listApplications($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $applicationServiceClient->listApplications($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $applicationServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Resource name of the profile under which the application is created. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for - * example, "projects/foo/tenants/bar/profiles/baz". - * @param array $optionalArgs { - * Optional. - * - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listApplications($parent, array $optionalArgs = []) - { - $request = new ListApplicationsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListApplications', $optionalArgs, ListApplicationsResponse::class, $request); - } - - /** - * Updates specified application. - * - * Sample code: - * ``` - * $applicationServiceClient = new ApplicationServiceClient(); - * try { - * $application = new Application(); - * $response = $applicationServiceClient->updateApplication($application); - * } finally { - * $applicationServiceClient->close(); - * } - * ``` - * - * @param Application $application Required. The application resource to replace the current resource in the system. - * @param array $optionalArgs { - * Optional. - * - * @type FieldMask $updateMask - * Strongly recommended for the best service experience. - * - * If [update_mask][google.cloud.talent.v4beta1.UpdateApplicationRequest.update_mask] is provided, only the specified fields in - * [application][google.cloud.talent.v4beta1.UpdateApplicationRequest.application] are updated. Otherwise all the fields are updated. - * - * A field mask to specify the application fields to be updated. Only - * top level fields of [Application][google.cloud.talent.v4beta1.Application] are supported. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Talent\V4beta1\Application - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateApplication($application, array $optionalArgs = []) - { - $request = new UpdateApplicationRequest(); - $requestParamHeaders = []; - $request->setApplication($application); - $requestParamHeaders['application.name'] = $application->getName(); - if (isset($optionalArgs['updateMask'])) { - $request->setUpdateMask($optionalArgs['updateMask']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateApplication', Application::class, $optionalArgs, $request)->wait(); - } -} diff --git a/Talent/src/V4beta1/Gapic/JobServiceGapicClient.php b/Talent/src/V4beta1/Gapic/JobServiceGapicClient.php index 99e6e88dd57..0f15f8b0161 100644 --- a/Talent/src/V4beta1/Gapic/JobServiceGapicClient.php +++ b/Talent/src/V4beta1/Gapic/JobServiceGapicClient.php @@ -56,6 +56,7 @@ use Google\Cloud\Talent\V4beta1\SearchJobsRequest; use Google\Cloud\Talent\V4beta1\SearchJobsRequest\CustomRankingInfo; use Google\Cloud\Talent\V4beta1\SearchJobsRequest\DiversificationLevel; +use Google\Cloud\Talent\V4beta1\SearchJobsRequest\KeywordMatchMode; use Google\Cloud\Talent\V4beta1\SearchJobsRequest\SearchMode; use Google\Cloud\Talent\V4beta1\SearchJobsResponse; use Google\Cloud\Talent\V4beta1\UpdateJobRequest; @@ -994,11 +995,14 @@ public function getJob($name, array $optionalArgs = []) * * The fields eligible for filtering are: * - * * `companyName` (Required) + * * `companyName` * * `requisitionId` * * `status` Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. * + * At least one of `companyName` and `requisitionId` must present or an + * INVALID_ARGUMENT error is thrown. + * * Sample Query: * * * companyName = "projects/foo/tenants/bar/companies/baz" @@ -1006,6 +1010,8 @@ public function getJob($name, array $optionalArgs = []) * requisitionId = "req-1" * * companyName = "projects/foo/tenants/bar/companies/baz" AND * status = "EXPIRED" + * * requisitionId = "req-1" + * * requisitionId = "req-1" AND status = "EXPIRED" * @param array $optionalArgs { * Optional. * @@ -1116,15 +1122,7 @@ public function listJobs($parent, $filter, array $optionalArgs = []) * * Defaults to false. * @type bool $requirePreciseResultSize - * Controls if the search job request requires the return of a precise - * count of the first 300 results. Setting this to `true` ensures - * consistency in the number of results per page. Best practice is to set this - * value to true if a client allows users to jump directly to a - * non-sequential search results page. - * - * Enabling this flag may adversely impact performance. - * - * Defaults to false. + * This field is deprecated. * @type HistogramQuery[] $histogramQueries * An expression specifies a histogram request against matching jobs. * @@ -1137,6 +1135,8 @@ public function listJobs($parent, $filter, array $optionalArgs = []) * * `count(numeric_histogram_facet, list of buckets)`: Count the number of * matching entities within each bucket. * + * A maximum of 200 histogram buckets are supported. + * * Data types: * * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. @@ -1163,6 +1163,9 @@ public function listJobs($parent, $filter, array $optionalArgs = []) * "FULL_TIME", "PART_TIME". * * company_size: histogram by [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, "SMALL", * "MEDIUM", "BIG". + * * publish_time_in_day: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * in days. + * Must specify list of numeric buckets in spec. * * publish_time_in_month: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] * in months. * Must specify list of numeric buckets in spec. @@ -1216,7 +1219,7 @@ public function listJobs($parent, $filter, array $optionalArgs = []) * bucket(100000, MAX)])` * * `count(string_custom_attribute["some-string-custom-attribute"])` * * `count(numeric_custom_attribute["some-numeric-custom-attribute"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])` + * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])` * @type int $jobView * The desired job attributes returned for jobs in the search response. * Defaults to [JobView.JOB_VIEW_SMALL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_SMALL] if no value is specified. @@ -1307,6 +1310,14 @@ public function listJobs($parent, $filter, array $optionalArgs = []) * Controls over how job documents get ranked on top of existing relevance * score (determined by API algorithm). * @type bool $disableKeywordMatch + * This field is deprecated. Please use + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] going forward. + * + * To migrate, disable_keyword_match set to false maps to + * [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL], and disable_keyword_match set to + * true maps to [KeywordMatchMode.KEYWORD_MATCH_DISABLED][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_DISABLED]. If + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] is set, this field is ignored. + * * Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4beta1.Job.title], * [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When disable keyword match is turned off, a @@ -1326,6 +1337,12 @@ public function listJobs($parent, $filter, array $optionalArgs = []) * requests. * * Defaults to false. + * @type int $keywordMatchMode + * Controls what keyword match options to use. + * + * Defaults to [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] if no value + * is specified. + * For allowed values, use constants defined on {@see \Google\Cloud\Talent\V4beta1\SearchJobsRequest\KeywordMatchMode} * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry @@ -1398,6 +1415,10 @@ public function searchJobs($parent, $requestMetadata, array $optionalArgs = []) $request->setDisableKeywordMatch($optionalArgs['disableKeywordMatch']); } + if (isset($optionalArgs['keywordMatchMode'])) { + $request->setKeywordMatchMode($optionalArgs['keywordMatchMode']); + } + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); return $this->getPagedListResponse('SearchJobs', $optionalArgs, SearchJobsResponse::class, $request); @@ -1464,15 +1485,7 @@ public function searchJobs($parent, $requestMetadata, array $optionalArgs = []) * * Defaults to false. * @type bool $requirePreciseResultSize - * Controls if the search job request requires the return of a precise - * count of the first 300 results. Setting this to `true` ensures - * consistency in the number of results per page. Best practice is to set this - * value to true if a client allows users to jump directly to a - * non-sequential search results page. - * - * Enabling this flag may adversely impact performance. - * - * Defaults to false. + * This field is deprecated. * @type HistogramQuery[] $histogramQueries * An expression specifies a histogram request against matching jobs. * @@ -1485,6 +1498,8 @@ public function searchJobs($parent, $requestMetadata, array $optionalArgs = []) * * `count(numeric_histogram_facet, list of buckets)`: Count the number of * matching entities within each bucket. * + * A maximum of 200 histogram buckets are supported. + * * Data types: * * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. @@ -1511,6 +1526,9 @@ public function searchJobs($parent, $requestMetadata, array $optionalArgs = []) * "FULL_TIME", "PART_TIME". * * company_size: histogram by [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, "SMALL", * "MEDIUM", "BIG". + * * publish_time_in_day: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * in days. + * Must specify list of numeric buckets in spec. * * publish_time_in_month: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] * in months. * Must specify list of numeric buckets in spec. @@ -1564,7 +1582,7 @@ public function searchJobs($parent, $requestMetadata, array $optionalArgs = []) * bucket(100000, MAX)])` * * `count(string_custom_attribute["some-string-custom-attribute"])` * * `count(numeric_custom_attribute["some-numeric-custom-attribute"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])` + * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])` * @type int $jobView * The desired job attributes returned for jobs in the search response. * Defaults to [JobView.JOB_VIEW_SMALL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_SMALL] if no value is specified. @@ -1655,6 +1673,14 @@ public function searchJobs($parent, $requestMetadata, array $optionalArgs = []) * Controls over how job documents get ranked on top of existing relevance * score (determined by API algorithm). * @type bool $disableKeywordMatch + * This field is deprecated. Please use + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] going forward. + * + * To migrate, disable_keyword_match set to false maps to + * [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL], and disable_keyword_match set to + * true maps to [KeywordMatchMode.KEYWORD_MATCH_DISABLED][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_DISABLED]. If + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] is set, this field is ignored. + * * Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4beta1.Job.title], * [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When disable keyword match is turned off, a @@ -1674,6 +1700,12 @@ public function searchJobs($parent, $requestMetadata, array $optionalArgs = []) * requests. * * Defaults to false. + * @type int $keywordMatchMode + * Controls what keyword match options to use. + * + * Defaults to [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] if no value + * is specified. + * For allowed values, use constants defined on {@see \Google\Cloud\Talent\V4beta1\SearchJobsRequest\KeywordMatchMode} * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry @@ -1746,6 +1778,10 @@ public function searchJobsForAlert($parent, $requestMetadata, array $optionalArg $request->setDisableKeywordMatch($optionalArgs['disableKeywordMatch']); } + if (isset($optionalArgs['keywordMatchMode'])) { + $request->setKeywordMatchMode($optionalArgs['keywordMatchMode']); + } + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); return $this->getPagedListResponse('SearchJobsForAlert', $optionalArgs, SearchJobsResponse::class, $request); diff --git a/Talent/src/V4beta1/Gapic/ProfileServiceGapicClient.php b/Talent/src/V4beta1/Gapic/ProfileServiceGapicClient.php deleted file mode 100644 index df166b02d52..00000000000 --- a/Talent/src/V4beta1/Gapic/ProfileServiceGapicClient.php +++ /dev/null @@ -1,877 +0,0 @@ -tenantName('[PROJECT]', '[TENANT]'); - * $profile = new Profile(); - * $response = $profileServiceClient->createProfile($formattedParent, $profile); - * } finally { - * $profileServiceClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - * - * @experimental - */ -class ProfileServiceGapicClient -{ - use GapicClientTrait; - - /** - * The name of the service. - */ - const SERVICE_NAME = 'google.cloud.talent.v4beta1.ProfileService'; - - /** - * The default address of the service. - */ - const SERVICE_ADDRESS = 'jobs.googleapis.com'; - - /** - * The default port of the service. - */ - const DEFAULT_SERVICE_PORT = 443; - - /** - * The name of the code generator, to be included in the agent header. - */ - const CODEGEN_NAME = 'gapic'; - - /** - * The default scopes required by the service. - */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/jobs', - ]; - - private static $profileNameTemplate; - - private static $tenantNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/profile_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/profile_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/profile_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/profile_service_rest_client_config.php', - ], - ], - ]; - } - - private static function getProfileNameTemplate() - { - if (self::$profileNameTemplate == null) { - self::$profileNameTemplate = new PathTemplate('projects/{project}/tenants/{tenant}/profiles/{profile}'); - } - - return self::$profileNameTemplate; - } - - private static function getTenantNameTemplate() - { - if (self::$tenantNameTemplate == null) { - self::$tenantNameTemplate = new PathTemplate('projects/{project}/tenants/{tenant}'); - } - - return self::$tenantNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'profile' => self::getProfileNameTemplate(), - 'tenant' => self::getTenantNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a profile - * resource. - * - * @param string $project - * @param string $tenant - * @param string $profile - * - * @return string The formatted profile resource. - * - * @experimental - */ - public static function profileName($project, $tenant, $profile) - { - return self::getProfileNameTemplate()->render([ - 'project' => $project, - 'tenant' => $tenant, - 'profile' => $profile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a tenant - * resource. - * - * @param string $project - * @param string $tenant - * - * @return string The formatted tenant resource. - * - * @experimental - */ - public static function tenantName($project, $tenant) - { - return self::getTenantNameTemplate()->render([ - 'project' => $project, - 'tenant' => $tenant, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - profile: projects/{project}/tenants/{tenant}/profiles/{profile} - * - tenant: projects/{project}/tenants/{tenant} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $serviceAddress - * **Deprecated**. This option will be removed in a future major release. Please - * utilize the `$apiEndpoint` option instead. - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'jobs.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $serviceAddress setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** - * Creates and returns a new profile. - * - * Sample code: - * ``` - * $profileServiceClient = new ProfileServiceClient(); - * try { - * $formattedParent = $profileServiceClient->tenantName('[PROJECT]', '[TENANT]'); - * $profile = new Profile(); - * $response = $profileServiceClient->createProfile($formattedParent, $profile); - * } finally { - * $profileServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The name of the tenant this profile belongs to. - * - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * @param Profile $profile Required. The profile to be created. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Talent\V4beta1\Profile - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createProfile($parent, $profile, array $optionalArgs = []) - { - $request = new CreateProfileRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setProfile($profile); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateProfile', Profile::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes the specified profile. - * Prerequisite: The profile has no associated applications or assignments - * associated. - * - * Sample code: - * ``` - * $profileServiceClient = new ProfileServiceClient(); - * try { - * $formattedName = $profileServiceClient->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - * $profileServiceClient->deleteProfile($formattedName); - * } finally { - * $profileServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Resource name of the profile to be deleted. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteProfile($name, array $optionalArgs = []) - { - $request = new DeleteProfileRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteProfile', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets the specified profile. - * - * Sample code: - * ``` - * $profileServiceClient = new ProfileServiceClient(); - * try { - * $formattedName = $profileServiceClient->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - * $response = $profileServiceClient->getProfile($formattedName); - * } finally { - * $profileServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Resource name of the profile to get. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Talent\V4beta1\Profile - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getProfile($name, array $optionalArgs = []) - { - $request = new GetProfileRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetProfile', Profile::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists profiles by filter. The order is unspecified. - * - * Sample code: - * ``` - * $profileServiceClient = new ProfileServiceClient(); - * try { - * $formattedParent = $profileServiceClient->tenantName('[PROJECT]', '[TENANT]'); - * // Iterate over pages of elements - * $pagedResponse = $profileServiceClient->listProfiles($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $profileServiceClient->listProfiles($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $profileServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the tenant under which the profile is created. - * - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * @param array $optionalArgs { - * Optional. - * - * @type string $filter - * The filter string specifies the profiles to be enumerated. - * - * Supported operator: =, AND - * - * The field(s) eligible for filtering are: - * - * * `externalId` - * * `groupId` - * - * externalId and groupId cannot be specified at the same time. If both - * externalId and groupId are provided, the API will return a bad request - * error. - * - * Sample Query: - * - * * externalId = "externalId-1" - * * groupId = "groupId-1" - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type FieldMask $readMask - * A field mask to specify the profile fields to be listed in response. - * All fields are listed if it is unset. - * - * Valid values are: - * - * * name - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listProfiles($parent, array $optionalArgs = []) - { - $request = new ListProfilesRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['filter'])) { - $request->setFilter($optionalArgs['filter']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['readMask'])) { - $request->setReadMask($optionalArgs['readMask']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListProfiles', $optionalArgs, ListProfilesResponse::class, $request); - } - - /** - * Searches for profiles within a tenant. - * - * For example, search by raw queries "software engineer in Mountain View" or - * search by structured filters (location filter, education filter, etc.). - * - * See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more information. - * - * Sample code: - * ``` - * $profileServiceClient = new ProfileServiceClient(); - * try { - * $formattedParent = $profileServiceClient->tenantName('[PROJECT]', '[TENANT]'); - * $requestMetadata = new RequestMetadata(); - * // Iterate over pages of elements - * $pagedResponse = $profileServiceClient->searchProfiles($formattedParent, $requestMetadata); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $profileServiceClient->searchProfiles($formattedParent, $requestMetadata); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $profileServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the tenant to search within. - * - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * @param RequestMetadata $requestMetadata Required. The meta information collected about the profile search user. This is used - * to improve the search quality of the service. These values are provided by - * users, and must be precise and consistent. - * @param array $optionalArgs { - * Optional. - * - * @type ProfileQuery $profileQuery - * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type int $offset - * An integer that specifies the current offset (that is, starting result) in - * search results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] is unset. - * - * The maximum allowed value is 5000. Otherwise an error is thrown. - * - * For example, 0 means to search from the first profile, and 10 means to - * search from the 11th profile. This can be used for pagination, for example - * pageSize = 10 and offset = 10 means to search from the second page. - * @type bool $disableSpellCheck - * This flag controls the spell-check feature. If `false`, the - * service attempts to correct a misspelled query. - * - * For example, "enginee" is corrected to "engineer". - * @type string $orderBy - * The criteria that determines how search results are sorted. - * Defaults is "relevance desc" if no value is specified. - * - * Supported options are: - * - * * "relevance desc": By descending relevance, as determined by the API - * algorithms. - * * "update_date desc": Sort by [Profile.update_time][google.cloud.talent.v4beta1.Profile.update_time] in descending order - * (recently updated profiles first). - * * "create_date desc": Sort by [Profile.create_time][google.cloud.talent.v4beta1.Profile.create_time] in descending order - * (recently created profiles first). - * * "first_name": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] in - * ascending order. - * * "first_name desc": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] - * in descending order. - * * "last_name": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] in - * ascending order. - * * "last_name desc": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] - * in ascending order. - * @type bool $caseSensitiveSort - * When sort by field is based on alphabetical order, sort values case - * sensitively (based on ASCII) when the value is set to true. Default value - * is case in-sensitive sort (false). - * @type HistogramQuery[] $histogramQueries - * A list of expressions specifies histogram requests against matching - * profiles for [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. - * - * The expression syntax looks like a function definition with parameters. - * - * Function syntax: function_name(histogram_facet[, list of buckets]) - * - * Data types: - * - * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. - * * String: string like "any string with backslash escape for quote(\")." - * * Number: whole number and floating point number like 10, -1 and -0.01. - * * List: list of elements with comma(,) separator surrounded by square - * brackets. For example, [1, 2, 3] and ["one", "two", "three"]. - * - * Built-in constants: - * - * * MIN (minimum number similar to java Double.MIN_VALUE) - * * MAX (maximum number similar to java Double.MAX_VALUE) - * - * Built-in functions: - * - * * bucket(start, end[, label]) - * Bucket build-in function creates a bucket with range of [start, end). Note - * that the end is exclusive. - * For example, bucket(1, MAX, "positive number") or bucket(1, 10). - * - * Histogram Facets: - * - * * admin1: Admin1 is a global placeholder for referring to state, province, - * or the particular term a country uses to define the geographic structure - * below the country level. Examples include states codes such as "CA", "IL", - * "NY", and provinces, such as "BC". - * * locality: Locality is a global placeholder for referring to city, town, - * or the particular term a country uses to define the geographic structure - * below the admin1 level. Examples include city names such as - * "Mountain View" and "New York". - * * extended_locality: Extended locality is concatenated version of admin1 - * and locality with comma separator. For example, "Mountain View, CA" and - * "New York, NY". - * * postal_code: Postal code of profile which follows locale code. - * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US, - * JP, GB. - * * job_title: Normalized job titles specified in EmploymentHistory. - * * company_name: Normalized company name of profiles to match on. - * * institution: The school name. For example, "MIT", - * "University of California, Berkeley" - * * degree: Highest education degree in ISCED code. Each value in degree - * covers a specific level of education, without any expansion to upper nor - * lower levels of education degree. - * * experience_in_months: experience in months. 0 means 0 month to 1 month - * (exclusive). - * * application_date: The application date specifies application start dates. - * See [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] for more details. - * * application_outcome_notes: The application outcome reason specifies the - * reasons behind the outcome of the job application. - * See [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] for more details. - * * application_job_title: The application job title specifies the job - * applied for in the application. - * See [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter] for more details. - * * hirable_status: Hirable status specifies the profile's hirable status. - * * string_custom_attribute: String custom attributes. Values can be accessed - * via square bracket notation like string_custom_attribute["key1"]. - * * numeric_custom_attribute: Numeric custom attributes. Values can be - * accessed via square bracket notation like numeric_custom_attribute["key1"]. - * - * Example expressions: - * - * * count(admin1) - * * count(experience_in_months, [bucket(0, 12, "1 year"), - * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")]) - * * count(string_custom_attribute["assigned_recruiter"]) - * * count(numeric_custom_attribute["favorite_number"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")]) - * @type string $resultSetId - * An id that uniquely identifies the result set of a - * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call. The id should be - * retrieved from the - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] message returned from a previous - * invocation of [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles]. - * - * A result set is an ordered list of search results. - * - * If this field is not set, a new result set is computed based on the - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query]. A new [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] is returned as a handle to - * access this result set. - * - * If this field is set, the service will ignore the resource and - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query] values, and simply retrieve a page of results from the - * corresponding result set. In this case, one and only one of [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] - * or [offset][google.cloud.talent.v4beta1.SearchProfilesRequest.offset] must be set. - * - * A typical use case is to invoke [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] without this - * field, then use the resulting [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] in - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] to page through the results. - * @type bool $strictKeywordsSearch - * This flag is used to indicate whether the service will attempt to - * understand synonyms and terms related to the search query or treat the - * query "as is" when it generates a set of results. By default this flag is - * set to false, thus allowing expanded results to also be returned. For - * example a search for "software engineer" might also return candidates who - * have experience in jobs similar to software engineer positions. By setting - * this flag to true, the service will only attempt to deliver candidates has - * software engineer in his/her global fields by treating "software engineer" - * as a keyword. - * - * It is recommended to provide a feature in the UI (such as a checkbox) to - * allow recruiters to set this flag to true if they intend to search for - * longer boolean strings. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function searchProfiles($parent, $requestMetadata, array $optionalArgs = []) - { - $request = new SearchProfilesRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequestMetadata($requestMetadata); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['profileQuery'])) { - $request->setProfileQuery($optionalArgs['profileQuery']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['offset'])) { - $request->setOffset($optionalArgs['offset']); - } - - if (isset($optionalArgs['disableSpellCheck'])) { - $request->setDisableSpellCheck($optionalArgs['disableSpellCheck']); - } - - if (isset($optionalArgs['orderBy'])) { - $request->setOrderBy($optionalArgs['orderBy']); - } - - if (isset($optionalArgs['caseSensitiveSort'])) { - $request->setCaseSensitiveSort($optionalArgs['caseSensitiveSort']); - } - - if (isset($optionalArgs['histogramQueries'])) { - $request->setHistogramQueries($optionalArgs['histogramQueries']); - } - - if (isset($optionalArgs['resultSetId'])) { - $request->setResultSetId($optionalArgs['resultSetId']); - } - - if (isset($optionalArgs['strictKeywordsSearch'])) { - $request->setStrictKeywordsSearch($optionalArgs['strictKeywordsSearch']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('SearchProfiles', $optionalArgs, SearchProfilesResponse::class, $request); - } - - /** - * Updates the specified profile and returns the updated result. - * - * Sample code: - * ``` - * $profileServiceClient = new ProfileServiceClient(); - * try { - * $profile = new Profile(); - * $response = $profileServiceClient->updateProfile($profile); - * } finally { - * $profileServiceClient->close(); - * } - * ``` - * - * @param Profile $profile Required. Profile to be updated. - * @param array $optionalArgs { - * Optional. - * - * @type FieldMask $updateMask - * A field mask to specify the profile fields to update. - * - * A full update is performed if it is unset. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Talent\V4beta1\Profile - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateProfile($profile, array $optionalArgs = []) - { - $request = new UpdateProfileRequest(); - $requestParamHeaders = []; - $request->setProfile($profile); - $requestParamHeaders['profile.name'] = $profile->getName(); - if (isset($optionalArgs['updateMask'])) { - $request->setUpdateMask($optionalArgs['updateMask']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateProfile', Profile::class, $optionalArgs, $request)->wait(); - } -} diff --git a/Talent/src/V4beta1/Gapic/ResumeServiceGapicClient.php b/Talent/src/V4beta1/Gapic/ResumeServiceGapicClient.php deleted file mode 100644 index b72c16a5457..00000000000 --- a/Talent/src/V4beta1/Gapic/ResumeServiceGapicClient.php +++ /dev/null @@ -1,361 +0,0 @@ -projectName('[PROJECT]'); - * $resume = ''; - * $response = $resumeServiceClient->parseResume($formattedParent, $resume); - * } finally { - * $resumeServiceClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To assist - * with these names, this class includes a format method for each type of name, and additionally - * a parseName method to extract the individual identifiers contained within formatted names - * that are returned by the API. - * - * @experimental - */ -class ResumeServiceGapicClient -{ - use GapicClientTrait; - - /** - * The name of the service. - */ - const SERVICE_NAME = 'google.cloud.talent.v4beta1.ResumeService'; - - /** - * The default address of the service. - */ - const SERVICE_ADDRESS = 'jobs.googleapis.com'; - - /** - * The default port of the service. - */ - const DEFAULT_SERVICE_PORT = 443; - - /** - * The name of the code generator, to be included in the agent header. - */ - const CODEGEN_NAME = 'gapic'; - - /** - * The default scopes required by the service. - */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/jobs', - ]; - private static $projectNameTemplate; - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS.':'.self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__.'/../resources/resume_service_client_config.json', - 'descriptorsConfigPath' => __DIR__.'/../resources/resume_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__.'/../resources/resume_service_grpc_config.json', - 'credentialsConfig' => [ - 'scopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__.'/../resources/resume_service_rest_client_config.php', - ], - ], - ]; - } - - private static function getProjectNameTemplate() - { - if (null == self::$projectNameTemplate) { - self::$projectNameTemplate = new PathTemplate('projects/{project}'); - } - - return self::$projectNameTemplate; - } - - private static function getPathTemplateMap() - { - if (null == self::$pathTemplateMap) { - self::$pathTemplateMap = [ - 'project' => self::getProjectNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent - * a project resource. - * - * @param string $project - * - * @return string The formatted project resource. - * @experimental - */ - public static function projectName($project) - { - return self::getProjectNameTemplate()->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - project: projects/{project}. - * - * The optional $template argument can be supplied to specify a particular pattern, and must - * match one of the templates listed above. If no $template argument is provided, or if the - * $template argument does not match one of the templates listed, then parseName will check - * each of the supported templates, and return the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $serviceAddress - * **Deprecated**. This option will be removed in a future major release. Please - * utilize the `$apiEndpoint` option instead. - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'jobs.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the client. - * For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()}. - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either a - * path to a JSON file, or a PHP array containing the decoded JSON data. - * By default this settings points to the default client config file, which is provided - * in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string `rest` - * or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already instantiated - * {@see \Google\ApiCore\Transport\TransportInterface} object. Note that when this - * object is provided, any settings in $transportConfig, and any `$apiEndpoint` - * setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...] - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * } - * - * @throws ValidationException - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** - * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill out the - * following profile fields if present within the resume:. - * - * * personNames - * * addresses - * * emailAddress - * * phoneNumbers - * * personalUris - * * employmentRecords - * * educationRecords - * * skills - * - * Note that some attributes in these fields may not be populated if they're - * not present within the resume or unrecognizable by the resume parser. - * - * This API does not save the resume or profile. To create a profile from this - * resume, clients need to call the CreateProfile method again with the - * profile returned. - * - * This API supports the following list of formats: - * - * * PDF - * * TXT - * * DOC - * * RTF - * * DOCX - * - * An error is thrown if the input format is not supported. - * - * Sample code: - * ``` - * $resumeServiceClient = new ResumeServiceClient(); - * try { - * $formattedParent = $resumeServiceClient->projectName('[PROJECT]'); - * $resume = ''; - * $response = $resumeServiceClient->parseResume($formattedParent, $resume); - * } finally { - * $resumeServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. - * - * The resource name of the project. - * - * The format is "projects/{project_id}", for example, - * "projects/api-test-project". - * @param string $resume Required. - * - * The bytes of the resume file in common format. Currently the API supports - * the following formats: - * PDF, TXT, DOC, RTF and DOCX. - * @param array $optionalArgs { - * Optional. - * - * @type string $regionCode - * Optional. - * - * The region code indicating where the resume is from. Values - * are as per the ISO-3166-2 format. For example, US, FR, DE. - * - * This value is optional, but providing this value improves the resume - * parsing quality and performance. - * - * An error is thrown if the regionCode is invalid. - * @type string $languageCode - * Optional. - * - * The language code of contents in the resume. - * - * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". - * For more information, see - * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: - * class="external" target="_blank" }. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array - * of retry settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Talent\V4beta1\ParseResumeResponse - * - * @throws ApiException if the remote call fails - * @experimental - */ - public function parseResume($parent, $resume, array $optionalArgs = []) - { - $request = new ParseResumeRequest(); - $request->setParent($parent); - $request->setResume($resume); - if (isset($optionalArgs['regionCode'])) { - $request->setRegionCode($optionalArgs['regionCode']); - } - if (isset($optionalArgs['languageCode'])) { - $request->setLanguageCode($optionalArgs['languageCode']); - } - - return $this->startCall( - 'ParseResume', - ParseResumeResponse::class, - $optionalArgs, - $request - )->wait(); - } -} diff --git a/Talent/src/V4beta1/GetApplicationRequest.php b/Talent/src/V4beta1/GetApplicationRequest.php deleted file mode 100644 index c09ef4f6349..00000000000 --- a/Talent/src/V4beta1/GetApplicationRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.talent.v4beta1.GetApplicationRequest - */ -class GetApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the application to be retrieved. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the application to be retrieved. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ApplicationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the application to be retrieved. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the application to be retrieved. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/GetProfileRequest.php b/Talent/src/V4beta1/GetProfileRequest.php deleted file mode 100644 index 510338d0810..00000000000 --- a/Talent/src/V4beta1/GetProfileRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.talent.v4beta1.GetProfileRequest - */ -class GetProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the profile to get. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the profile to get. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ProfileService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the profile to get. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the profile to get. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Interview.php b/Talent/src/V4beta1/Interview.php deleted file mode 100644 index 9f42e9b6db2..00000000000 --- a/Talent/src/V4beta1/Interview.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.talent.v4beta1.Interview - */ -class Interview extends \Google\Protobuf\Internal\Message -{ - /** - * The rating on this interview. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Rating rating = 6; - */ - private $rating = null; - /** - * Required. The overall decision resulting from this interview (positive, negative, - * nuetral). - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - private $outcome = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Talent\V4beta1\Rating $rating - * The rating on this interview. - * @type int $outcome - * Required. The overall decision resulting from this interview (positive, negative, - * nuetral). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The rating on this interview. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Rating rating = 6; - * @return \Google\Cloud\Talent\V4beta1\Rating|null - */ - public function getRating() - { - return $this->rating; - } - - public function hasRating() - { - return isset($this->rating); - } - - public function clearRating() - { - unset($this->rating); - } - - /** - * The rating on this interview. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Rating rating = 6; - * @param \Google\Cloud\Talent\V4beta1\Rating $var - * @return $this - */ - public function setRating($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Rating::class); - $this->rating = $var; - - return $this; - } - - /** - * Required. The overall decision resulting from this interview (positive, negative, - * nuetral). - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOutcome() - { - return $this->outcome; - } - - /** - * Required. The overall decision resulting from this interview (positive, negative, - * nuetral). - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOutcome($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\Outcome::class); - $this->outcome = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/JobApplication.php b/Talent/src/V4beta1/JobApplication.php deleted file mode 100644 index 05b62d4449d..00000000000 --- a/Talent/src/V4beta1/JobApplication.php +++ /dev/null @@ -1,617 +0,0 @@ -google.cloud.talent.v4beta1.JobApplication - */ -class JobApplication extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. - * The information of job which the candidate applied for. - * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the corresponding [Job][google.cloud.talent.v4beta1.Job] must be created. - * Otherwise, only [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.title][google.cloud.talent.v4beta1.Job.title], - * [Job.description][google.cloud.talent.v4beta1.Job.description] and [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here are persisted - * in the application. No [Job][google.cloud.talent.v4beta1.Job] entity is created in this case. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Job job = 1; - */ - private $job = null; - /** - * Optional. - * The job application id. - * Number of characters allowed is 100. - * - * Generated from protobuf field string application_id = 2; - */ - private $application_id = ''; - /** - * Optional. - * The application date. - * - * Generated from protobuf field .google.type.Date application_date = 3; - */ - private $application_date = null; - /** - * Optional. - * The last stage the candidate reached in the application progress. - * For example, "new", "phone screen", "interview". - * - * Generated from protobuf field string last_stage = 4; - */ - private $last_stage = ''; - /** - * Optional. - * The application state. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - */ - private $state = 0; - /** - * Optional. - * The average interview score. - * - * Generated from protobuf field double average_interview_score = 6; - */ - private $average_interview_score = 0.0; - /** - * Optional. - * The scale id of the interview score. - * Number of characters allowed is 100. - * - * Generated from protobuf field string interview_score_scale_id = 7; - */ - private $interview_score_scale_id = ''; - /** - * Optional. - * The number of interviews. - * - * Generated from protobuf field int32 number_of_interviews = 8; - */ - private $number_of_interviews = 0; - /** - * Optional. - * If the candidate is referred by a employee. - * - * Generated from protobuf field .google.protobuf.BoolValue is_employee_referred = 9; - */ - private $is_employee_referred = null; - /** - * Optional. - * The last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10; - */ - private $update_time = null; - /** - * Optional. - * The outcome reason for the job application. - * Number of characters allowed is 100. - * - * Generated from protobuf field string outcome_reason = 11; - */ - private $outcome_reason = ''; - /** - * Optional. - * Outcome positiveness shows how positive the outcome is. - * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0 - * means neutral and 1 means positive. An error is thrown if other value is - * set. - * - * Generated from protobuf field double outcome_positiveness = 12; - */ - private $outcome_positiveness = 0.0; - /** - * Output only. Indicates whether this job application is a match to - * application related filters. This value is only applicable in profile - * search response. - * - * Generated from protobuf field .google.protobuf.BoolValue is_match = 13; - */ - private $is_match = null; - /** - * Output only. Job title snippet shows how the job title is related to a - * search query. It's empty if the job title isn't related to the search - * query. - * - * Generated from protobuf field string job_title_snippet = 14; - */ - private $job_title_snippet = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Talent\V4beta1\Job $job - * Optional. - * The information of job which the candidate applied for. - * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the corresponding [Job][google.cloud.talent.v4beta1.Job] must be created. - * Otherwise, only [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.title][google.cloud.talent.v4beta1.Job.title], - * [Job.description][google.cloud.talent.v4beta1.Job.description] and [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here are persisted - * in the application. No [Job][google.cloud.talent.v4beta1.Job] entity is created in this case. - * @type string $application_id - * Optional. - * The job application id. - * Number of characters allowed is 100. - * @type \Google\Type\Date $application_date - * Optional. - * The application date. - * @type string $last_stage - * Optional. - * The last stage the candidate reached in the application progress. - * For example, "new", "phone screen", "interview". - * @type int $state - * Optional. - * The application state. - * @type float $average_interview_score - * Optional. - * The average interview score. - * @type string $interview_score_scale_id - * Optional. - * The scale id of the interview score. - * Number of characters allowed is 100. - * @type int $number_of_interviews - * Optional. - * The number of interviews. - * @type \Google\Protobuf\BoolValue $is_employee_referred - * Optional. - * If the candidate is referred by a employee. - * @type \Google\Protobuf\Timestamp $update_time - * Optional. - * The last update timestamp. - * @type string $outcome_reason - * Optional. - * The outcome reason for the job application. - * Number of characters allowed is 100. - * @type float $outcome_positiveness - * Optional. - * Outcome positiveness shows how positive the outcome is. - * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0 - * means neutral and 1 means positive. An error is thrown if other value is - * set. - * @type \Google\Protobuf\BoolValue $is_match - * Output only. Indicates whether this job application is a match to - * application related filters. This value is only applicable in profile - * search response. - * @type string $job_title_snippet - * Output only. Job title snippet shows how the job title is related to a - * search query. It's empty if the job title isn't related to the search - * query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * Optional. - * The information of job which the candidate applied for. - * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the corresponding [Job][google.cloud.talent.v4beta1.Job] must be created. - * Otherwise, only [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.title][google.cloud.talent.v4beta1.Job.title], - * [Job.description][google.cloud.talent.v4beta1.Job.description] and [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here are persisted - * in the application. No [Job][google.cloud.talent.v4beta1.Job] entity is created in this case. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Job job = 1; - * @return \Google\Cloud\Talent\V4beta1\Job - */ - public function getJob() - { - return $this->job; - } - - /** - * Optional. - * The information of job which the candidate applied for. - * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the corresponding [Job][google.cloud.talent.v4beta1.Job] must be created. - * Otherwise, only [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.title][google.cloud.talent.v4beta1.Job.title], - * [Job.description][google.cloud.talent.v4beta1.Job.description] and [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here are persisted - * in the application. No [Job][google.cloud.talent.v4beta1.Job] entity is created in this case. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Job job = 1; - * @param \Google\Cloud\Talent\V4beta1\Job $var - * @return $this - */ - public function setJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Job::class); - $this->job = $var; - - return $this; - } - - /** - * Optional. - * The job application id. - * Number of characters allowed is 100. - * - * Generated from protobuf field string application_id = 2; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Optional. - * The job application id. - * Number of characters allowed is 100. - * - * Generated from protobuf field string application_id = 2; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Optional. - * The application date. - * - * Generated from protobuf field .google.type.Date application_date = 3; - * @return \Google\Type\Date - */ - public function getApplicationDate() - { - return $this->application_date; - } - - /** - * Optional. - * The application date. - * - * Generated from protobuf field .google.type.Date application_date = 3; - * @param \Google\Type\Date $var - * @return $this - */ - public function setApplicationDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->application_date = $var; - - return $this; - } - - /** - * Optional. - * The last stage the candidate reached in the application progress. - * For example, "new", "phone screen", "interview". - * - * Generated from protobuf field string last_stage = 4; - * @return string - */ - public function getLastStage() - { - return $this->last_stage; - } - - /** - * Optional. - * The last stage the candidate reached in the application progress. - * For example, "new", "phone screen", "interview". - * - * Generated from protobuf field string last_stage = 4; - * @param string $var - * @return $this - */ - public function setLastStage($var) - { - GPBUtil::checkString($var, True); - $this->last_stage = $var; - - return $this; - } - - /** - * Optional. - * The application state. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Optional. - * The application state. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\JobApplication_ApplicationStatus::class); - $this->state = $var; - - return $this; - } - - /** - * Optional. - * The average interview score. - * - * Generated from protobuf field double average_interview_score = 6; - * @return float - */ - public function getAverageInterviewScore() - { - return $this->average_interview_score; - } - - /** - * Optional. - * The average interview score. - * - * Generated from protobuf field double average_interview_score = 6; - * @param float $var - * @return $this - */ - public function setAverageInterviewScore($var) - { - GPBUtil::checkDouble($var); - $this->average_interview_score = $var; - - return $this; - } - - /** - * Optional. - * The scale id of the interview score. - * Number of characters allowed is 100. - * - * Generated from protobuf field string interview_score_scale_id = 7; - * @return string - */ - public function getInterviewScoreScaleId() - { - return $this->interview_score_scale_id; - } - - /** - * Optional. - * The scale id of the interview score. - * Number of characters allowed is 100. - * - * Generated from protobuf field string interview_score_scale_id = 7; - * @param string $var - * @return $this - */ - public function setInterviewScoreScaleId($var) - { - GPBUtil::checkString($var, True); - $this->interview_score_scale_id = $var; - - return $this; - } - - /** - * Optional. - * The number of interviews. - * - * Generated from protobuf field int32 number_of_interviews = 8; - * @return int - */ - public function getNumberOfInterviews() - { - return $this->number_of_interviews; - } - - /** - * Optional. - * The number of interviews. - * - * Generated from protobuf field int32 number_of_interviews = 8; - * @param int $var - * @return $this - */ - public function setNumberOfInterviews($var) - { - GPBUtil::checkInt32($var); - $this->number_of_interviews = $var; - - return $this; - } - - /** - * Optional. - * If the candidate is referred by a employee. - * - * Generated from protobuf field .google.protobuf.BoolValue is_employee_referred = 9; - * @return \Google\Protobuf\BoolValue - */ - public function getIsEmployeeReferred() - { - return $this->is_employee_referred; - } - - /** - * Optional. - * If the candidate is referred by a employee. - * - * Generated from protobuf field .google.protobuf.BoolValue is_employee_referred = 9; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsEmployeeReferred($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_employee_referred = $var; - - return $this; - } - - /** - * Optional. - * The last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10; - * @return \Google\Protobuf\Timestamp - */ - public function getUpdateTime() - { - return $this->update_time; - } - - /** - * Optional. - * The last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. - * The outcome reason for the job application. - * Number of characters allowed is 100. - * - * Generated from protobuf field string outcome_reason = 11; - * @return string - */ - public function getOutcomeReason() - { - return $this->outcome_reason; - } - - /** - * Optional. - * The outcome reason for the job application. - * Number of characters allowed is 100. - * - * Generated from protobuf field string outcome_reason = 11; - * @param string $var - * @return $this - */ - public function setOutcomeReason($var) - { - GPBUtil::checkString($var, True); - $this->outcome_reason = $var; - - return $this; - } - - /** - * Optional. - * Outcome positiveness shows how positive the outcome is. - * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0 - * means neutral and 1 means positive. An error is thrown if other value is - * set. - * - * Generated from protobuf field double outcome_positiveness = 12; - * @return float - */ - public function getOutcomePositiveness() - { - return $this->outcome_positiveness; - } - - /** - * Optional. - * Outcome positiveness shows how positive the outcome is. - * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0 - * means neutral and 1 means positive. An error is thrown if other value is - * set. - * - * Generated from protobuf field double outcome_positiveness = 12; - * @param float $var - * @return $this - */ - public function setOutcomePositiveness($var) - { - GPBUtil::checkDouble($var); - $this->outcome_positiveness = $var; - - return $this; - } - - /** - * Output only. Indicates whether this job application is a match to - * application related filters. This value is only applicable in profile - * search response. - * - * Generated from protobuf field .google.protobuf.BoolValue is_match = 13; - * @return \Google\Protobuf\BoolValue - */ - public function getIsMatch() - { - return $this->is_match; - } - - /** - * Output only. Indicates whether this job application is a match to - * application related filters. This value is only applicable in profile - * search response. - * - * Generated from protobuf field .google.protobuf.BoolValue is_match = 13; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsMatch($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_match = $var; - - return $this; - } - - /** - * Output only. Job title snippet shows how the job title is related to a - * search query. It's empty if the job title isn't related to the search - * query. - * - * Generated from protobuf field string job_title_snippet = 14; - * @return string - */ - public function getJobTitleSnippet() - { - return $this->job_title_snippet; - } - - /** - * Output only. Job title snippet shows how the job title is related to a - * search query. It's empty if the job title isn't related to the search - * query. - * - * Generated from protobuf field string job_title_snippet = 14; - * @param string $var - * @return $this - */ - public function setJobTitleSnippet($var) - { - GPBUtil::checkString($var, True); - $this->job_title_snippet = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/JobApplication/ApplicationStatus.php b/Talent/src/V4beta1/JobApplication/ApplicationStatus.php deleted file mode 100644 index 2cb3035c088..00000000000 --- a/Talent/src/V4beta1/JobApplication/ApplicationStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.talent.v4beta1.JobApplication.ApplicationStatus - */ -class ApplicationStatus -{ - /** - * Default value. - * - * Generated from protobuf enum APPLICATION_STATUS_UNSPECIFIED = 0; - */ - const APPLICATION_STATUS_UNSPECIFIED = 0; - /** - * The offer is extended. - * - * Generated from protobuf enum OFFER_EXTENDED = 1; - */ - const OFFER_EXTENDED = 1; - /** - * The offer is rejected by candidate. - * - * Generated from protobuf enum REJECTED_BY_CANDIDATE = 2; - */ - const REJECTED_BY_CANDIDATE = 2; - /** - * The application is active. - * - * Generated from protobuf enum ACTIVE = 3; - */ - const ACTIVE = 3; - /** - * The candidate is rejected by employer. - * - * Generated from protobuf enum REJECTED_BY_EMPLOYER = 4; - */ - const REJECTED_BY_EMPLOYER = 4; - /** - * The candidate is hired and hasn't started the new job. - * - * Generated from protobuf enum HIRED_PENDING_DATE = 5; - */ - const HIRED_PENDING_DATE = 5; - /** - * The candidate is hired started. - * - * Generated from protobuf enum HIRED_STARTED = 6; - */ - const HIRED_STARTED = 6; - /** - * The candidate is a prospect candidate. - * - * Generated from protobuf enum PROSPECTED = 7; - */ - const PROSPECTED = 7; -} - - diff --git a/Talent/src/V4beta1/JobQuery.php b/Talent/src/V4beta1/JobQuery.php index 3af7378f7d1..e29018b702b 100644 --- a/Talent/src/V4beta1/JobQuery.php +++ b/Talent/src/V4beta1/JobQuery.php @@ -86,8 +86,20 @@ class JobQuery extends \Google\Protobuf\Internal\Message */ private $commute_filter = null; /** - * This filter specifies the exact company [Company.display_name][google.cloud.talent.v4beta1.Company.display_name] - * of the jobs to search against. + * This filter specifies the company [Company.display_name][google.cloud.talent.v4beta1.Company.display_name] + * of the jobs to search against. The company name must match the value + * exactly. + * Alternatively, the value being searched for can be wrapped in different + * match operators. + * `SUBSTRING_MATCH([value])` + * The company name must contain a case insensitive substring match of the + * value. Using this function may increase latency. + * Sample Value: `SUBSTRING_MATCH(google)` + * `MULTI_WORD_TOKEN_MATCH([value])` + * The value will be treated as a multi word token and the company name must + * contain a case insensitive match of the value. Using this function may + * increase latency. + * Sample Value: `MULTI_WORD_TOKEN_MATCH(google)` * If a value isn't specified, jobs within the search results are * associated with any company. * If multiple values are specified, jobs within the search results may be @@ -121,7 +133,7 @@ class JobQuery extends \Google\Protobuf\Internal\Message * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 * comparisons or functions are allowed in the expression. The expression - * must be < 6000 bytes in length. + * must be < 10000 bytes in length. * Sample Query: * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND * driving_years > 10` @@ -230,8 +242,20 @@ class JobQuery extends \Google\Protobuf\Internal\Message * [location_filters][google.cloud.talent.v4beta1.JobQuery.location_filters] is ignored. * Currently we don't support sorting by commute time. * @type string[]|\Google\Protobuf\Internal\RepeatedField $company_display_names - * This filter specifies the exact company [Company.display_name][google.cloud.talent.v4beta1.Company.display_name] - * of the jobs to search against. + * This filter specifies the company [Company.display_name][google.cloud.talent.v4beta1.Company.display_name] + * of the jobs to search against. The company name must match the value + * exactly. + * Alternatively, the value being searched for can be wrapped in different + * match operators. + * `SUBSTRING_MATCH([value])` + * The company name must contain a case insensitive substring match of the + * value. Using this function may increase latency. + * Sample Value: `SUBSTRING_MATCH(google)` + * `MULTI_WORD_TOKEN_MATCH([value])` + * The value will be treated as a multi word token and the company name must + * contain a case insensitive match of the value. Using this function may + * increase latency. + * Sample Value: `MULTI_WORD_TOKEN_MATCH(google)` * If a value isn't specified, jobs within the search results are * associated with any company. * If multiple values are specified, jobs within the search results may be @@ -257,7 +281,7 @@ class JobQuery extends \Google\Protobuf\Internal\Message * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 * comparisons or functions are allowed in the expression. The expression - * must be < 6000 bytes in length. + * must be < 10000 bytes in length. * Sample Query: * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND * driving_years > 10` @@ -530,8 +554,20 @@ public function setCommuteFilter($var) } /** - * This filter specifies the exact company [Company.display_name][google.cloud.talent.v4beta1.Company.display_name] - * of the jobs to search against. + * This filter specifies the company [Company.display_name][google.cloud.talent.v4beta1.Company.display_name] + * of the jobs to search against. The company name must match the value + * exactly. + * Alternatively, the value being searched for can be wrapped in different + * match operators. + * `SUBSTRING_MATCH([value])` + * The company name must contain a case insensitive substring match of the + * value. Using this function may increase latency. + * Sample Value: `SUBSTRING_MATCH(google)` + * `MULTI_WORD_TOKEN_MATCH([value])` + * The value will be treated as a multi word token and the company name must + * contain a case insensitive match of the value. Using this function may + * increase latency. + * Sample Value: `MULTI_WORD_TOKEN_MATCH(google)` * If a value isn't specified, jobs within the search results are * associated with any company. * If multiple values are specified, jobs within the search results may be @@ -547,8 +583,20 @@ public function getCompanyDisplayNames() } /** - * This filter specifies the exact company [Company.display_name][google.cloud.talent.v4beta1.Company.display_name] - * of the jobs to search against. + * This filter specifies the company [Company.display_name][google.cloud.talent.v4beta1.Company.display_name] + * of the jobs to search against. The company name must match the value + * exactly. + * Alternatively, the value being searched for can be wrapped in different + * match operators. + * `SUBSTRING_MATCH([value])` + * The company name must contain a case insensitive substring match of the + * value. Using this function may increase latency. + * Sample Value: `SUBSTRING_MATCH(google)` + * `MULTI_WORD_TOKEN_MATCH([value])` + * The value will be treated as a multi word token and the company name must + * contain a case insensitive match of the value. Using this function may + * increase latency. + * Sample Value: `MULTI_WORD_TOKEN_MATCH(google)` * If a value isn't specified, jobs within the search results are * associated with any company. * If multiple values are specified, jobs within the search results may be @@ -625,7 +673,7 @@ public function setCompensationFilter($var) * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 * comparisons or functions are allowed in the expression. The expression - * must be < 6000 bytes in length. + * must be < 10000 bytes in length. * Sample Query: * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND * driving_years > 10` @@ -652,7 +700,7 @@ public function getCustomAttributeFilter() * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 * comparisons or functions are allowed in the expression. The expression - * must be < 6000 bytes in length. + * must be < 10000 bytes in length. * Sample Query: * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND * driving_years > 10` diff --git a/Talent/src/V4beta1/JobTitleFilter.php b/Talent/src/V4beta1/JobTitleFilter.php deleted file mode 100644 index 248ed2d8cac..00000000000 --- a/Talent/src/V4beta1/JobTitleFilter.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.talent.v4beta1.JobTitleFilter - */ -class JobTitleFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The job title. For example, "Software engineer", or "Product manager". - * - * Generated from protobuf field string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $job_title = ''; - /** - * Whether to apply negation to the filter so profiles matching the filter - * are excluded. - * - * Generated from protobuf field bool negated = 2; - */ - private $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $job_title - * Required. The job title. For example, "Software engineer", or "Product manager". - * @type bool $negated - * Whether to apply negation to the filter so profiles matching the filter - * are excluded. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Required. The job title. For example, "Software engineer", or "Product manager". - * - * Generated from protobuf field string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getJobTitle() - { - return $this->job_title; - } - - /** - * Required. The job title. For example, "Software engineer", or "Product manager". - * - * Generated from protobuf field string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setJobTitle($var) - { - GPBUtil::checkString($var, True); - $this->job_title = $var; - - return $this; - } - - /** - * Whether to apply negation to the filter so profiles matching the filter - * are excluded. - * - * Generated from protobuf field bool negated = 2; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * Whether to apply negation to the filter so profiles matching the filter - * are excluded. - * - * Generated from protobuf field bool negated = 2; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ListApplicationsRequest.php b/Talent/src/V4beta1/ListApplicationsRequest.php deleted file mode 100644 index e7eb98ead38..00000000000 --- a/Talent/src/V4beta1/ListApplicationsRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.talent.v4beta1.ListApplicationsRequest - */ -class ListApplicationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the profile under which the application is created. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for - * example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $parent = ''; - /** - * The starting indicator from which to return results. - * - * Generated from protobuf field string page_token = 2; - */ - private $page_token = ''; - /** - * The maximum number of applications to be returned, at most 100. - * Default is 100 if a non-positive number is provided. - * - * Generated from protobuf field int32 page_size = 3; - */ - private $page_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the profile under which the application is created. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for - * example, "projects/foo/tenants/bar/profiles/baz". - * @type string $page_token - * The starting indicator from which to return results. - * @type int $page_size - * The maximum number of applications to be returned, at most 100. - * Default is 100 if a non-positive number is provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ApplicationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the profile under which the application is created. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for - * example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the profile under which the application is created. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for - * example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The starting indicator from which to return results. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The starting indicator from which to return results. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * The maximum number of applications to be returned, at most 100. - * Default is 100 if a non-positive number is provided. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of applications to be returned, at most 100. - * Default is 100 if a non-positive number is provided. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ListApplicationsResponse.php b/Talent/src/V4beta1/ListApplicationsResponse.php deleted file mode 100644 index 14e13c75dc8..00000000000 --- a/Talent/src/V4beta1/ListApplicationsResponse.php +++ /dev/null @@ -1,149 +0,0 @@ -google.cloud.talent.v4beta1.ListApplicationsResponse - */ -class ListApplicationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Applications for the current client. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - private $applications; - /** - * A token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - private $next_page_token = ''; - /** - * Additional information for the API invocation, such as the request - * tracking id. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - private $metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Talent\V4beta1\Application[]|\Google\Protobuf\Internal\RepeatedField $applications - * Applications for the current client. - * @type string $next_page_token - * A token to retrieve the next page of results. - * @type \Google\Cloud\Talent\V4beta1\ResponseMetadata $metadata - * Additional information for the API invocation, such as the request - * tracking id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ApplicationService::initOnce(); - parent::__construct($data); - } - - /** - * Applications for the current client. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Application applications = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApplications() - { - return $this->applications; - } - - /** - * Applications for the current client. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Application applications = 1; - * @param \Google\Cloud\Talent\V4beta1\Application[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApplications($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Application::class); - $this->applications = $arr; - - return $this; - } - - /** - * A token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Additional information for the API invocation, such as the request - * tracking id. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * @return \Google\Cloud\Talent\V4beta1\ResponseMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Additional information for the API invocation, such as the request - * tracking id. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * @param \Google\Cloud\Talent\V4beta1\ResponseMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\ResponseMetadata::class); - $this->metadata = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ListJobsRequest.php b/Talent/src/V4beta1/ListJobsRequest.php index 033d1c5eec2..c7da828f844 100644 --- a/Talent/src/V4beta1/ListJobsRequest.php +++ b/Talent/src/V4beta1/ListJobsRequest.php @@ -28,16 +28,20 @@ class ListJobsRequest extends \Google\Protobuf\Internal\Message * Required. The filter string specifies the jobs to be enumerated. * Supported operator: =, AND * The fields eligible for filtering are: - * * `companyName` (Required) + * * `companyName` * * `requisitionId` * * `status` Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. + * At least one of `companyName` and `requisitionId` must present or an + * INVALID_ARGUMENT error is thrown. * Sample Query: * * companyName = "projects/foo/tenants/bar/companies/baz" * * companyName = "projects/foo/tenants/bar/companies/baz" AND * requisitionId = "req-1" * * companyName = "projects/foo/tenants/bar/companies/baz" AND * status = "EXPIRED" + * * requisitionId = "req-1" + * * requisitionId = "req-1" AND status = "EXPIRED" * * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; */ @@ -81,16 +85,20 @@ class ListJobsRequest extends \Google\Protobuf\Internal\Message * Required. The filter string specifies the jobs to be enumerated. * Supported operator: =, AND * The fields eligible for filtering are: - * * `companyName` (Required) + * * `companyName` * * `requisitionId` * * `status` Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. + * At least one of `companyName` and `requisitionId` must present or an + * INVALID_ARGUMENT error is thrown. * Sample Query: * * companyName = "projects/foo/tenants/bar/companies/baz" * * companyName = "projects/foo/tenants/bar/companies/baz" AND * requisitionId = "req-1" * * companyName = "projects/foo/tenants/bar/companies/baz" AND * status = "EXPIRED" + * * requisitionId = "req-1" + * * requisitionId = "req-1" AND status = "EXPIRED" * @type string $page_token * The starting point of a query result. * @type int $page_size @@ -145,16 +153,20 @@ public function setParent($var) * Required. The filter string specifies the jobs to be enumerated. * Supported operator: =, AND * The fields eligible for filtering are: - * * `companyName` (Required) + * * `companyName` * * `requisitionId` * * `status` Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. + * At least one of `companyName` and `requisitionId` must present or an + * INVALID_ARGUMENT error is thrown. * Sample Query: * * companyName = "projects/foo/tenants/bar/companies/baz" * * companyName = "projects/foo/tenants/bar/companies/baz" AND * requisitionId = "req-1" * * companyName = "projects/foo/tenants/bar/companies/baz" AND * status = "EXPIRED" + * * requisitionId = "req-1" + * * requisitionId = "req-1" AND status = "EXPIRED" * * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -168,16 +180,20 @@ public function getFilter() * Required. The filter string specifies the jobs to be enumerated. * Supported operator: =, AND * The fields eligible for filtering are: - * * `companyName` (Required) + * * `companyName` * * `requisitionId` * * `status` Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. + * At least one of `companyName` and `requisitionId` must present or an + * INVALID_ARGUMENT error is thrown. * Sample Query: * * companyName = "projects/foo/tenants/bar/companies/baz" * * companyName = "projects/foo/tenants/bar/companies/baz" AND * requisitionId = "req-1" * * companyName = "projects/foo/tenants/bar/companies/baz" AND * status = "EXPIRED" + * * requisitionId = "req-1" + * * requisitionId = "req-1" AND status = "EXPIRED" * * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/Talent/src/V4beta1/ListProfilesRequest.php b/Talent/src/V4beta1/ListProfilesRequest.php deleted file mode 100644 index 1759c34d934..00000000000 --- a/Talent/src/V4beta1/ListProfilesRequest.php +++ /dev/null @@ -1,285 +0,0 @@ -google.cloud.talent.v4beta1.ListProfilesRequest - */ -class ListProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the tenant under which the profile is created. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $parent = ''; - /** - * The filter string specifies the profiles to be enumerated. - * Supported operator: =, AND - * The field(s) eligible for filtering are: - * * `externalId` - * * `groupId` - * externalId and groupId cannot be specified at the same time. If both - * externalId and groupId are provided, the API will return a bad request - * error. - * Sample Query: - * * externalId = "externalId-1" - * * groupId = "groupId-1" - * - * Generated from protobuf field string filter = 5; - */ - private $filter = ''; - /** - * The token that specifies the current offset (that is, starting result). - * Please set the value to [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token] to - * continue the list. - * - * Generated from protobuf field string page_token = 2; - */ - private $page_token = ''; - /** - * The maximum number of profiles to be returned, at most 100. - * Default is 100 unless a positive number smaller than 100 is specified. - * - * Generated from protobuf field int32 page_size = 3; - */ - private $page_size = 0; - /** - * A field mask to specify the profile fields to be listed in response. - * All fields are listed if it is unset. - * Valid values are: - * * name - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 4; - */ - private $read_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the tenant under which the profile is created. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * @type string $filter - * The filter string specifies the profiles to be enumerated. - * Supported operator: =, AND - * The field(s) eligible for filtering are: - * * `externalId` - * * `groupId` - * externalId and groupId cannot be specified at the same time. If both - * externalId and groupId are provided, the API will return a bad request - * error. - * Sample Query: - * * externalId = "externalId-1" - * * groupId = "groupId-1" - * @type string $page_token - * The token that specifies the current offset (that is, starting result). - * Please set the value to [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token] to - * continue the list. - * @type int $page_size - * The maximum number of profiles to be returned, at most 100. - * Default is 100 unless a positive number smaller than 100 is specified. - * @type \Google\Protobuf\FieldMask $read_mask - * A field mask to specify the profile fields to be listed in response. - * All fields are listed if it is unset. - * Valid values are: - * * name - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ProfileService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the tenant under which the profile is created. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the tenant under which the profile is created. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The filter string specifies the profiles to be enumerated. - * Supported operator: =, AND - * The field(s) eligible for filtering are: - * * `externalId` - * * `groupId` - * externalId and groupId cannot be specified at the same time. If both - * externalId and groupId are provided, the API will return a bad request - * error. - * Sample Query: - * * externalId = "externalId-1" - * * groupId = "groupId-1" - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The filter string specifies the profiles to be enumerated. - * Supported operator: =, AND - * The field(s) eligible for filtering are: - * * `externalId` - * * `groupId` - * externalId and groupId cannot be specified at the same time. If both - * externalId and groupId are provided, the API will return a bad request - * error. - * Sample Query: - * * externalId = "externalId-1" - * * groupId = "groupId-1" - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The token that specifies the current offset (that is, starting result). - * Please set the value to [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token] to - * continue the list. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The token that specifies the current offset (that is, starting result). - * Please set the value to [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token] to - * continue the list. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * The maximum number of profiles to be returned, at most 100. - * Default is 100 unless a positive number smaller than 100 is specified. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of profiles to be returned, at most 100. - * Default is 100 unless a positive number smaller than 100 is specified. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A field mask to specify the profile fields to be listed in response. - * All fields are listed if it is unset. - * Valid values are: - * * name - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 4; - * @return \Google\Protobuf\FieldMask|null - */ - public function getReadMask() - { - return $this->read_mask; - } - - public function hasReadMask() - { - return isset($this->read_mask); - } - - public function clearReadMask() - { - unset($this->read_mask); - } - - /** - * A field mask to specify the profile fields to be listed in response. - * All fields are listed if it is unset. - * Valid values are: - * * name - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 4; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setReadMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->read_mask = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ListProfilesResponse.php b/Talent/src/V4beta1/ListProfilesResponse.php deleted file mode 100644 index 679479d8481..00000000000 --- a/Talent/src/V4beta1/ListProfilesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.talent.v4beta1.ListProfilesResponse - */ -class ListProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Profiles for the specific tenant. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - private $profiles; - /** - * A token to retrieve the next page of results. This is empty if there are no - * more results. - * - * Generated from protobuf field string next_page_token = 2; - */ - private $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Talent\V4beta1\Profile[]|\Google\Protobuf\Internal\RepeatedField $profiles - * Profiles for the specific tenant. - * @type string $next_page_token - * A token to retrieve the next page of results. This is empty if there are no - * more results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ProfileService::initOnce(); - parent::__construct($data); - } - - /** - * Profiles for the specific tenant. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProfiles() - { - return $this->profiles; - } - - /** - * Profiles for the specific tenant. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - * @param \Google\Cloud\Talent\V4beta1\Profile[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Profile::class); - $this->profiles = $arr; - - return $this; - } - - /** - * A token to retrieve the next page of results. This is empty if there are no - * more results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to retrieve the next page of results. This is empty if there are no - * more results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/LocationFilter.php b/Talent/src/V4beta1/LocationFilter.php index 2533304b109..e6d239a8f69 100644 --- a/Talent/src/V4beta1/LocationFilter.php +++ b/Talent/src/V4beta1/LocationFilter.php @@ -22,16 +22,18 @@ class LocationFilter extends \Google\Protobuf\Internal\Message */ private $address = ''; /** - * CLDR region code of the country/region of the address. This is used - * to address ambiguity of the user-input location, for example, "Liverpool" - * against "Liverpool, NY, US" or "Liverpool, UK". - * Set this field to bias location resolution toward a specific country - * or territory. If this field is not set, application behavior is biased - * toward the United States by default. + * CLDR region code of the country/region. This field may be used in two ways: + * 1) If telecommute preference is not set, this field is used address + * ambiguity of the user-input address. For example, "Liverpool" may refer to + * "Liverpool, NY, US" or "Liverpool, UK". This region code biases the + * address resolution toward a specific country or territory. If this field is + * not set, address resolution is biased toward the United States by default. + * 2) If telecommute preference is set to TELECOMMUTE_ALLOWED, the + * telecommute location filter will be limited to the region specified in this + * field. If this field is not set, the telecommute job locations will not be * See - * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. - * Note that this filter is not applicable for Profile Search related queries. * * Generated from protobuf field string region_code = 2; */ @@ -54,13 +56,15 @@ class LocationFilter extends \Google\Protobuf\Internal\Message /** * Allows the client to return jobs without a * set location, specifically, telecommuting jobs (telecommuting is considered - * by the service as a special location. + * by the service as a special location). * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region] indicates if a job permits telecommuting. * If this field is set to [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], * telecommuting jobs are searched, and [address][google.cloud.talent.v4beta1.LocationFilter.address] and [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are * ignored. If not set or set to - * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], telecommute job are not - * searched. + * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], the telecommute status of + * the jobs is ignored. Jobs that have [PostingRegion.TELECOMMUTE][google.cloud.talent.v4beta1.PostingRegion.TELECOMMUTE] and have + * additional [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] may still be matched based on other location + * filters using [address][google.cloud.talent.v4beta1.LocationFilter.address] or [latlng][]. * This filter can be used by itself to search exclusively for telecommuting * jobs, or it can be combined with another location * filter to search for a combination of job locations, @@ -75,7 +79,6 @@ class LocationFilter extends \Google\Protobuf\Internal\Message /** * Whether to apply negation to the filter so profiles matching the filter * are excluded. - * Currently only supported in profile search. * * Generated from protobuf field bool negated = 6; */ @@ -90,16 +93,18 @@ class LocationFilter extends \Google\Protobuf\Internal\Message * @type string $address * The address name, such as "Mountain View" or "Bay Area". * @type string $region_code - * CLDR region code of the country/region of the address. This is used - * to address ambiguity of the user-input location, for example, "Liverpool" - * against "Liverpool, NY, US" or "Liverpool, UK". - * Set this field to bias location resolution toward a specific country - * or territory. If this field is not set, application behavior is biased - * toward the United States by default. + * CLDR region code of the country/region. This field may be used in two ways: + * 1) If telecommute preference is not set, this field is used address + * ambiguity of the user-input address. For example, "Liverpool" may refer to + * "Liverpool, NY, US" or "Liverpool, UK". This region code biases the + * address resolution toward a specific country or territory. If this field is + * not set, address resolution is biased toward the United States by default. + * 2) If telecommute preference is set to TELECOMMUTE_ALLOWED, the + * telecommute location filter will be limited to the region specified in this + * field. If this field is not set, the telecommute job locations will not be * See - * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. - * Note that this filter is not applicable for Profile Search related queries. * @type \Google\Type\LatLng $lat_lng * The latitude and longitude of the geographic center to search from. This * field is ignored if `address` is provided. @@ -110,13 +115,15 @@ class LocationFilter extends \Google\Protobuf\Internal\Message * @type int $telecommute_preference * Allows the client to return jobs without a * set location, specifically, telecommuting jobs (telecommuting is considered - * by the service as a special location. + * by the service as a special location). * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region] indicates if a job permits telecommuting. * If this field is set to [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], * telecommuting jobs are searched, and [address][google.cloud.talent.v4beta1.LocationFilter.address] and [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are * ignored. If not set or set to - * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], telecommute job are not - * searched. + * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], the telecommute status of + * the jobs is ignored. Jobs that have [PostingRegion.TELECOMMUTE][google.cloud.talent.v4beta1.PostingRegion.TELECOMMUTE] and have + * additional [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] may still be matched based on other location + * filters using [address][google.cloud.talent.v4beta1.LocationFilter.address] or [latlng][]. * This filter can be used by itself to search exclusively for telecommuting * jobs, or it can be combined with another location * filter to search for a combination of job locations, @@ -127,7 +134,6 @@ class LocationFilter extends \Google\Protobuf\Internal\Message * @type bool $negated * Whether to apply negation to the filter so profiles matching the filter * are excluded. - * Currently only supported in profile search. * } */ public function __construct($data = NULL) { @@ -162,16 +168,18 @@ public function setAddress($var) } /** - * CLDR region code of the country/region of the address. This is used - * to address ambiguity of the user-input location, for example, "Liverpool" - * against "Liverpool, NY, US" or "Liverpool, UK". - * Set this field to bias location resolution toward a specific country - * or territory. If this field is not set, application behavior is biased - * toward the United States by default. + * CLDR region code of the country/region. This field may be used in two ways: + * 1) If telecommute preference is not set, this field is used address + * ambiguity of the user-input address. For example, "Liverpool" may refer to + * "Liverpool, NY, US" or "Liverpool, UK". This region code biases the + * address resolution toward a specific country or territory. If this field is + * not set, address resolution is biased toward the United States by default. + * 2) If telecommute preference is set to TELECOMMUTE_ALLOWED, the + * telecommute location filter will be limited to the region specified in this + * field. If this field is not set, the telecommute job locations will not be * See - * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. - * Note that this filter is not applicable for Profile Search related queries. * * Generated from protobuf field string region_code = 2; * @return string @@ -182,16 +190,18 @@ public function getRegionCode() } /** - * CLDR region code of the country/region of the address. This is used - * to address ambiguity of the user-input location, for example, "Liverpool" - * against "Liverpool, NY, US" or "Liverpool, UK". - * Set this field to bias location resolution toward a specific country - * or territory. If this field is not set, application behavior is biased - * toward the United States by default. + * CLDR region code of the country/region. This field may be used in two ways: + * 1) If telecommute preference is not set, this field is used address + * ambiguity of the user-input address. For example, "Liverpool" may refer to + * "Liverpool, NY, US" or "Liverpool, UK". This region code biases the + * address resolution toward a specific country or territory. If this field is + * not set, address resolution is biased toward the United States by default. + * 2) If telecommute preference is set to TELECOMMUTE_ALLOWED, the + * telecommute location filter will be limited to the region specified in this + * field. If this field is not set, the telecommute job locations will not be * See - * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. - * Note that this filter is not applicable for Profile Search related queries. * * Generated from protobuf field string region_code = 2; * @param string $var @@ -276,13 +286,15 @@ public function setDistanceInMiles($var) /** * Allows the client to return jobs without a * set location, specifically, telecommuting jobs (telecommuting is considered - * by the service as a special location. + * by the service as a special location). * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region] indicates if a job permits telecommuting. * If this field is set to [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], * telecommuting jobs are searched, and [address][google.cloud.talent.v4beta1.LocationFilter.address] and [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are * ignored. If not set or set to - * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], telecommute job are not - * searched. + * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], the telecommute status of + * the jobs is ignored. Jobs that have [PostingRegion.TELECOMMUTE][google.cloud.talent.v4beta1.PostingRegion.TELECOMMUTE] and have + * additional [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] may still be matched based on other location + * filters using [address][google.cloud.talent.v4beta1.LocationFilter.address] or [latlng][]. * This filter can be used by itself to search exclusively for telecommuting * jobs, or it can be combined with another location * filter to search for a combination of job locations, @@ -302,13 +314,15 @@ public function getTelecommutePreference() /** * Allows the client to return jobs without a * set location, specifically, telecommuting jobs (telecommuting is considered - * by the service as a special location. + * by the service as a special location). * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region] indicates if a job permits telecommuting. * If this field is set to [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], * telecommuting jobs are searched, and [address][google.cloud.talent.v4beta1.LocationFilter.address] and [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are * ignored. If not set or set to - * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], telecommute job are not - * searched. + * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], the telecommute status of + * the jobs is ignored. Jobs that have [PostingRegion.TELECOMMUTE][google.cloud.talent.v4beta1.PostingRegion.TELECOMMUTE] and have + * additional [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] may still be matched based on other location + * filters using [address][google.cloud.talent.v4beta1.LocationFilter.address] or [latlng][]. * This filter can be used by itself to search exclusively for telecommuting * jobs, or it can be combined with another location * filter to search for a combination of job locations, @@ -332,7 +346,6 @@ public function setTelecommutePreference($var) /** * Whether to apply negation to the filter so profiles matching the filter * are excluded. - * Currently only supported in profile search. * * Generated from protobuf field bool negated = 6; * @return bool @@ -345,7 +358,6 @@ public function getNegated() /** * Whether to apply negation to the filter so profiles matching the filter * are excluded. - * Currently only supported in profile search. * * Generated from protobuf field bool negated = 6; * @param bool $var diff --git a/Talent/src/V4beta1/LocationFilter/TelecommutePreference.php b/Talent/src/V4beta1/LocationFilter/TelecommutePreference.php index 8240d63e295..2f4c8fa4919 100644 --- a/Talent/src/V4beta1/LocationFilter/TelecommutePreference.php +++ b/Talent/src/V4beta1/LocationFilter/TelecommutePreference.php @@ -20,9 +20,10 @@ class TelecommutePreference */ const TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0; /** - * Exclude telecommute jobs. + * Deprecated: Ignore telecommute status of jobs. Use + * TELECOMMUTE_JOBS_EXCLUDED if want to exclude telecommute jobs. * - * Generated from protobuf enum TELECOMMUTE_EXCLUDED = 1; + * Generated from protobuf enum TELECOMMUTE_EXCLUDED = 1 [deprecated = true]; */ const TELECOMMUTE_EXCLUDED = 1; /** @@ -31,11 +32,18 @@ class TelecommutePreference * Generated from protobuf enum TELECOMMUTE_ALLOWED = 2; */ const TELECOMMUTE_ALLOWED = 2; + /** + * Exclude telecommute jobs. + * + * Generated from protobuf enum TELECOMMUTE_JOBS_EXCLUDED = 3; + */ + const TELECOMMUTE_JOBS_EXCLUDED = 3; private static $valueToName = [ self::TELECOMMUTE_PREFERENCE_UNSPECIFIED => 'TELECOMMUTE_PREFERENCE_UNSPECIFIED', self::TELECOMMUTE_EXCLUDED => 'TELECOMMUTE_EXCLUDED', self::TELECOMMUTE_ALLOWED => 'TELECOMMUTE_ALLOWED', + self::TELECOMMUTE_JOBS_EXCLUDED => 'TELECOMMUTE_JOBS_EXCLUDED', ]; public static function name($value) diff --git a/Talent/src/V4beta1/Outcome.php b/Talent/src/V4beta1/Outcome.php deleted file mode 100644 index e57b0bfe813..00000000000 --- a/Talent/src/V4beta1/Outcome.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.talent.v4beta1.Outcome - */ -class Outcome -{ - /** - * Default value. - * - * Generated from protobuf enum OUTCOME_UNSPECIFIED = 0; - */ - const OUTCOME_UNSPECIFIED = 0; - /** - * A positive outcome / passing indicator (for example, candidate was - * recommended for hiring or to be moved forward in the hiring process, - * candidate passed a test). - * - * Generated from protobuf enum POSITIVE = 1; - */ - const POSITIVE = 1; - /** - * A neutral outcome / no clear indicator (for example, no strong - * reccommendation either to move forward / not move forward, neutral score). - * - * Generated from protobuf enum NEUTRAL = 2; - */ - const NEUTRAL = 2; - /** - * A negative outcome / failing indicator (for example, candidate was - * recommended to NOT move forward in the hiring process, failed a test). - * - * Generated from protobuf enum NEGATIVE = 3; - */ - const NEGATIVE = 3; - /** - * The assessment outcome is not available or otherwise unknown (for example, - * candidate did not complete assessment). - * - * Generated from protobuf enum OUTCOME_NOT_AVAILABLE = 4; - */ - const OUTCOME_NOT_AVAILABLE = 4; - - private static $valueToName = [ - self::OUTCOME_UNSPECIFIED => 'OUTCOME_UNSPECIFIED', - self::POSITIVE => 'POSITIVE', - self::NEUTRAL => 'NEUTRAL', - self::NEGATIVE => 'NEGATIVE', - self::OUTCOME_NOT_AVAILABLE => 'OUTCOME_NOT_AVAILABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/Talent/src/V4beta1/ParseResumeRequest.php b/Talent/src/V4beta1/ParseResumeRequest.php deleted file mode 100644 index adce7ff033c..00000000000 --- a/Talent/src/V4beta1/ParseResumeRequest.php +++ /dev/null @@ -1,233 +0,0 @@ -google.cloud.talent.v4beta1.ParseResumeRequest - */ -class ParseResumeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. - * The resource name of the project. - * The format is "projects/{project_id}", for example, - * "projects/api-test-project". - * - * Generated from protobuf field string parent = 1; - */ - private $parent = ''; - /** - * Required. - * The bytes of the resume file in common format. Currently the API supports - * the following formats: - * PDF, TXT, DOC, RTF and DOCX. - * - * Generated from protobuf field bytes resume = 2; - */ - private $resume = ''; - /** - * Optional. - * The region code indicating where the resume is from. Values - * are as per the ISO-3166-2 format. For example, US, FR, DE. - * This value is optional, but providing this value improves the resume - * parsing quality and performance. - * An error is thrown if the regionCode is invalid. - * - * Generated from protobuf field string region_code = 3; - */ - private $region_code = ''; - /** - * Optional. - * The language code of contents in the resume. - * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". - * For more information, see - * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: - * class="external" target="_blank" }. - * - * Generated from protobuf field string language_code = 4; - */ - private $language_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. - * The resource name of the project. - * The format is "projects/{project_id}", for example, - * "projects/api-test-project". - * @type string $resume - * Required. - * The bytes of the resume file in common format. Currently the API supports - * the following formats: - * PDF, TXT, DOC, RTF and DOCX. - * @type string $region_code - * Optional. - * The region code indicating where the resume is from. Values - * are as per the ISO-3166-2 format. For example, US, FR, DE. - * This value is optional, but providing this value improves the resume - * parsing quality and performance. - * An error is thrown if the regionCode is invalid. - * @type string $language_code - * Optional. - * The language code of contents in the resume. - * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". - * For more information, see - * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: - * class="external" target="_blank" }. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ResumeService::initOnce(); - parent::__construct($data); - } - - /** - * Required. - * The resource name of the project. - * The format is "projects/{project_id}", for example, - * "projects/api-test-project". - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. - * The resource name of the project. - * The format is "projects/{project_id}", for example, - * "projects/api-test-project". - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. - * The bytes of the resume file in common format. Currently the API supports - * the following formats: - * PDF, TXT, DOC, RTF and DOCX. - * - * Generated from protobuf field bytes resume = 2; - * @return string - */ - public function getResume() - { - return $this->resume; - } - - /** - * Required. - * The bytes of the resume file in common format. Currently the API supports - * the following formats: - * PDF, TXT, DOC, RTF and DOCX. - * - * Generated from protobuf field bytes resume = 2; - * @param string $var - * @return $this - */ - public function setResume($var) - { - GPBUtil::checkString($var, False); - $this->resume = $var; - - return $this; - } - - /** - * Optional. - * The region code indicating where the resume is from. Values - * are as per the ISO-3166-2 format. For example, US, FR, DE. - * This value is optional, but providing this value improves the resume - * parsing quality and performance. - * An error is thrown if the regionCode is invalid. - * - * Generated from protobuf field string region_code = 3; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * Optional. - * The region code indicating where the resume is from. Values - * are as per the ISO-3166-2 format. For example, US, FR, DE. - * This value is optional, but providing this value improves the resume - * parsing quality and performance. - * An error is thrown if the regionCode is invalid. - * - * Generated from protobuf field string region_code = 3; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Optional. - * The language code of contents in the resume. - * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". - * For more information, see - * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: - * class="external" target="_blank" }. - * - * Generated from protobuf field string language_code = 4; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Optional. - * The language code of contents in the resume. - * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". - * For more information, see - * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: - * class="external" target="_blank" }. - * - * Generated from protobuf field string language_code = 4; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ParseResumeResponse.php b/Talent/src/V4beta1/ParseResumeResponse.php deleted file mode 100644 index ef55da93e26..00000000000 --- a/Talent/src/V4beta1/ParseResumeResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.talent.v4beta1.ParseResumeResponse - */ -class ParseResumeResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The profile parsed from resume. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile profile = 1; - */ - private $profile = null; - /** - * Raw text from resume. - * - * Generated from protobuf field string raw_text = 2; - */ - private $raw_text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Talent\V4beta1\Profile $profile - * The profile parsed from resume. - * @type string $raw_text - * Raw text from resume. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ResumeService::initOnce(); - parent::__construct($data); - } - - /** - * The profile parsed from resume. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile profile = 1; - * @return \Google\Cloud\Talent\V4beta1\Profile - */ - public function getProfile() - { - return $this->profile; - } - - /** - * The profile parsed from resume. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile profile = 1; - * @param \Google\Cloud\Talent\V4beta1\Profile $var - * @return $this - */ - public function setProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Profile::class); - $this->profile = $var; - - return $this; - } - - /** - * Raw text from resume. - * - * Generated from protobuf field string raw_text = 2; - * @return string - */ - public function getRawText() - { - return $this->raw_text; - } - - /** - * Raw text from resume. - * - * Generated from protobuf field string raw_text = 2; - * @param string $var - * @return $this - */ - public function setRawText($var) - { - GPBUtil::checkString($var, True); - $this->raw_text = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Patent.php b/Talent/src/V4beta1/Patent.php deleted file mode 100644 index 6e2017ee9dd..00000000000 --- a/Talent/src/V4beta1/Patent.php +++ /dev/null @@ -1,383 +0,0 @@ -google.cloud.talent.v4beta1.Patent - */ -class Patent extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the patent. - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - */ - private $display_name = ''; - /** - * A list of inventors' names. - * Number of characters allowed for each is 100. - * - * Generated from protobuf field repeated string inventors = 2; - */ - private $inventors; - /** - * The status of the patent. - * Number of characters allowed is 100. - * - * Generated from protobuf field string patent_status = 3; - */ - private $patent_status = ''; - /** - * The date the last time the status of the patent was checked. - * - * Generated from protobuf field .google.type.Date patent_status_date = 4; - */ - private $patent_status_date = null; - /** - * The date that the patent was filed. - * - * Generated from protobuf field .google.type.Date patent_filing_date = 5; - */ - private $patent_filing_date = null; - /** - * The name of the patent office. - * Number of characters allowed is 100. - * - * Generated from protobuf field string patent_office = 6; - */ - private $patent_office = ''; - /** - * The number of the patent. - * Number of characters allowed is 100. - * - * Generated from protobuf field string patent_number = 7; - */ - private $patent_number = ''; - /** - * The description of the patent. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string patent_description = 8; - */ - private $patent_description = ''; - /** - * The skills used in this patent. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - private $skills_used; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of the patent. - * Number of characters allowed is 100. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $inventors - * A list of inventors' names. - * Number of characters allowed for each is 100. - * @type string $patent_status - * The status of the patent. - * Number of characters allowed is 100. - * @type \Google\Type\Date $patent_status_date - * The date the last time the status of the patent was checked. - * @type \Google\Type\Date $patent_filing_date - * The date that the patent was filed. - * @type string $patent_office - * The name of the patent office. - * Number of characters allowed is 100. - * @type string $patent_number - * The number of the patent. - * Number of characters allowed is 100. - * @type string $patent_description - * The description of the patent. - * Number of characters allowed is 100,000. - * @type \Google\Cloud\Talent\V4beta1\Skill[]|\Google\Protobuf\Internal\RepeatedField $skills_used - * The skills used in this patent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * Name of the patent. - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of the patent. - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * A list of inventors' names. - * Number of characters allowed for each is 100. - * - * Generated from protobuf field repeated string inventors = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInventors() - { - return $this->inventors; - } - - /** - * A list of inventors' names. - * Number of characters allowed for each is 100. - * - * Generated from protobuf field repeated string inventors = 2; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInventors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->inventors = $arr; - - return $this; - } - - /** - * The status of the patent. - * Number of characters allowed is 100. - * - * Generated from protobuf field string patent_status = 3; - * @return string - */ - public function getPatentStatus() - { - return $this->patent_status; - } - - /** - * The status of the patent. - * Number of characters allowed is 100. - * - * Generated from protobuf field string patent_status = 3; - * @param string $var - * @return $this - */ - public function setPatentStatus($var) - { - GPBUtil::checkString($var, True); - $this->patent_status = $var; - - return $this; - } - - /** - * The date the last time the status of the patent was checked. - * - * Generated from protobuf field .google.type.Date patent_status_date = 4; - * @return \Google\Type\Date|null - */ - public function getPatentStatusDate() - { - return $this->patent_status_date; - } - - public function hasPatentStatusDate() - { - return isset($this->patent_status_date); - } - - public function clearPatentStatusDate() - { - unset($this->patent_status_date); - } - - /** - * The date the last time the status of the patent was checked. - * - * Generated from protobuf field .google.type.Date patent_status_date = 4; - * @param \Google\Type\Date $var - * @return $this - */ - public function setPatentStatusDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->patent_status_date = $var; - - return $this; - } - - /** - * The date that the patent was filed. - * - * Generated from protobuf field .google.type.Date patent_filing_date = 5; - * @return \Google\Type\Date|null - */ - public function getPatentFilingDate() - { - return $this->patent_filing_date; - } - - public function hasPatentFilingDate() - { - return isset($this->patent_filing_date); - } - - public function clearPatentFilingDate() - { - unset($this->patent_filing_date); - } - - /** - * The date that the patent was filed. - * - * Generated from protobuf field .google.type.Date patent_filing_date = 5; - * @param \Google\Type\Date $var - * @return $this - */ - public function setPatentFilingDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->patent_filing_date = $var; - - return $this; - } - - /** - * The name of the patent office. - * Number of characters allowed is 100. - * - * Generated from protobuf field string patent_office = 6; - * @return string - */ - public function getPatentOffice() - { - return $this->patent_office; - } - - /** - * The name of the patent office. - * Number of characters allowed is 100. - * - * Generated from protobuf field string patent_office = 6; - * @param string $var - * @return $this - */ - public function setPatentOffice($var) - { - GPBUtil::checkString($var, True); - $this->patent_office = $var; - - return $this; - } - - /** - * The number of the patent. - * Number of characters allowed is 100. - * - * Generated from protobuf field string patent_number = 7; - * @return string - */ - public function getPatentNumber() - { - return $this->patent_number; - } - - /** - * The number of the patent. - * Number of characters allowed is 100. - * - * Generated from protobuf field string patent_number = 7; - * @param string $var - * @return $this - */ - public function setPatentNumber($var) - { - GPBUtil::checkString($var, True); - $this->patent_number = $var; - - return $this; - } - - /** - * The description of the patent. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string patent_description = 8; - * @return string - */ - public function getPatentDescription() - { - return $this->patent_description; - } - - /** - * The description of the patent. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string patent_description = 8; - * @param string $var - * @return $this - */ - public function setPatentDescription($var) - { - GPBUtil::checkString($var, True); - $this->patent_description = $var; - - return $this; - } - - /** - * The skills used in this patent. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSkillsUsed() - { - return $this->skills_used; - } - - /** - * The skills used in this patent. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - * @param \Google\Cloud\Talent\V4beta1\Skill[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSkillsUsed($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Skill::class); - $this->skills_used = $arr; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/PersonName.php b/Talent/src/V4beta1/PersonName.php deleted file mode 100644 index 764d03504af..00000000000 --- a/Talent/src/V4beta1/PersonName.php +++ /dev/null @@ -1,156 +0,0 @@ -google.cloud.talent.v4beta1.PersonName - */ -class PersonName extends \Google\Protobuf\Internal\Message -{ - /** - * Preferred name for the person. This field is ignored if [structured_name][google.cloud.talent.v4beta1.PersonName.structured_name] - * is provided. - * Number of characters allowed is 100. - * - * Generated from protobuf field string preferred_name = 3; - */ - private $preferred_name = ''; - protected $person_name; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $formatted_name - * A string represents a person's full name. For example, "Dr. John Smith". - * Number of characters allowed is 100. - * @type \Google\Cloud\Talent\V4beta1\PersonName\PersonStructuredName $structured_name - * A person's name in a structured way (last name, first name, suffix, and - * so on.) - * @type string $preferred_name - * Preferred name for the person. This field is ignored if [structured_name][google.cloud.talent.v4beta1.PersonName.structured_name] - * is provided. - * Number of characters allowed is 100. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * A string represents a person's full name. For example, "Dr. John Smith". - * Number of characters allowed is 100. - * - * Generated from protobuf field string formatted_name = 1; - * @return string - */ - public function getFormattedName() - { - return $this->readOneof(1); - } - - public function hasFormattedName() - { - return $this->hasOneof(1); - } - - /** - * A string represents a person's full name. For example, "Dr. John Smith". - * Number of characters allowed is 100. - * - * Generated from protobuf field string formatted_name = 1; - * @param string $var - * @return $this - */ - public function setFormattedName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A person's name in a structured way (last name, first name, suffix, and - * so on.) - * - * Generated from protobuf field .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * @return \Google\Cloud\Talent\V4beta1\PersonName\PersonStructuredName|null - */ - public function getStructuredName() - { - return $this->readOneof(2); - } - - public function hasStructuredName() - { - return $this->hasOneof(2); - } - - /** - * A person's name in a structured way (last name, first name, suffix, and - * so on.) - * - * Generated from protobuf field .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * @param \Google\Cloud\Talent\V4beta1\PersonName\PersonStructuredName $var - * @return $this - */ - public function setStructuredName($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\PersonName\PersonStructuredName::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Preferred name for the person. This field is ignored if [structured_name][google.cloud.talent.v4beta1.PersonName.structured_name] - * is provided. - * Number of characters allowed is 100. - * - * Generated from protobuf field string preferred_name = 3; - * @return string - */ - public function getPreferredName() - { - return $this->preferred_name; - } - - /** - * Preferred name for the person. This field is ignored if [structured_name][google.cloud.talent.v4beta1.PersonName.structured_name] - * is provided. - * Number of characters allowed is 100. - * - * Generated from protobuf field string preferred_name = 3; - * @param string $var - * @return $this - */ - public function setPreferredName($var) - { - GPBUtil::checkString($var, True); - $this->preferred_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getPersonName() - { - return $this->whichOneof("person_name"); - } - -} - diff --git a/Talent/src/V4beta1/PersonName/PersonStructuredName.php b/Talent/src/V4beta1/PersonName/PersonStructuredName.php deleted file mode 100644 index 9f14cb8352e..00000000000 --- a/Talent/src/V4beta1/PersonName/PersonStructuredName.php +++ /dev/null @@ -1,274 +0,0 @@ -google.cloud.talent.v4beta1.PersonName.PersonStructuredName - */ -class PersonStructuredName extends \Google\Protobuf\Internal\Message -{ - /** - * Given/first name. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 100. - * - * Generated from protobuf field string given_name = 1; - */ - private $given_name = ''; - /** - * Preferred given/first name or nickname. - * Number of characters allowed is 100. - * - * Generated from protobuf field string preferred_name = 6; - */ - private $preferred_name = ''; - /** - * Middle initial. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 20. - * - * Generated from protobuf field string middle_initial = 2; - */ - private $middle_initial = ''; - /** - * Family/last name. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 100. - * - * Generated from protobuf field string family_name = 3; - */ - private $family_name = ''; - /** - * Suffixes. - * Number of characters allowed is 20. - * - * Generated from protobuf field repeated string suffixes = 4; - */ - private $suffixes; - /** - * Prefixes. - * Number of characters allowed is 20. - * - * Generated from protobuf field repeated string prefixes = 5; - */ - private $prefixes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $given_name - * Given/first name. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 100. - * @type string $preferred_name - * Preferred given/first name or nickname. - * Number of characters allowed is 100. - * @type string $middle_initial - * Middle initial. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 20. - * @type string $family_name - * Family/last name. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 100. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $suffixes - * Suffixes. - * Number of characters allowed is 20. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $prefixes - * Prefixes. - * Number of characters allowed is 20. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * Given/first name. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 100. - * - * Generated from protobuf field string given_name = 1; - * @return string - */ - public function getGivenName() - { - return $this->given_name; - } - - /** - * Given/first name. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 100. - * - * Generated from protobuf field string given_name = 1; - * @param string $var - * @return $this - */ - public function setGivenName($var) - { - GPBUtil::checkString($var, True); - $this->given_name = $var; - - return $this; - } - - /** - * Preferred given/first name or nickname. - * Number of characters allowed is 100. - * - * Generated from protobuf field string preferred_name = 6; - * @return string - */ - public function getPreferredName() - { - return $this->preferred_name; - } - - /** - * Preferred given/first name or nickname. - * Number of characters allowed is 100. - * - * Generated from protobuf field string preferred_name = 6; - * @param string $var - * @return $this - */ - public function setPreferredName($var) - { - GPBUtil::checkString($var, True); - $this->preferred_name = $var; - - return $this; - } - - /** - * Middle initial. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 20. - * - * Generated from protobuf field string middle_initial = 2; - * @return string - */ - public function getMiddleInitial() - { - return $this->middle_initial; - } - - /** - * Middle initial. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 20. - * - * Generated from protobuf field string middle_initial = 2; - * @param string $var - * @return $this - */ - public function setMiddleInitial($var) - { - GPBUtil::checkString($var, True); - $this->middle_initial = $var; - - return $this; - } - - /** - * Family/last name. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 100. - * - * Generated from protobuf field string family_name = 3; - * @return string - */ - public function getFamilyName() - { - return $this->family_name; - } - - /** - * Family/last name. - * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - * Number of characters allowed is 100. - * - * Generated from protobuf field string family_name = 3; - * @param string $var - * @return $this - */ - public function setFamilyName($var) - { - GPBUtil::checkString($var, True); - $this->family_name = $var; - - return $this; - } - - /** - * Suffixes. - * Number of characters allowed is 20. - * - * Generated from protobuf field repeated string suffixes = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSuffixes() - { - return $this->suffixes; - } - - /** - * Suffixes. - * Number of characters allowed is 20. - * - * Generated from protobuf field repeated string suffixes = 4; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSuffixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->suffixes = $arr; - - return $this; - } - - /** - * Prefixes. - * Number of characters allowed is 20. - * - * Generated from protobuf field repeated string prefixes = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPrefixes() - { - return $this->prefixes; - } - - /** - * Prefixes. - * Number of characters allowed is 20. - * - * Generated from protobuf field repeated string prefixes = 5; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->prefixes = $arr; - - return $this; - } - -} - - diff --git a/Talent/src/V4beta1/PersonNameFilter.php b/Talent/src/V4beta1/PersonNameFilter.php deleted file mode 100644 index e8171645041..00000000000 --- a/Talent/src/V4beta1/PersonNameFilter.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.talent.v4beta1.PersonNameFilter - */ -class PersonNameFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The person name. For example, "John Smith". - * Can be any combination of [PersonName.structured_name.given_name][], - * [PersonName.structured_name.middle_initial][], - * [PersonName.structured_name.family_name][], and - * [PersonName.formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]. - * - * Generated from protobuf field string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $person_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $person_name - * Required. The person name. For example, "John Smith". - * Can be any combination of [PersonName.structured_name.given_name][], - * [PersonName.structured_name.middle_initial][], - * [PersonName.structured_name.family_name][], and - * [PersonName.formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Required. The person name. For example, "John Smith". - * Can be any combination of [PersonName.structured_name.given_name][], - * [PersonName.structured_name.middle_initial][], - * [PersonName.structured_name.family_name][], and - * [PersonName.formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]. - * - * Generated from protobuf field string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPersonName() - { - return $this->person_name; - } - - /** - * Required. The person name. For example, "John Smith". - * Can be any combination of [PersonName.structured_name.given_name][], - * [PersonName.structured_name.middle_initial][], - * [PersonName.structured_name.family_name][], and - * [PersonName.formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]. - * - * Generated from protobuf field string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPersonName($var) - { - GPBUtil::checkString($var, True); - $this->person_name = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/PersonalUri.php b/Talent/src/V4beta1/PersonalUri.php deleted file mode 100644 index a8c36ee6934..00000000000 --- a/Talent/src/V4beta1/PersonalUri.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.talent.v4beta1.PersonalUri - */ -class PersonalUri extends \Google\Protobuf\Internal\Message -{ - /** - * The personal URI. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string uri = 1; - */ - private $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * The personal URI. - * Number of characters allowed is 4,000. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * The personal URI. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * The personal URI. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Phone.php b/Talent/src/V4beta1/Phone.php deleted file mode 100644 index d51e9d7fce3..00000000000 --- a/Talent/src/V4beta1/Phone.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.talent.v4beta1.Phone - */ -class Phone extends \Google\Protobuf\Internal\Message -{ - /** - * The usage of the phone. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - */ - private $usage = 0; - /** - * The phone type. For example, LANDLINE, MOBILE, FAX. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - */ - private $type = 0; - /** - * Phone number. - * Any phone formats are supported and only exact matches are performed on - * searches. For example, if a phone number in profile is provided in the - * format of "(xxx)xxx-xxxx", in profile searches the same phone format - * has to be provided. - * Number of characters allowed is 20. - * - * Generated from protobuf field string number = 3; - */ - private $number = ''; - /** - * When this number is available. Any descriptive string is expected. - * Number of characters allowed is 100. - * - * Generated from protobuf field string when_available = 4; - */ - private $when_available = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $usage - * The usage of the phone. For example, SCHOOL, WORK, PERSONAL. - * @type int $type - * The phone type. For example, LANDLINE, MOBILE, FAX. - * @type string $number - * Phone number. - * Any phone formats are supported and only exact matches are performed on - * searches. For example, if a phone number in profile is provided in the - * format of "(xxx)xxx-xxxx", in profile searches the same phone format - * has to be provided. - * Number of characters allowed is 20. - * @type string $when_available - * When this number is available. Any descriptive string is expected. - * Number of characters allowed is 100. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * The usage of the phone. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * @return int - */ - public function getUsage() - { - return $this->usage; - } - - /** - * The usage of the phone. For example, SCHOOL, WORK, PERSONAL. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * @param int $var - * @return $this - */ - public function setUsage($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\ContactInfoUsage::class); - $this->usage = $var; - - return $this; - } - - /** - * The phone type. For example, LANDLINE, MOBILE, FAX. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The phone type. For example, LANDLINE, MOBILE, FAX. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\Phone\PhoneType::class); - $this->type = $var; - - return $this; - } - - /** - * Phone number. - * Any phone formats are supported and only exact matches are performed on - * searches. For example, if a phone number in profile is provided in the - * format of "(xxx)xxx-xxxx", in profile searches the same phone format - * has to be provided. - * Number of characters allowed is 20. - * - * Generated from protobuf field string number = 3; - * @return string - */ - public function getNumber() - { - return $this->number; - } - - /** - * Phone number. - * Any phone formats are supported and only exact matches are performed on - * searches. For example, if a phone number in profile is provided in the - * format of "(xxx)xxx-xxxx", in profile searches the same phone format - * has to be provided. - * Number of characters allowed is 20. - * - * Generated from protobuf field string number = 3; - * @param string $var - * @return $this - */ - public function setNumber($var) - { - GPBUtil::checkString($var, True); - $this->number = $var; - - return $this; - } - - /** - * When this number is available. Any descriptive string is expected. - * Number of characters allowed is 100. - * - * Generated from protobuf field string when_available = 4; - * @return string - */ - public function getWhenAvailable() - { - return $this->when_available; - } - - /** - * When this number is available. Any descriptive string is expected. - * Number of characters allowed is 100. - * - * Generated from protobuf field string when_available = 4; - * @param string $var - * @return $this - */ - public function setWhenAvailable($var) - { - GPBUtil::checkString($var, True); - $this->when_available = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Phone/PhoneType.php b/Talent/src/V4beta1/Phone/PhoneType.php deleted file mode 100644 index 49c79ed9b38..00000000000 --- a/Talent/src/V4beta1/Phone/PhoneType.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.talent.v4beta1.Phone.PhoneType - */ -class PhoneType -{ - /** - * Default value. - * - * Generated from protobuf enum PHONE_TYPE_UNSPECIFIED = 0; - */ - const PHONE_TYPE_UNSPECIFIED = 0; - /** - * A landline. - * - * Generated from protobuf enum LANDLINE = 1; - */ - const LANDLINE = 1; - /** - * A mobile. - * - * Generated from protobuf enum MOBILE = 2; - */ - const MOBILE = 2; - /** - * A fax. - * - * Generated from protobuf enum FAX = 3; - */ - const FAX = 3; - /** - * A pager. - * - * Generated from protobuf enum PAGER = 4; - */ - const PAGER = 4; - /** - * A TTY (test telephone) or TDD (telecommunication device for the deaf). - * - * Generated from protobuf enum TTY_OR_TDD = 5; - */ - const TTY_OR_TDD = 5; - /** - * A voicemail. - * - * Generated from protobuf enum VOICEMAIL = 6; - */ - const VOICEMAIL = 6; - /** - * A virtual telephone number is a number that can be routed to another - * number and managed by the user via Web, SMS, IVR, and so on. It is - * associated with a particular person, and may be routed to either a MOBILE - * or LANDLINE number. The [phone usage][google.cloud.talent.v4beta1.ContactInfoUsage] should - * be set to PERSONAL for these phone types. Some more information can be - * found here: https://en.wikipedia.org/wiki/Personal_Numbers - * - * Generated from protobuf enum VIRTUAL = 7; - */ - const VIRTUAL = 7; - /** - * Voice over IP numbers. This includes TSoIP (Telephony Service over IP). - * - * Generated from protobuf enum VOIP = 8; - */ - const VOIP = 8; - /** - * In some regions (e.g. the USA), it is impossible to distinguish between - * fixed-line and mobile numbers by looking at the phone number itself. - * - * Generated from protobuf enum MOBILE_OR_LANDLINE = 9; - */ - const MOBILE_OR_LANDLINE = 9; - - private static $valueToName = [ - self::PHONE_TYPE_UNSPECIFIED => 'PHONE_TYPE_UNSPECIFIED', - self::LANDLINE => 'LANDLINE', - self::MOBILE => 'MOBILE', - self::FAX => 'FAX', - self::PAGER => 'PAGER', - self::TTY_OR_TDD => 'TTY_OR_TDD', - self::VOICEMAIL => 'VOICEMAIL', - self::VIRTUAL => 'VIRTUAL', - self::VOIP => 'VOIP', - self::MOBILE_OR_LANDLINE => 'MOBILE_OR_LANDLINE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - - diff --git a/Talent/src/V4beta1/Profile.php b/Talent/src/V4beta1/Profile.php deleted file mode 100644 index 995431d0fb7..00000000000 --- a/Talent/src/V4beta1/Profile.php +++ /dev/null @@ -1,1591 +0,0 @@ -google.cloud.talent.v4beta1.Profile - */ -class Profile extends \Google\Protobuf\Internal\Message -{ - /** - * Required during profile update. - * Resource name assigned to a profile by the API. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", - * for example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string name = 1; - */ - private $name = ''; - /** - * Profile's id in client system, if available. This value is unique for each - * profile inside a tenant. An error is thrown if another profile with the - * same external_id is created. - * The maximum number of bytes allowed is 100. - * - * Generated from protobuf field string external_id = 2; - */ - private $external_id = ''; - /** - * The source description indicating where the profile is acquired. - * For example, if a candidate profile is acquired from a resume, the user can - * input "resume" here to indicate the source. - * The maximum number of bytes allowed is 100. - * - * Generated from protobuf field string source = 3; - */ - private $source = ''; - /** - * The URI set by clients that links to this profile's client-side copy. - * The maximum number of bytes allowed is 4000. - * - * Generated from protobuf field string uri = 4; - */ - private $uri = ''; - /** - * The cluster id of the profile to associate with other profile(s) for the - * same candidate. - * This field should be generated by the customer. If a value is not provided, - * a random UUID is assigned to this field of the profile. - * This is used to link multiple profiles to the same candidate. For example, - * a client has a candidate with two profiles, where one was created recently - * and the other one was created 5 years ago. These two profiles may be very - * different. The clients can create the first profile and get a generated - * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it when the second profile is created, - * indicating these two profiles are referring to the same candidate. - * - * Generated from protobuf field string group_id = 5; - */ - private $group_id = ''; - /** - * Indicates the hirable status of the candidate. - * - * Generated from protobuf field .google.protobuf.BoolValue is_hirable = 6; - */ - private $is_hirable = null; - /** - * The timestamp when the profile was first created at this source. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - */ - private $create_time = null; - /** - * The timestamp when the profile was last updated at this source. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8; - */ - private $update_time = null; - /** - * The timestamp when the profile was last updated as a result of a direct or - * indirect action by a candidate. - * These actions include: - * * Direct actions such as the candidate submitting a new resume as part of a - * job application to the agency, using a self-service tool such as a website - * to update their profile, and so on. - * * Indirect actions by the candidate such as uploading a resume to a job - * board that is collected by the agency through a feed, providing a resume to - * a recruiter who then uploads it into the ATS, and so on. - * * Updates made to the candidate's profile by the recruiter as a result of - * interacting with the candidate (for example adding a skill or work - * preference, and so on). Changes to [recruiting_notes][google.cloud.talent.v4beta1.Profile.recruiting_notes] are specifically - * excluded from this action type. - * Note: [candidate_update_time][google.cloud.talent.v4beta1.Profile.candidate_update_time] must be greater than or equal to - * [resume_update_time][google.cloud.talent.v4beta1.Profile.resume_update_time] or an error is thrown. - * - * Generated from protobuf field .google.protobuf.Timestamp candidate_update_time = 67; - */ - private $candidate_update_time = null; - /** - * The timestamp when the candidate's resume was added or updated on the - * candidate's profile. Whether that resume was directly uploaded by a - * candidate, pulled from a 3rd party job board feed, added by a recruiter, - * and so on. - * If this field is updated, it's expected that [resume][google.cloud.talent.v4beta1.Profile.resume] is provided in - * the create or update calls. - * - * Generated from protobuf field .google.protobuf.Timestamp resume_update_time = 68; - */ - private $resume_update_time = null; - /** - * The resume representing this profile. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Resume resume = 53; - */ - private $resume = null; - /** - * The names of the candidate this profile references. - * Currently only one person name is supported. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - private $person_names; - /** - * The candidate's postal addresses. It's highly recommended to - * input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Provide [Address.usage][google.cloud.talent.v4beta1.Address.usage] if possible, especially if the address is - * PERSONAL. During a search only personal addresses are considered. If there - * is no such address, all addresses with unspecified usage are assumed to be - * personal. - * * Provide [Address.current][google.cloud.talent.v4beta1.Address.current] for the current address if possible. During - * a search, only current addresses are considered. If there is no such - * address, all addresses are assumed to be current. - * When displaying a candidate's addresses, it is sometimes desirable to limit - * the number of addresses shown. In these cases we recommend that you display - * the addresses in the following order of priority: - * 1. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 2. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is false or not - * set. - * 3. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is CONTACT_INFO_USAGE_UNSPECIFIED and - * [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 4. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is CONTACT_INFO_USAGE_UNSPECIFIED and - * [Address.current][google.cloud.talent.v4beta1.Address.current] is false or not set. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - private $addresses; - /** - * The candidate's email addresses. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - private $email_addresses; - /** - * The candidate's phone number(s). - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - private $phone_numbers; - /** - * The candidate's personal URIs. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - private $personal_uris; - /** - * Available contact information besides [addresses][google.cloud.talent.v4beta1.Profile.addresses], [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses], - * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For example, Hang-out, Skype. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - */ - private $additional_contact_info; - /** - * The employment history records of the candidate. It's highly recommended - * to input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Specify the start and end dates of the employment records. - * * List different employment types separately, no matter how minor the - * change is. - * For example, only job title is changed from "software engineer" to "senior - * software engineer". - * * Provide [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current] for the current employment if - * possible. If not, it's inferred from user inputs. - * The limitation for max number of employment records is 100. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - private $employment_records; - /** - * The education history record of the candidate. It's highly recommended to - * input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Specify the start and end dates of the education records. - * * List each education type separately, no matter how minor the change is. - * For example, the profile contains the education experience from the same - * school but different degrees. - * * Provide [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current] for the current education if - * possible. If not, it's inferred from user inputs. - * The limitation for max number of education records is 100. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - private $education_records; - /** - * The skill set of the candidate. It's highly recommended to provide as - * much information as possible to help improve the search quality. - * The limitation for max number of skills is 500. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - private $skills; - /** - * The individual or collaborative activities which the candidate has - * participated in, for example, open-source projects, class assignments that - * aren't listed in [employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. - * The limitation for max number of activities is 50. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - private $activities; - /** - * The publications published by the candidate. - * The limitation for max number of publications is 50. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - private $publications; - /** - * The patents acquired by the candidate. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - private $patents; - /** - * The certifications acquired by the candidate. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - private $certifications; - /** - * Output only. The resource names of the candidate's applications. - * - * Generated from protobuf field repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $applications; - /** - * Output only. The resource names of the candidate's assignments. - * - * Generated from protobuf field repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $assignments; - /** - * A map of fields to hold both filterable and non-filterable custom profile - * attributes that aren't covered by the provided structured fields. See - * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more details. - * At most 100 filterable and at most 100 unfilterable keys are supported. If - * limit is exceeded, an error is thrown. Custom attributes are `unfilterable` - * by default. These are filterable when the `filterable` flag is set to - * `true`. - * Numeric custom attributes: each key can only map to one numeric value, - * otherwise an error is thrown. Client can also filter on numeric custom - * attributes using '>', '<' or '=' operators. - * String custom attributes: each key can map up to 50 string values. For - * filterable string value, each value has a byte size of no more than 256B. - * For unfilterable string values, the maximum byte size of a single key is - * 64B. An error is thrown for any request exceeding the limit. - * The maximum total byte size is 10KB. - * - * Generated from protobuf field map custom_attributes = 26; - */ - private $custom_attributes; - /** - * Output only. Indicates if a summarized profile was created as part of the - * profile creation API call. This flag does not indicate whether a profile is - * searchable or not. - * - * Generated from protobuf field bool processed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $processed = false; - /** - * Output only. Keyword snippet shows how the search result is related to a - * search query. This is only returned in [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. - * - * Generated from protobuf field string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $keyword_snippet = ''; - /** - * Output only. Candidate's availability signals. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $availability_signals; - /** - * Output only. Derived locations of the profile, resolved from [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses]. - * [derived_addresses][google.cloud.talent.v4beta1.Profile.derived_addresses] are exactly matched to [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] in the - * same order. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $derived_addresses; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required during profile update. - * Resource name assigned to a profile by the API. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", - * for example, "projects/foo/tenants/bar/profiles/baz". - * @type string $external_id - * Profile's id in client system, if available. This value is unique for each - * profile inside a tenant. An error is thrown if another profile with the - * same external_id is created. - * The maximum number of bytes allowed is 100. - * @type string $source - * The source description indicating where the profile is acquired. - * For example, if a candidate profile is acquired from a resume, the user can - * input "resume" here to indicate the source. - * The maximum number of bytes allowed is 100. - * @type string $uri - * The URI set by clients that links to this profile's client-side copy. - * The maximum number of bytes allowed is 4000. - * @type string $group_id - * The cluster id of the profile to associate with other profile(s) for the - * same candidate. - * This field should be generated by the customer. If a value is not provided, - * a random UUID is assigned to this field of the profile. - * This is used to link multiple profiles to the same candidate. For example, - * a client has a candidate with two profiles, where one was created recently - * and the other one was created 5 years ago. These two profiles may be very - * different. The clients can create the first profile and get a generated - * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it when the second profile is created, - * indicating these two profiles are referring to the same candidate. - * @type \Google\Protobuf\BoolValue $is_hirable - * Indicates the hirable status of the candidate. - * @type \Google\Protobuf\Timestamp $create_time - * The timestamp when the profile was first created at this source. - * @type \Google\Protobuf\Timestamp $update_time - * The timestamp when the profile was last updated at this source. - * @type \Google\Protobuf\Timestamp $candidate_update_time - * The timestamp when the profile was last updated as a result of a direct or - * indirect action by a candidate. - * These actions include: - * * Direct actions such as the candidate submitting a new resume as part of a - * job application to the agency, using a self-service tool such as a website - * to update their profile, and so on. - * * Indirect actions by the candidate such as uploading a resume to a job - * board that is collected by the agency through a feed, providing a resume to - * a recruiter who then uploads it into the ATS, and so on. - * * Updates made to the candidate's profile by the recruiter as a result of - * interacting with the candidate (for example adding a skill or work - * preference, and so on). Changes to [recruiting_notes][google.cloud.talent.v4beta1.Profile.recruiting_notes] are specifically - * excluded from this action type. - * Note: [candidate_update_time][google.cloud.talent.v4beta1.Profile.candidate_update_time] must be greater than or equal to - * [resume_update_time][google.cloud.talent.v4beta1.Profile.resume_update_time] or an error is thrown. - * @type \Google\Protobuf\Timestamp $resume_update_time - * The timestamp when the candidate's resume was added or updated on the - * candidate's profile. Whether that resume was directly uploaded by a - * candidate, pulled from a 3rd party job board feed, added by a recruiter, - * and so on. - * If this field is updated, it's expected that [resume][google.cloud.talent.v4beta1.Profile.resume] is provided in - * the create or update calls. - * @type \Google\Cloud\Talent\V4beta1\Resume $resume - * The resume representing this profile. - * @type \Google\Cloud\Talent\V4beta1\PersonName[]|\Google\Protobuf\Internal\RepeatedField $person_names - * The names of the candidate this profile references. - * Currently only one person name is supported. - * @type \Google\Cloud\Talent\V4beta1\Address[]|\Google\Protobuf\Internal\RepeatedField $addresses - * The candidate's postal addresses. It's highly recommended to - * input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Provide [Address.usage][google.cloud.talent.v4beta1.Address.usage] if possible, especially if the address is - * PERSONAL. During a search only personal addresses are considered. If there - * is no such address, all addresses with unspecified usage are assumed to be - * personal. - * * Provide [Address.current][google.cloud.talent.v4beta1.Address.current] for the current address if possible. During - * a search, only current addresses are considered. If there is no such - * address, all addresses are assumed to be current. - * When displaying a candidate's addresses, it is sometimes desirable to limit - * the number of addresses shown. In these cases we recommend that you display - * the addresses in the following order of priority: - * 1. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 2. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is false or not - * set. - * 3. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is CONTACT_INFO_USAGE_UNSPECIFIED and - * [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 4. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is CONTACT_INFO_USAGE_UNSPECIFIED and - * [Address.current][google.cloud.talent.v4beta1.Address.current] is false or not set. - * @type \Google\Cloud\Talent\V4beta1\Email[]|\Google\Protobuf\Internal\RepeatedField $email_addresses - * The candidate's email addresses. - * @type \Google\Cloud\Talent\V4beta1\Phone[]|\Google\Protobuf\Internal\RepeatedField $phone_numbers - * The candidate's phone number(s). - * @type \Google\Cloud\Talent\V4beta1\PersonalUri[]|\Google\Protobuf\Internal\RepeatedField $personal_uris - * The candidate's personal URIs. - * @type \Google\Cloud\Talent\V4beta1\AdditionalContactInfo[]|\Google\Protobuf\Internal\RepeatedField $additional_contact_info - * Available contact information besides [addresses][google.cloud.talent.v4beta1.Profile.addresses], [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses], - * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For example, Hang-out, Skype. - * @type \Google\Cloud\Talent\V4beta1\EmploymentRecord[]|\Google\Protobuf\Internal\RepeatedField $employment_records - * The employment history records of the candidate. It's highly recommended - * to input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Specify the start and end dates of the employment records. - * * List different employment types separately, no matter how minor the - * change is. - * For example, only job title is changed from "software engineer" to "senior - * software engineer". - * * Provide [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current] for the current employment if - * possible. If not, it's inferred from user inputs. - * The limitation for max number of employment records is 100. - * @type \Google\Cloud\Talent\V4beta1\EducationRecord[]|\Google\Protobuf\Internal\RepeatedField $education_records - * The education history record of the candidate. It's highly recommended to - * input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Specify the start and end dates of the education records. - * * List each education type separately, no matter how minor the change is. - * For example, the profile contains the education experience from the same - * school but different degrees. - * * Provide [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current] for the current education if - * possible. If not, it's inferred from user inputs. - * The limitation for max number of education records is 100. - * @type \Google\Cloud\Talent\V4beta1\Skill[]|\Google\Protobuf\Internal\RepeatedField $skills - * The skill set of the candidate. It's highly recommended to provide as - * much information as possible to help improve the search quality. - * The limitation for max number of skills is 500. - * @type \Google\Cloud\Talent\V4beta1\Activity[]|\Google\Protobuf\Internal\RepeatedField $activities - * The individual or collaborative activities which the candidate has - * participated in, for example, open-source projects, class assignments that - * aren't listed in [employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. - * The limitation for max number of activities is 50. - * @type \Google\Cloud\Talent\V4beta1\Publication[]|\Google\Protobuf\Internal\RepeatedField $publications - * The publications published by the candidate. - * The limitation for max number of publications is 50. - * @type \Google\Cloud\Talent\V4beta1\Patent[]|\Google\Protobuf\Internal\RepeatedField $patents - * The patents acquired by the candidate. - * @type \Google\Cloud\Talent\V4beta1\Certification[]|\Google\Protobuf\Internal\RepeatedField $certifications - * The certifications acquired by the candidate. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $applications - * Output only. The resource names of the candidate's applications. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $assignments - * Output only. The resource names of the candidate's assignments. - * @type array|\Google\Protobuf\Internal\MapField $custom_attributes - * A map of fields to hold both filterable and non-filterable custom profile - * attributes that aren't covered by the provided structured fields. See - * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more details. - * At most 100 filterable and at most 100 unfilterable keys are supported. If - * limit is exceeded, an error is thrown. Custom attributes are `unfilterable` - * by default. These are filterable when the `filterable` flag is set to - * `true`. - * Numeric custom attributes: each key can only map to one numeric value, - * otherwise an error is thrown. Client can also filter on numeric custom - * attributes using '>', '<' or '=' operators. - * String custom attributes: each key can map up to 50 string values. For - * filterable string value, each value has a byte size of no more than 256B. - * For unfilterable string values, the maximum byte size of a single key is - * 64B. An error is thrown for any request exceeding the limit. - * The maximum total byte size is 10KB. - * @type bool $processed - * Output only. Indicates if a summarized profile was created as part of the - * profile creation API call. This flag does not indicate whether a profile is - * searchable or not. - * @type string $keyword_snippet - * Output only. Keyword snippet shows how the search result is related to a - * search query. This is only returned in [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. - * @type \Google\Cloud\Talent\V4beta1\AvailabilitySignal[]|\Google\Protobuf\Internal\RepeatedField $availability_signals - * Output only. Candidate's availability signals. - * @type \Google\Cloud\Talent\V4beta1\Location[]|\Google\Protobuf\Internal\RepeatedField $derived_addresses - * Output only. Derived locations of the profile, resolved from [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses]. - * [derived_addresses][google.cloud.talent.v4beta1.Profile.derived_addresses] are exactly matched to [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] in the - * same order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * Required during profile update. - * Resource name assigned to a profile by the API. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", - * for example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required during profile update. - * Resource name assigned to a profile by the API. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", - * for example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Profile's id in client system, if available. This value is unique for each - * profile inside a tenant. An error is thrown if another profile with the - * same external_id is created. - * The maximum number of bytes allowed is 100. - * - * Generated from protobuf field string external_id = 2; - * @return string - */ - public function getExternalId() - { - return $this->external_id; - } - - /** - * Profile's id in client system, if available. This value is unique for each - * profile inside a tenant. An error is thrown if another profile with the - * same external_id is created. - * The maximum number of bytes allowed is 100. - * - * Generated from protobuf field string external_id = 2; - * @param string $var - * @return $this - */ - public function setExternalId($var) - { - GPBUtil::checkString($var, True); - $this->external_id = $var; - - return $this; - } - - /** - * The source description indicating where the profile is acquired. - * For example, if a candidate profile is acquired from a resume, the user can - * input "resume" here to indicate the source. - * The maximum number of bytes allowed is 100. - * - * Generated from protobuf field string source = 3; - * @return string - */ - public function getSource() - { - return $this->source; - } - - /** - * The source description indicating where the profile is acquired. - * For example, if a candidate profile is acquired from a resume, the user can - * input "resume" here to indicate the source. - * The maximum number of bytes allowed is 100. - * - * Generated from protobuf field string source = 3; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->source = $var; - - return $this; - } - - /** - * The URI set by clients that links to this profile's client-side copy. - * The maximum number of bytes allowed is 4000. - * - * Generated from protobuf field string uri = 4; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * The URI set by clients that links to this profile's client-side copy. - * The maximum number of bytes allowed is 4000. - * - * Generated from protobuf field string uri = 4; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * The cluster id of the profile to associate with other profile(s) for the - * same candidate. - * This field should be generated by the customer. If a value is not provided, - * a random UUID is assigned to this field of the profile. - * This is used to link multiple profiles to the same candidate. For example, - * a client has a candidate with two profiles, where one was created recently - * and the other one was created 5 years ago. These two profiles may be very - * different. The clients can create the first profile and get a generated - * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it when the second profile is created, - * indicating these two profiles are referring to the same candidate. - * - * Generated from protobuf field string group_id = 5; - * @return string - */ - public function getGroupId() - { - return $this->group_id; - } - - /** - * The cluster id of the profile to associate with other profile(s) for the - * same candidate. - * This field should be generated by the customer. If a value is not provided, - * a random UUID is assigned to this field of the profile. - * This is used to link multiple profiles to the same candidate. For example, - * a client has a candidate with two profiles, where one was created recently - * and the other one was created 5 years ago. These two profiles may be very - * different. The clients can create the first profile and get a generated - * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it when the second profile is created, - * indicating these two profiles are referring to the same candidate. - * - * Generated from protobuf field string group_id = 5; - * @param string $var - * @return $this - */ - public function setGroupId($var) - { - GPBUtil::checkString($var, True); - $this->group_id = $var; - - return $this; - } - - /** - * Indicates the hirable status of the candidate. - * - * Generated from protobuf field .google.protobuf.BoolValue is_hirable = 6; - * @return \Google\Protobuf\BoolValue|null - */ - public function getIsHirable() - { - return $this->is_hirable; - } - - public function hasIsHirable() - { - return isset($this->is_hirable); - } - - public function clearIsHirable() - { - unset($this->is_hirable); - } - - /** - * Returns the unboxed value from getIsHirable() - - * Indicates the hirable status of the candidate. - * - * Generated from protobuf field .google.protobuf.BoolValue is_hirable = 6; - * @return bool|null - */ - public function getIsHirableValue() - { - return $this->readWrapperValue("is_hirable"); - } - - /** - * Indicates the hirable status of the candidate. - * - * Generated from protobuf field .google.protobuf.BoolValue is_hirable = 6; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsHirable($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_hirable = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Indicates the hirable status of the candidate. - * - * Generated from protobuf field .google.protobuf.BoolValue is_hirable = 6; - * @param bool|null $var - * @return $this - */ - public function setIsHirableValue($var) - { - $this->writeWrapperValue("is_hirable", $var); - return $this;} - - /** - * The timestamp when the profile was first created at this source. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The timestamp when the profile was first created at this source. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The timestamp when the profile was last updated at this source. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * The timestamp when the profile was last updated at this source. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The timestamp when the profile was last updated as a result of a direct or - * indirect action by a candidate. - * These actions include: - * * Direct actions such as the candidate submitting a new resume as part of a - * job application to the agency, using a self-service tool such as a website - * to update their profile, and so on. - * * Indirect actions by the candidate such as uploading a resume to a job - * board that is collected by the agency through a feed, providing a resume to - * a recruiter who then uploads it into the ATS, and so on. - * * Updates made to the candidate's profile by the recruiter as a result of - * interacting with the candidate (for example adding a skill or work - * preference, and so on). Changes to [recruiting_notes][google.cloud.talent.v4beta1.Profile.recruiting_notes] are specifically - * excluded from this action type. - * Note: [candidate_update_time][google.cloud.talent.v4beta1.Profile.candidate_update_time] must be greater than or equal to - * [resume_update_time][google.cloud.talent.v4beta1.Profile.resume_update_time] or an error is thrown. - * - * Generated from protobuf field .google.protobuf.Timestamp candidate_update_time = 67; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCandidateUpdateTime() - { - return $this->candidate_update_time; - } - - public function hasCandidateUpdateTime() - { - return isset($this->candidate_update_time); - } - - public function clearCandidateUpdateTime() - { - unset($this->candidate_update_time); - } - - /** - * The timestamp when the profile was last updated as a result of a direct or - * indirect action by a candidate. - * These actions include: - * * Direct actions such as the candidate submitting a new resume as part of a - * job application to the agency, using a self-service tool such as a website - * to update their profile, and so on. - * * Indirect actions by the candidate such as uploading a resume to a job - * board that is collected by the agency through a feed, providing a resume to - * a recruiter who then uploads it into the ATS, and so on. - * * Updates made to the candidate's profile by the recruiter as a result of - * interacting with the candidate (for example adding a skill or work - * preference, and so on). Changes to [recruiting_notes][google.cloud.talent.v4beta1.Profile.recruiting_notes] are specifically - * excluded from this action type. - * Note: [candidate_update_time][google.cloud.talent.v4beta1.Profile.candidate_update_time] must be greater than or equal to - * [resume_update_time][google.cloud.talent.v4beta1.Profile.resume_update_time] or an error is thrown. - * - * Generated from protobuf field .google.protobuf.Timestamp candidate_update_time = 67; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCandidateUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->candidate_update_time = $var; - - return $this; - } - - /** - * The timestamp when the candidate's resume was added or updated on the - * candidate's profile. Whether that resume was directly uploaded by a - * candidate, pulled from a 3rd party job board feed, added by a recruiter, - * and so on. - * If this field is updated, it's expected that [resume][google.cloud.talent.v4beta1.Profile.resume] is provided in - * the create or update calls. - * - * Generated from protobuf field .google.protobuf.Timestamp resume_update_time = 68; - * @return \Google\Protobuf\Timestamp|null - */ - public function getResumeUpdateTime() - { - return $this->resume_update_time; - } - - public function hasResumeUpdateTime() - { - return isset($this->resume_update_time); - } - - public function clearResumeUpdateTime() - { - unset($this->resume_update_time); - } - - /** - * The timestamp when the candidate's resume was added or updated on the - * candidate's profile. Whether that resume was directly uploaded by a - * candidate, pulled from a 3rd party job board feed, added by a recruiter, - * and so on. - * If this field is updated, it's expected that [resume][google.cloud.talent.v4beta1.Profile.resume] is provided in - * the create or update calls. - * - * Generated from protobuf field .google.protobuf.Timestamp resume_update_time = 68; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setResumeUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->resume_update_time = $var; - - return $this; - } - - /** - * The resume representing this profile. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Resume resume = 53; - * @return \Google\Cloud\Talent\V4beta1\Resume|null - */ - public function getResume() - { - return $this->resume; - } - - public function hasResume() - { - return isset($this->resume); - } - - public function clearResume() - { - unset($this->resume); - } - - /** - * The resume representing this profile. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Resume resume = 53; - * @param \Google\Cloud\Talent\V4beta1\Resume $var - * @return $this - */ - public function setResume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Resume::class); - $this->resume = $var; - - return $this; - } - - /** - * The names of the candidate this profile references. - * Currently only one person name is supported. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPersonNames() - { - return $this->person_names; - } - - /** - * The names of the candidate this profile references. - * Currently only one person name is supported. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - * @param \Google\Cloud\Talent\V4beta1\PersonName[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPersonNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\PersonName::class); - $this->person_names = $arr; - - return $this; - } - - /** - * The candidate's postal addresses. It's highly recommended to - * input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Provide [Address.usage][google.cloud.talent.v4beta1.Address.usage] if possible, especially if the address is - * PERSONAL. During a search only personal addresses are considered. If there - * is no such address, all addresses with unspecified usage are assumed to be - * personal. - * * Provide [Address.current][google.cloud.talent.v4beta1.Address.current] for the current address if possible. During - * a search, only current addresses are considered. If there is no such - * address, all addresses are assumed to be current. - * When displaying a candidate's addresses, it is sometimes desirable to limit - * the number of addresses shown. In these cases we recommend that you display - * the addresses in the following order of priority: - * 1. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 2. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is false or not - * set. - * 3. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is CONTACT_INFO_USAGE_UNSPECIFIED and - * [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 4. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is CONTACT_INFO_USAGE_UNSPECIFIED and - * [Address.current][google.cloud.talent.v4beta1.Address.current] is false or not set. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Address addresses = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAddresses() - { - return $this->addresses; - } - - /** - * The candidate's postal addresses. It's highly recommended to - * input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Provide [Address.usage][google.cloud.talent.v4beta1.Address.usage] if possible, especially if the address is - * PERSONAL. During a search only personal addresses are considered. If there - * is no such address, all addresses with unspecified usage are assumed to be - * personal. - * * Provide [Address.current][google.cloud.talent.v4beta1.Address.current] for the current address if possible. During - * a search, only current addresses are considered. If there is no such - * address, all addresses are assumed to be current. - * When displaying a candidate's addresses, it is sometimes desirable to limit - * the number of addresses shown. In these cases we recommend that you display - * the addresses in the following order of priority: - * 1. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 2. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is false or not - * set. - * 3. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is CONTACT_INFO_USAGE_UNSPECIFIED and - * [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 4. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is CONTACT_INFO_USAGE_UNSPECIFIED and - * [Address.current][google.cloud.talent.v4beta1.Address.current] is false or not set. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Address addresses = 12; - * @param \Google\Cloud\Talent\V4beta1\Address[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAddresses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Address::class); - $this->addresses = $arr; - - return $this; - } - - /** - * The candidate's email addresses. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEmailAddresses() - { - return $this->email_addresses; - } - - /** - * The candidate's email addresses. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - * @param \Google\Cloud\Talent\V4beta1\Email[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEmailAddresses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Email::class); - $this->email_addresses = $arr; - - return $this; - } - - /** - * The candidate's phone number(s). - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPhoneNumbers() - { - return $this->phone_numbers; - } - - /** - * The candidate's phone number(s). - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - * @param \Google\Cloud\Talent\V4beta1\Phone[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPhoneNumbers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Phone::class); - $this->phone_numbers = $arr; - - return $this; - } - - /** - * The candidate's personal URIs. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPersonalUris() - { - return $this->personal_uris; - } - - /** - * The candidate's personal URIs. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - * @param \Google\Cloud\Talent\V4beta1\PersonalUri[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPersonalUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\PersonalUri::class); - $this->personal_uris = $arr; - - return $this; - } - - /** - * Available contact information besides [addresses][google.cloud.talent.v4beta1.Profile.addresses], [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses], - * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For example, Hang-out, Skype. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalContactInfo() - { - return $this->additional_contact_info; - } - - /** - * Available contact information besides [addresses][google.cloud.talent.v4beta1.Profile.addresses], [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses], - * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For example, Hang-out, Skype. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * @param \Google\Cloud\Talent\V4beta1\AdditionalContactInfo[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalContactInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\AdditionalContactInfo::class); - $this->additional_contact_info = $arr; - - return $this; - } - - /** - * The employment history records of the candidate. It's highly recommended - * to input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Specify the start and end dates of the employment records. - * * List different employment types separately, no matter how minor the - * change is. - * For example, only job title is changed from "software engineer" to "senior - * software engineer". - * * Provide [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current] for the current employment if - * possible. If not, it's inferred from user inputs. - * The limitation for max number of employment records is 100. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEmploymentRecords() - { - return $this->employment_records; - } - - /** - * The employment history records of the candidate. It's highly recommended - * to input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Specify the start and end dates of the employment records. - * * List different employment types separately, no matter how minor the - * change is. - * For example, only job title is changed from "software engineer" to "senior - * software engineer". - * * Provide [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current] for the current employment if - * possible. If not, it's inferred from user inputs. - * The limitation for max number of employment records is 100. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - * @param \Google\Cloud\Talent\V4beta1\EmploymentRecord[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEmploymentRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\EmploymentRecord::class); - $this->employment_records = $arr; - - return $this; - } - - /** - * The education history record of the candidate. It's highly recommended to - * input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Specify the start and end dates of the education records. - * * List each education type separately, no matter how minor the change is. - * For example, the profile contains the education experience from the same - * school but different degrees. - * * Provide [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current] for the current education if - * possible. If not, it's inferred from user inputs. - * The limitation for max number of education records is 100. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEducationRecords() - { - return $this->education_records; - } - - /** - * The education history record of the candidate. It's highly recommended to - * input this information as accurately as possible to help improve search - * quality. Here are some recommendations: - * * Specify the start and end dates of the education records. - * * List each education type separately, no matter how minor the change is. - * For example, the profile contains the education experience from the same - * school but different degrees. - * * Provide [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current] for the current education if - * possible. If not, it's inferred from user inputs. - * The limitation for max number of education records is 100. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - * @param \Google\Cloud\Talent\V4beta1\EducationRecord[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEducationRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\EducationRecord::class); - $this->education_records = $arr; - - return $this; - } - - /** - * The skill set of the candidate. It's highly recommended to provide as - * much information as possible to help improve the search quality. - * The limitation for max number of skills is 500. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Skill skills = 19; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSkills() - { - return $this->skills; - } - - /** - * The skill set of the candidate. It's highly recommended to provide as - * much information as possible to help improve the search quality. - * The limitation for max number of skills is 500. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Skill skills = 19; - * @param \Google\Cloud\Talent\V4beta1\Skill[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSkills($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Skill::class); - $this->skills = $arr; - - return $this; - } - - /** - * The individual or collaborative activities which the candidate has - * participated in, for example, open-source projects, class assignments that - * aren't listed in [employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. - * The limitation for max number of activities is 50. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Activity activities = 20; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActivities() - { - return $this->activities; - } - - /** - * The individual or collaborative activities which the candidate has - * participated in, for example, open-source projects, class assignments that - * aren't listed in [employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. - * The limitation for max number of activities is 50. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Activity activities = 20; - * @param \Google\Cloud\Talent\V4beta1\Activity[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActivities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Activity::class); - $this->activities = $arr; - - return $this; - } - - /** - * The publications published by the candidate. - * The limitation for max number of publications is 50. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Publication publications = 21; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPublications() - { - return $this->publications; - } - - /** - * The publications published by the candidate. - * The limitation for max number of publications is 50. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Publication publications = 21; - * @param \Google\Cloud\Talent\V4beta1\Publication[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPublications($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Publication::class); - $this->publications = $arr; - - return $this; - } - - /** - * The patents acquired by the candidate. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Patent patents = 22; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPatents() - { - return $this->patents; - } - - /** - * The patents acquired by the candidate. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Patent patents = 22; - * @param \Google\Cloud\Talent\V4beta1\Patent[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPatents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Patent::class); - $this->patents = $arr; - - return $this; - } - - /** - * The certifications acquired by the candidate. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCertifications() - { - return $this->certifications; - } - - /** - * The certifications acquired by the candidate. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - * @param \Google\Cloud\Talent\V4beta1\Certification[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCertifications($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Certification::class); - $this->certifications = $arr; - - return $this; - } - - /** - * Output only. The resource names of the candidate's applications. - * - * Generated from protobuf field repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApplications() - { - return $this->applications; - } - - /** - * Output only. The resource names of the candidate's applications. - * - * Generated from protobuf field repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApplications($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->applications = $arr; - - return $this; - } - - /** - * Output only. The resource names of the candidate's assignments. - * - * Generated from protobuf field repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssignments() - { - return $this->assignments; - } - - /** - * Output only. The resource names of the candidate's assignments. - * - * Generated from protobuf field repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssignments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->assignments = $arr; - - return $this; - } - - /** - * A map of fields to hold both filterable and non-filterable custom profile - * attributes that aren't covered by the provided structured fields. See - * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more details. - * At most 100 filterable and at most 100 unfilterable keys are supported. If - * limit is exceeded, an error is thrown. Custom attributes are `unfilterable` - * by default. These are filterable when the `filterable` flag is set to - * `true`. - * Numeric custom attributes: each key can only map to one numeric value, - * otherwise an error is thrown. Client can also filter on numeric custom - * attributes using '>', '<' or '=' operators. - * String custom attributes: each key can map up to 50 string values. For - * filterable string value, each value has a byte size of no more than 256B. - * For unfilterable string values, the maximum byte size of a single key is - * 64B. An error is thrown for any request exceeding the limit. - * The maximum total byte size is 10KB. - * - * Generated from protobuf field map custom_attributes = 26; - * @return \Google\Protobuf\Internal\MapField - */ - public function getCustomAttributes() - { - return $this->custom_attributes; - } - - /** - * A map of fields to hold both filterable and non-filterable custom profile - * attributes that aren't covered by the provided structured fields. See - * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more details. - * At most 100 filterable and at most 100 unfilterable keys are supported. If - * limit is exceeded, an error is thrown. Custom attributes are `unfilterable` - * by default. These are filterable when the `filterable` flag is set to - * `true`. - * Numeric custom attributes: each key can only map to one numeric value, - * otherwise an error is thrown. Client can also filter on numeric custom - * attributes using '>', '<' or '=' operators. - * String custom attributes: each key can map up to 50 string values. For - * filterable string value, each value has a byte size of no more than 256B. - * For unfilterable string values, the maximum byte size of a single key is - * 64B. An error is thrown for any request exceeding the limit. - * The maximum total byte size is 10KB. - * - * Generated from protobuf field map custom_attributes = 26; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setCustomAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\CustomAttribute::class); - $this->custom_attributes = $arr; - - return $this; - } - - /** - * Output only. Indicates if a summarized profile was created as part of the - * profile creation API call. This flag does not indicate whether a profile is - * searchable or not. - * - * Generated from protobuf field bool processed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getProcessed() - { - return $this->processed; - } - - /** - * Output only. Indicates if a summarized profile was created as part of the - * profile creation API call. This flag does not indicate whether a profile is - * searchable or not. - * - * Generated from protobuf field bool processed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setProcessed($var) - { - GPBUtil::checkBool($var); - $this->processed = $var; - - return $this; - } - - /** - * Output only. Keyword snippet shows how the search result is related to a - * search query. This is only returned in [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. - * - * Generated from protobuf field string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getKeywordSnippet() - { - return $this->keyword_snippet; - } - - /** - * Output only. Keyword snippet shows how the search result is related to a - * search query. This is only returned in [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. - * - * Generated from protobuf field string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setKeywordSnippet($var) - { - GPBUtil::checkString($var, True); - $this->keyword_snippet = $var; - - return $this; - } - - /** - * Output only. Candidate's availability signals. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAvailabilitySignals() - { - return $this->availability_signals; - } - - /** - * Output only. Candidate's availability signals. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Talent\V4beta1\AvailabilitySignal[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAvailabilitySignals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\AvailabilitySignal::class); - $this->availability_signals = $arr; - - return $this; - } - - /** - * Output only. Derived locations of the profile, resolved from [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses]. - * [derived_addresses][google.cloud.talent.v4beta1.Profile.derived_addresses] are exactly matched to [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] in the - * same order. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDerivedAddresses() - { - return $this->derived_addresses; - } - - /** - * Output only. Derived locations of the profile, resolved from [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses]. - * [derived_addresses][google.cloud.talent.v4beta1.Profile.derived_addresses] are exactly matched to [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] in the - * same order. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Talent\V4beta1\Location[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDerivedAddresses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Location::class); - $this->derived_addresses = $arr; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ProfileEvent.php b/Talent/src/V4beta1/ProfileEvent.php deleted file mode 100644 index 228b0b0dbea..00000000000 --- a/Talent/src/V4beta1/ProfileEvent.php +++ /dev/null @@ -1,164 +0,0 @@ -google.cloud.talent.v4beta1.ProfileEvent - */ -class ProfileEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Type of event. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $type = 0; - /** - * Required. The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated with this client event. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", - * for example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $profiles; - /** - * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with this client event. Leave it - * empty if the event isn't associated with a job. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for - * example, "projects/foo/tenants/bar/jobs/baz". - * - * Generated from protobuf field repeated string jobs = 6; - */ - private $jobs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Required. Type of event. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $profiles - * Required. The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated with this client event. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", - * for example, "projects/foo/tenants/bar/profiles/baz". - * @type string[]|\Google\Protobuf\Internal\RepeatedField $jobs - * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with this client event. Leave it - * empty if the event isn't associated with a job. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for - * example, "projects/foo/tenants/bar/jobs/baz". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Event::initOnce(); - parent::__construct($data); - } - - /** - * Required. Type of event. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Type of event. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\ProfileEvent\ProfileEventType::class); - $this->type = $var; - - return $this; - } - - /** - * Required. The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated with this client event. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", - * for example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProfiles() - { - return $this->profiles; - } - - /** - * Required. The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated with this client event. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", - * for example, "projects/foo/tenants/bar/profiles/baz". - * - * Generated from protobuf field repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->profiles = $arr; - - return $this; - } - - /** - * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with this client event. Leave it - * empty if the event isn't associated with a job. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for - * example, "projects/foo/tenants/bar/jobs/baz". - * - * Generated from protobuf field repeated string jobs = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getJobs() - { - return $this->jobs; - } - - /** - * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with this client event. Leave it - * empty if the event isn't associated with a job. - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for - * example, "projects/foo/tenants/bar/jobs/baz". - * - * Generated from protobuf field repeated string jobs = 6; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setJobs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->jobs = $arr; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ProfileEvent/ProfileEventType.php b/Talent/src/V4beta1/ProfileEvent/ProfileEventType.php deleted file mode 100644 index 7272a678c12..00000000000 --- a/Talent/src/V4beta1/ProfileEvent/ProfileEventType.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType - */ -class ProfileEventType -{ - /** - * Default value. - * - * Generated from protobuf enum PROFILE_EVENT_TYPE_UNSPECIFIED = 0; - */ - const PROFILE_EVENT_TYPE_UNSPECIFIED = 0; - /** - * Send this event when a [ProfileEvent.profiles][google.cloud.talent.v4beta1.ProfileEvent.profiles] was sent as a part of - * a result set for a CTS API call and was rendered in the end user's UI - * (that is, the [ProfileEvent.recruiter][google.cloud.talent.v4beta1.ProfileEvent.recruiter]). - * - * Generated from protobuf enum IMPRESSION = 1; - */ - const IMPRESSION = 1; - /** - * The VIEW event records the action of a candidate's profile being - * viewed by an end user. This is critical to tracking product metrics and - * should be sent for every profile VIEW that happens in your system, - * whether the event is associated with an API call (for example, a - * recruiter making a request for a result set and clicking on a profile) - * or not (a recruiter using the system to view profile details without - * making a request). - * For a VIEW events associated with API calls, the - * [ClientEvent.request_id][google.cloud.talent.v4beta1.ClientEvent.request_id] should be populated. If the VIEW is not - * associated with an API call, [request_id][google.cloud.talent.v4beta1.ClientEvent.request_id] should - * not be populated. - * This event requires a valid recruiter and one valid ID in profiles. - * - * Generated from protobuf enum VIEW = 2; - */ - const VIEW = 2; - /** - * The profile is bookmarked. - * - * Generated from protobuf enum BOOKMARK = 3; - */ - const BOOKMARK = 3; - - private static $valueToName = [ - self::PROFILE_EVENT_TYPE_UNSPECIFIED => 'PROFILE_EVENT_TYPE_UNSPECIFIED', - self::IMPRESSION => 'IMPRESSION', - self::VIEW => 'VIEW', - self::BOOKMARK => 'BOOKMARK', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - - diff --git a/Talent/src/V4beta1/ProfileQuery.php b/Talent/src/V4beta1/ProfileQuery.php deleted file mode 100644 index b2f3241ca27..00000000000 --- a/Talent/src/V4beta1/ProfileQuery.php +++ /dev/null @@ -1,1175 +0,0 @@ -google.cloud.talent.v4beta1.ProfileQuery - */ -class ProfileQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Keywords to match any text fields of profiles. - * For example, "software engineer in Palo Alto". - * - * Generated from protobuf field string query = 1; - */ - private $query = ''; - /** - * The location filter specifies geo-regions containing the profiles to - * search against. - * One of [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] or [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] must be - * provided or an error is thrown. If both [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] and - * [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are provided, an error is thrown. - * The following logic is used to determine which locations in - * the profile to filter against: - * 1. All of the profile's geocoded [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where - * [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 2. If the above set of locations is empty, all of the profile's geocoded - * [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - * CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 3. If the above set of locations is empty, all of the profile's geocoded - * [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL or - * CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is not set. - * This means that any profiles without any [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] that match - * any of the above criteria will not be included in a search with location - * filter. Furthermore, any [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - * WORK or SCHOOL or where [Address.current][google.cloud.talent.v4beta1.Address.current] is false are not considered for - * location filter. - * If a location filter isn't specified, profiles fitting the other search - * criteria are retrieved regardless of where they're located. - * If [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated] is specified, the result doesn't contain - * profiles from that location. - * If [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] is provided, the - * [LocationType][google.cloud.talent.v4beta1.Location.LocationType], center - * point (latitude and longitude), and radius are automatically detected by - * the Google Maps Geocoding API and included as well. If - * [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] cannot be geocoded, the filter - * falls back to keyword search. - * If the detected - * [LocationType][google.cloud.talent.v4beta1.Location.LocationType] is - * [LocationType.SUB_ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.Location.LocationType.SUB_ADMINISTRATIVE_AREA], - * [LocationType.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.Location.LocationType.ADMINISTRATIVE_AREA], - * or - * [LocationType.COUNTRY][google.cloud.talent.v4beta1.Location.LocationType.COUNTRY], - * the filter is performed against the detected location name (using exact - * text matching). Otherwise, the filter is performed against the detected - * center point and a radius of detected location radius + - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]. - * If [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] is provided, - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is the additional radius on top of the - * radius of the location geocoded from [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address]. If - * [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] is provided, - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is the only radius that is used. - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is 10 by default. Note that the value - * of [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is 0 if it is unset, so the server - * does not differentiate [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] that is - * explicitly set to 0 and [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] that is not - * set. Which means that if [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is explicitly - * set to 0, the server will use the default value of - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] which is 10. To work around this and - * effectively set [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] to 0, we recommend - * setting [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] to a very small decimal number - * (such as 0.00001). - * If [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is negative, an error is thrown. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - private $location_filters; - /** - * Job title filter specifies job titles of profiles to match on. - * If a job title isn't specified, profiles with any titles are retrieved. - * If multiple values are specified, profiles are retrieved with any of the - * specified job titles. - * If [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated] is specified, the result won't contain - * profiles with the job titles. - * For example, search for profiles with a job title "Product Manager". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - private $job_title_filters; - /** - * Employer filter specifies employers of profiles to match on. - * If an employer filter isn't specified, profiles with any employers are - * retrieved. - * If multiple employer filters are specified, profiles with any matching - * employers are retrieved. - * If [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated] is specified, the result won't contain - * profiles that match the employers. - * For example, search for profiles that have working experience at "Google - * LLC". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - private $employer_filters; - /** - * Education filter specifies education of profiles to match on. - * If an education filter isn't specified, profiles with any education are - * retrieved. - * If multiple education filters are specified, profiles that match any - * education filters are retrieved. - * If [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated] is specified, the result won't contain - * profiles that match the educations. - * For example, search for profiles with a master degree. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - private $education_filters; - /** - * Skill filter specifies skill of profiles to match on. - * If a skill filter isn't specified, profiles with any skills are retrieved. - * If multiple skill filters are specified, profiles that match any skill - * filters are retrieved. - * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated] is specified, the result won't contain profiles - * that match the skills. - * For example, search for profiles that have "Java" and "Python" in skill - * list. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - private $skill_filters; - /** - * Work experience filter specifies the total working experience of profiles - * to match on. - * If a work experience filter isn't specified, profiles with any - * professional experience are retrieved. - * If multiple work experience filters are specified, profiles that match any - * work experience filters are retrieved. - * For example, search for profiles with 10 years of work experience. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - */ - private $work_experience_filter; - /** - * Time filter specifies the create/update timestamp of the profiles to match - * on. - * For example, search for profiles created since "2018-1-1". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - private $time_filters; - /** - * The hirable filter specifies the profile's hirable status to match on. - * - * Generated from protobuf field .google.protobuf.BoolValue hirable_filter = 9; - */ - private $hirable_filter = null; - /** - * The application date filters specify application date ranges to match on. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - */ - private $application_date_filters; - /** - * The application outcome notes filters specify the notes for the outcome of - * the job application. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - */ - private $application_outcome_notes_filters; - /** - * The application job filters specify the job applied for in the application. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - */ - private $application_job_filters; - /** - * This filter specifies a structured syntax to match against the - * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes] that are marked as `filterable`. - * The syntax for this expression is a subset of Google SQL syntax. - * String custom attributes: supported operators are =, != where the left of - * the operator is a custom field key and the right of the operator is a - * string (surrounded by quotes) value. - * Numeric custom attributes: Supported operators are '>', '<' or '=' - * operators where the left of the operator is a custom field key and the - * right of the operator is a numeric value. - * Supported functions are LOWER() to - * perform case insensitive match and EMPTY() to filter on the - * existence of a key. - * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of - * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be - * a maximum of 50 comparisons/functions in the expression. The expression - * must be < 2000 characters in length. - * Sample Query: - * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) - * - * Generated from protobuf field string custom_attribute_filter = 15; - */ - private $custom_attribute_filter = ''; - /** - * Deprecated. Use availability_filters instead. - * The candidate availability filter which filters based on availability - * signals. - * Signal 1: Number of days since most recent job application. See - * [Availability.JobApplicationAvailabilitySignal][google.cloud.talent.v4beta1.Availability.JobApplicationAvailabilitySignal] for the details of this - * signal. - * Signal 2: Number of days since last profile update. See - * [Availability.ProfileUpdateAvailabilitySignal][google.cloud.talent.v4beta1.Availability.ProfileUpdateAvailabilitySignal] - * for the details of this signal. - * The candidate availability filter helps a recruiter understand if a - * specific candidate is likely to be actively seeking new job opportunities - * based on an aggregated set of signals. Specifically, the intent is NOT to - * indicate the candidate's potential qualification / interest / close ability - * for a specific job. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * @deprecated - */ - protected $candidate_availability_filter = null; - /** - * The availability filter which filters based on - * [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals]. - * The availability filter helps a recruiter understand if a - * specific candidate is likely to be actively seeking new job opportunities - * based on an aggregated set of signals. Specifically, the intent is NOT to - * indicate the candidate's potential qualification / interest / close ability - * for a specific job. - * There can be at most one [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] per - * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type]. If there are multiple - * [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] for a [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type], - * an error is thrown. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - */ - private $availability_filters; - /** - * Person name filter specifies person name of profiles to match on. - * If multiple person name filters are specified, profiles that match any - * person name filters are retrieved. - * For example, search for profiles of candidates with name "John Smith". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - private $person_name_filters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * Keywords to match any text fields of profiles. - * For example, "software engineer in Palo Alto". - * @type \Google\Cloud\Talent\V4beta1\LocationFilter[]|\Google\Protobuf\Internal\RepeatedField $location_filters - * The location filter specifies geo-regions containing the profiles to - * search against. - * One of [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] or [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] must be - * provided or an error is thrown. If both [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] and - * [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are provided, an error is thrown. - * The following logic is used to determine which locations in - * the profile to filter against: - * 1. All of the profile's geocoded [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where - * [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 2. If the above set of locations is empty, all of the profile's geocoded - * [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - * CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 3. If the above set of locations is empty, all of the profile's geocoded - * [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL or - * CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is not set. - * This means that any profiles without any [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] that match - * any of the above criteria will not be included in a search with location - * filter. Furthermore, any [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - * WORK or SCHOOL or where [Address.current][google.cloud.talent.v4beta1.Address.current] is false are not considered for - * location filter. - * If a location filter isn't specified, profiles fitting the other search - * criteria are retrieved regardless of where they're located. - * If [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated] is specified, the result doesn't contain - * profiles from that location. - * If [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] is provided, the - * [LocationType][google.cloud.talent.v4beta1.Location.LocationType], center - * point (latitude and longitude), and radius are automatically detected by - * the Google Maps Geocoding API and included as well. If - * [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] cannot be geocoded, the filter - * falls back to keyword search. - * If the detected - * [LocationType][google.cloud.talent.v4beta1.Location.LocationType] is - * [LocationType.SUB_ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.Location.LocationType.SUB_ADMINISTRATIVE_AREA], - * [LocationType.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.Location.LocationType.ADMINISTRATIVE_AREA], - * or - * [LocationType.COUNTRY][google.cloud.talent.v4beta1.Location.LocationType.COUNTRY], - * the filter is performed against the detected location name (using exact - * text matching). Otherwise, the filter is performed against the detected - * center point and a radius of detected location radius + - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]. - * If [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] is provided, - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is the additional radius on top of the - * radius of the location geocoded from [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address]. If - * [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] is provided, - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is the only radius that is used. - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is 10 by default. Note that the value - * of [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is 0 if it is unset, so the server - * does not differentiate [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] that is - * explicitly set to 0 and [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] that is not - * set. Which means that if [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is explicitly - * set to 0, the server will use the default value of - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] which is 10. To work around this and - * effectively set [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] to 0, we recommend - * setting [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] to a very small decimal number - * (such as 0.00001). - * If [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is negative, an error is thrown. - * @type \Google\Cloud\Talent\V4beta1\JobTitleFilter[]|\Google\Protobuf\Internal\RepeatedField $job_title_filters - * Job title filter specifies job titles of profiles to match on. - * If a job title isn't specified, profiles with any titles are retrieved. - * If multiple values are specified, profiles are retrieved with any of the - * specified job titles. - * If [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated] is specified, the result won't contain - * profiles with the job titles. - * For example, search for profiles with a job title "Product Manager". - * @type \Google\Cloud\Talent\V4beta1\EmployerFilter[]|\Google\Protobuf\Internal\RepeatedField $employer_filters - * Employer filter specifies employers of profiles to match on. - * If an employer filter isn't specified, profiles with any employers are - * retrieved. - * If multiple employer filters are specified, profiles with any matching - * employers are retrieved. - * If [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated] is specified, the result won't contain - * profiles that match the employers. - * For example, search for profiles that have working experience at "Google - * LLC". - * @type \Google\Cloud\Talent\V4beta1\EducationFilter[]|\Google\Protobuf\Internal\RepeatedField $education_filters - * Education filter specifies education of profiles to match on. - * If an education filter isn't specified, profiles with any education are - * retrieved. - * If multiple education filters are specified, profiles that match any - * education filters are retrieved. - * If [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated] is specified, the result won't contain - * profiles that match the educations. - * For example, search for profiles with a master degree. - * @type \Google\Cloud\Talent\V4beta1\SkillFilter[]|\Google\Protobuf\Internal\RepeatedField $skill_filters - * Skill filter specifies skill of profiles to match on. - * If a skill filter isn't specified, profiles with any skills are retrieved. - * If multiple skill filters are specified, profiles that match any skill - * filters are retrieved. - * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated] is specified, the result won't contain profiles - * that match the skills. - * For example, search for profiles that have "Java" and "Python" in skill - * list. - * @type \Google\Cloud\Talent\V4beta1\WorkExperienceFilter[]|\Google\Protobuf\Internal\RepeatedField $work_experience_filter - * Work experience filter specifies the total working experience of profiles - * to match on. - * If a work experience filter isn't specified, profiles with any - * professional experience are retrieved. - * If multiple work experience filters are specified, profiles that match any - * work experience filters are retrieved. - * For example, search for profiles with 10 years of work experience. - * @type \Google\Cloud\Talent\V4beta1\TimeFilter[]|\Google\Protobuf\Internal\RepeatedField $time_filters - * Time filter specifies the create/update timestamp of the profiles to match - * on. - * For example, search for profiles created since "2018-1-1". - * @type \Google\Protobuf\BoolValue $hirable_filter - * The hirable filter specifies the profile's hirable status to match on. - * @type \Google\Cloud\Talent\V4beta1\ApplicationDateFilter[]|\Google\Protobuf\Internal\RepeatedField $application_date_filters - * The application date filters specify application date ranges to match on. - * @type \Google\Cloud\Talent\V4beta1\ApplicationOutcomeNotesFilter[]|\Google\Protobuf\Internal\RepeatedField $application_outcome_notes_filters - * The application outcome notes filters specify the notes for the outcome of - * the job application. - * @type \Google\Cloud\Talent\V4beta1\ApplicationJobFilter[]|\Google\Protobuf\Internal\RepeatedField $application_job_filters - * The application job filters specify the job applied for in the application. - * @type string $custom_attribute_filter - * This filter specifies a structured syntax to match against the - * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes] that are marked as `filterable`. - * The syntax for this expression is a subset of Google SQL syntax. - * String custom attributes: supported operators are =, != where the left of - * the operator is a custom field key and the right of the operator is a - * string (surrounded by quotes) value. - * Numeric custom attributes: Supported operators are '>', '<' or '=' - * operators where the left of the operator is a custom field key and the - * right of the operator is a numeric value. - * Supported functions are LOWER() to - * perform case insensitive match and EMPTY() to filter on the - * existence of a key. - * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of - * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be - * a maximum of 50 comparisons/functions in the expression. The expression - * must be < 2000 characters in length. - * Sample Query: - * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) - * @type \Google\Cloud\Talent\V4beta1\CandidateAvailabilityFilter $candidate_availability_filter - * Deprecated. Use availability_filters instead. - * The candidate availability filter which filters based on availability - * signals. - * Signal 1: Number of days since most recent job application. See - * [Availability.JobApplicationAvailabilitySignal][google.cloud.talent.v4beta1.Availability.JobApplicationAvailabilitySignal] for the details of this - * signal. - * Signal 2: Number of days since last profile update. See - * [Availability.ProfileUpdateAvailabilitySignal][google.cloud.talent.v4beta1.Availability.ProfileUpdateAvailabilitySignal] - * for the details of this signal. - * The candidate availability filter helps a recruiter understand if a - * specific candidate is likely to be actively seeking new job opportunities - * based on an aggregated set of signals. Specifically, the intent is NOT to - * indicate the candidate's potential qualification / interest / close ability - * for a specific job. - * @type \Google\Cloud\Talent\V4beta1\AvailabilityFilter[]|\Google\Protobuf\Internal\RepeatedField $availability_filters - * The availability filter which filters based on - * [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals]. - * The availability filter helps a recruiter understand if a - * specific candidate is likely to be actively seeking new job opportunities - * based on an aggregated set of signals. Specifically, the intent is NOT to - * indicate the candidate's potential qualification / interest / close ability - * for a specific job. - * There can be at most one [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] per - * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type]. If there are multiple - * [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] for a [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type], - * an error is thrown. - * @type \Google\Cloud\Talent\V4beta1\PersonNameFilter[]|\Google\Protobuf\Internal\RepeatedField $person_name_filters - * Person name filter specifies person name of profiles to match on. - * If multiple person name filters are specified, profiles that match any - * person name filters are retrieved. - * For example, search for profiles of candidates with name "John Smith". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Keywords to match any text fields of profiles. - * For example, "software engineer in Palo Alto". - * - * Generated from protobuf field string query = 1; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Keywords to match any text fields of profiles. - * For example, "software engineer in Palo Alto". - * - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * The location filter specifies geo-regions containing the profiles to - * search against. - * One of [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] or [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] must be - * provided or an error is thrown. If both [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] and - * [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are provided, an error is thrown. - * The following logic is used to determine which locations in - * the profile to filter against: - * 1. All of the profile's geocoded [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where - * [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 2. If the above set of locations is empty, all of the profile's geocoded - * [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - * CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 3. If the above set of locations is empty, all of the profile's geocoded - * [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL or - * CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is not set. - * This means that any profiles without any [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] that match - * any of the above criteria will not be included in a search with location - * filter. Furthermore, any [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - * WORK or SCHOOL or where [Address.current][google.cloud.talent.v4beta1.Address.current] is false are not considered for - * location filter. - * If a location filter isn't specified, profiles fitting the other search - * criteria are retrieved regardless of where they're located. - * If [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated] is specified, the result doesn't contain - * profiles from that location. - * If [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] is provided, the - * [LocationType][google.cloud.talent.v4beta1.Location.LocationType], center - * point (latitude and longitude), and radius are automatically detected by - * the Google Maps Geocoding API and included as well. If - * [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] cannot be geocoded, the filter - * falls back to keyword search. - * If the detected - * [LocationType][google.cloud.talent.v4beta1.Location.LocationType] is - * [LocationType.SUB_ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.Location.LocationType.SUB_ADMINISTRATIVE_AREA], - * [LocationType.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.Location.LocationType.ADMINISTRATIVE_AREA], - * or - * [LocationType.COUNTRY][google.cloud.talent.v4beta1.Location.LocationType.COUNTRY], - * the filter is performed against the detected location name (using exact - * text matching). Otherwise, the filter is performed against the detected - * center point and a radius of detected location radius + - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]. - * If [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] is provided, - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is the additional radius on top of the - * radius of the location geocoded from [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address]. If - * [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] is provided, - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is the only radius that is used. - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is 10 by default. Note that the value - * of [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is 0 if it is unset, so the server - * does not differentiate [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] that is - * explicitly set to 0 and [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] that is not - * set. Which means that if [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is explicitly - * set to 0, the server will use the default value of - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] which is 10. To work around this and - * effectively set [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] to 0, we recommend - * setting [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] to a very small decimal number - * (such as 0.00001). - * If [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is negative, an error is thrown. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocationFilters() - { - return $this->location_filters; - } - - /** - * The location filter specifies geo-regions containing the profiles to - * search against. - * One of [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] or [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] must be - * provided or an error is thrown. If both [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] and - * [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are provided, an error is thrown. - * The following logic is used to determine which locations in - * the profile to filter against: - * 1. All of the profile's geocoded [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where - * [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 2. If the above set of locations is empty, all of the profile's geocoded - * [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - * CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. - * 3. If the above set of locations is empty, all of the profile's geocoded - * [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL or - * CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is not set. - * This means that any profiles without any [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] that match - * any of the above criteria will not be included in a search with location - * filter. Furthermore, any [Profile.addresses][google.cloud.talent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - * WORK or SCHOOL or where [Address.current][google.cloud.talent.v4beta1.Address.current] is false are not considered for - * location filter. - * If a location filter isn't specified, profiles fitting the other search - * criteria are retrieved regardless of where they're located. - * If [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated] is specified, the result doesn't contain - * profiles from that location. - * If [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] is provided, the - * [LocationType][google.cloud.talent.v4beta1.Location.LocationType], center - * point (latitude and longitude), and radius are automatically detected by - * the Google Maps Geocoding API and included as well. If - * [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] cannot be geocoded, the filter - * falls back to keyword search. - * If the detected - * [LocationType][google.cloud.talent.v4beta1.Location.LocationType] is - * [LocationType.SUB_ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.Location.LocationType.SUB_ADMINISTRATIVE_AREA], - * [LocationType.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.Location.LocationType.ADMINISTRATIVE_AREA], - * or - * [LocationType.COUNTRY][google.cloud.talent.v4beta1.Location.LocationType.COUNTRY], - * the filter is performed against the detected location name (using exact - * text matching). Otherwise, the filter is performed against the detected - * center point and a radius of detected location radius + - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]. - * If [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address] is provided, - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is the additional radius on top of the - * radius of the location geocoded from [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address]. If - * [LocationFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] is provided, - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is the only radius that is used. - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is 10 by default. Note that the value - * of [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is 0 if it is unset, so the server - * does not differentiate [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] that is - * explicitly set to 0 and [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] that is not - * set. Which means that if [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is explicitly - * set to 0, the server will use the default value of - * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] which is 10. To work around this and - * effectively set [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] to 0, we recommend - * setting [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] to a very small decimal number - * (such as 0.00001). - * If [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is negative, an error is thrown. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - * @param \Google\Cloud\Talent\V4beta1\LocationFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocationFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\LocationFilter::class); - $this->location_filters = $arr; - - return $this; - } - - /** - * Job title filter specifies job titles of profiles to match on. - * If a job title isn't specified, profiles with any titles are retrieved. - * If multiple values are specified, profiles are retrieved with any of the - * specified job titles. - * If [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated] is specified, the result won't contain - * profiles with the job titles. - * For example, search for profiles with a job title "Product Manager". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getJobTitleFilters() - { - return $this->job_title_filters; - } - - /** - * Job title filter specifies job titles of profiles to match on. - * If a job title isn't specified, profiles with any titles are retrieved. - * If multiple values are specified, profiles are retrieved with any of the - * specified job titles. - * If [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated] is specified, the result won't contain - * profiles with the job titles. - * For example, search for profiles with a job title "Product Manager". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - * @param \Google\Cloud\Talent\V4beta1\JobTitleFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setJobTitleFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\JobTitleFilter::class); - $this->job_title_filters = $arr; - - return $this; - } - - /** - * Employer filter specifies employers of profiles to match on. - * If an employer filter isn't specified, profiles with any employers are - * retrieved. - * If multiple employer filters are specified, profiles with any matching - * employers are retrieved. - * If [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated] is specified, the result won't contain - * profiles that match the employers. - * For example, search for profiles that have working experience at "Google - * LLC". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEmployerFilters() - { - return $this->employer_filters; - } - - /** - * Employer filter specifies employers of profiles to match on. - * If an employer filter isn't specified, profiles with any employers are - * retrieved. - * If multiple employer filters are specified, profiles with any matching - * employers are retrieved. - * If [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated] is specified, the result won't contain - * profiles that match the employers. - * For example, search for profiles that have working experience at "Google - * LLC". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - * @param \Google\Cloud\Talent\V4beta1\EmployerFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEmployerFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\EmployerFilter::class); - $this->employer_filters = $arr; - - return $this; - } - - /** - * Education filter specifies education of profiles to match on. - * If an education filter isn't specified, profiles with any education are - * retrieved. - * If multiple education filters are specified, profiles that match any - * education filters are retrieved. - * If [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated] is specified, the result won't contain - * profiles that match the educations. - * For example, search for profiles with a master degree. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEducationFilters() - { - return $this->education_filters; - } - - /** - * Education filter specifies education of profiles to match on. - * If an education filter isn't specified, profiles with any education are - * retrieved. - * If multiple education filters are specified, profiles that match any - * education filters are retrieved. - * If [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated] is specified, the result won't contain - * profiles that match the educations. - * For example, search for profiles with a master degree. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - * @param \Google\Cloud\Talent\V4beta1\EducationFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEducationFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\EducationFilter::class); - $this->education_filters = $arr; - - return $this; - } - - /** - * Skill filter specifies skill of profiles to match on. - * If a skill filter isn't specified, profiles with any skills are retrieved. - * If multiple skill filters are specified, profiles that match any skill - * filters are retrieved. - * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated] is specified, the result won't contain profiles - * that match the skills. - * For example, search for profiles that have "Java" and "Python" in skill - * list. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSkillFilters() - { - return $this->skill_filters; - } - - /** - * Skill filter specifies skill of profiles to match on. - * If a skill filter isn't specified, profiles with any skills are retrieved. - * If multiple skill filters are specified, profiles that match any skill - * filters are retrieved. - * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated] is specified, the result won't contain profiles - * that match the skills. - * For example, search for profiles that have "Java" and "Python" in skill - * list. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - * @param \Google\Cloud\Talent\V4beta1\SkillFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSkillFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\SkillFilter::class); - $this->skill_filters = $arr; - - return $this; - } - - /** - * Work experience filter specifies the total working experience of profiles - * to match on. - * If a work experience filter isn't specified, profiles with any - * professional experience are retrieved. - * If multiple work experience filters are specified, profiles that match any - * work experience filters are retrieved. - * For example, search for profiles with 10 years of work experience. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWorkExperienceFilter() - { - return $this->work_experience_filter; - } - - /** - * Work experience filter specifies the total working experience of profiles - * to match on. - * If a work experience filter isn't specified, profiles with any - * professional experience are retrieved. - * If multiple work experience filters are specified, profiles that match any - * work experience filters are retrieved. - * For example, search for profiles with 10 years of work experience. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * @param \Google\Cloud\Talent\V4beta1\WorkExperienceFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWorkExperienceFilter($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\WorkExperienceFilter::class); - $this->work_experience_filter = $arr; - - return $this; - } - - /** - * Time filter specifies the create/update timestamp of the profiles to match - * on. - * For example, search for profiles created since "2018-1-1". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTimeFilters() - { - return $this->time_filters; - } - - /** - * Time filter specifies the create/update timestamp of the profiles to match - * on. - * For example, search for profiles created since "2018-1-1". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - * @param \Google\Cloud\Talent\V4beta1\TimeFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTimeFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\TimeFilter::class); - $this->time_filters = $arr; - - return $this; - } - - /** - * The hirable filter specifies the profile's hirable status to match on. - * - * Generated from protobuf field .google.protobuf.BoolValue hirable_filter = 9; - * @return \Google\Protobuf\BoolValue|null - */ - public function getHirableFilter() - { - return $this->hirable_filter; - } - - public function hasHirableFilter() - { - return isset($this->hirable_filter); - } - - public function clearHirableFilter() - { - unset($this->hirable_filter); - } - - /** - * Returns the unboxed value from getHirableFilter() - - * The hirable filter specifies the profile's hirable status to match on. - * - * Generated from protobuf field .google.protobuf.BoolValue hirable_filter = 9; - * @return bool|null - */ - public function getHirableFilterValue() - { - return $this->readWrapperValue("hirable_filter"); - } - - /** - * The hirable filter specifies the profile's hirable status to match on. - * - * Generated from protobuf field .google.protobuf.BoolValue hirable_filter = 9; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setHirableFilter($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->hirable_filter = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * The hirable filter specifies the profile's hirable status to match on. - * - * Generated from protobuf field .google.protobuf.BoolValue hirable_filter = 9; - * @param bool|null $var - * @return $this - */ - public function setHirableFilterValue($var) - { - $this->writeWrapperValue("hirable_filter", $var); - return $this;} - - /** - * The application date filters specify application date ranges to match on. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApplicationDateFilters() - { - return $this->application_date_filters; - } - - /** - * The application date filters specify application date ranges to match on. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * @param \Google\Cloud\Talent\V4beta1\ApplicationDateFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApplicationDateFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\ApplicationDateFilter::class); - $this->application_date_filters = $arr; - - return $this; - } - - /** - * The application outcome notes filters specify the notes for the outcome of - * the job application. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApplicationOutcomeNotesFilters() - { - return $this->application_outcome_notes_filters; - } - - /** - * The application outcome notes filters specify the notes for the outcome of - * the job application. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * @param \Google\Cloud\Talent\V4beta1\ApplicationOutcomeNotesFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApplicationOutcomeNotesFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\ApplicationOutcomeNotesFilter::class); - $this->application_outcome_notes_filters = $arr; - - return $this; - } - - /** - * The application job filters specify the job applied for in the application. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApplicationJobFilters() - { - return $this->application_job_filters; - } - - /** - * The application job filters specify the job applied for in the application. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * @param \Google\Cloud\Talent\V4beta1\ApplicationJobFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApplicationJobFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\ApplicationJobFilter::class); - $this->application_job_filters = $arr; - - return $this; - } - - /** - * This filter specifies a structured syntax to match against the - * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes] that are marked as `filterable`. - * The syntax for this expression is a subset of Google SQL syntax. - * String custom attributes: supported operators are =, != where the left of - * the operator is a custom field key and the right of the operator is a - * string (surrounded by quotes) value. - * Numeric custom attributes: Supported operators are '>', '<' or '=' - * operators where the left of the operator is a custom field key and the - * right of the operator is a numeric value. - * Supported functions are LOWER() to - * perform case insensitive match and EMPTY() to filter on the - * existence of a key. - * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of - * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be - * a maximum of 50 comparisons/functions in the expression. The expression - * must be < 2000 characters in length. - * Sample Query: - * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) - * - * Generated from protobuf field string custom_attribute_filter = 15; - * @return string - */ - public function getCustomAttributeFilter() - { - return $this->custom_attribute_filter; - } - - /** - * This filter specifies a structured syntax to match against the - * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes] that are marked as `filterable`. - * The syntax for this expression is a subset of Google SQL syntax. - * String custom attributes: supported operators are =, != where the left of - * the operator is a custom field key and the right of the operator is a - * string (surrounded by quotes) value. - * Numeric custom attributes: Supported operators are '>', '<' or '=' - * operators where the left of the operator is a custom field key and the - * right of the operator is a numeric value. - * Supported functions are LOWER() to - * perform case insensitive match and EMPTY() to filter on the - * existence of a key. - * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of - * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be - * a maximum of 50 comparisons/functions in the expression. The expression - * must be < 2000 characters in length. - * Sample Query: - * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) - * - * Generated from protobuf field string custom_attribute_filter = 15; - * @param string $var - * @return $this - */ - public function setCustomAttributeFilter($var) - { - GPBUtil::checkString($var, True); - $this->custom_attribute_filter = $var; - - return $this; - } - - /** - * Deprecated. Use availability_filters instead. - * The candidate availability filter which filters based on availability - * signals. - * Signal 1: Number of days since most recent job application. See - * [Availability.JobApplicationAvailabilitySignal][google.cloud.talent.v4beta1.Availability.JobApplicationAvailabilitySignal] for the details of this - * signal. - * Signal 2: Number of days since last profile update. See - * [Availability.ProfileUpdateAvailabilitySignal][google.cloud.talent.v4beta1.Availability.ProfileUpdateAvailabilitySignal] - * for the details of this signal. - * The candidate availability filter helps a recruiter understand if a - * specific candidate is likely to be actively seeking new job opportunities - * based on an aggregated set of signals. Specifically, the intent is NOT to - * indicate the candidate's potential qualification / interest / close ability - * for a specific job. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * @return \Google\Cloud\Talent\V4beta1\CandidateAvailabilityFilter|null - * @deprecated - */ - public function getCandidateAvailabilityFilter() - { - @trigger_error('candidate_availability_filter is deprecated.', E_USER_DEPRECATED); - return $this->candidate_availability_filter; - } - - public function hasCandidateAvailabilityFilter() - { - @trigger_error('candidate_availability_filter is deprecated.', E_USER_DEPRECATED); - return isset($this->candidate_availability_filter); - } - - public function clearCandidateAvailabilityFilter() - { - @trigger_error('candidate_availability_filter is deprecated.', E_USER_DEPRECATED); - unset($this->candidate_availability_filter); - } - - /** - * Deprecated. Use availability_filters instead. - * The candidate availability filter which filters based on availability - * signals. - * Signal 1: Number of days since most recent job application. See - * [Availability.JobApplicationAvailabilitySignal][google.cloud.talent.v4beta1.Availability.JobApplicationAvailabilitySignal] for the details of this - * signal. - * Signal 2: Number of days since last profile update. See - * [Availability.ProfileUpdateAvailabilitySignal][google.cloud.talent.v4beta1.Availability.ProfileUpdateAvailabilitySignal] - * for the details of this signal. - * The candidate availability filter helps a recruiter understand if a - * specific candidate is likely to be actively seeking new job opportunities - * based on an aggregated set of signals. Specifically, the intent is NOT to - * indicate the candidate's potential qualification / interest / close ability - * for a specific job. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * @param \Google\Cloud\Talent\V4beta1\CandidateAvailabilityFilter $var - * @return $this - * @deprecated - */ - public function setCandidateAvailabilityFilter($var) - { - @trigger_error('candidate_availability_filter is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\CandidateAvailabilityFilter::class); - $this->candidate_availability_filter = $var; - - return $this; - } - - /** - * The availability filter which filters based on - * [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals]. - * The availability filter helps a recruiter understand if a - * specific candidate is likely to be actively seeking new job opportunities - * based on an aggregated set of signals. Specifically, the intent is NOT to - * indicate the candidate's potential qualification / interest / close ability - * for a specific job. - * There can be at most one [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] per - * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type]. If there are multiple - * [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] for a [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type], - * an error is thrown. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAvailabilityFilters() - { - return $this->availability_filters; - } - - /** - * The availability filter which filters based on - * [Profile.availability_signals][google.cloud.talent.v4beta1.Profile.availability_signals]. - * The availability filter helps a recruiter understand if a - * specific candidate is likely to be actively seeking new job opportunities - * based on an aggregated set of signals. Specifically, the intent is NOT to - * indicate the candidate's potential qualification / interest / close ability - * for a specific job. - * There can be at most one [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] per - * [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type]. If there are multiple - * [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFilter] for a [signal_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type], - * an error is thrown. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * @param \Google\Cloud\Talent\V4beta1\AvailabilityFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAvailabilityFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\AvailabilityFilter::class); - $this->availability_filters = $arr; - - return $this; - } - - /** - * Person name filter specifies person name of profiles to match on. - * If multiple person name filters are specified, profiles that match any - * person name filters are retrieved. - * For example, search for profiles of candidates with name "John Smith". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPersonNameFilters() - { - return $this->person_name_filters; - } - - /** - * Person name filter specifies person name of profiles to match on. - * If multiple person name filters are specified, profiles that match any - * person name filters are retrieved. - * For example, search for profiles of candidates with name "John Smith". - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - * @param \Google\Cloud\Talent\V4beta1\PersonNameFilter[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPersonNameFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\PersonNameFilter::class); - $this->person_name_filters = $arr; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/ProfileServiceClient.php b/Talent/src/V4beta1/ProfileServiceClient.php deleted file mode 100644 index cfa1b9946c6..00000000000 --- a/Talent/src/V4beta1/ProfileServiceClient.php +++ /dev/null @@ -1,36 +0,0 @@ -_simpleRequest('/google.cloud.talent.v4beta1.ProfileService/ListProfiles', - $argument, - ['\Google\Cloud\Talent\V4beta1\ListProfilesResponse', 'decode'], - $metadata, $options); - } - - /** - * Creates and returns a new profile. - * @param \Google\Cloud\Talent\V4beta1\CreateProfileRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateProfile(\Google\Cloud\Talent\V4beta1\CreateProfileRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.talent.v4beta1.ProfileService/CreateProfile', - $argument, - ['\Google\Cloud\Talent\V4beta1\Profile', 'decode'], - $metadata, $options); - } - - /** - * Gets the specified profile. - * @param \Google\Cloud\Talent\V4beta1\GetProfileRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetProfile(\Google\Cloud\Talent\V4beta1\GetProfileRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.talent.v4beta1.ProfileService/GetProfile', - $argument, - ['\Google\Cloud\Talent\V4beta1\Profile', 'decode'], - $metadata, $options); - } - - /** - * Updates the specified profile and returns the updated result. - * @param \Google\Cloud\Talent\V4beta1\UpdateProfileRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateProfile(\Google\Cloud\Talent\V4beta1\UpdateProfileRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.talent.v4beta1.ProfileService/UpdateProfile', - $argument, - ['\Google\Cloud\Talent\V4beta1\Profile', 'decode'], - $metadata, $options); - } - - /** - * Deletes the specified profile. - * Prerequisite: The profile has no associated applications or assignments - * associated. - * @param \Google\Cloud\Talent\V4beta1\DeleteProfileRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteProfile(\Google\Cloud\Talent\V4beta1\DeleteProfileRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.talent.v4beta1.ProfileService/DeleteProfile', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Searches for profiles within a tenant. - * - * For example, search by raw queries "software engineer in Mountain View" or - * search by structured filters (location filter, education filter, etc.). - * - * See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more information. - * @param \Google\Cloud\Talent\V4beta1\SearchProfilesRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SearchProfiles(\Google\Cloud\Talent\V4beta1\SearchProfilesRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.talent.v4beta1.ProfileService/SearchProfiles', - $argument, - ['\Google\Cloud\Talent\V4beta1\SearchProfilesResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/Talent/src/V4beta1/Publication.php b/Talent/src/V4beta1/Publication.php deleted file mode 100644 index bf8e12f9950..00000000000 --- a/Talent/src/V4beta1/Publication.php +++ /dev/null @@ -1,381 +0,0 @@ -google.cloud.talent.v4beta1.Publication - */ -class Publication extends \Google\Protobuf\Internal\Message -{ - /** - * A list of author names. - * Number of characters allowed is 100. - * - * Generated from protobuf field repeated string authors = 1; - */ - private $authors; - /** - * The title of the publication. - * Number of characters allowed is 100. - * - * Generated from protobuf field string title = 2; - */ - private $title = ''; - /** - * The description of the publication. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 3; - */ - private $description = ''; - /** - * The journal name of the publication. - * Number of characters allowed is 100. - * - * Generated from protobuf field string journal = 4; - */ - private $journal = ''; - /** - * Volume number. - * Number of characters allowed is 100. - * - * Generated from protobuf field string volume = 5; - */ - private $volume = ''; - /** - * The publisher of the journal. - * Number of characters allowed is 100. - * - * Generated from protobuf field string publisher = 6; - */ - private $publisher = ''; - /** - * The publication date. - * - * Generated from protobuf field .google.type.Date publication_date = 7; - */ - private $publication_date = null; - /** - * The publication type. - * Number of characters allowed is 100. - * - * Generated from protobuf field string publication_type = 8; - */ - private $publication_type = ''; - /** - * ISBN number. - * Number of characters allowed is 100. - * - * Generated from protobuf field string isbn = 9; - */ - private $isbn = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $authors - * A list of author names. - * Number of characters allowed is 100. - * @type string $title - * The title of the publication. - * Number of characters allowed is 100. - * @type string $description - * The description of the publication. - * Number of characters allowed is 100,000. - * @type string $journal - * The journal name of the publication. - * Number of characters allowed is 100. - * @type string $volume - * Volume number. - * Number of characters allowed is 100. - * @type string $publisher - * The publisher of the journal. - * Number of characters allowed is 100. - * @type \Google\Type\Date $publication_date - * The publication date. - * @type string $publication_type - * The publication type. - * Number of characters allowed is 100. - * @type string $isbn - * ISBN number. - * Number of characters allowed is 100. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * A list of author names. - * Number of characters allowed is 100. - * - * Generated from protobuf field repeated string authors = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAuthors() - { - return $this->authors; - } - - /** - * A list of author names. - * Number of characters allowed is 100. - * - * Generated from protobuf field repeated string authors = 1; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAuthors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->authors = $arr; - - return $this; - } - - /** - * The title of the publication. - * Number of characters allowed is 100. - * - * Generated from protobuf field string title = 2; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * The title of the publication. - * Number of characters allowed is 100. - * - * Generated from protobuf field string title = 2; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The description of the publication. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the publication. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The journal name of the publication. - * Number of characters allowed is 100. - * - * Generated from protobuf field string journal = 4; - * @return string - */ - public function getJournal() - { - return $this->journal; - } - - /** - * The journal name of the publication. - * Number of characters allowed is 100. - * - * Generated from protobuf field string journal = 4; - * @param string $var - * @return $this - */ - public function setJournal($var) - { - GPBUtil::checkString($var, True); - $this->journal = $var; - - return $this; - } - - /** - * Volume number. - * Number of characters allowed is 100. - * - * Generated from protobuf field string volume = 5; - * @return string - */ - public function getVolume() - { - return $this->volume; - } - - /** - * Volume number. - * Number of characters allowed is 100. - * - * Generated from protobuf field string volume = 5; - * @param string $var - * @return $this - */ - public function setVolume($var) - { - GPBUtil::checkString($var, True); - $this->volume = $var; - - return $this; - } - - /** - * The publisher of the journal. - * Number of characters allowed is 100. - * - * Generated from protobuf field string publisher = 6; - * @return string - */ - public function getPublisher() - { - return $this->publisher; - } - - /** - * The publisher of the journal. - * Number of characters allowed is 100. - * - * Generated from protobuf field string publisher = 6; - * @param string $var - * @return $this - */ - public function setPublisher($var) - { - GPBUtil::checkString($var, True); - $this->publisher = $var; - - return $this; - } - - /** - * The publication date. - * - * Generated from protobuf field .google.type.Date publication_date = 7; - * @return \Google\Type\Date|null - */ - public function getPublicationDate() - { - return $this->publication_date; - } - - public function hasPublicationDate() - { - return isset($this->publication_date); - } - - public function clearPublicationDate() - { - unset($this->publication_date); - } - - /** - * The publication date. - * - * Generated from protobuf field .google.type.Date publication_date = 7; - * @param \Google\Type\Date $var - * @return $this - */ - public function setPublicationDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->publication_date = $var; - - return $this; - } - - /** - * The publication type. - * Number of characters allowed is 100. - * - * Generated from protobuf field string publication_type = 8; - * @return string - */ - public function getPublicationType() - { - return $this->publication_type; - } - - /** - * The publication type. - * Number of characters allowed is 100. - * - * Generated from protobuf field string publication_type = 8; - * @param string $var - * @return $this - */ - public function setPublicationType($var) - { - GPBUtil::checkString($var, True); - $this->publication_type = $var; - - return $this; - } - - /** - * ISBN number. - * Number of characters allowed is 100. - * - * Generated from protobuf field string isbn = 9; - * @return string - */ - public function getIsbn() - { - return $this->isbn; - } - - /** - * ISBN number. - * Number of characters allowed is 100. - * - * Generated from protobuf field string isbn = 9; - * @param string $var - * @return $this - */ - public function setIsbn($var) - { - GPBUtil::checkString($var, True); - $this->isbn = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Rating.php b/Talent/src/V4beta1/Rating.php deleted file mode 100644 index 157f7c6b03f..00000000000 --- a/Talent/src/V4beta1/Rating.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.talent.v4beta1.Rating - */ -class Rating extends \Google\Protobuf\Internal\Message -{ - /** - * Overall score. - * - * Generated from protobuf field double overall = 1; - */ - private $overall = 0.0; - /** - * The minimum value for the score. - * - * Generated from protobuf field double min = 2; - */ - private $min = 0.0; - /** - * The maximum value for the score. - * - * Generated from protobuf field double max = 3; - */ - private $max = 0.0; - /** - * The steps within the score (for example, interval = 1 max = 5 - * min = 1 indicates that the score can be 1, 2, 3, 4, or 5) - * - * Generated from protobuf field double interval = 4; - */ - private $interval = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $overall - * Overall score. - * @type float $min - * The minimum value for the score. - * @type float $max - * The maximum value for the score. - * @type float $interval - * The steps within the score (for example, interval = 1 max = 5 - * min = 1 indicates that the score can be 1, 2, 3, 4, or 5) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Overall score. - * - * Generated from protobuf field double overall = 1; - * @return float - */ - public function getOverall() - { - return $this->overall; - } - - /** - * Overall score. - * - * Generated from protobuf field double overall = 1; - * @param float $var - * @return $this - */ - public function setOverall($var) - { - GPBUtil::checkDouble($var); - $this->overall = $var; - - return $this; - } - - /** - * The minimum value for the score. - * - * Generated from protobuf field double min = 2; - * @return float - */ - public function getMin() - { - return $this->min; - } - - /** - * The minimum value for the score. - * - * Generated from protobuf field double min = 2; - * @param float $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkDouble($var); - $this->min = $var; - - return $this; - } - - /** - * The maximum value for the score. - * - * Generated from protobuf field double max = 3; - * @return float - */ - public function getMax() - { - return $this->max; - } - - /** - * The maximum value for the score. - * - * Generated from protobuf field double max = 3; - * @param float $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkDouble($var); - $this->max = $var; - - return $this; - } - - /** - * The steps within the score (for example, interval = 1 max = 5 - * min = 1 indicates that the score can be 1, 2, 3, 4, or 5) - * - * Generated from protobuf field double interval = 4; - * @return float - */ - public function getInterval() - { - return $this->interval; - } - - /** - * The steps within the score (for example, interval = 1 max = 5 - * min = 1 indicates that the score can be 1, 2, 3, 4, or 5) - * - * Generated from protobuf field double interval = 4; - * @param float $var - * @return $this - */ - public function setInterval($var) - { - GPBUtil::checkDouble($var); - $this->interval = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/RecruitingNote.php b/Talent/src/V4beta1/RecruitingNote.php deleted file mode 100644 index 25a85bca4dd..00000000000 --- a/Talent/src/V4beta1/RecruitingNote.php +++ /dev/null @@ -1,199 +0,0 @@ -google.cloud.talent.v4beta1.RecruitingNote - */ -class RecruitingNote extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. - * The content of note. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string note = 1; - */ - private $note = ''; - /** - * Optional. - * The person who wrote the notes. - * Number of characters allowed is 100. - * - * Generated from protobuf field string commenter = 2; - */ - private $commenter = ''; - /** - * Optional. - * The create date of the note. - * - * Generated from protobuf field .google.type.Date create_date = 3; - */ - private $create_date = null; - /** - * Optional. - * The note type. - * Number of characters allowed is 100. - * - * Generated from protobuf field string type = 4; - */ - private $type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $note - * Optional. - * The content of note. - * Number of characters allowed is 4,000. - * @type string $commenter - * Optional. - * The person who wrote the notes. - * Number of characters allowed is 100. - * @type \Google\Type\Date $create_date - * Optional. - * The create date of the note. - * @type string $type - * Optional. - * The note type. - * Number of characters allowed is 100. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * Optional. - * The content of note. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string note = 1; - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Optional. - * The content of note. - * Number of characters allowed is 4,000. - * - * Generated from protobuf field string note = 1; - * @param string $var - * @return $this - */ - public function setNote($var) - { - GPBUtil::checkString($var, True); - $this->note = $var; - - return $this; - } - - /** - * Optional. - * The person who wrote the notes. - * Number of characters allowed is 100. - * - * Generated from protobuf field string commenter = 2; - * @return string - */ - public function getCommenter() - { - return $this->commenter; - } - - /** - * Optional. - * The person who wrote the notes. - * Number of characters allowed is 100. - * - * Generated from protobuf field string commenter = 2; - * @param string $var - * @return $this - */ - public function setCommenter($var) - { - GPBUtil::checkString($var, True); - $this->commenter = $var; - - return $this; - } - - /** - * Optional. - * The create date of the note. - * - * Generated from protobuf field .google.type.Date create_date = 3; - * @return \Google\Type\Date - */ - public function getCreateDate() - { - return $this->create_date; - } - - /** - * Optional. - * The create date of the note. - * - * Generated from protobuf field .google.type.Date create_date = 3; - * @param \Google\Type\Date $var - * @return $this - */ - public function setCreateDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->create_date = $var; - - return $this; - } - - /** - * Optional. - * The note type. - * Number of characters allowed is 100. - * - * Generated from protobuf field string type = 4; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. - * The note type. - * Number of characters allowed is 100. - * - * Generated from protobuf field string type = 4; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Resume.php b/Talent/src/V4beta1/Resume.php deleted file mode 100644 index b8a9b9d4a80..00000000000 --- a/Talent/src/V4beta1/Resume.php +++ /dev/null @@ -1,133 +0,0 @@ -google.cloud.talent.v4beta1.Resume - */ -class Resume extends \Google\Protobuf\Internal\Message -{ - /** - * Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type] - * is [HRXML][google.cloud.talent.v4beta1.Resume.ResumeType.HRXML]. For example, the API parses this field and - * creates a profile - * with all structured fields populated. [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord], - * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], and so on. An error is thrown if this field cannot be - * parsed. - * Note that the use of the functionality offered by this field to extract - * data from resumes is an Alpha feature and as such is not covered by any - * SLA. - * - * Generated from protobuf field string structured_resume = 1; - */ - private $structured_resume = ''; - /** - * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume]. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - */ - private $resume_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $structured_resume - * Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type] - * is [HRXML][google.cloud.talent.v4beta1.Resume.ResumeType.HRXML]. For example, the API parses this field and - * creates a profile - * with all structured fields populated. [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord], - * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], and so on. An error is thrown if this field cannot be - * parsed. - * Note that the use of the functionality offered by this field to extract - * data from resumes is an Alpha feature and as such is not covered by any - * SLA. - * @type int $resume_type - * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce(); - parent::__construct($data); - } - - /** - * Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type] - * is [HRXML][google.cloud.talent.v4beta1.Resume.ResumeType.HRXML]. For example, the API parses this field and - * creates a profile - * with all structured fields populated. [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord], - * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], and so on. An error is thrown if this field cannot be - * parsed. - * Note that the use of the functionality offered by this field to extract - * data from resumes is an Alpha feature and as such is not covered by any - * SLA. - * - * Generated from protobuf field string structured_resume = 1; - * @return string - */ - public function getStructuredResume() - { - return $this->structured_resume; - } - - /** - * Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type] - * is [HRXML][google.cloud.talent.v4beta1.Resume.ResumeType.HRXML]. For example, the API parses this field and - * creates a profile - * with all structured fields populated. [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord], - * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], and so on. An error is thrown if this field cannot be - * parsed. - * Note that the use of the functionality offered by this field to extract - * data from resumes is an Alpha feature and as such is not covered by any - * SLA. - * - * Generated from protobuf field string structured_resume = 1; - * @param string $var - * @return $this - */ - public function setStructuredResume($var) - { - GPBUtil::checkString($var, True); - $this->structured_resume = $var; - - return $this; - } - - /** - * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume]. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - * @return int - */ - public function getResumeType() - { - return $this->resume_type; - } - - /** - * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume]. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - * @param int $var - * @return $this - */ - public function setResumeType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\Resume\ResumeType::class); - $this->resume_type = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Resume/ResumeType.php b/Talent/src/V4beta1/Resume/ResumeType.php deleted file mode 100644 index 565bc218063..00000000000 --- a/Talent/src/V4beta1/Resume/ResumeType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.talent.v4beta1.Resume.ResumeType - */ -class ResumeType -{ - /** - * Default value. - * - * Generated from protobuf enum RESUME_TYPE_UNSPECIFIED = 0; - */ - const RESUME_TYPE_UNSPECIFIED = 0; - /** - * The profile contents in HR-XML format. - * See https://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more - * information about Human Resources XML. - * - * Generated from protobuf enum HRXML = 1; - */ - const HRXML = 1; - /** - * Resume type not specified. - * - * Generated from protobuf enum OTHER_RESUME_TYPE = 2; - */ - const OTHER_RESUME_TYPE = 2; - - private static $valueToName = [ - self::RESUME_TYPE_UNSPECIFIED => 'RESUME_TYPE_UNSPECIFIED', - self::HRXML => 'HRXML', - self::OTHER_RESUME_TYPE => 'OTHER_RESUME_TYPE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - - diff --git a/Talent/src/V4beta1/ResumeServiceClient.php b/Talent/src/V4beta1/ResumeServiceClient.php deleted file mode 100644 index e0a299838ff..00000000000 --- a/Talent/src/V4beta1/ResumeServiceClient.php +++ /dev/null @@ -1,38 +0,0 @@ -_simpleRequest('/google.cloud.talent.v4beta1.ResumeService/ParseResume', - $argument, - ['\Google\Cloud\Talent\V4beta1\ParseResumeResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/Talent/src/V4beta1/SearchJobsRequest.php b/Talent/src/V4beta1/SearchJobsRequest.php index 196c4504762..64fe2d6aff5 100644 --- a/Talent/src/V4beta1/SearchJobsRequest.php +++ b/Talent/src/V4beta1/SearchJobsRequest.php @@ -55,17 +55,12 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message */ private $enable_broadening = false; /** - * Controls if the search job request requires the return of a precise - * count of the first 300 results. Setting this to `true` ensures - * consistency in the number of results per page. Best practice is to set this - * value to true if a client allows users to jump directly to a - * non-sequential search results page. - * Enabling this flag may adversely impact performance. - * Defaults to false. + * This field is deprecated. * - * Generated from protobuf field bool require_precise_result_size = 6; + * Generated from protobuf field bool require_precise_result_size = 6 [deprecated = true]; + * @deprecated */ - private $require_precise_result_size = false; + protected $require_precise_result_size = false; /** * An expression specifies a histogram request against matching jobs. * Expression syntax is an aggregation function call with histogram facets and @@ -75,6 +70,7 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message * for each distinct attribute value. * * `count(numeric_histogram_facet, list of buckets)`: Count the number of * matching entities within each bucket. + * A maximum of 200 histogram buckets are supported. * Data types: * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. * * String: string like "any string with backslash escape for quote(\")." @@ -94,6 +90,9 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message * "FULL_TIME", "PART_TIME". * * company_size: histogram by [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, "SMALL", * "MEDIUM", "BIG". + * * publish_time_in_day: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * in days. + * Must specify list of numeric buckets in spec. * * publish_time_in_month: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] * in months. * Must specify list of numeric buckets in spec. @@ -145,7 +144,7 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message * bucket(100000, MAX)])` * * `count(string_custom_attribute["some-string-custom-attribute"])` * * `count(numeric_custom_attribute["some-numeric-custom-attribute"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])` + * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])` * * Generated from protobuf field repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; */ @@ -260,6 +259,12 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message */ private $custom_ranking_info = null; /** + * This field is deprecated. Please use + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] going forward. + * To migrate, disable_keyword_match set to false maps to + * [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL], and disable_keyword_match set to + * true maps to [KeywordMatchMode.KEYWORD_MATCH_DISABLED][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_DISABLED]. If + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] is set, this field is ignored. * Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4beta1.Job.title], * [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When disable keyword match is turned off, a @@ -280,6 +285,14 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool disable_keyword_match = 16; */ private $disable_keyword_match = false; + /** + * Controls what keyword match options to use. + * Defaults to [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] if no value + * is specified. + * + * Generated from protobuf field .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + */ + private $keyword_match_mode = 0; /** * Constructor. @@ -307,13 +320,7 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message * list. * Defaults to false. * @type bool $require_precise_result_size - * Controls if the search job request requires the return of a precise - * count of the first 300 results. Setting this to `true` ensures - * consistency in the number of results per page. Best practice is to set this - * value to true if a client allows users to jump directly to a - * non-sequential search results page. - * Enabling this flag may adversely impact performance. - * Defaults to false. + * This field is deprecated. * @type \Google\Cloud\Talent\V4beta1\HistogramQuery[]|\Google\Protobuf\Internal\RepeatedField $histogram_queries * An expression specifies a histogram request against matching jobs. * Expression syntax is an aggregation function call with histogram facets and @@ -323,6 +330,7 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message * for each distinct attribute value. * * `count(numeric_histogram_facet, list of buckets)`: Count the number of * matching entities within each bucket. + * A maximum of 200 histogram buckets are supported. * Data types: * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. * * String: string like "any string with backslash escape for quote(\")." @@ -342,6 +350,9 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message * "FULL_TIME", "PART_TIME". * * company_size: histogram by [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, "SMALL", * "MEDIUM", "BIG". + * * publish_time_in_day: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * in days. + * Must specify list of numeric buckets in spec. * * publish_time_in_month: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] * in months. * Must specify list of numeric buckets in spec. @@ -393,7 +404,7 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message * bucket(100000, MAX)])` * * `count(string_custom_attribute["some-string-custom-attribute"])` * * `count(numeric_custom_attribute["some-numeric-custom-attribute"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])` + * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])` * @type int $job_view * The desired job attributes returned for jobs in the search response. * Defaults to [JobView.JOB_VIEW_SMALL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_SMALL] if no value is specified. @@ -476,6 +487,12 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message * Controls over how job documents get ranked on top of existing relevance * score (determined by API algorithm). * @type bool $disable_keyword_match + * This field is deprecated. Please use + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] going forward. + * To migrate, disable_keyword_match set to false maps to + * [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL], and disable_keyword_match set to + * true maps to [KeywordMatchMode.KEYWORD_MATCH_DISABLED][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_DISABLED]. If + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] is set, this field is ignored. * Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4beta1.Job.title], * [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When disable keyword match is turned off, a @@ -492,6 +509,10 @@ class SearchJobsRequest extends \Google\Protobuf\Internal\Message * needed. Enabling keyword match improves recall of subsequent search * requests. * Defaults to false. + * @type int $keyword_match_mode + * Controls what keyword match options to use. + * Defaults to [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] if no value + * is specified. * } */ public function __construct($data = NULL) { @@ -668,37 +689,29 @@ public function setEnableBroadening($var) } /** - * Controls if the search job request requires the return of a precise - * count of the first 300 results. Setting this to `true` ensures - * consistency in the number of results per page. Best practice is to set this - * value to true if a client allows users to jump directly to a - * non-sequential search results page. - * Enabling this flag may adversely impact performance. - * Defaults to false. + * This field is deprecated. * - * Generated from protobuf field bool require_precise_result_size = 6; + * Generated from protobuf field bool require_precise_result_size = 6 [deprecated = true]; * @return bool + * @deprecated */ public function getRequirePreciseResultSize() { + @trigger_error('require_precise_result_size is deprecated.', E_USER_DEPRECATED); return $this->require_precise_result_size; } /** - * Controls if the search job request requires the return of a precise - * count of the first 300 results. Setting this to `true` ensures - * consistency in the number of results per page. Best practice is to set this - * value to true if a client allows users to jump directly to a - * non-sequential search results page. - * Enabling this flag may adversely impact performance. - * Defaults to false. + * This field is deprecated. * - * Generated from protobuf field bool require_precise_result_size = 6; + * Generated from protobuf field bool require_precise_result_size = 6 [deprecated = true]; * @param bool $var * @return $this + * @deprecated */ public function setRequirePreciseResultSize($var) { + @trigger_error('require_precise_result_size is deprecated.', E_USER_DEPRECATED); GPBUtil::checkBool($var); $this->require_precise_result_size = $var; @@ -714,6 +727,7 @@ public function setRequirePreciseResultSize($var) * for each distinct attribute value. * * `count(numeric_histogram_facet, list of buckets)`: Count the number of * matching entities within each bucket. + * A maximum of 200 histogram buckets are supported. * Data types: * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. * * String: string like "any string with backslash escape for quote(\")." @@ -733,6 +747,9 @@ public function setRequirePreciseResultSize($var) * "FULL_TIME", "PART_TIME". * * company_size: histogram by [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, "SMALL", * "MEDIUM", "BIG". + * * publish_time_in_day: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * in days. + * Must specify list of numeric buckets in spec. * * publish_time_in_month: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] * in months. * Must specify list of numeric buckets in spec. @@ -784,7 +801,7 @@ public function setRequirePreciseResultSize($var) * bucket(100000, MAX)])` * * `count(string_custom_attribute["some-string-custom-attribute"])` * * `count(numeric_custom_attribute["some-numeric-custom-attribute"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])` + * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])` * * Generated from protobuf field repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; * @return \Google\Protobuf\Internal\RepeatedField @@ -803,6 +820,7 @@ public function getHistogramQueries() * for each distinct attribute value. * * `count(numeric_histogram_facet, list of buckets)`: Count the number of * matching entities within each bucket. + * A maximum of 200 histogram buckets are supported. * Data types: * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. * * String: string like "any string with backslash escape for quote(\")." @@ -822,6 +840,9 @@ public function getHistogramQueries() * "FULL_TIME", "PART_TIME". * * company_size: histogram by [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, "SMALL", * "MEDIUM", "BIG". + * * publish_time_in_day: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * in days. + * Must specify list of numeric buckets in spec. * * publish_time_in_month: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] * in months. * Must specify list of numeric buckets in spec. @@ -873,7 +894,7 @@ public function getHistogramQueries() * bucket(100000, MAX)])` * * `count(string_custom_attribute["some-string-custom-attribute"])` * * `count(numeric_custom_attribute["some-numeric-custom-attribute"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])` + * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])` * * Generated from protobuf field repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; * @param \Google\Cloud\Talent\V4beta1\HistogramQuery[]|\Google\Protobuf\Internal\RepeatedField $var @@ -1214,6 +1235,12 @@ public function setCustomRankingInfo($var) } /** + * This field is deprecated. Please use + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] going forward. + * To migrate, disable_keyword_match set to false maps to + * [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL], and disable_keyword_match set to + * true maps to [KeywordMatchMode.KEYWORD_MATCH_DISABLED][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_DISABLED]. If + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] is set, this field is ignored. * Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4beta1.Job.title], * [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When disable keyword match is turned off, a @@ -1240,6 +1267,12 @@ public function getDisableKeywordMatch() } /** + * This field is deprecated. Please use + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] going forward. + * To migrate, disable_keyword_match set to false maps to + * [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL], and disable_keyword_match set to + * true maps to [KeywordMatchMode.KEYWORD_MATCH_DISABLED][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_DISABLED]. If + * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4beta1.SearchJobsRequest.keyword_match_mode] is set, this field is ignored. * Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4beta1.Job.title], * [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When disable keyword match is turned off, a @@ -1269,5 +1302,35 @@ public function setDisableKeywordMatch($var) return $this; } + /** + * Controls what keyword match options to use. + * Defaults to [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] if no value + * is specified. + * + * Generated from protobuf field .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + * @return int + */ + public function getKeywordMatchMode() + { + return $this->keyword_match_mode; + } + + /** + * Controls what keyword match options to use. + * Defaults to [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] if no value + * is specified. + * + * Generated from protobuf field .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + * @param int $var + * @return $this + */ + public function setKeywordMatchMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\SearchJobsRequest\KeywordMatchMode::class); + $this->keyword_match_mode = $var; + + return $this; + } + } diff --git a/Talent/src/V4beta1/SearchJobsRequest/CustomRankingInfo.php b/Talent/src/V4beta1/SearchJobsRequest/CustomRankingInfo.php index 55c03452a07..a402ce6c537 100644 --- a/Talent/src/V4beta1/SearchJobsRequest/CustomRankingInfo.php +++ b/Talent/src/V4beta1/SearchJobsRequest/CustomRankingInfo.php @@ -34,7 +34,7 @@ class CustomRankingInfo extends \Google\Protobuf\Internal\Message * the operator is either a numeric [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] key, * integer/double value or an expression that can be evaluated to a number. * Parenthesis are supported to adjust calculation precedence. The - * expression must be < 100 characters in length. + * expression must be < 200 characters in length. * The expression is considered invalid for a job if the expression * references custom attributes that are not populated on the job or if the * expression results in a divide by zero. If an expression is invalid for a @@ -67,7 +67,7 @@ class CustomRankingInfo extends \Google\Protobuf\Internal\Message * the operator is either a numeric [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] key, * integer/double value or an expression that can be evaluated to a number. * Parenthesis are supported to adjust calculation precedence. The - * expression must be < 100 characters in length. + * expression must be < 200 characters in length. * The expression is considered invalid for a job if the expression * references custom attributes that are not populated on the job or if the * expression results in a divide by zero. If an expression is invalid for a @@ -123,7 +123,7 @@ public function setImportanceLevel($var) * the operator is either a numeric [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] key, * integer/double value or an expression that can be evaluated to a number. * Parenthesis are supported to adjust calculation precedence. The - * expression must be < 100 characters in length. + * expression must be < 200 characters in length. * The expression is considered invalid for a job if the expression * references custom attributes that are not populated on the job or if the * expression results in a divide by zero. If an expression is invalid for a @@ -149,7 +149,7 @@ public function getRankingExpression() * the operator is either a numeric [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] key, * integer/double value or an expression that can be evaluated to a number. * Parenthesis are supported to adjust calculation precedence. The - * expression must be < 100 characters in length. + * expression must be < 200 characters in length. * The expression is considered invalid for a job if the expression * references custom attributes that are not populated on the job or if the * expression results in a divide by zero. If an expression is invalid for a diff --git a/Talent/src/V4beta1/SearchJobsRequest/KeywordMatchMode.php b/Talent/src/V4beta1/SearchJobsRequest/KeywordMatchMode.php new file mode 100644 index 00000000000..83d8316ed8c --- /dev/null +++ b/Talent/src/V4beta1/SearchJobsRequest/KeywordMatchMode.php @@ -0,0 +1,86 @@ +google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode + */ +class KeywordMatchMode +{ + /** + * The keyword match option isn't specified. Defaults to + * [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] behavior. + * + * Generated from protobuf enum KEYWORD_MATCH_MODE_UNSPECIFIED = 0; + */ + const KEYWORD_MATCH_MODE_UNSPECIFIED = 0; + /** + * Disables keyword matching. + * + * Generated from protobuf enum KEYWORD_MATCH_DISABLED = 1; + */ + const KEYWORD_MATCH_DISABLED = 1; + /** + * Enable keyword matching over [Job.title][google.cloud.talent.v4beta1.Job.title], + * [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], + * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications], and keyword searchable [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] + * fields. + * + * Generated from protobuf enum KEYWORD_MATCH_ALL = 2; + */ + const KEYWORD_MATCH_ALL = 2; + /** + * Only enable keyword matching over [Job.title][google.cloud.talent.v4beta1.Job.title]. + * + * Generated from protobuf enum KEYWORD_MATCH_TITLE_ONLY = 3; + */ + const KEYWORD_MATCH_TITLE_ONLY = 3; + + private static $valueToName = [ + self::KEYWORD_MATCH_MODE_UNSPECIFIED => 'KEYWORD_MATCH_MODE_UNSPECIFIED', + self::KEYWORD_MATCH_DISABLED => 'KEYWORD_MATCH_DISABLED', + self::KEYWORD_MATCH_ALL => 'KEYWORD_MATCH_ALL', + self::KEYWORD_MATCH_TITLE_ONLY => 'KEYWORD_MATCH_TITLE_ONLY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Talent/src/V4beta1/SearchJobsResponse.php b/Talent/src/V4beta1/SearchJobsResponse.php index f9f39542d4c..dea83722097 100644 --- a/Talent/src/V4beta1/SearchJobsResponse.php +++ b/Talent/src/V4beta1/SearchJobsResponse.php @@ -46,15 +46,13 @@ class SearchJobsResponse extends \Google\Protobuf\Internal\Message /** * An estimation of the number of jobs that match the specified query. * This number isn't guaranteed to be accurate. For accurate results, - * see [SearchJobsRequest.require_precise_result_size][google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size]. + * see [SearchJobsResponse.total_size][google.cloud.talent.v4beta1.SearchJobsResponse.total_size]. * * Generated from protobuf field int32 estimated_total_size = 5; */ private $estimated_total_size = 0; /** - * The precise result count, which is available only if the client set - * [SearchJobsRequest.require_precise_result_size][google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size] to `true`, or if the - * response is the last page of results. Otherwise, the value is `-1`. + * The precise result count with limit 100,000. * * Generated from protobuf field int32 total_size = 6; */ @@ -106,11 +104,9 @@ class SearchJobsResponse extends \Google\Protobuf\Internal\Message * @type int $estimated_total_size * An estimation of the number of jobs that match the specified query. * This number isn't guaranteed to be accurate. For accurate results, - * see [SearchJobsRequest.require_precise_result_size][google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size]. + * see [SearchJobsResponse.total_size][google.cloud.talent.v4beta1.SearchJobsResponse.total_size]. * @type int $total_size - * The precise result count, which is available only if the client set - * [SearchJobsRequest.require_precise_result_size][google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size] to `true`, or if the - * response is the last page of results. Otherwise, the value is `-1`. + * The precise result count with limit 100,000. * @type \Google\Cloud\Talent\V4beta1\ResponseMetadata $metadata * Additional information for the API invocation, such as the request * tracking id. @@ -246,7 +242,7 @@ public function setLocationFilters($var) /** * An estimation of the number of jobs that match the specified query. * This number isn't guaranteed to be accurate. For accurate results, - * see [SearchJobsRequest.require_precise_result_size][google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size]. + * see [SearchJobsResponse.total_size][google.cloud.talent.v4beta1.SearchJobsResponse.total_size]. * * Generated from protobuf field int32 estimated_total_size = 5; * @return int @@ -259,7 +255,7 @@ public function getEstimatedTotalSize() /** * An estimation of the number of jobs that match the specified query. * This number isn't guaranteed to be accurate. For accurate results, - * see [SearchJobsRequest.require_precise_result_size][google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size]. + * see [SearchJobsResponse.total_size][google.cloud.talent.v4beta1.SearchJobsResponse.total_size]. * * Generated from protobuf field int32 estimated_total_size = 5; * @param int $var @@ -274,9 +270,7 @@ public function setEstimatedTotalSize($var) } /** - * The precise result count, which is available only if the client set - * [SearchJobsRequest.require_precise_result_size][google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size] to `true`, or if the - * response is the last page of results. Otherwise, the value is `-1`. + * The precise result count with limit 100,000. * * Generated from protobuf field int32 total_size = 6; * @return int @@ -287,9 +281,7 @@ public function getTotalSize() } /** - * The precise result count, which is available only if the client set - * [SearchJobsRequest.require_precise_result_size][google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size] to `true`, or if the - * response is the last page of results. Otherwise, the value is `-1`. + * The precise result count with limit 100,000. * * Generated from protobuf field int32 total_size = 6; * @param int $var diff --git a/Talent/src/V4beta1/SearchProfilesRequest.php b/Talent/src/V4beta1/SearchProfilesRequest.php deleted file mode 100644 index 7d2c371b657..00000000000 --- a/Talent/src/V4beta1/SearchProfilesRequest.php +++ /dev/null @@ -1,957 +0,0 @@ -google.cloud.talent.v4beta1.SearchProfilesRequest - */ -class SearchProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the tenant to search within. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $parent = ''; - /** - * Required. The meta information collected about the profile search user. This is used - * to improve the search quality of the service. These values are provided by - * users, and must be precise and consistent. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $request_metadata = null; - /** - * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - */ - private $profile_query = null; - /** - * A limit on the number of profiles returned in the search results. - * A value above the default value 10 can increase search response time. - * The maximum value allowed is 100. Otherwise an error is thrown. - * - * Generated from protobuf field int32 page_size = 4; - */ - private $page_size = 0; - /** - * The pageToken, similar to offset enables users of the API to paginate - * through the search results. To retrieve the first page of results, set the - * pageToken to empty. The search response includes a - * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token] field that can be - * used to populate the pageToken field for the next page of results. Using - * pageToken instead of offset increases the performance of the API, - * especially compared to larger offset values. - * - * Generated from protobuf field string page_token = 5; - */ - private $page_token = ''; - /** - * An integer that specifies the current offset (that is, starting result) in - * search results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] is unset. - * The maximum allowed value is 5000. Otherwise an error is thrown. - * For example, 0 means to search from the first profile, and 10 means to - * search from the 11th profile. This can be used for pagination, for example - * pageSize = 10 and offset = 10 means to search from the second page. - * - * Generated from protobuf field int32 offset = 6; - */ - private $offset = 0; - /** - * This flag controls the spell-check feature. If `false`, the - * service attempts to correct a misspelled query. - * For example, "enginee" is corrected to "engineer". - * - * Generated from protobuf field bool disable_spell_check = 7; - */ - private $disable_spell_check = false; - /** - * The criteria that determines how search results are sorted. - * Defaults is "relevance desc" if no value is specified. - * Supported options are: - * * "relevance desc": By descending relevance, as determined by the API - * algorithms. - * * "update_date desc": Sort by [Profile.update_time][google.cloud.talent.v4beta1.Profile.update_time] in descending order - * (recently updated profiles first). - * * "create_date desc": Sort by [Profile.create_time][google.cloud.talent.v4beta1.Profile.create_time] in descending order - * (recently created profiles first). - * * "first_name": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] in - * ascending order. - * * "first_name desc": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] - * in descending order. - * * "last_name": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] in - * ascending order. - * * "last_name desc": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] - * in ascending order. - * - * Generated from protobuf field string order_by = 8; - */ - private $order_by = ''; - /** - * When sort by field is based on alphabetical order, sort values case - * sensitively (based on ASCII) when the value is set to true. Default value - * is case in-sensitive sort (false). - * - * Generated from protobuf field bool case_sensitive_sort = 9; - */ - private $case_sensitive_sort = false; - /** - * A list of expressions specifies histogram requests against matching - * profiles for [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. - * The expression syntax looks like a function definition with parameters. - * Function syntax: function_name(histogram_facet[, list of buckets]) - * Data types: - * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. - * * String: string like "any string with backslash escape for quote(\")." - * * Number: whole number and floating point number like 10, -1 and -0.01. - * * List: list of elements with comma(,) separator surrounded by square - * brackets. For example, [1, 2, 3] and ["one", "two", "three"]. - * Built-in constants: - * * MIN (minimum number similar to java Double.MIN_VALUE) - * * MAX (maximum number similar to java Double.MAX_VALUE) - * Built-in functions: - * * bucket(start, end[, label]) - * Bucket build-in function creates a bucket with range of [start, end). Note - * that the end is exclusive. - * For example, bucket(1, MAX, "positive number") or bucket(1, 10). - * Histogram Facets: - * * admin1: Admin1 is a global placeholder for referring to state, province, - * or the particular term a country uses to define the geographic structure - * below the country level. Examples include states codes such as "CA", "IL", - * "NY", and provinces, such as "BC". - * * locality: Locality is a global placeholder for referring to city, town, - * or the particular term a country uses to define the geographic structure - * below the admin1 level. Examples include city names such as - * "Mountain View" and "New York". - * * extended_locality: Extended locality is concatenated version of admin1 - * and locality with comma separator. For example, "Mountain View, CA" and - * "New York, NY". - * * postal_code: Postal code of profile which follows locale code. - * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US, - * JP, GB. - * * job_title: Normalized job titles specified in EmploymentHistory. - * * company_name: Normalized company name of profiles to match on. - * * institution: The school name. For example, "MIT", - * "University of California, Berkeley" - * * degree: Highest education degree in ISCED code. Each value in degree - * covers a specific level of education, without any expansion to upper nor - * lower levels of education degree. - * * experience_in_months: experience in months. 0 means 0 month to 1 month - * (exclusive). - * * application_date: The application date specifies application start dates. - * See [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] for more details. - * * application_outcome_notes: The application outcome reason specifies the - * reasons behind the outcome of the job application. - * See [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] for more details. - * * application_job_title: The application job title specifies the job - * applied for in the application. - * See [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter] for more details. - * * hirable_status: Hirable status specifies the profile's hirable status. - * * string_custom_attribute: String custom attributes. Values can be accessed - * via square bracket notation like string_custom_attribute["key1"]. - * * numeric_custom_attribute: Numeric custom attributes. Values can be - * accessed via square bracket notation like numeric_custom_attribute["key1"]. - * Example expressions: - * * count(admin1) - * * count(experience_in_months, [bucket(0, 12, "1 year"), - * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")]) - * * count(string_custom_attribute["assigned_recruiter"]) - * * count(numeric_custom_attribute["favorite_number"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")]) - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - private $histogram_queries; - /** - * An id that uniquely identifies the result set of a - * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call. The id should be - * retrieved from the - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] message returned from a previous - * invocation of [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles]. - * A result set is an ordered list of search results. - * If this field is not set, a new result set is computed based on the - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query]. A new [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] is returned as a handle to - * access this result set. - * If this field is set, the service will ignore the resource and - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query] values, and simply retrieve a page of results from the - * corresponding result set. In this case, one and only one of [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] - * or [offset][google.cloud.talent.v4beta1.SearchProfilesRequest.offset] must be set. - * A typical use case is to invoke [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] without this - * field, then use the resulting [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] in - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] to page through the results. - * - * Generated from protobuf field string result_set_id = 12; - */ - private $result_set_id = ''; - /** - * This flag is used to indicate whether the service will attempt to - * understand synonyms and terms related to the search query or treat the - * query "as is" when it generates a set of results. By default this flag is - * set to false, thus allowing expanded results to also be returned. For - * example a search for "software engineer" might also return candidates who - * have experience in jobs similar to software engineer positions. By setting - * this flag to true, the service will only attempt to deliver candidates has - * software engineer in his/her global fields by treating "software engineer" - * as a keyword. - * It is recommended to provide a feature in the UI (such as a checkbox) to - * allow recruiters to set this flag to true if they intend to search for - * longer boolean strings. - * - * Generated from protobuf field bool strict_keywords_search = 13; - */ - private $strict_keywords_search = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the tenant to search within. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * @type \Google\Cloud\Talent\V4beta1\RequestMetadata $request_metadata - * Required. The meta information collected about the profile search user. This is used - * to improve the search quality of the service. These values are provided by - * users, and must be precise and consistent. - * @type \Google\Cloud\Talent\V4beta1\ProfileQuery $profile_query - * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. - * @type int $page_size - * A limit on the number of profiles returned in the search results. - * A value above the default value 10 can increase search response time. - * The maximum value allowed is 100. Otherwise an error is thrown. - * @type string $page_token - * The pageToken, similar to offset enables users of the API to paginate - * through the search results. To retrieve the first page of results, set the - * pageToken to empty. The search response includes a - * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token] field that can be - * used to populate the pageToken field for the next page of results. Using - * pageToken instead of offset increases the performance of the API, - * especially compared to larger offset values. - * @type int $offset - * An integer that specifies the current offset (that is, starting result) in - * search results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] is unset. - * The maximum allowed value is 5000. Otherwise an error is thrown. - * For example, 0 means to search from the first profile, and 10 means to - * search from the 11th profile. This can be used for pagination, for example - * pageSize = 10 and offset = 10 means to search from the second page. - * @type bool $disable_spell_check - * This flag controls the spell-check feature. If `false`, the - * service attempts to correct a misspelled query. - * For example, "enginee" is corrected to "engineer". - * @type string $order_by - * The criteria that determines how search results are sorted. - * Defaults is "relevance desc" if no value is specified. - * Supported options are: - * * "relevance desc": By descending relevance, as determined by the API - * algorithms. - * * "update_date desc": Sort by [Profile.update_time][google.cloud.talent.v4beta1.Profile.update_time] in descending order - * (recently updated profiles first). - * * "create_date desc": Sort by [Profile.create_time][google.cloud.talent.v4beta1.Profile.create_time] in descending order - * (recently created profiles first). - * * "first_name": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] in - * ascending order. - * * "first_name desc": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] - * in descending order. - * * "last_name": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] in - * ascending order. - * * "last_name desc": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] - * in ascending order. - * @type bool $case_sensitive_sort - * When sort by field is based on alphabetical order, sort values case - * sensitively (based on ASCII) when the value is set to true. Default value - * is case in-sensitive sort (false). - * @type \Google\Cloud\Talent\V4beta1\HistogramQuery[]|\Google\Protobuf\Internal\RepeatedField $histogram_queries - * A list of expressions specifies histogram requests against matching - * profiles for [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. - * The expression syntax looks like a function definition with parameters. - * Function syntax: function_name(histogram_facet[, list of buckets]) - * Data types: - * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. - * * String: string like "any string with backslash escape for quote(\")." - * * Number: whole number and floating point number like 10, -1 and -0.01. - * * List: list of elements with comma(,) separator surrounded by square - * brackets. For example, [1, 2, 3] and ["one", "two", "three"]. - * Built-in constants: - * * MIN (minimum number similar to java Double.MIN_VALUE) - * * MAX (maximum number similar to java Double.MAX_VALUE) - * Built-in functions: - * * bucket(start, end[, label]) - * Bucket build-in function creates a bucket with range of [start, end). Note - * that the end is exclusive. - * For example, bucket(1, MAX, "positive number") or bucket(1, 10). - * Histogram Facets: - * * admin1: Admin1 is a global placeholder for referring to state, province, - * or the particular term a country uses to define the geographic structure - * below the country level. Examples include states codes such as "CA", "IL", - * "NY", and provinces, such as "BC". - * * locality: Locality is a global placeholder for referring to city, town, - * or the particular term a country uses to define the geographic structure - * below the admin1 level. Examples include city names such as - * "Mountain View" and "New York". - * * extended_locality: Extended locality is concatenated version of admin1 - * and locality with comma separator. For example, "Mountain View, CA" and - * "New York, NY". - * * postal_code: Postal code of profile which follows locale code. - * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US, - * JP, GB. - * * job_title: Normalized job titles specified in EmploymentHistory. - * * company_name: Normalized company name of profiles to match on. - * * institution: The school name. For example, "MIT", - * "University of California, Berkeley" - * * degree: Highest education degree in ISCED code. Each value in degree - * covers a specific level of education, without any expansion to upper nor - * lower levels of education degree. - * * experience_in_months: experience in months. 0 means 0 month to 1 month - * (exclusive). - * * application_date: The application date specifies application start dates. - * See [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] for more details. - * * application_outcome_notes: The application outcome reason specifies the - * reasons behind the outcome of the job application. - * See [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] for more details. - * * application_job_title: The application job title specifies the job - * applied for in the application. - * See [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter] for more details. - * * hirable_status: Hirable status specifies the profile's hirable status. - * * string_custom_attribute: String custom attributes. Values can be accessed - * via square bracket notation like string_custom_attribute["key1"]. - * * numeric_custom_attribute: Numeric custom attributes. Values can be - * accessed via square bracket notation like numeric_custom_attribute["key1"]. - * Example expressions: - * * count(admin1) - * * count(experience_in_months, [bucket(0, 12, "1 year"), - * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")]) - * * count(string_custom_attribute["assigned_recruiter"]) - * * count(numeric_custom_attribute["favorite_number"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")]) - * @type string $result_set_id - * An id that uniquely identifies the result set of a - * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call. The id should be - * retrieved from the - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] message returned from a previous - * invocation of [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles]. - * A result set is an ordered list of search results. - * If this field is not set, a new result set is computed based on the - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query]. A new [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] is returned as a handle to - * access this result set. - * If this field is set, the service will ignore the resource and - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query] values, and simply retrieve a page of results from the - * corresponding result set. In this case, one and only one of [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] - * or [offset][google.cloud.talent.v4beta1.SearchProfilesRequest.offset] must be set. - * A typical use case is to invoke [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] without this - * field, then use the resulting [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] in - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] to page through the results. - * @type bool $strict_keywords_search - * This flag is used to indicate whether the service will attempt to - * understand synonyms and terms related to the search query or treat the - * query "as is" when it generates a set of results. By default this flag is - * set to false, thus allowing expanded results to also be returned. For - * example a search for "software engineer" might also return candidates who - * have experience in jobs similar to software engineer positions. By setting - * this flag to true, the service will only attempt to deliver candidates has - * software engineer in his/her global fields by treating "software engineer" - * as a keyword. - * It is recommended to provide a feature in the UI (such as a checkbox) to - * allow recruiters to set this flag to true if they intend to search for - * longer boolean strings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ProfileService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the tenant to search within. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the tenant to search within. - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The meta information collected about the profile search user. This is used - * to improve the search quality of the service. These values are provided by - * users, and must be precise and consistent. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Talent\V4beta1\RequestMetadata|null - */ - public function getRequestMetadata() - { - return $this->request_metadata; - } - - public function hasRequestMetadata() - { - return isset($this->request_metadata); - } - - public function clearRequestMetadata() - { - unset($this->request_metadata); - } - - /** - * Required. The meta information collected about the profile search user. This is used - * to improve the search quality of the service. These values are provided by - * users, and must be precise and consistent. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Talent\V4beta1\RequestMetadata $var - * @return $this - */ - public function setRequestMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\RequestMetadata::class); - $this->request_metadata = $var; - - return $this; - } - - /** - * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - * @return \Google\Cloud\Talent\V4beta1\ProfileQuery|null - */ - public function getProfileQuery() - { - return $this->profile_query; - } - - public function hasProfileQuery() - { - return isset($this->profile_query); - } - - public function clearProfileQuery() - { - unset($this->profile_query); - } - - /** - * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - * @param \Google\Cloud\Talent\V4beta1\ProfileQuery $var - * @return $this - */ - public function setProfileQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\ProfileQuery::class); - $this->profile_query = $var; - - return $this; - } - - /** - * A limit on the number of profiles returned in the search results. - * A value above the default value 10 can increase search response time. - * The maximum value allowed is 100. Otherwise an error is thrown. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * A limit on the number of profiles returned in the search results. - * A value above the default value 10 can increase search response time. - * The maximum value allowed is 100. Otherwise an error is thrown. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The pageToken, similar to offset enables users of the API to paginate - * through the search results. To retrieve the first page of results, set the - * pageToken to empty. The search response includes a - * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token] field that can be - * used to populate the pageToken field for the next page of results. Using - * pageToken instead of offset increases the performance of the API, - * especially compared to larger offset values. - * - * Generated from protobuf field string page_token = 5; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The pageToken, similar to offset enables users of the API to paginate - * through the search results. To retrieve the first page of results, set the - * pageToken to empty. The search response includes a - * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token] field that can be - * used to populate the pageToken field for the next page of results. Using - * pageToken instead of offset increases the performance of the API, - * especially compared to larger offset values. - * - * Generated from protobuf field string page_token = 5; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * An integer that specifies the current offset (that is, starting result) in - * search results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] is unset. - * The maximum allowed value is 5000. Otherwise an error is thrown. - * For example, 0 means to search from the first profile, and 10 means to - * search from the 11th profile. This can be used for pagination, for example - * pageSize = 10 and offset = 10 means to search from the second page. - * - * Generated from protobuf field int32 offset = 6; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * An integer that specifies the current offset (that is, starting result) in - * search results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] is unset. - * The maximum allowed value is 5000. Otherwise an error is thrown. - * For example, 0 means to search from the first profile, and 10 means to - * search from the 11th profile. This can be used for pagination, for example - * pageSize = 10 and offset = 10 means to search from the second page. - * - * Generated from protobuf field int32 offset = 6; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt32($var); - $this->offset = $var; - - return $this; - } - - /** - * This flag controls the spell-check feature. If `false`, the - * service attempts to correct a misspelled query. - * For example, "enginee" is corrected to "engineer". - * - * Generated from protobuf field bool disable_spell_check = 7; - * @return bool - */ - public function getDisableSpellCheck() - { - return $this->disable_spell_check; - } - - /** - * This flag controls the spell-check feature. If `false`, the - * service attempts to correct a misspelled query. - * For example, "enginee" is corrected to "engineer". - * - * Generated from protobuf field bool disable_spell_check = 7; - * @param bool $var - * @return $this - */ - public function setDisableSpellCheck($var) - { - GPBUtil::checkBool($var); - $this->disable_spell_check = $var; - - return $this; - } - - /** - * The criteria that determines how search results are sorted. - * Defaults is "relevance desc" if no value is specified. - * Supported options are: - * * "relevance desc": By descending relevance, as determined by the API - * algorithms. - * * "update_date desc": Sort by [Profile.update_time][google.cloud.talent.v4beta1.Profile.update_time] in descending order - * (recently updated profiles first). - * * "create_date desc": Sort by [Profile.create_time][google.cloud.talent.v4beta1.Profile.create_time] in descending order - * (recently created profiles first). - * * "first_name": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] in - * ascending order. - * * "first_name desc": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] - * in descending order. - * * "last_name": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] in - * ascending order. - * * "last_name desc": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] - * in ascending order. - * - * Generated from protobuf field string order_by = 8; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * The criteria that determines how search results are sorted. - * Defaults is "relevance desc" if no value is specified. - * Supported options are: - * * "relevance desc": By descending relevance, as determined by the API - * algorithms. - * * "update_date desc": Sort by [Profile.update_time][google.cloud.talent.v4beta1.Profile.update_time] in descending order - * (recently updated profiles first). - * * "create_date desc": Sort by [Profile.create_time][google.cloud.talent.v4beta1.Profile.create_time] in descending order - * (recently created profiles first). - * * "first_name": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] in - * ascending order. - * * "first_name desc": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] - * in descending order. - * * "last_name": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] in - * ascending order. - * * "last_name desc": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] - * in ascending order. - * - * Generated from protobuf field string order_by = 8; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * When sort by field is based on alphabetical order, sort values case - * sensitively (based on ASCII) when the value is set to true. Default value - * is case in-sensitive sort (false). - * - * Generated from protobuf field bool case_sensitive_sort = 9; - * @return bool - */ - public function getCaseSensitiveSort() - { - return $this->case_sensitive_sort; - } - - /** - * When sort by field is based on alphabetical order, sort values case - * sensitively (based on ASCII) when the value is set to true. Default value - * is case in-sensitive sort (false). - * - * Generated from protobuf field bool case_sensitive_sort = 9; - * @param bool $var - * @return $this - */ - public function setCaseSensitiveSort($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive_sort = $var; - - return $this; - } - - /** - * A list of expressions specifies histogram requests against matching - * profiles for [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. - * The expression syntax looks like a function definition with parameters. - * Function syntax: function_name(histogram_facet[, list of buckets]) - * Data types: - * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. - * * String: string like "any string with backslash escape for quote(\")." - * * Number: whole number and floating point number like 10, -1 and -0.01. - * * List: list of elements with comma(,) separator surrounded by square - * brackets. For example, [1, 2, 3] and ["one", "two", "three"]. - * Built-in constants: - * * MIN (minimum number similar to java Double.MIN_VALUE) - * * MAX (maximum number similar to java Double.MAX_VALUE) - * Built-in functions: - * * bucket(start, end[, label]) - * Bucket build-in function creates a bucket with range of [start, end). Note - * that the end is exclusive. - * For example, bucket(1, MAX, "positive number") or bucket(1, 10). - * Histogram Facets: - * * admin1: Admin1 is a global placeholder for referring to state, province, - * or the particular term a country uses to define the geographic structure - * below the country level. Examples include states codes such as "CA", "IL", - * "NY", and provinces, such as "BC". - * * locality: Locality is a global placeholder for referring to city, town, - * or the particular term a country uses to define the geographic structure - * below the admin1 level. Examples include city names such as - * "Mountain View" and "New York". - * * extended_locality: Extended locality is concatenated version of admin1 - * and locality with comma separator. For example, "Mountain View, CA" and - * "New York, NY". - * * postal_code: Postal code of profile which follows locale code. - * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US, - * JP, GB. - * * job_title: Normalized job titles specified in EmploymentHistory. - * * company_name: Normalized company name of profiles to match on. - * * institution: The school name. For example, "MIT", - * "University of California, Berkeley" - * * degree: Highest education degree in ISCED code. Each value in degree - * covers a specific level of education, without any expansion to upper nor - * lower levels of education degree. - * * experience_in_months: experience in months. 0 means 0 month to 1 month - * (exclusive). - * * application_date: The application date specifies application start dates. - * See [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] for more details. - * * application_outcome_notes: The application outcome reason specifies the - * reasons behind the outcome of the job application. - * See [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] for more details. - * * application_job_title: The application job title specifies the job - * applied for in the application. - * See [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter] for more details. - * * hirable_status: Hirable status specifies the profile's hirable status. - * * string_custom_attribute: String custom attributes. Values can be accessed - * via square bracket notation like string_custom_attribute["key1"]. - * * numeric_custom_attribute: Numeric custom attributes. Values can be - * accessed via square bracket notation like numeric_custom_attribute["key1"]. - * Example expressions: - * * count(admin1) - * * count(experience_in_months, [bucket(0, 12, "1 year"), - * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")]) - * * count(string_custom_attribute["assigned_recruiter"]) - * * count(numeric_custom_attribute["favorite_number"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")]) - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHistogramQueries() - { - return $this->histogram_queries; - } - - /** - * A list of expressions specifies histogram requests against matching - * profiles for [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. - * The expression syntax looks like a function definition with parameters. - * Function syntax: function_name(histogram_facet[, list of buckets]) - * Data types: - * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. - * * String: string like "any string with backslash escape for quote(\")." - * * Number: whole number and floating point number like 10, -1 and -0.01. - * * List: list of elements with comma(,) separator surrounded by square - * brackets. For example, [1, 2, 3] and ["one", "two", "three"]. - * Built-in constants: - * * MIN (minimum number similar to java Double.MIN_VALUE) - * * MAX (maximum number similar to java Double.MAX_VALUE) - * Built-in functions: - * * bucket(start, end[, label]) - * Bucket build-in function creates a bucket with range of [start, end). Note - * that the end is exclusive. - * For example, bucket(1, MAX, "positive number") or bucket(1, 10). - * Histogram Facets: - * * admin1: Admin1 is a global placeholder for referring to state, province, - * or the particular term a country uses to define the geographic structure - * below the country level. Examples include states codes such as "CA", "IL", - * "NY", and provinces, such as "BC". - * * locality: Locality is a global placeholder for referring to city, town, - * or the particular term a country uses to define the geographic structure - * below the admin1 level. Examples include city names such as - * "Mountain View" and "New York". - * * extended_locality: Extended locality is concatenated version of admin1 - * and locality with comma separator. For example, "Mountain View, CA" and - * "New York, NY". - * * postal_code: Postal code of profile which follows locale code. - * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US, - * JP, GB. - * * job_title: Normalized job titles specified in EmploymentHistory. - * * company_name: Normalized company name of profiles to match on. - * * institution: The school name. For example, "MIT", - * "University of California, Berkeley" - * * degree: Highest education degree in ISCED code. Each value in degree - * covers a specific level of education, without any expansion to upper nor - * lower levels of education degree. - * * experience_in_months: experience in months. 0 means 0 month to 1 month - * (exclusive). - * * application_date: The application date specifies application start dates. - * See [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] for more details. - * * application_outcome_notes: The application outcome reason specifies the - * reasons behind the outcome of the job application. - * See [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] for more details. - * * application_job_title: The application job title specifies the job - * applied for in the application. - * See [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter] for more details. - * * hirable_status: Hirable status specifies the profile's hirable status. - * * string_custom_attribute: String custom attributes. Values can be accessed - * via square bracket notation like string_custom_attribute["key1"]. - * * numeric_custom_attribute: Numeric custom attributes. Values can be - * accessed via square bracket notation like numeric_custom_attribute["key1"]. - * Example expressions: - * * count(admin1) - * * count(experience_in_months, [bucket(0, 12, "1 year"), - * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")]) - * * count(string_custom_attribute["assigned_recruiter"]) - * * count(numeric_custom_attribute["favorite_number"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")]) - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - * @param \Google\Cloud\Talent\V4beta1\HistogramQuery[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHistogramQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\HistogramQuery::class); - $this->histogram_queries = $arr; - - return $this; - } - - /** - * An id that uniquely identifies the result set of a - * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call. The id should be - * retrieved from the - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] message returned from a previous - * invocation of [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles]. - * A result set is an ordered list of search results. - * If this field is not set, a new result set is computed based on the - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query]. A new [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] is returned as a handle to - * access this result set. - * If this field is set, the service will ignore the resource and - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query] values, and simply retrieve a page of results from the - * corresponding result set. In this case, one and only one of [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] - * or [offset][google.cloud.talent.v4beta1.SearchProfilesRequest.offset] must be set. - * A typical use case is to invoke [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] without this - * field, then use the resulting [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] in - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] to page through the results. - * - * Generated from protobuf field string result_set_id = 12; - * @return string - */ - public function getResultSetId() - { - return $this->result_set_id; - } - - /** - * An id that uniquely identifies the result set of a - * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call. The id should be - * retrieved from the - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] message returned from a previous - * invocation of [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles]. - * A result set is an ordered list of search results. - * If this field is not set, a new result set is computed based on the - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query]. A new [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] is returned as a handle to - * access this result set. - * If this field is set, the service will ignore the resource and - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query] values, and simply retrieve a page of results from the - * corresponding result set. In this case, one and only one of [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] - * or [offset][google.cloud.talent.v4beta1.SearchProfilesRequest.offset] must be set. - * A typical use case is to invoke [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] without this - * field, then use the resulting [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] in - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] to page through the results. - * - * Generated from protobuf field string result_set_id = 12; - * @param string $var - * @return $this - */ - public function setResultSetId($var) - { - GPBUtil::checkString($var, True); - $this->result_set_id = $var; - - return $this; - } - - /** - * This flag is used to indicate whether the service will attempt to - * understand synonyms and terms related to the search query or treat the - * query "as is" when it generates a set of results. By default this flag is - * set to false, thus allowing expanded results to also be returned. For - * example a search for "software engineer" might also return candidates who - * have experience in jobs similar to software engineer positions. By setting - * this flag to true, the service will only attempt to deliver candidates has - * software engineer in his/her global fields by treating "software engineer" - * as a keyword. - * It is recommended to provide a feature in the UI (such as a checkbox) to - * allow recruiters to set this flag to true if they intend to search for - * longer boolean strings. - * - * Generated from protobuf field bool strict_keywords_search = 13; - * @return bool - */ - public function getStrictKeywordsSearch() - { - return $this->strict_keywords_search; - } - - /** - * This flag is used to indicate whether the service will attempt to - * understand synonyms and terms related to the search query or treat the - * query "as is" when it generates a set of results. By default this flag is - * set to false, thus allowing expanded results to also be returned. For - * example a search for "software engineer" might also return candidates who - * have experience in jobs similar to software engineer positions. By setting - * this flag to true, the service will only attempt to deliver candidates has - * software engineer in his/her global fields by treating "software engineer" - * as a keyword. - * It is recommended to provide a feature in the UI (such as a checkbox) to - * allow recruiters to set this flag to true if they intend to search for - * longer boolean strings. - * - * Generated from protobuf field bool strict_keywords_search = 13; - * @param bool $var - * @return $this - */ - public function setStrictKeywordsSearch($var) - { - GPBUtil::checkBool($var); - $this->strict_keywords_search = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/SearchProfilesResponse.php b/Talent/src/V4beta1/SearchProfilesResponse.php deleted file mode 100644 index 3437a1be192..00000000000 --- a/Talent/src/V4beta1/SearchProfilesResponse.php +++ /dev/null @@ -1,315 +0,0 @@ -google.cloud.talent.v4beta1.SearchProfilesResponse - */ -class SearchProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * An estimation of the number of profiles that match the specified query. - * This number isn't guaranteed to be accurate. - * - * Generated from protobuf field int64 estimated_total_size = 1; - */ - private $estimated_total_size = 0; - /** - * The spell checking result, and correction. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - */ - private $spell_correction = null; - /** - * Additional information for the API invocation, such as the request - * tracking id. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - private $metadata = null; - /** - * A token to retrieve the next page of results. This is empty if there are no - * more results. - * - * Generated from protobuf field string next_page_token = 4; - */ - private $next_page_token = ''; - /** - * The histogram results that match with specified - * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - */ - private $histogram_query_results; - /** - * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - private $summarized_profiles; - /** - * An id that uniquely identifies the result set of a - * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent - * results. - * - * Generated from protobuf field string result_set_id = 7; - */ - private $result_set_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $estimated_total_size - * An estimation of the number of profiles that match the specified query. - * This number isn't guaranteed to be accurate. - * @type \Google\Cloud\Talent\V4beta1\SpellingCorrection $spell_correction - * The spell checking result, and correction. - * @type \Google\Cloud\Talent\V4beta1\ResponseMetadata $metadata - * Additional information for the API invocation, such as the request - * tracking id. - * @type string $next_page_token - * A token to retrieve the next page of results. This is empty if there are no - * more results. - * @type \Google\Cloud\Talent\V4beta1\HistogramQueryResult[]|\Google\Protobuf\Internal\RepeatedField $histogram_query_results - * The histogram results that match with specified - * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]. - * @type \Google\Cloud\Talent\V4beta1\SummarizedProfile[]|\Google\Protobuf\Internal\RepeatedField $summarized_profiles - * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. - * @type string $result_set_id - * An id that uniquely identifies the result set of a - * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent - * results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ProfileService::initOnce(); - parent::__construct($data); - } - - /** - * An estimation of the number of profiles that match the specified query. - * This number isn't guaranteed to be accurate. - * - * Generated from protobuf field int64 estimated_total_size = 1; - * @return int|string - */ - public function getEstimatedTotalSize() - { - return $this->estimated_total_size; - } - - /** - * An estimation of the number of profiles that match the specified query. - * This number isn't guaranteed to be accurate. - * - * Generated from protobuf field int64 estimated_total_size = 1; - * @param int|string $var - * @return $this - */ - public function setEstimatedTotalSize($var) - { - GPBUtil::checkInt64($var); - $this->estimated_total_size = $var; - - return $this; - } - - /** - * The spell checking result, and correction. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - * @return \Google\Cloud\Talent\V4beta1\SpellingCorrection|null - */ - public function getSpellCorrection() - { - return $this->spell_correction; - } - - public function hasSpellCorrection() - { - return isset($this->spell_correction); - } - - public function clearSpellCorrection() - { - unset($this->spell_correction); - } - - /** - * The spell checking result, and correction. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - * @param \Google\Cloud\Talent\V4beta1\SpellingCorrection $var - * @return $this - */ - public function setSpellCorrection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\SpellingCorrection::class); - $this->spell_correction = $var; - - return $this; - } - - /** - * Additional information for the API invocation, such as the request - * tracking id. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * @return \Google\Cloud\Talent\V4beta1\ResponseMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Additional information for the API invocation, such as the request - * tracking id. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * @param \Google\Cloud\Talent\V4beta1\ResponseMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\ResponseMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * A token to retrieve the next page of results. This is empty if there are no - * more results. - * - * Generated from protobuf field string next_page_token = 4; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to retrieve the next page of results. This is empty if there are no - * more results. - * - * Generated from protobuf field string next_page_token = 4; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * The histogram results that match with specified - * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHistogramQueryResults() - { - return $this->histogram_query_results; - } - - /** - * The histogram results that match with specified - * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * @param \Google\Cloud\Talent\V4beta1\HistogramQueryResult[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHistogramQueryResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\HistogramQueryResult::class); - $this->histogram_query_results = $arr; - - return $this; - } - - /** - * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSummarizedProfiles() - { - return $this->summarized_profiles; - } - - /** - * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - * @param \Google\Cloud\Talent\V4beta1\SummarizedProfile[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSummarizedProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\SummarizedProfile::class); - $this->summarized_profiles = $arr; - - return $this; - } - - /** - * An id that uniquely identifies the result set of a - * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent - * results. - * - * Generated from protobuf field string result_set_id = 7; - * @return string - */ - public function getResultSetId() - { - return $this->result_set_id; - } - - /** - * An id that uniquely identifies the result set of a - * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent - * results. - * - * Generated from protobuf field string result_set_id = 7; - * @param string $var - * @return $this - */ - public function setResultSetId($var) - { - GPBUtil::checkString($var, True); - $this->result_set_id = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Skill.php b/Talent/src/V4beta1/Skill.php deleted file mode 100644 index bf89ca528fc..00000000000 --- a/Talent/src/V4beta1/Skill.php +++ /dev/null @@ -1,237 +0,0 @@ -google.cloud.talent.v4beta1.Skill - */ -class Skill extends \Google\Protobuf\Internal\Message -{ - /** - * Skill display name. - * For example, "Java", "Python". - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - */ - private $display_name = ''; - /** - * The last time this skill was used. - * - * Generated from protobuf field .google.type.Date last_used_date = 2; - */ - private $last_used_date = null; - /** - * Skill proficiency level which indicates how proficient the candidate is at - * this skill. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - */ - private $level = 0; - /** - * A paragraph describes context of this skill. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string context = 4; - */ - private $context = ''; - /** - * Output only. Skill name snippet shows how the [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related to a search - * query. It's empty if the [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't related to the search - * query. - * - * Generated from protobuf field string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $skill_name_snippet = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Skill display name. - * For example, "Java", "Python". - * Number of characters allowed is 100. - * @type \Google\Type\Date $last_used_date - * The last time this skill was used. - * @type int $level - * Skill proficiency level which indicates how proficient the candidate is at - * this skill. - * @type string $context - * A paragraph describes context of this skill. - * Number of characters allowed is 100,000. - * @type string $skill_name_snippet - * Output only. Skill name snippet shows how the [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related to a search - * query. It's empty if the [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't related to the search - * query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Skill display name. - * For example, "Java", "Python". - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Skill display name. - * For example, "Java", "Python". - * Number of characters allowed is 100. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The last time this skill was used. - * - * Generated from protobuf field .google.type.Date last_used_date = 2; - * @return \Google\Type\Date|null - */ - public function getLastUsedDate() - { - return $this->last_used_date; - } - - public function hasLastUsedDate() - { - return isset($this->last_used_date); - } - - public function clearLastUsedDate() - { - unset($this->last_used_date); - } - - /** - * The last time this skill was used. - * - * Generated from protobuf field .google.type.Date last_used_date = 2; - * @param \Google\Type\Date $var - * @return $this - */ - public function setLastUsedDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->last_used_date = $var; - - return $this; - } - - /** - * Skill proficiency level which indicates how proficient the candidate is at - * this skill. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - * @return int - */ - public function getLevel() - { - return $this->level; - } - - /** - * Skill proficiency level which indicates how proficient the candidate is at - * this skill. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - * @param int $var - * @return $this - */ - public function setLevel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\SkillProficiencyLevel::class); - $this->level = $var; - - return $this; - } - - /** - * A paragraph describes context of this skill. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string context = 4; - * @return string - */ - public function getContext() - { - return $this->context; - } - - /** - * A paragraph describes context of this skill. - * Number of characters allowed is 100,000. - * - * Generated from protobuf field string context = 4; - * @param string $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkString($var, True); - $this->context = $var; - - return $this; - } - - /** - * Output only. Skill name snippet shows how the [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related to a search - * query. It's empty if the [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't related to the search - * query. - * - * Generated from protobuf field string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSkillNameSnippet() - { - return $this->skill_name_snippet; - } - - /** - * Output only. Skill name snippet shows how the [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related to a search - * query. It's empty if the [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't related to the search - * query. - * - * Generated from protobuf field string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSkillNameSnippet($var) - { - GPBUtil::checkString($var, True); - $this->skill_name_snippet = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/Skill/SkillProficiencyLevel.php b/Talent/src/V4beta1/Skill/SkillProficiencyLevel.php deleted file mode 100644 index ae4a1a680af..00000000000 --- a/Talent/src/V4beta1/Skill/SkillProficiencyLevel.php +++ /dev/null @@ -1,56 +0,0 @@ -google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel - */ -class SkillProficiencyLevel -{ - /** - * Default value. - * - * Generated from protobuf enum SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; - */ - const SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; - /** - * Have a common knowledge or an understanding of basic techniques and - * concepts. - * - * Generated from protobuf enum FUNDAMENTAL_AWARENESS = 1; - */ - const FUNDAMENTAL_AWARENESS = 1; - /** - * Have the level of experience gained in a classroom and/or experimental - * scenarios or as a trainee on-the-job. - * - * Generated from protobuf enum NOVICE = 2; - */ - const NOVICE = 2; - /** - * Be able to successfully complete tasks in this skill as requested. Help - * from an expert may be required from time to time, but can usually perform - * skill independently. - * - * Generated from protobuf enum INTERMEDIATE = 3; - */ - const INTERMEDIATE = 3; - /** - * Can perform the actions associated with this skill without assistance. - * - * Generated from protobuf enum ADVANCED = 4; - */ - const ADVANCED = 4; - /** - * Known as an expert in this area. - * - * Generated from protobuf enum EXPERT = 5; - */ - const EXPERT = 5; -} - - diff --git a/Talent/src/V4beta1/SkillFilter.php b/Talent/src/V4beta1/SkillFilter.php deleted file mode 100644 index 4c11dd918e2..00000000000 --- a/Talent/src/V4beta1/SkillFilter.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.talent.v4beta1.SkillFilter - */ -class SkillFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The skill name. For example, "java", "j2ee", and so on. - * - * Generated from protobuf field string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $skill = ''; - /** - * Whether to apply negation to the filter so profiles matching the filter - * are excluded. - * - * Generated from protobuf field bool negated = 2; - */ - private $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $skill - * Required. The skill name. For example, "java", "j2ee", and so on. - * @type bool $negated - * Whether to apply negation to the filter so profiles matching the filter - * are excluded. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Required. The skill name. For example, "java", "j2ee", and so on. - * - * Generated from protobuf field string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSkill() - { - return $this->skill; - } - - /** - * Required. The skill name. For example, "java", "j2ee", and so on. - * - * Generated from protobuf field string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSkill($var) - { - GPBUtil::checkString($var, True); - $this->skill = $var; - - return $this; - } - - /** - * Whether to apply negation to the filter so profiles matching the filter - * are excluded. - * - * Generated from protobuf field bool negated = 2; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * Whether to apply negation to the filter so profiles matching the filter - * are excluded. - * - * Generated from protobuf field bool negated = 2; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/SkillProficiencyLevel.php b/Talent/src/V4beta1/SkillProficiencyLevel.php deleted file mode 100644 index 9351413b638..00000000000 --- a/Talent/src/V4beta1/SkillProficiencyLevel.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.talent.v4beta1.SkillProficiencyLevel - */ -class SkillProficiencyLevel -{ - /** - * Default value. - * - * Generated from protobuf enum SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; - */ - const SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; - /** - * Lacks any proficiency in this skill. - * - * Generated from protobuf enum UNSKILLED = 6; - */ - const UNSKILLED = 6; - /** - * Have a common knowledge or an understanding of basic techniques and - * concepts. - * - * Generated from protobuf enum FUNDAMENTAL_AWARENESS = 1; - */ - const FUNDAMENTAL_AWARENESS = 1; - /** - * Have the level of experience gained in a classroom and/or experimental - * scenarios or as a trainee on-the-job. - * - * Generated from protobuf enum NOVICE = 2; - */ - const NOVICE = 2; - /** - * Be able to successfully complete tasks in this skill as requested. Help - * from an expert may be required from time to time, but can usually perform - * skill independently. - * - * Generated from protobuf enum INTERMEDIATE = 3; - */ - const INTERMEDIATE = 3; - /** - * Can perform the actions associated with this skill without assistance. - * - * Generated from protobuf enum ADVANCED = 4; - */ - const ADVANCED = 4; - /** - * Known as an expert in this area. - * - * Generated from protobuf enum EXPERT = 5; - */ - const EXPERT = 5; - - private static $valueToName = [ - self::SKILL_PROFICIENCY_LEVEL_UNSPECIFIED => 'SKILL_PROFICIENCY_LEVEL_UNSPECIFIED', - self::UNSKILLED => 'UNSKILLED', - self::FUNDAMENTAL_AWARENESS => 'FUNDAMENTAL_AWARENESS', - self::NOVICE => 'NOVICE', - self::INTERMEDIATE => 'INTERMEDIATE', - self::ADVANCED => 'ADVANCED', - self::EXPERT => 'EXPERT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/Talent/src/V4beta1/SummarizedProfile.php b/Talent/src/V4beta1/SummarizedProfile.php deleted file mode 100644 index c10a15adc4a..00000000000 --- a/Talent/src/V4beta1/SummarizedProfile.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.talent.v4beta1.SummarizedProfile - */ -class SummarizedProfile extends \Google\Protobuf\Internal\Message -{ - /** - * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id]. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - private $profiles; - /** - * A profile summary shows the profile summary and how the profile matches the - * search query. - * In profile summary, the profiles with the same [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id] are - * merged together. Among profiles, same education/employment records may be - * slightly different but they are merged into one with best efforts. - * For example, in one profile the school name is "UC Berkeley" and the field - * study is "Computer Science" and in another one the school name is - * "University of California at Berkeley" and the field study is "CS". The API - * merges these two inputs into one and selects one value for each field. For - * example, the school name in summary is set to "University of California at - * Berkeley" and the field of study is set to "Computer Science". - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile summary = 2; - */ - private $summary = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Talent\V4beta1\Profile[]|\Google\Protobuf\Internal\RepeatedField $profiles - * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id]. - * @type \Google\Cloud\Talent\V4beta1\Profile $summary - * A profile summary shows the profile summary and how the profile matches the - * search query. - * In profile summary, the profiles with the same [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id] are - * merged together. Among profiles, same education/employment records may be - * slightly different but they are merged into one with best efforts. - * For example, in one profile the school name is "UC Berkeley" and the field - * study is "Computer Science" and in another one the school name is - * "University of California at Berkeley" and the field study is "CS". The API - * merges these two inputs into one and selects one value for each field. For - * example, the school name in summary is set to "University of California at - * Berkeley" and the field of study is set to "Computer Science". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ProfileService::initOnce(); - parent::__construct($data); - } - - /** - * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id]. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProfiles() - { - return $this->profiles; - } - - /** - * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id]. - * - * Generated from protobuf field repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - * @param \Google\Cloud\Talent\V4beta1\Profile[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Profile::class); - $this->profiles = $arr; - - return $this; - } - - /** - * A profile summary shows the profile summary and how the profile matches the - * search query. - * In profile summary, the profiles with the same [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id] are - * merged together. Among profiles, same education/employment records may be - * slightly different but they are merged into one with best efforts. - * For example, in one profile the school name is "UC Berkeley" and the field - * study is "Computer Science" and in another one the school name is - * "University of California at Berkeley" and the field study is "CS". The API - * merges these two inputs into one and selects one value for each field. For - * example, the school name in summary is set to "University of California at - * Berkeley" and the field of study is set to "Computer Science". - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile summary = 2; - * @return \Google\Cloud\Talent\V4beta1\Profile|null - */ - public function getSummary() - { - return $this->summary; - } - - public function hasSummary() - { - return isset($this->summary); - } - - public function clearSummary() - { - unset($this->summary); - } - - /** - * A profile summary shows the profile summary and how the profile matches the - * search query. - * In profile summary, the profiles with the same [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id] are - * merged together. Among profiles, same education/employment records may be - * slightly different but they are merged into one with best efforts. - * For example, in one profile the school name is "UC Berkeley" and the field - * study is "Computer Science" and in another one the school name is - * "University of California at Berkeley" and the field study is "CS". The API - * merges these two inputs into one and selects one value for each field. For - * example, the school name in summary is set to "University of California at - * Berkeley" and the field of study is set to "Computer Science". - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile summary = 2; - * @param \Google\Cloud\Talent\V4beta1\Profile $var - * @return $this - */ - public function setSummary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Profile::class); - $this->summary = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/TimeFilter.php b/Talent/src/V4beta1/TimeFilter.php deleted file mode 100644 index 6b62b1c59b3..00000000000 --- a/Talent/src/V4beta1/TimeFilter.php +++ /dev/null @@ -1,175 +0,0 @@ -google.cloud.talent.v4beta1.TimeFilter - */ -class TimeFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Start timestamp, matching profiles with the start time. If this field - * missing, The API matches profiles with create / update timestamp before the - * end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - private $start_time = null; - /** - * End timestamp, matching profiles with the end time. If this field - * missing, The API matches profiles with create / update timestamp after the - * start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - private $end_time = null; - /** - * Specifies which time field to filter profiles. - * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME]. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - */ - private $time_field = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * Start timestamp, matching profiles with the start time. If this field - * missing, The API matches profiles with create / update timestamp before the - * end timestamp. - * @type \Google\Protobuf\Timestamp $end_time - * End timestamp, matching profiles with the end time. If this field - * missing, The API matches profiles with create / update timestamp after the - * start timestamp. - * @type int $time_field - * Specifies which time field to filter profiles. - * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * Start timestamp, matching profiles with the start time. If this field - * missing, The API matches profiles with create / update timestamp before the - * end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Start timestamp, matching profiles with the start time. If this field - * missing, The API matches profiles with create / update timestamp before the - * end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * End timestamp, matching profiles with the end time. If this field - * missing, The API matches profiles with create / update timestamp after the - * start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * End timestamp, matching profiles with the end time. If this field - * missing, The API matches profiles with create / update timestamp after the - * start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Specifies which time field to filter profiles. - * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME]. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - * @return int - */ - public function getTimeField() - { - return $this->time_field; - } - - /** - * Specifies which time field to filter profiles. - * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME]. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - * @param int $var - * @return $this - */ - public function setTimeField($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\TimeFilter\TimeField::class); - $this->time_field = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/TimeFilter/TimeField.php b/Talent/src/V4beta1/TimeFilter/TimeField.php deleted file mode 100644 index 9017dab88b8..00000000000 --- a/Talent/src/V4beta1/TimeFilter/TimeField.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.talent.v4beta1.TimeFilter.TimeField - */ -class TimeField -{ - /** - * Default value. - * - * Generated from protobuf enum TIME_FIELD_UNSPECIFIED = 0; - */ - const TIME_FIELD_UNSPECIFIED = 0; - /** - * Earliest profile create time. - * - * Generated from protobuf enum CREATE_TIME = 1; - */ - const CREATE_TIME = 1; - /** - * Latest profile update time. - * - * Generated from protobuf enum UPDATE_TIME = 2; - */ - const UPDATE_TIME = 2; - - private static $valueToName = [ - self::TIME_FIELD_UNSPECIFIED => 'TIME_FIELD_UNSPECIFIED', - self::CREATE_TIME => 'CREATE_TIME', - self::UPDATE_TIME => 'UPDATE_TIME', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - - diff --git a/Talent/src/V4beta1/UpdateApplicationRequest.php b/Talent/src/V4beta1/UpdateApplicationRequest.php deleted file mode 100644 index 47ceb00b8be..00000000000 --- a/Talent/src/V4beta1/UpdateApplicationRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.talent.v4beta1.UpdateApplicationRequest - */ -class UpdateApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The application resource to replace the current resource in the system. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $application = null; - /** - * Strongly recommended for the best service experience. - * If [update_mask][google.cloud.talent.v4beta1.UpdateApplicationRequest.update_mask] is provided, only the specified fields in - * [application][google.cloud.talent.v4beta1.UpdateApplicationRequest.application] are updated. Otherwise all the fields are updated. - * A field mask to specify the application fields to be updated. Only - * top level fields of [Application][google.cloud.talent.v4beta1.Application] are supported. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - private $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Talent\V4beta1\Application $application - * Required. The application resource to replace the current resource in the system. - * @type \Google\Protobuf\FieldMask $update_mask - * Strongly recommended for the best service experience. - * If [update_mask][google.cloud.talent.v4beta1.UpdateApplicationRequest.update_mask] is provided, only the specified fields in - * [application][google.cloud.talent.v4beta1.UpdateApplicationRequest.application] are updated. Otherwise all the fields are updated. - * A field mask to specify the application fields to be updated. Only - * top level fields of [Application][google.cloud.talent.v4beta1.Application] are supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ApplicationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The application resource to replace the current resource in the system. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Talent\V4beta1\Application|null - */ - public function getApplication() - { - return $this->application; - } - - public function hasApplication() - { - return isset($this->application); - } - - public function clearApplication() - { - unset($this->application); - } - - /** - * Required. The application resource to replace the current resource in the system. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Talent\V4beta1\Application $var - * @return $this - */ - public function setApplication($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Application::class); - $this->application = $var; - - return $this; - } - - /** - * Strongly recommended for the best service experience. - * If [update_mask][google.cloud.talent.v4beta1.UpdateApplicationRequest.update_mask] is provided, only the specified fields in - * [application][google.cloud.talent.v4beta1.UpdateApplicationRequest.application] are updated. Otherwise all the fields are updated. - * A field mask to specify the application fields to be updated. Only - * top level fields of [Application][google.cloud.talent.v4beta1.Application] are supported. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Strongly recommended for the best service experience. - * If [update_mask][google.cloud.talent.v4beta1.UpdateApplicationRequest.update_mask] is provided, only the specified fields in - * [application][google.cloud.talent.v4beta1.UpdateApplicationRequest.application] are updated. Otherwise all the fields are updated. - * A field mask to specify the application fields to be updated. Only - * top level fields of [Application][google.cloud.talent.v4beta1.Application] are supported. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/UpdateProfileRequest.php b/Talent/src/V4beta1/UpdateProfileRequest.php deleted file mode 100644 index 473786418a3..00000000000 --- a/Talent/src/V4beta1/UpdateProfileRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.talent.v4beta1.UpdateProfileRequest - */ -class UpdateProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Profile to be updated. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $profile = null; - /** - * A field mask to specify the profile fields to update. - * A full update is performed if it is unset. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - private $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Talent\V4beta1\Profile $profile - * Required. Profile to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * A field mask to specify the profile fields to update. - * A full update is performed if it is unset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\ProfileService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Profile to be updated. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Talent\V4beta1\Profile|null - */ - public function getProfile() - { - return $this->profile; - } - - public function hasProfile() - { - return isset($this->profile); - } - - public function clearProfile() - { - unset($this->profile); - } - - /** - * Required. Profile to be updated. - * - * Generated from protobuf field .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Talent\V4beta1\Profile $var - * @return $this - */ - public function setProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Profile::class); - $this->profile = $var; - - return $this; - } - - /** - * A field mask to specify the profile fields to update. - * A full update is performed if it is unset. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * A field mask to specify the profile fields to update. - * A full update is performed if it is unset. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/WorkExperienceFilter.php b/Talent/src/V4beta1/WorkExperienceFilter.php deleted file mode 100644 index a21a7e355fd..00000000000 --- a/Talent/src/V4beta1/WorkExperienceFilter.php +++ /dev/null @@ -1,123 +0,0 @@ -google.cloud.talent.v4beta1.WorkExperienceFilter - */ -class WorkExperienceFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The minimum duration of the work experience (inclusive). - * - * Generated from protobuf field .google.protobuf.Duration min_experience = 1; - */ - private $min_experience = null; - /** - * The maximum duration of the work experience (exclusive). - * - * Generated from protobuf field .google.protobuf.Duration max_experience = 2; - */ - private $max_experience = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $min_experience - * The minimum duration of the work experience (inclusive). - * @type \Google\Protobuf\Duration $max_experience - * The maximum duration of the work experience (exclusive). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Talent\V4Beta1\Filters::initOnce(); - parent::__construct($data); - } - - /** - * The minimum duration of the work experience (inclusive). - * - * Generated from protobuf field .google.protobuf.Duration min_experience = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getMinExperience() - { - return $this->min_experience; - } - - public function hasMinExperience() - { - return isset($this->min_experience); - } - - public function clearMinExperience() - { - unset($this->min_experience); - } - - /** - * The minimum duration of the work experience (inclusive). - * - * Generated from protobuf field .google.protobuf.Duration min_experience = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinExperience($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->min_experience = $var; - - return $this; - } - - /** - * The maximum duration of the work experience (exclusive). - * - * Generated from protobuf field .google.protobuf.Duration max_experience = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getMaxExperience() - { - return $this->max_experience; - } - - public function hasMaxExperience() - { - return isset($this->max_experience); - } - - public function clearMaxExperience() - { - unset($this->max_experience); - } - - /** - * The maximum duration of the work experience (exclusive). - * - * Generated from protobuf field .google.protobuf.Duration max_experience = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaxExperience($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->max_experience = $var; - - return $this; - } - -} - diff --git a/Talent/src/V4beta1/gapic_metadata.json b/Talent/src/V4beta1/gapic_metadata.json index 24e55371ecf..6b446f3f8a8 100644 --- a/Talent/src/V4beta1/gapic_metadata.json +++ b/Talent/src/V4beta1/gapic_metadata.json @@ -5,40 +5,6 @@ "protoPackage": "google.cloud.talent.v4beta1", "libraryPackage": "Google\\Cloud\\Talent\\V4beta1", "services": { - "ApplicationService": { - "clients": { - "grpc": { - "libraryClient": "ApplicationServiceGapicClient", - "rpcs": { - "CreateApplication": { - "methods": [ - "createApplication" - ] - }, - "DeleteApplication": { - "methods": [ - "deleteApplication" - ] - }, - "GetApplication": { - "methods": [ - "getApplication" - ] - }, - "ListApplications": { - "methods": [ - "listApplications" - ] - }, - "UpdateApplication": { - "methods": [ - "updateApplication" - ] - } - } - } - } - }, "CompanyService": { "clients": { "grpc": { @@ -160,45 +126,6 @@ } } }, - "ProfileService": { - "clients": { - "grpc": { - "libraryClient": "ProfileServiceGapicClient", - "rpcs": { - "CreateProfile": { - "methods": [ - "createProfile" - ] - }, - "DeleteProfile": { - "methods": [ - "deleteProfile" - ] - }, - "GetProfile": { - "methods": [ - "getProfile" - ] - }, - "ListProfiles": { - "methods": [ - "listProfiles" - ] - }, - "SearchProfiles": { - "methods": [ - "searchProfiles" - ] - }, - "UpdateProfile": { - "methods": [ - "updateProfile" - ] - } - } - } - } - }, "TenantService": { "clients": { "grpc": { diff --git a/Talent/src/V4beta1/resources/application_service_client_config.json b/Talent/src/V4beta1/resources/application_service_client_config.json deleted file mode 100644 index b27068236ea..00000000000 --- a/Talent/src/V4beta1/resources/application_service_client_config.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "interfaces": { - "google.cloud.talent.v4beta1.ApplicationService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_2_codes": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ], - "no_retry_5_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_2_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - }, - "no_retry_5_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "CreateApplication": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "DeleteApplication": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "GetApplication": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListApplications": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "UpdateApplication": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - } - } - } - } -} diff --git a/Talent/src/V4beta1/resources/application_service_descriptor_config.php b/Talent/src/V4beta1/resources/application_service_descriptor_config.php deleted file mode 100644 index 434d96fde00..00000000000 --- a/Talent/src/V4beta1/resources/application_service_descriptor_config.php +++ /dev/null @@ -1,18 +0,0 @@ - [ - 'google.cloud.talent.v4beta1.ApplicationService' => [ - 'ListApplications' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApplications', - ], - ], - ], - ], -]; diff --git a/Talent/src/V4beta1/resources/application_service_rest_client_config.php b/Talent/src/V4beta1/resources/application_service_rest_client_config.php deleted file mode 100644 index 57d605d4e1d..00000000000 --- a/Talent/src/V4beta1/resources/application_service_rest_client_config.php +++ /dev/null @@ -1,79 +0,0 @@ - [ - 'google.cloud.talent.v4beta1.ApplicationService' => [ - 'CreateApplication' => [ - 'method' => 'post', - 'uriTemplate' => '/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteApplication' => [ - 'method' => 'delete', - 'uriTemplate' => '/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApplication' => [ - 'method' => 'get', - 'uriTemplate' => '/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListApplications' => [ - 'method' => 'get', - 'uriTemplate' => '/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateApplication' => [ - 'method' => 'patch', - 'uriTemplate' => '/v4beta1/{application.name=projects/*/tenants/*/profiles/*/applications/*}', - 'body' => '*', - 'placeholders' => [ - 'application.name' => [ - 'getters' => [ - 'getApplication', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v4beta1/{name=projects/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/Talent/src/V4beta1/resources/profile_service_client_config.json b/Talent/src/V4beta1/resources/profile_service_client_config.json deleted file mode 100644 index 4556fe544bc..00000000000 --- a/Talent/src/V4beta1/resources/profile_service_client_config.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "interfaces": { - "google.cloud.talent.v4beta1.ProfileService": { - "retry_codes": { - "no_retry_codes": [], - "no_retry_2_codes": [], - "retry_policy_4_codes": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "no_retry_2_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - }, - "retry_policy_4_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "CreateProfile": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DeleteProfile": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "GetProfile": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "ListProfiles": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "SearchProfiles": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "UpdateProfile": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - } - } - } - } -} diff --git a/Talent/src/V4beta1/resources/profile_service_descriptor_config.php b/Talent/src/V4beta1/resources/profile_service_descriptor_config.php deleted file mode 100644 index daaa2086eee..00000000000 --- a/Talent/src/V4beta1/resources/profile_service_descriptor_config.php +++ /dev/null @@ -1,28 +0,0 @@ - [ - 'google.cloud.talent.v4beta1.ProfileService' => [ - 'ListProfiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProfiles', - ], - ], - 'SearchProfiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getHistogramQueryResults', - ], - ], - ], - ], -]; diff --git a/Talent/src/V4beta1/resources/profile_service_rest_client_config.php b/Talent/src/V4beta1/resources/profile_service_rest_client_config.php deleted file mode 100644 index 5d47280d43f..00000000000 --- a/Talent/src/V4beta1/resources/profile_service_rest_client_config.php +++ /dev/null @@ -1,91 +0,0 @@ - [ - 'google.cloud.talent.v4beta1.ProfileService' => [ - 'CreateProfile' => [ - 'method' => 'post', - 'uriTemplate' => '/v4beta1/{parent=projects/*/tenants/*}/profiles', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteProfile' => [ - 'method' => 'delete', - 'uriTemplate' => '/v4beta1/{name=projects/*/tenants/*/profiles/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProfile' => [ - 'method' => 'get', - 'uriTemplate' => '/v4beta1/{name=projects/*/tenants/*/profiles/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListProfiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v4beta1/{parent=projects/*/tenants/*}/profiles', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SearchProfiles' => [ - 'method' => 'post', - 'uriTemplate' => '/v4beta1/{parent=projects/*/tenants/*}:search', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateProfile' => [ - 'method' => 'patch', - 'uriTemplate' => '/v4beta1/{profile.name=projects/*/tenants/*/profiles/*}', - 'body' => '*', - 'placeholders' => [ - 'profile.name' => [ - 'getters' => [ - 'getProfile', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v4beta1/{name=projects/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/Talent/src/V4beta1/resources/resume_service_client_config.json b/Talent/src/V4beta1/resources/resume_service_client_config.json deleted file mode 100644 index 5e36807bff6..00000000000 --- a/Talent/src/V4beta1/resources/resume_service_client_config.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "interfaces": { - "google.cloud.talent.v4beta1.ResumeService": { - "retry_codes": { - "idempotent": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "ParseResume": { - "timeout_millis": 30000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/Talent/src/V4beta1/resources/resume_service_descriptor_config.php b/Talent/src/V4beta1/resources/resume_service_descriptor_config.php deleted file mode 100644 index 4ed3692e523..00000000000 --- a/Talent/src/V4beta1/resources/resume_service_descriptor_config.php +++ /dev/null @@ -1,8 +0,0 @@ - [ - 'google.cloud.talent.v4beta1.ResumeService' => [ - ], - ], -]; diff --git a/Talent/src/V4beta1/resources/resume_service_rest_client_config.php b/Talent/src/V4beta1/resources/resume_service_rest_client_config.php deleted file mode 100644 index cd149a2497b..00000000000 --- a/Talent/src/V4beta1/resources/resume_service_rest_client_config.php +++ /dev/null @@ -1,39 +0,0 @@ - [ - 'google.cloud.talent.v4beta1.ResumeService' => [ - 'ParseResume' => [ - 'method' => 'post', - 'uriTemplate' => '/v4beta1/{parent=projects/*}/resumes:parse', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v3p1beta1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v4beta1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/Talent/tests/Unit/V4beta1/ApplicationServiceClientTest.php b/Talent/tests/Unit/V4beta1/ApplicationServiceClientTest.php deleted file mode 100644 index c92a098be96..00000000000 --- a/Talent/tests/Unit/V4beta1/ApplicationServiceClientTest.php +++ /dev/null @@ -1,470 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** - * @return ApplicationServiceClient - */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ApplicationServiceClient($options); - } - - /** - * @test - */ - public function createApplicationTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $externalId = 'externalId-1153075697'; - $profile = 'profile-309425751'; - $job = 'job105405'; - $company = 'company950484093'; - $outcomeNotes = 'outcomeNotes-355961964'; - $jobTitleSnippet = 'jobTitleSnippet-1100512972'; - $expectedResponse = new Application(); - $expectedResponse->setName($name); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setProfile($profile); - $expectedResponse->setJob($job); - $expectedResponse->setCompany($company); - $expectedResponse->setOutcomeNotes($outcomeNotes); - $expectedResponse->setJobTitleSnippet($jobTitleSnippet); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - $application = new Application(); - $applicationExternalId = 'applicationExternalId-266656842'; - $application->setExternalId($applicationExternalId); - $applicationJob = $client->jobName('[PROJECT]', '[TENANT]', '[JOB]'); - $application->setJob($applicationJob); - $applicationStage = ApplicationStage::APPLICATION_STAGE_UNSPECIFIED; - $application->setStage($applicationStage); - $applicationCreateTime = new Timestamp(); - $application->setCreateTime($applicationCreateTime); - $response = $client->createApplication($formattedParent, $application); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ApplicationService/CreateApplication', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getApplication(); - $this->assertProtobufEquals($application, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function createApplicationExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $client->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - $application = new Application(); - $applicationExternalId = 'applicationExternalId-266656842'; - $application->setExternalId($applicationExternalId); - $applicationJob = $client->jobName('[PROJECT]', '[TENANT]', '[JOB]'); - $application->setJob($applicationJob); - $applicationStage = ApplicationStage::APPLICATION_STAGE_UNSPECIFIED; - $application->setStage($applicationStage); - $applicationCreateTime = new Timestamp(); - $application->setCreateTime($applicationCreateTime); - try { - $client->createApplication($formattedParent, $application); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteApplicationTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->applicationName('[PROJECT]', '[TENANT]', '[PROFILE]', '[APPLICATION]'); - $client->deleteApplication($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ApplicationService/DeleteApplication', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteApplicationExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $client->applicationName('[PROJECT]', '[TENANT]', '[PROFILE]', '[APPLICATION]'); - try { - $client->deleteApplication($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getApplicationTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $externalId = 'externalId-1153075697'; - $profile = 'profile-309425751'; - $job = 'job105405'; - $company = 'company950484093'; - $outcomeNotes = 'outcomeNotes-355961964'; - $jobTitleSnippet = 'jobTitleSnippet-1100512972'; - $expectedResponse = new Application(); - $expectedResponse->setName($name2); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setProfile($profile); - $expectedResponse->setJob($job); - $expectedResponse->setCompany($company); - $expectedResponse->setOutcomeNotes($outcomeNotes); - $expectedResponse->setJobTitleSnippet($jobTitleSnippet); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->applicationName('[PROJECT]', '[TENANT]', '[PROFILE]', '[APPLICATION]'); - $response = $client->getApplication($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ApplicationService/GetApplication', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getApplicationExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $client->applicationName('[PROJECT]', '[TENANT]', '[PROFILE]', '[APPLICATION]'); - try { - $client->getApplication($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listApplicationsTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $applicationsElement = new Application(); - $applications = [ - $applicationsElement, - ]; - $expectedResponse = new ListApplicationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApplications($applications); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - $response = $client->listApplications($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApplications()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ApplicationService/ListApplications', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listApplicationsExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $client->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - try { - $client->listApplications($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateApplicationTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $externalId = 'externalId-1153075697'; - $profile = 'profile-309425751'; - $job = 'job105405'; - $company = 'company950484093'; - $outcomeNotes = 'outcomeNotes-355961964'; - $jobTitleSnippet = 'jobTitleSnippet-1100512972'; - $expectedResponse = new Application(); - $expectedResponse->setName($name); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setProfile($profile); - $expectedResponse->setJob($job); - $expectedResponse->setCompany($company); - $expectedResponse->setOutcomeNotes($outcomeNotes); - $expectedResponse->setJobTitleSnippet($jobTitleSnippet); - $transport->addResponse($expectedResponse); - // Mock request - $application = new Application(); - $applicationExternalId = 'applicationExternalId-266656842'; - $application->setExternalId($applicationExternalId); - $applicationJob = $client->jobName('[PROJECT]', '[TENANT]', '[JOB]'); - $application->setJob($applicationJob); - $applicationStage = ApplicationStage::APPLICATION_STAGE_UNSPECIFIED; - $application->setStage($applicationStage); - $applicationCreateTime = new Timestamp(); - $application->setCreateTime($applicationCreateTime); - $response = $client->updateApplication($application); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ApplicationService/UpdateApplication', $actualFuncCall); - $actualValue = $actualRequestObject->getApplication(); - $this->assertProtobufEquals($application, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateApplicationExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $application = new Application(); - $applicationExternalId = 'applicationExternalId-266656842'; - $application->setExternalId($applicationExternalId); - $applicationJob = $client->jobName('[PROJECT]', '[TENANT]', '[JOB]'); - $application->setJob($applicationJob); - $applicationStage = ApplicationStage::APPLICATION_STAGE_UNSPECIFIED; - $application->setStage($applicationStage); - $applicationCreateTime = new Timestamp(); - $application->setCreateTime($applicationCreateTime); - try { - $client->updateApplication($application); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/Talent/tests/Unit/V4beta1/ProfileServiceClientTest.php b/Talent/tests/Unit/V4beta1/ProfileServiceClientTest.php deleted file mode 100644 index 0987c71dcb6..00000000000 --- a/Talent/tests/Unit/V4beta1/ProfileServiceClientTest.php +++ /dev/null @@ -1,519 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** - * @return ProfileServiceClient - */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ProfileServiceClient($options); - } - - /** - * @test - */ - public function createProfileTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $externalId = 'externalId-1153075697'; - $source = 'source-896505829'; - $uri = 'uri116076'; - $groupId = 'groupId506361563'; - $processed = true; - $keywordSnippet = 'keywordSnippet1325317319'; - $expectedResponse = new Profile(); - $expectedResponse->setName($name); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setSource($source); - $expectedResponse->setUri($uri); - $expectedResponse->setGroupId($groupId); - $expectedResponse->setProcessed($processed); - $expectedResponse->setKeywordSnippet($keywordSnippet); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->tenantName('[PROJECT]', '[TENANT]'); - $profile = new Profile(); - $response = $client->createProfile($formattedParent, $profile); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ProfileService/CreateProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getProfile(); - $this->assertProtobufEquals($profile, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function createProfileExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $client->tenantName('[PROJECT]', '[TENANT]'); - $profile = new Profile(); - try { - $client->createProfile($formattedParent, $profile); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteProfileTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - $client->deleteProfile($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ProfileService/DeleteProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteProfileExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $client->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - try { - $client->deleteProfile($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getProfileTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $externalId = 'externalId-1153075697'; - $source = 'source-896505829'; - $uri = 'uri116076'; - $groupId = 'groupId506361563'; - $processed = true; - $keywordSnippet = 'keywordSnippet1325317319'; - $expectedResponse = new Profile(); - $expectedResponse->setName($name2); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setSource($source); - $expectedResponse->setUri($uri); - $expectedResponse->setGroupId($groupId); - $expectedResponse->setProcessed($processed); - $expectedResponse->setKeywordSnippet($keywordSnippet); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - $response = $client->getProfile($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ProfileService/GetProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getProfileExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $client->profileName('[PROJECT]', '[TENANT]', '[PROFILE]'); - try { - $client->getProfile($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listProfilesTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $profilesElement = new Profile(); - $profiles = [ - $profilesElement, - ]; - $expectedResponse = new ListProfilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProfiles($profiles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->tenantName('[PROJECT]', '[TENANT]'); - $response = $client->listProfiles($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProfiles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ProfileService/ListProfiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listProfilesExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $client->tenantName('[PROJECT]', '[TENANT]'); - try { - $client->listProfiles($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function searchProfilesTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $estimatedTotalSize = 1882144769; - $nextPageToken = ''; - $resultSetId2 = 'resultSetId2-1530601043'; - $histogramQueryResultsElement = new HistogramQueryResult(); - $histogramQueryResults = [ - $histogramQueryResultsElement, - ]; - $expectedResponse = new SearchProfilesResponse(); - $expectedResponse->setEstimatedTotalSize($estimatedTotalSize); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResultSetId($resultSetId2); - $expectedResponse->setHistogramQueryResults($histogramQueryResults); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->tenantName('[PROJECT]', '[TENANT]'); - $requestMetadata = new RequestMetadata(); - $response = $client->searchProfiles($formattedParent, $requestMetadata); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getHistogramQueryResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ProfileService/SearchProfiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequestMetadata(); - $this->assertProtobufEquals($requestMetadata, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function searchProfilesExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $client->tenantName('[PROJECT]', '[TENANT]'); - $requestMetadata = new RequestMetadata(); - try { - $client->searchProfiles($formattedParent, $requestMetadata); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateProfileTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $externalId = 'externalId-1153075697'; - $source = 'source-896505829'; - $uri = 'uri116076'; - $groupId = 'groupId506361563'; - $processed = true; - $keywordSnippet = 'keywordSnippet1325317319'; - $expectedResponse = new Profile(); - $expectedResponse->setName($name); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setSource($source); - $expectedResponse->setUri($uri); - $expectedResponse->setGroupId($groupId); - $expectedResponse->setProcessed($processed); - $expectedResponse->setKeywordSnippet($keywordSnippet); - $transport->addResponse($expectedResponse); - // Mock request - $profile = new Profile(); - $response = $client->updateProfile($profile); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ProfileService/UpdateProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getProfile(); - $this->assertProtobufEquals($profile, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateProfileExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $profile = new Profile(); - try { - $client->updateProfile($profile); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/Talent/tests/Unit/V4beta1/ResumeServiceClientTest.php b/Talent/tests/Unit/V4beta1/ResumeServiceClientTest.php deleted file mode 100644 index 9b33549d62a..00000000000 --- a/Talent/tests/Unit/V4beta1/ResumeServiceClientTest.php +++ /dev/null @@ -1,140 +0,0 @@ - $this->getMockBuilder(CredentialsWrapper::class) - ->disableOriginalConstructor() - ->getMock(), - ]; - - return new ResumeServiceClient($options); - } - - /** - * @test - */ - public function parseResumeTest() - { - $transport = $this->createTransport(); - $client = $this->createClient(['transport' => $transport]); - - $this->assertTrue($transport->isExhausted()); - - // Mock response - $rawText = 'rawText503586532'; - $expectedResponse = new ParseResumeResponse(); - $expectedResponse->setRawText($rawText); - $transport->addResponse($expectedResponse); - - // Mock request - $formattedParent = $client->projectName('[PROJECT]'); - $resume = '45'; - - $response = $client->parseResume($formattedParent, $resume); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.talent.v4beta1.ResumeService/ParseResume', $actualFuncCall); - - $actualValue = $actualRequestObject->getParent(); - - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getResume(); - - $this->assertProtobufEquals($resume, $actualValue); - - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function parseResumeExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient(['transport' => $transport]); - - $this->assertTrue($transport->isExhausted()); - - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - - // Mock request - $formattedParent = $client->projectName('[PROJECT]'); - $resume = '45'; - - try { - $client->parseResume($formattedParent, $resume); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/docs/contents/cloud-talent.json b/docs/contents/cloud-talent.json index 5baf50b7892..6ca17762d73 100644 --- a/docs/contents/cloud-talent.json +++ b/docs/contents/cloud-talent.json @@ -39,10 +39,6 @@ "title": "v4beta1", "type": "talent\/v4beta1\/readme", "nav": [ - { - "title": "ApplicationServiceClient", - "type": "talent\/v4beta1\/applicationserviceclient" - }, { "title": "CompanyServiceClient", "type": "talent\/v4beta1\/companyserviceclient" @@ -59,14 +55,6 @@ "title": "JobServiceClient", "type": "talent\/v4beta1\/jobserviceclient" }, - { - "title": "ProfileServiceClient", - "type": "talent\/v4beta1\/profileserviceclient" - }, - { - "title": "ResumeServiceClient", - "type": "talent\/v4beta1\/resumeserviceclient" - }, { "title": "TenantServiceClient", "type": "talent\/v4beta1\/tenantserviceclient"